pagealign_alloc: Doc and comments.
[gnulib.git] / ChangeLog
1 2011-11-25  Bruno Haible  <bruno@clisp.org>
2
3         pagealign_alloc: Doc and comments.
4         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5         module.
6         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7
8 2011-11-25  Jim Meyering  <meyering@redhat.com>
9
10         test-update-copyright.sh: avoid false-positive failure
11         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
12         around false positive failure on Cygwin/Windows.  The latter was
13         matching erroneously-created files with names like
14         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
15
16 2011-11-25  Simon Josefsson  <simon@josefsson.org>
17
18         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
19         * m4/valgrind-tests.m4: Check that the parameters that will be
20         used works, not just a subset of them.  Reported by Bruno Haible
21         <bruno@clisp.org>.
22
23 2011-11-24  Jim Meyering  <meyering@redhat.com>
24
25         test-stdalign.c: comment out long double tests
26         * tests/test-stdalign.c: Don't try to reduce alignment of long double
27         variables.  That provokes errors like this from gcc-4.7.0 20111124:
28         error: '_Alignas' specifiers cannot reduce alignment of \
29         'static_longdouble_alignas'.
30
31 2011-11-22  Jim Meyering  <meyering@redhat.com>
32
33         init.sh: make "compare /dev/null FILE" output more readable
34         * tests/init.sh (compare_): Document the preferred order of arguments.
35         (emit_diff_u_header_): New function.
36         (compare_dev_null_): Emit a simulated diff, rather than just the
37         contents of the unexpected file.  Suggestion from Bruno Haible.
38
39 2011-11-21  Jim Meyering  <meyering@redhat.com>
40             Eric Blake  <eblake@redhat.com>
41
42         init.sh: work around OSF/1 5.1's mishandling of /dev/null
43         * tests/init.sh: Make our compare function slightly more portable.
44         Reported by Bruno Haible in
45         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
46
47 2011-11-21  Simon Josefsson  <simon@josefsson.org>
48
49         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
50         before using it, in code that ends up in config.h.
51
52 2011-11-20  Bruno Haible  <bruno@clisp.org>
53
54         getcwd: Work around getcwd bug on AIX 5..7.
55         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
56         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
57         Use a different value for gl_cv_func_getcwd_path_max. Move the
58         definition of HAVE_PARTLY_WORKING_GETCWD from here...
59         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
60         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
61         Define HAVE_MINIMALLY_WORKING_GETCWD.
62         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
63         where it is not even minimally working, that is, on AIX.
64         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
65         m4/getcwd-path-max.m4.
66         (main): Update exit code computation.
67         * doc/posix-functions/getcwd.texi: Mention list of platforms where
68         getcwd does not handle long file names.
69
70 2011-11-20  Bruno Haible  <bruno@clisp.org>
71
72         getcwd: Fix bug from 2009-09-10.
73         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
74         like "no".
75
76 2011-11-20  Simon Josefsson  <simon@josefsson.org>
77
78         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
79
80 2011-11-20  Bruno Haible  <bruno@clisp.org>
81
82         fma tests: Avoid shadowing local variables.
83         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
84         expected.
85
86 2011-11-20  Bruno Haible  <bruno@clisp.org>
87
88         copysignf tests: Fix.
89         * tests/test-copysignf.c: Fix signature check.
90
91 2011-11-20  Bruno Haible  <bruno@clisp.org>
92
93         fma: Remove unused code.
94         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
95         unused macros.
96
97 2011-11-20  Bruno Haible  <bruno@clisp.org>
98
99         sethostname: Fix doc about AIX.
100         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
101         sethostname; it has it.
102
103         sethostname: Mention more portability problems.
104         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
105         problem.
106         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
107
108 2011-11-19  Bruno Haible  <bruno@clisp.org>
109
110         Depend on module fcntl-h when AT_FDCWD is used.
111         * modules/utimens (Depends-on): Add fcntl-h.
112         * modules/areadlinkat (Depends-on): Likewise.
113         * modules/areadlinkat-with-size (Depends-on): Likewise.
114         * modules/faccessat (Depends-on): Likewise.
115         * modules/fchmodat (Depends-on): Likewise.
116         * modules/fchownat (Depends-on): Likewise.
117         * modules/getcwd (Depends-on): Likewise.
118         * modules/mkdirat (Depends-on): Likewise.
119         * modules/mkfifoat (Depends-on): Likewise.
120         * modules/readlinkat (Depends-on): Likewise.
121         * modules/symlinkat (Depends-on): Likewise.
122         * modules/dup2-tests (Depends-on): Likewise.
123         * modules/fdutimensat-tests (Depends-on): Likewise.
124         * modules/futimens-tests (Depends-on): Likewise.
125
126 2011-11-19  Bruno Haible  <bruno@clisp.org>
127
128         euidaccess: Update a comment.
129         * lib/euidaccess.c: Update comment about platforms with faccessat.
130
131 2011-11-19  Bruno Haible  <bruno@clisp.org>
132
133         openat: Fix file list.
134         * modules/openat (Files): Remove lib/at-func.c.
135
136 2011-11-19  Bruno Haible  <bruno@clisp.org>
137
138         fstatat: Simplify.
139         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
140         gnulib should define rpl_fstatat, there is a
141         "#define fstatat rpl_fstatat" in <sys/stat.h>.
142
143 2011-11-19  Bruno Haible  <bruno@clisp.org>
144
145         Ensure 'inline' can be used in tests/test-utimens-common.h.
146         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
147         * modules/futimens-tests (configure.ac): Likewise.
148         * modules/utimens-tests (configure.ac): Likewise.
149         * modules/utimensat-tests (configure.ac): Likewise.
150
151 2011-11-19  Simon Josefsson  <simon@josefsson.org>
152
153         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
154         not hash_insert0.
155         (hash_insert_if_absent): Doc fix.
156
157 2011-11-19  Simon Josefsson  <simon@josefsson.org>
158
159         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
160
161 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
162
163         test-getcwd: disambiguate exit status
164         * tests/test-getcwd.c (test_long_name): Return 0..7.
165         (main): Exit with an unambiguous exit status.  The old
166         code yielded a mysterious mixture of two failure codes.
167
168         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
169         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
170         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
171         rpl_fstatat or fstatat.  This should fix the other problem
172         reported by Kai Habel in
173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
174         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
176         and I reproduced it on a Solaris 8 host we still have in production.
177
178 2011-11-18  Jim Meyering  <meyering@redhat.com>
179
180         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
181         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
182         Add a sentence to the comment.
183         (hash_insert0): New function that simply calls hash_insert_if_absent.
184         * lib/hash.h (hash_insert_if_absent): Declare it.
185         (hash_insert0): Add deprecation attribute.
186         (_GL_ATTRIBUTE_DEPRECATED): Define.
187         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
188         not hash_insert0.
189         * NEWS: Mention it, even though it's not really an incompatible change.
190
191 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
192
193         openat: avoid compilation failure due to lack of <errno.h> inclusion
194         * lib/openat.c: Include <errno.h>.
195
196 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
197
198         * modules/getcwd (Depends-on): Add fdopendir.
199         This fixes one of the two problems reported by Kai Habel in
200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
201
202         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
203         stdalign problem reported by Ian Beckwith in
204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
205         * modules/crypto/gc-arcfour (Depends-on):
206         Depend conditionally on crypto/arcfour.
207         * modules/crypto/gc-arctwo (Depends-on):
208         Depend conditionally on crypto/arctwo.
209         * modules/crypto/gc-des (Depends-on):
210         Depend conditionally on crypto/des.
211         * modules/crypto/gc-hmac-md5 (Depends-on):
212         Depend conditionally on crypto/hmac-md5.
213         * modules/crypto/gc-hmac-sha1 (Depends-on):
214         Depend conditionally on crypto/hmac-sha1.
215         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
216         * modules/crypto/gc-md4 (Depends-on):
217         Depend conditionally on crypto/md4.
218         * modules/crypto/gc-md5 (Depends-on):
219         Depend conditionally on crypto/md5.
220         * modules/crypto/gc-rijndael (Depends-on):
221         Depend conditionally on crypto/rijndael.
222         * modules/crypto/gc-sha1 (Depends-on):
223         Depend conditionally on crypto/sha1.
224         * modules/crypto/gc-arcfour:
225         * modules/crypto/gc-arctwo:
226         * modules/crypto/gc-des:
227         * modules/crypto/gc-hmac-md5:
228         * modules/crypto/gc-hmac-sha1:
229         * modules/crypto/gc-md2:
230         * modules/crypto/gc-md4:
231         * modules/crypto/gc-md5:
232         * modules/crypto/gc-rijndael:
233         * modules/crypto/gc-sha1:
234         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
235         now that the conditional dependencies do the work for us.
236
237 2011-11-17  Jim Meyering  <meyering@redhat.com>
238
239         tests: factor st_ctime-comparison out of two headers
240         * tests/test-utimens-common.h (ctime_compare): Define.
241         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
242         * tests/test-lutimens.h (test_lutimens): Likewise.
243         * tests/test-utimens.h (test_utimens): Likewise.
244
245         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
246         Invoke the test program via an init.sh-using wrapper.
247         * tests/test-getcwd.sh: New file.
248         * modules/getcwd-tests (Files): Add it.
249         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
250
251 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
252
253         gitlog-to-changelog: support multi-author commits.
254         The FSF cares about keeping track of all authors of patches to its
255         projects, but Git doesn't provide obvious support for multi-author
256         changesets. Consensus seems to be forming around the use of extra
257         Signed-off-by inspired lines in the log message formatted as
258         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
259         multi-author commits between version control systems.
260         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
261         log message and output in standard ChangeLog multi-author format.
262         Reported by Peter Rosin <peda@lysator.liu.se>
263
264 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
265             Bruno Haible  <bruno@clisp.org>
266
267         Fix some modules' file list.
268         * modules/fstatat (Files): Add m4/lstat.m4.
269         * modules/openat (Files): Likewise.
270         * modules/unlinkat (Files): Likewise.
271
272 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
273
274         maint.mk: fix tight-scope.mk generation in VPATH builds.
275         * top/maint.mk (tight-scope.mk): Make sure to prefix file
276         reference with $(srcdir) so that the file is found correctly even
277         when running `make syntax-check' in a VPATH build.
278
279 2011-11-13  Bruno Haible  <bruno@clisp.org>
280             Jim Meyering  <meyering@redhat.com>
281
282         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
283         * tests/init.sh (compare): Remove "No differences encountered" or
284         synonymous output from the 'diff' program.
285
286 2011-11-13  Bruno Haible  <bruno@clisp.org>
287
288         Makefile: Tweak indentation.
289         * Makefile: Use tab as first character in every line that contains rule
290         commands.
291
292 2011-11-13  Bruno Haible  <bruno@clisp.org>
293
294         Syntax check for copyright statements.
295         * check-copyright: New file.
296         * Makefile (sc_check_copyright): New rule.
297
298 2011-11-13  Simon Josefsson  <simon@josefsson.org>
299
300         * build-aux/git-version-gen: Add --prefix to configure the tag
301         match string.
302
303 2011-11-13  Simon Josefsson  <simon@josefsson.org>
304
305         * build-aux/git-version-gen: Add --help and --version.
306
307 2011-11-12  Jim Meyering  <meyering@redhat.com>
308
309         revamp the other test-exclude?.sh scripts to use init.sh, too
310         * tests/test-exclude1.sh: Use init.sh.
311         * tests/test-exclude2.sh: Likewise.
312         * tests/test-exclude3.sh: Likewise.
313         * tests/test-exclude4.sh: Likewise.
314         * tests/test-exclude5.sh: Likewise.
315         * tests/test-exclude6.sh: Likewise.
316         * tests/test-exclude7.sh: Likewise.
317         * tests/test-exclude8.sh: Likewise.
318         * modules/exclude-tests (Files): List init.sh.
319
320         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
321         These shell scripts ignored failure of the binary test-exclude,
322         so making the latter return 77 didn't cause them to be skipped.
323         * tests/test-exclude5.sh: Exit with test-exclude's error status
324         when that program fails.  Revamp to use init.sh.
325         * tests/test-exclude2.sh: Likewise.
326
327         test-exclude: fix a typo
328         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
329
330 2011-11-11  Bruno Haible  <bruno@clisp.org>
331
332         obstack: Fix compilation error on MSVC 9.
333         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
334
335 2011-11-11  Jim Meyering  <meyering@redhat.com>
336
337         test-exclude: skip tests rather than failing on deficient systems
338         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
339         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
340         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
341         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
342
343 2011-11-10  Bruno Haible  <bruno@clisp.org>
344
345         ptsname_r test: Avoid gcc warning on glibc systems.
346         * tests/test-ptsname_r.c (null_ptr): New function.
347         (test_errors): Use it.
348
349 2011-11-10  Bruno Haible  <bruno@clisp.org>
350
351         ptsname_r: Avoid compilation error on OSF/1 5.1.
352         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
354         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
355         function is not declared or incompatibly declared.
356         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
357         * modules/ptsname_r (Depends-on, configure.ac): Update.
358         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
359
360 2011-11-10  Bruno Haible  <bruno@clisp.org>
361
362         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
363         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
364         When cross-compiling, guess yes on all platforms except AIX.
365         Reported by Ludovic Courtès <ludo@gnu.org>.
366
367 2011-11-09  Bruno Haible  <bruno@clisp.org>
368
369         ptsname_r tests: Fix bugs.
370         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
371         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
372
373 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
374
375         fstatat: work with cross-compilation
376         Problem reported by Ludovic Courtès in
377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
378         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
379         "cross-compiling" and assume the bug is present.  Replace
380         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
381         an inverted sense, to be more conservative about our assumptions.
382         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
383
384 2011-11-09  Bruno Haible  <bruno@clisp.org>
385
386         Improve MODULES.html output.
387         * modules/mkfifoat (Description): Use the word "function".
388         * modules/readlinkat (Description): Likewise.
389         * modules/symlinkat (Description): Likewise.
390
391 2011-11-09  Eric Blake  <eblake@redhat.com>
392
393         ptsname_r-tests: new test module
394         * modules/ptsname_r-tests: New module.
395         * tests/test-ptsname_r.c: New file.
396
397         ptsname_r: new module
398         * modules/ptsname_r: New module.
399         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
400         * lib/ptsname.c (__ptsname_r): Split...
401         * lib/ptsname_r.c: ...into new file.
402         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
403         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
404         * modules/stdlib (Makefile.am): Substitute witnesses.
405         * lib/stdlib.in.h (ptsname_r): Declare it.
406         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
407         * MODULES.html.sh (Misc): Likewise.
408         * modules/ptsname (Depends-on): Alter dependency.
409         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
410
411 2011-11-09  Jim Meyering  <meyering@redhat.com>
412
413         announce-gen: be more concise when there's only one URL+tarball
414         * build-aux/announce-gen (get_tool_versions): When you distribute
415         only one type of tarball, combine the first two "Here are..."
416         sections and make the key-checking grammar independent of
417         how many tarballs there are.
418
419 2011-11-09  Eric Blake  <eblake@redhat.com>
420
421         openpty: provide a stub on mingw
422         * lib/pty.in.h (includes): Provide forward declarations.
423         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
424
425         raise: fix mingw handling of SIGPIPE
426         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
427
428 2011-11-08  Bruno Haible  <bruno@clisp.org>
429
430         More conditional dependencies.
431         * modules/faccessat (Depends-on): Add conditions.
432         * modules/fchmodat (Depends-on): Likewise.
433         * modules/fchownat (Depends-on): Likewise.
434         * modules/fstatat (Depends-on): Likewise.
435         * modules/mkfifoat (Depends-on): Likewise.
436         * modules/readlinkat (Depends-on): Likewise.
437         * modules/symlinkat (Depends-on): Likewise.
438         * modules/unlinkat (Depends-on): Likewise.
439         * modules/utimensat (Depends-on): Likewise.
440         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
441         * modules/linkat (Depends-on): Refine the conditions.
442         * modules/renameat (Depends-on): Likewise.
443
444 2011-11-08  Bruno Haible  <bruno@clisp.org>
445
446         faccessat: Move AC_LIBOBJ invocation to module description.
447         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
448         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
449         invocation from here...
450         * modules/faccessat (configure.ac): ... to here. Invoke
451         gl_PREREQ_FACCESSAT.
452
453 2011-11-08  Bruno Haible  <bruno@clisp.org>
454
455         faccessat: Simplify autoconf macro.
456         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
457         gl_FUNC_EUIDACCESS.
458
459 2011-11-08  Bruno Haible  <bruno@clisp.org>
460
461         renameat: Fix dependencies.
462         * modules/renameat (Depends-on): Add stdbool.
463
464 2011-11-08  Bruno Haible  <bruno@clisp.org>
465
466         mkfifoat: Fix module description.
467         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
468         not gl_UNISTD_MODULE_INDICATOR.
469
470 2011-11-08  Bruno Haible  <bruno@clisp.org>
471
472         fstatat: Remove unused dependency.
473         * modules/fstatat (Depends-on): Remove fstat.
474
475 2011-11-08  Simon Josefsson  <simon@josefsson.org>
476
477         GNUmakefile: behave when Makefile is missing.
478         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
479
480 2011-11-08  Bruno Haible  <bruno@clisp.org>
481
482         openat: Conditionalize dependencies.
483         * lib/openat.c: Reduce the scope of some #includes.
484         * modules/openat (Depends-on): Add conditions.
485
486 2011-11-07  Jim Meyering  <meyering@redhat.com>
487
488         maint.mk: extract GPG key ID without using a temporary file
489         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
490         without using a temporary file.  Based on a suggestion from Werner Koch
491         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
492
493 2011-11-07  Eric Blake  <eblake@redhat.com>
494
495         grantpt: fix typo
496         * lib/stdlib.in.h (grantpt): Check correct function.
497
498         maint.mk: silence new syntax check
499         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
500
501 2011-11-06  Bruno Haible  <bruno@clisp.org>
502
503         Doc about floating-point and math API.
504         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
505         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
506
507 2011-11-06  Bruno Haible  <bruno@clisp.org>
508
509         stdalign tests: Skip the test when compiled by Sun C.
510         * tests/test-stdalign.c (main): Skip the test on Sun C.
511
512 2011-11-06  Bruno Haible  <bruno@clisp.org>
513
514         ansi-c++-opt: Complete the 2011-06-05 change.
515         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
516         does not support namespaces, set the variable to "no", not to ":".
517
518 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
519
520         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
521
522 2011-11-06  Bruno Haible  <bruno@clisp.org>
523
524         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
525         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
526         (minus_zerol) [HP-UX]: New macro.
527         (unary_minus) [HP-UX]: New function.
528         (copysignl) [HP-UX]: Use unary_minus function.
529
530 2011-11-06  Bruno Haible  <bruno@clisp.org>
531
532         ldexp, ldexpf, ldexpl: Enhance tests.
533         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
534         and tests/test-ldexpl.c.
535         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
536         LDEXP, MIN_EXP, MAX_EXP): New macros.
537         Include test-ldexp.h.
538         (main): Just call test_function.
539         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
540         infinity.h, nan.h.
541         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
542         MAX_EXP): New macros.
543         Include test-ldexp.h.
544         (x, y): Remove variables.
545         (main): Just call test_function.
546         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
547         infinity.h, nan.h.
548         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
549         MAX_EXP): New macros.
550         Include test-ldexp.h.
551         (x, y): Remove variables.
552         (main): Just call test_function.
553         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
554         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
555         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
556         (Depends-on): Add isnand-nolibm, signbit, float.
557         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
558         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
559         (Depends-on): Add isnanf-nolibm, signbit, float.
560
561 2011-11-06  Bruno Haible  <bruno@clisp.org>
562
563         math tests: Cosmetics.
564         * tests/test-math-c++.cc: Reorder declarations.
565
566 2011-11-05  Bruno Haible  <bruno@clisp.org>
567
568         fma*: Simplify test.
569         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
570         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
571
572         Tests for module 'fmal'.
573         * modules/fmal-tests: New file.
574         * tests/test-fmal1.c: New file.
575         * tests/test-fmal2.c: New file.
576
577         New module 'fmal'.
578         * lib/math.in.h (fmal): New declaration.
579         * lib/fmal.c: New file.
580         * m4/fmal.m4: New file.
581         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
583         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
584         REPLACE_FMAL.
585         * modules/fmal: New file.
586         * doc/posix-functions/fmal.texi: Mention the new module and the various
587         bugs.
588
589         Tests for module 'fmaf'.
590         * modules/fmaf-tests: New file.
591         * tests/test-fmaf1.c: New file.
592         * tests/test-fmaf2.c: New file.
593
594         New module 'fmaf'.
595         * lib/math.in.h (fmaf): New declaration.
596         * lib/fmaf.c: New file.
597         * m4/fmaf.m4: New file.
598         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
600         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
601         REPLACE_FMAF.
602         * modules/fmaf: New file.
603         * doc/posix-functions/fmaf.texi: Mention the new module and the various
604         bugs.
605
606         Tests for module 'fma'.
607         * modules/fma-tests: New file.
608         * tests/test-fma1.c: New file.
609         * tests/test-fma1.h: New file.
610         * tests/test-fma2.c: New file.
611         * tests/test-fma2.h: New file.
612
613         New module 'fma'.
614         * lib/math.in.h (fma): New declaration.
615         * lib/fma.c: New file.
616         * m4/fma.m4: New file.
617         * m4/fegetround.m4: New file.
618         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
619         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
620         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
621         REPLACE_FMA.
622         * modules/fma: New file.
623         * doc/posix-functions/fma.texi: Mention the new module and the various
624         bugs.
625
626         Extend gl_MATHFUNC.
627         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
628         Support 'void' as argument type.
629         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
630
631 2011-11-05  Jim Meyering  <meyering@redhat.com>
632
633         maint.mk: also prohibit inclusion of dirent.h without use
634         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
635
636 2011-11-05  Bruno Haible  <bruno@clisp.org>
637
638         ldexpl tests: Avoid test failure on MSVC 9.
639         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
640         value. Needed in order to enforce the conversion from a value greater
641         than LDBL_MAX to Infinity.
642
643 2011-11-05  Bruno Haible  <bruno@clisp.org>
644
645         New modules 'at-internal', 'openat-h', split off from module 'openat'.
646         * modules/at-internal: New file, extracted from modules/openat.
647         * modules/openat-h: New file.
648         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
649         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
650         * modules/openat (Description): Add reference to POSIX function.
651         (Files): Remove lib/openat.h, lib/openat-proc.c.
652         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
653         intprops, unistd.
654         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
655         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
656         gl_FCNTL_MODULE_INDICATOR.
657         (Include): Remove unistd.h, openat.h.
658         * modules/areadlinkat (Files): Add lib/at-func.c.
659         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
660         openat-die, openat-h, save-cwd.
661         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
662         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
663         openat-die, openat-h, save-cwd, unistd.
664         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
665         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
666         openat-h, save-cwd. Remove fcntl-h, openat.
667         * modules/fchmodat (Files): Remove lib/openat.h.
668         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
669         openat, stdbool, unistd.
670         * modules/fchownat (Files): Remove lib/openat.h.
671         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
672         openat, stdbool, sys_stat.
673         * modules/fdopendir (Files): Remove lib/openat-priv.h,
674         lib/openat-proc.c.
675         (Depends-on): Add at-internal.
676         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
677         * modules/fstatat (Files): Remove lib/openat.h.
678         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
679         stdbool, unistd.
680         * modules/fts (Depends-on): Add openat-h.
681         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
682         openat.
683         * modules/mkdirat (Files): Remove lib/openat.h.
684         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
685         openat, stdbool, sys_stat.
686         * modules/mkfifoat (Files): Add lib/at-func.c.
687         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
688         openat-h, save-cwd. Remove fcntl-h, openat.
689         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
690         * modules/readlinkat (Files): Add lib/at-func.c.
691         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
692         openat-h, save-cwd. Remove fcntl-h, openat.
693         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
694         openat.
695         * modules/selinux-at (Files): Add lib/at-func.c.
696         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
697         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
698         * modules/symlinkat (Files): Add lib/at-func.c.
699         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
700         openat-h, save-cwd. Remove fcntl-h, openat.
701         * modules/unlinkat (Files): Remove lib/openat.h.
702         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
703         stdbool.
704         * modules/utimensat (Files): Add lib/at-func.c.
705         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
706         openat-die, openat-h, save-cwd.
707         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
708         * modules/fdutimensat-tests (Depends-on): Add openat.
709         * modules/fstatat-tests (Depends-on): Add openat-h.
710         * modules/readlinkat-tests (Depends-on): Add openat.
711         * modules/symlinkat-tests (Depends-on): Add openat.
712
713 2011-11-05  Bruno Haible  <bruno@clisp.org>
714
715         openat: Include <stdbool.h>.
716         * lib/openat.c: Include <stdbool.h>.
717
718 2011-11-04  Bruno Haible  <bruno@clisp.org>
719
720         fchownat, renameat, unlinkat: Fix dependencies.
721         * modules/fchownat (Depends-on): Add fstatat.
722         * modules/renameat (Depends-on): Likewise.
723         * modules/unlinkat (Depends-on): Likewise.
724
725 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
726
727         openat: remove direct dependency on dirent
728         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
729         and hasn't been needed ever since fdopendir was split into its own
730         module on 2009-08-31.
731         * modules/openat (Depends-on): Remove dirent.
732
733 2011-11-04  Bruno Haible  <bruno@clisp.org>
734
735         renameat: Optimize code size.
736         * modules/renameat (configure.ac): Don't compile at-func2.c if
737         REPLACE_RENAMEAT is 1.
738
739 2011-11-04  Bruno Haible  <bruno@clisp.org>
740
741         openat tests: Fix file list.
742         * modules/openat-tests (Files): Add tests/test-open.h.
743
744 2011-11-04  Bruno Haible  <bruno@clisp.org>
745
746         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
747         * modules/fchmodat (Depends-on): Add openat-die.
748         * modules/fchownat (Depends-on): Likewise.
749         * modules/linkat (Depends-on): Likewise.
750         * modules/renameat (Depends-on): Likewise.
751         * modules/openat (Depends-on): Add dirent.
752
753 2011-11-04  Jim Meyering  <meyering@redhat.com>
754
755         at-func*.c: fix comments
756         * lib/at-func2.c: Correct/improve first-line comment.
757         * lib/at-func.c: Correct grammar in first-line comment.
758
759 2011-11-04  Bruno Haible  <bruno@clisp.org>
760
761         New module 'mkdirat', split off from module 'openat'.
762         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
763         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
764         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
765         * modules/mkdirat: New file, extracted from modules/openat.
766         * modules/openat (Files): Remove lib/mkdirat.c.
767         (Depends-on): Remove mkdir.
768         (configure.ac): Remove AC_LIBOBJ of mkdirat.
769         (Include): Remove <sys/stat.h>.
770         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
771         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
772         tests/test-mkdir.h.
773         (Depends-on): Remove ignore-value.
774         (Makefile.am): Remove rules for test-mkdirat.
775         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
776         of module 'openat'.
777         * NEWS: Mention the change.
778
779 2011-11-04  Bruno Haible  <bruno@clisp.org>
780
781         closedir: Avoid warning on mingw.
782         * lib/closedir.c: Include <unistd.h>.
783
784 2011-11-04  Bruno Haible  <bruno@clisp.org>
785
786         New module 'fstatat', split off from module 'openat'.
787         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
788         defined.
789         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
790         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
791         gl_FUNC_FSTATAT.
792         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
793         * modules/fstatat: New file, extracted from modules/openat.
794         * modules/openat (Files): Remove lib/fstatat.c.
795         (Depends-on): Remove lstat.
796         (configure.ac): Remove AC_LIBOBJ of fstatat.
797         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
798         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
799         tests/test-lstat.h, tests/test-stat.h.
800         (Depends-on): Remove getcwd-lgpl.
801         (Makefile.am): Remove rules for test-fstatat.
802         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
803         of module 'openat'.
804         * NEWS: Mention the change.
805         * modules/getcwd (Depends-on): Add fstatat.
806         * modules/linkat (Depends-on): Likewise.
807         * modules/mkfifoat-tests (Depends-on): Likewise.
808         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
809
810 2011-11-03  Bruno Haible  <bruno@clisp.org>
811
812         New module 'unlinkat', split off from module 'openat'.
813         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
815         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
816         * modules/unlinkat: New file, extracted from modules/openat. Correct
817         the dependency conditions.
818         * modules/openat (Files): Remove lib/unlinkat.c.
819         (Depends-on): Remove rmdir, unlink.
820         (configure.ac): Remove AC_LIBOBJ of unlinkat.
821         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
822         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
823         tests/test-rmdir.h, tests/test-unlink.h.
824         (Depends-on): Remove unlinkdir.
825         (Makefile.am): Remove rules for test-unlinkat.
826         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
827         of module 'openat'.
828         * NEWS: Mention the change.
829         * modules/linkat-tests (Depends-on): Add unlinkat.
830         * modules/mkfifoat-tests (Depends-on): Likewise.
831         * modules/readlinkat-tests (Depends-on): Likewise.
832
833 2011-11-02  Bruno Haible  <bruno@clisp.org>
834
835         New module 'fchmodat', split off from module 'openat'.
836         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
837         defined.
838         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
839         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
840         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
841         * modules/fchmodat: New file, extracted from modules/openat.
842         * modules/openat (Files): Remove lib/fchmodat.c.
843         (configure.ac): Remove AC_LIBOBJ of fchmodat.
844         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
845         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
846         (Makefile.am): Remove rules for test-fchmodat.
847         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
848         of module 'openat'.
849         * NEWS: Mention the change.
850
851 2011-11-02  Jim Meyering  <meyering@redhat.com>
852
853         putenv: indent #definition of "environ" to placate cppi
854         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
855
856         gitlog-to-changelog: provide a ChangeLog-repair mechanism
857         Git logs are often treated as immutable, because editing them
858         changes the SHA1 checksums of all descendants.  Thus, errors in
859         git logs tend to stay there forever.  However, when we generate
860         a ChangeLog file -- typically for distribution -- from that git log,
861         we can actually make corrections in the generated file.  The key
862         lies in recording in machine-readable/applicable form the desired
863         corrections.  See --help for description and an example.
864         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
865         (usage): Describe it; alphabetize option descriptions.
866         (main): Honor the new option, carefully.
867
868 2011-11-01  Jim Meyering  <meyering@redhat.com>
869
870         gitlog-to-changelog: avoid an infloop
871         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
872         that ends up being empty.
873
874 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
875
876         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
877         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
878         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
879         contains (possibly-quoted) backslashes.  This should avoid
880         all-too-common shell bugs if COMPLICATED contains backslashes in
881         the "wrong" places.  Reported by David Evans in
882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
883         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
884         because we want ASCII ranges.  Is there some reason we don't use
885         the C locale everywhere in this script?
886         (func_module, top level): Avoid unwanted pathname expansion when
887         $repo_url_prefix or $repo_url_suffix_repl contain shell
888         metacharacters like '?' and '*'.
889
890 2011-11-01  Bruno Haible  <bruno@clisp.org>
891
892         fchownat: Improve description.
893         * modules/fchownat (Description): Add link to function.
894
895 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
896
897         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
898         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
900         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
901
902 2011-11-01  Bruno Haible  <bruno@clisp.org>
903
904         alignof: Avoid collision with stdalign module.
905         * lib/alignof.h (alignof): Remove macro.
906         * NEWS: Mention the change.
907         Reported by Paul Eggert.
908
909 2011-11-01  Bruno Haible  <bruno@clisp.org>
910
911         New module 'fchownat', split off from module 'openat'.
912         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
913         defined.
914         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
915         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
916         invoke gl_FUNC_FCHOWNAT.
917         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
918         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
919         * modules/fchownat: New file, extracted from modules/openat.
920         * modules/openat (Files): Remove lib/fchownat.c.
921         (Depends-on): Remove lchown.
922         (configure.ac): Remove AC_LIBOBJ of fchownat.
923         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
924         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
925         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
926         (Depends-on): Remove mgetgroups, usleep, stat-time.
927         (configure.ac): Remove test for getegid.
928         (Makefile.am): Remove rules for test-fchownat.
929         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
930         of module 'openat'.
931         * NEWS: Mention the change.
932
933 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
934
935         stdalign: port better to MSVC and to Sun C 5.11
936         This fixes some of the problems reported by Bruno Haible in
937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
938         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
939         shortcomings of MSVC and of Sun C 5.11.
940         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
941         around __declspec arg.
942         * modules/stdalign-tests (Files): Add tests/macros.h.
943         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
944         Include macros.h, for ASSERT.
945         (DECLARE_ALIGNED): Remove.
946         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
947         to catch bug), and to 1 if not (simplifies the rest of the code).
948         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
949         (CHECK_AUTO): Remove.
950         (CHECK_ALIGNED): Check only the alignment of the static vars,
951         since auto var alignment isn't supported by Sun C 5.11.
952         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
953         ASSERT failures are easier to diagnose.
954
955 2011-10-31  Bruno Haible  <bruno@clisp.org>
956
957         doc about some IRIX 5.3 problems.
958         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
959         on IRIX 5.3.
960         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
961         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
962         5.3.
963         * doc/posix-functions/grantpt.texi: Likewise.
964         * doc/posix-functions/unlockpt.texi: Likewise.
965         * doc/posix-functions/lgamma.texi: Likewise.
966         * doc/posix-functions/nextafter.texi: Likewise.
967         * doc/posix-functions/remainder.texi: Likewise.
968         * doc/posix-functions/select.texi: Mention misplaced declaration on
969         IRIX 5.3.
970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
971
972 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
973
974         gitlog-to-changelog: fix git-log invocation.
975         git-log mishandles date strings before 1970-01-01 UTC, and there is
976         no use to specify --since=1970-01-01 by default anyway.
977         * build-aux/gitlog-to-changelog: By default, when no --since option
978         was given, do not specify explicit --since option to git-log.
979
980 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
981
982         gitlog-to-changelog: new option --append-dot.
983         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
984         first non-blank line of each commit message terminated with a dot.
985
986 2011-10-30  Bruno Haible  <bruno@clisp.org>
987
988         ffsl, ffsll: Avoid compilation error due to 'restrict'.
989         * lib/ffsl.h: Include <config.h>.
990         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
991
992 2011-10-30  Jim Meyering  <meyering@redhat.com>
993
994         GNUmakefile: reenable "make syntax-check" for most projects
995         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
996         build-aux variable", "syntax-check" would do nothing but succeed with
997         the "No version control files detected..." diagnostic (unless you
998         happened to override _build-aux via cfg.mk).
999         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1000         to precede inclusion of maint.mk.  Otherwise, these variables would
1001         be used undefined in any project that does not override the default.
1002
1003 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1004
1005         gitlog-to-changelog: treat a message with only blank lines as empty.
1006         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1007         trailing blank lines before the code that issues a warning about an
1008         empty commit message.
1009
1010 2011-10-30  Jim Meyering  <meyering@redhat.com>
1011
1012         test-parse-datetime.c: avoid new DST-related false positive test failure
1013         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1014         based on the time/date we'll convert, not the current time.
1015         Otherwise, the moment we cross a DST boundary like today's in
1016         Europe, (CEST to CET), that offset ends up being one hour off.
1017
1018 2011-10-27  Bruno Haible  <bruno@clisp.org>
1019
1020         fstat: Tweak documentation.
1021         * modules/fstat (Description): More precise description.
1022
1023 2011-10-27  Bruno Haible  <bruno@clisp.org>
1024
1025         Update documentation regarding 'largefile' module.
1026         * doc/posix-functions/fstat.texi: Tweak wording.
1027         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1028         problems with huge directories and/or small ino_t types.
1029         * doc/posix-functions/readdir.texi: Likewise.
1030         * doc/posix-functions/rewinddir.texi: Likewise.
1031
1032 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1033
1034         maint.mk: don't maintain a second build-aux variable.
1035         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1036         depends on GNUmakefile, which already maintains a cfg.mk
1037         overridable $(_build-aux) for projects with a non-standard
1038         build-aux directory location, although without the $(srcdir)
1039         prefix.  Use that variable consistently instead of introducing a
1040         second one.  Adjust all call sites.
1041
1042 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1043
1044         Add stdalign module and use it in other modules.
1045         This is based on a previous proposal by Bruno Haible
1046         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1047
1048         stdalign: new module
1049         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1050         * modules/stdalign: New files.
1051         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1052         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1053
1054         stdalign-tests: new module
1055         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1056
1057         argp: use stdalign
1058         * lib/argp-parse.c: Include <stdalign.h>.
1059         (alignof): Remove.
1060         * modules/argp (Depends-on): Add stdalign.
1061
1062         crypto libraries: use stdalign
1063         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1064         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1065         Do not include <stdlib.h> twice, in md4.c.
1066         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1067         because we are accessing a pointer's bit-pattern, not a size.
1068         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1069         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1070         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1071         * modules/crypto/sha512: Likewise.
1072
1073         sys_socket: use stdalign, not alignof
1074         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1075         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1076
1077 2011-10-27  Bruno Haible  <bruno@clisp.org>
1078
1079         raise test: Avoid a test failure on Linux/MIPS.
1080         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1081         because 99 is a valid signal on Linux/MIPS.
1082
1083 2011-10-27  Bruno Haible  <bruno@clisp.org>
1084
1085         nonblocking tests: Fix test failure on Linux/MIPS.
1086         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1087         Set to 270000.
1088
1089 2011-10-27  Bruno Haible  <bruno@clisp.org>
1090
1091         utimensat: Work around problem on Linux/hppa.
1092         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1093         values.
1094         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1095
1096 2011-10-25  Jim Meyering  <meyering@redhat.com>
1097
1098         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1099         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1100         after symbols like NULL, size_t, etc.
1101         Reported by Alfred M. Szmidt.
1102
1103         maint.mk: exempt ENODATA from a syntax-check rule
1104         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1105         from the sc_prohibit_always-defined_macros syntax-check rule.
1106         Add a comment.  See this for more details:
1107         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1108
1109 2011-10-23  Jim Meyering  <meyering@redhat.com>
1110
1111         fts: close parent dir FD before returning from post-traversal fts_read
1112         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1113         unlink A, even though an FD open on A remained.  This is suboptimal
1114         (holding a file descriptor open longer than needed), but otherwise not
1115         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1116         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1117         that represents a real problem: it causes the removal of A to fail
1118         with e.g., "rm: cannot remove `A': Device or resource busy"
1119
1120         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1121         directory file descriptors.  After completing the final, FTS_DP,
1122         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1123         cache, but then proceeded to add a new FD to it via the subsequent
1124         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1125         final file descriptor would be closed only via fts_close's call to
1126         fd_ring_clear.  Now, it is usually closed earlier, via the final
1127         FTS_DP-returning fts_read call.
1128         * lib/fts.c (restore_initial_cwd): New function, converted from
1129         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1130         Update callers.
1131         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1132         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1133
1134 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1135             Bruno Haible  <bruno@clisp.org>
1136             Jim Meyering  <jim@meyering.net>
1137
1138         readme-release: improve safety of release prep instructions.
1139         * README-release: Don't git pull all branches when only master
1140         is needed for the release process.
1141         Run make maintainer-clean before changing trees and merging.
1142         Don't try to run ./configure right after git pull in case files
1143         that influence the bootstrap process have changed, move the
1144         ./configure step to after running ./bootstrap.
1145         Don't bootstrap "one last time"... it's the first time!
1146
1147 2011-10-22  Bruno Haible  <bruno@clisp.org>
1148
1149         errno, strerror-override: Support for MSVC 10.
1150         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1151         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1152         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1153         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1154         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1155         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1156         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1157         Assign values compatible with MSVC 10.
1158         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1159         New macros.
1160         (GNULIB_defined_EWINSOCK): New macro.
1161         * lib/strerror-override.c (strerror_override): Update accordingly.
1162         * lib/strerror-override.h: Likewise.
1163         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1164         longer equal to the corresponding errno value.
1165         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1166
1167 2011-10-22  Bruno Haible  <bruno@clisp.org>
1168
1169         perror: Recognize when test program crashes.
1170         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1171         strerror, set gl_cv_func_perror_works to no.
1172         Reported by Daniel Richard G. <skunk@iskunk.org>.
1173
1174         perror: Fix indentation.
1175         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1176
1177 2011-10-22  Bruno Haible  <bruno@clisp.org>
1178
1179         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1180         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1181         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1182         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1183         functions, not as a macro.
1184         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1185         macros.
1186         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1187         absence of macro.
1188         Suggested by Eric Blake.
1189         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1190
1191 2011-10-21  Bruno Haible  <bruno@clisp.org>
1192
1193         relocatable-prog-wrapper: Don't leave object files behind.
1194         * build-aux/install-reloc: Re-synchronize list of .o files to be
1195         removed with list of compilation units.
1196
1197 2011-10-20  Bruno Haible  <bruno@clisp.org>
1198
1199         openpty, posix_openpt: Remove code duplication.
1200         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1201         * lib/openpty.c: Include <stdlib.h>.
1202         (openpty): Use posix_openpt on all platforms except IRIX.
1203         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1204
1205 2011-10-20  Bruno Haible  <bruno@clisp.org>
1206
1207         unlockpt: Detect invalid argument.
1208         * lib/unlockpt.c: Include <fcntl.h>.
1209         (unlockpt): Check whether fd is valid, using fcntl().
1210         * modules/unlockpt (Depends-on): Add fcntl-h.
1211
1212 2011-10-20  Bruno Haible  <bruno@clisp.org>
1213
1214         openpty: Avoid compilation error on AIX 6.1.
1215         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1216
1217 2011-10-20  Bruno Haible  <bruno@clisp.org>
1218
1219         posix_openpt: Support for OpenBSD.
1220         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1221         (posix_openpt) [OpenBSD]: New code.
1222         * lib/grantpt.c: Include <fcntl.h>.
1223         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1224         * modules/grantpt (Depends-on): Add fcntl-h.
1225
1226 2011-10-20  Bruno Haible  <bruno@clisp.org>
1227
1228         posix_openpt test: Coding style.
1229         * tests/test-posix_openpt.c: Use GNU coding style.
1230
1231 2011-10-20  Bruno Haible  <bruno@clisp.org>
1232
1233         grantpt: Support --avoid=pt_chown.
1234         * modules/grantpt (Files): Add lib/pty-private.h.
1235
1236 2011-10-20  Bruno Haible  <bruno@clisp.org>
1237
1238         posix_openpt: Fix autoconf macro.
1239         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1240         unneeded check for _getpty.
1241
1242 2011-10-20  Bruno Haible  <bruno@clisp.org>
1243
1244         openpty: Update comments.
1245         * lib/openpty.c: Add comments about Minix.
1246
1247 2011-10-19  Eric Blake  <eblake@redhat.com>
1248
1249         openpty: relax license
1250         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1251
1252         pt_chown: use configmake to simplify build
1253         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1254
1255         ptsname and others: relax license
1256         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1257         * modules/unlockpt (License): Likewise.
1258         * modules/pt_chown (License): Likewise.
1259         * modules/ptsname (License): Likewise.
1260         * modules/ttyname_r (License): Likewise.
1261
1262 2011-10-19  Jim Meyering  <meyering@redhat.com>
1263
1264         posix_openpt: remove spurious #endif
1265         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1266
1267 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1268
1269         maint.mk: Respect $(build_aux) in web-manual rule.
1270         * top/maint.mk (web-manual): Find gen-announce script in user's
1271         $(build_aux) directory instead of hard-coding 'build-aux'.
1272
1273 2011-10-19  Bruno Haible  <bruno@clisp.org>
1274
1275         posix_openpt: Fix compilation error.
1276         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1277         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1278         Mention the openpty module as an alternative.
1279
1280 2011-10-19  Bruno Haible  <bruno@clisp.org>
1281
1282         Support for old NeXTstep 3.3 frexp().
1283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1284         execution time of the test to 5 seconds.
1285         Reported by Daniel Richard G. <skunk@iskunk.org>.
1286
1287 2011-10-19  Bruno Haible  <bruno@clisp.org>
1288
1289         Support for old NeXTstep 3.3 sed.
1290         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1291         part, use /.../, not \|...|. Escape periods in the header file name.
1292         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1293         Reported by Daniel Richard G. <skunk@iskunk.org>.
1294
1295 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1296
1297         Support for old NeXTstep 3.3 gcc.
1298         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1299         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1300         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1301         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1302         * lib/regex.h (_Restrict_arr_): Likewise.
1303         * lib/regex_internal.h (re_token_t): Likewise.
1304         * lib/regexec.c (check_node_accept_bytes): Likewise.
1305         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1306
1307 2011-10-18  Eric Blake  <eblake@redhat.com>
1308
1309         posix_openpt: new module
1310         * modules/posix_openpt: New module.
1311         * m4/posix_openpt.m4: New file.
1312         * lib/posix_openpt.c: Likewise.
1313         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1314         (gl_STDLIB_H_DEFAULTS): Set defaults.
1315         * modules/stdlib (Makefile.am): Substitute macros.
1316         * lib/stdlib.in.h (posix_openpt): Declare.
1317         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1318         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1319         * modules/posix_openpt-tests: New test module.
1320         * tests/test-posix_openpt.c: New test.
1321
1322 2011-10-15  Bruno Haible  <bruno@clisp.org>
1323
1324         xstrtoll: Fix compilation failure.
1325         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1326         from lib/strtol.c.
1327         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1328         some platforms.
1329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1330
1331 2011-10-15  Bruno Haible  <bruno@clisp.org>
1332
1333         vasnprintf: Optimize bit search operation.
1334         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1336         gl_DOUBLE_EXPONENT_LOCATION.
1337         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1338         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1339         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1340         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1341         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1342         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1343         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1344         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1345         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1346
1347 2011-10-15  Bruno Haible  <bruno@clisp.org>
1348
1349         vasnprintf: Fix comments.
1350         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1351
1352 2011-10-14  Bruno Haible  <bruno@clisp.org>
1353
1354         Tests for module 'integer_length_ll'.
1355         * modules/integer_length_ll-tests: New file.
1356         * tests/test-integer_length_ll.c: New file.
1357
1358         New module 'integer_length_ll'.
1359         * lib/integer_length_ll.c: New file.
1360         * modules/integer_length_ll: New file.
1361
1362 2011-10-14  Bruno Haible  <bruno@clisp.org>
1363
1364         Tests for module 'integer_length_l'.
1365         * modules/integer_length_l-tests: New file.
1366         * tests/test-integer_length_l.c: New file.
1367
1368         New module 'integer_length_l'.
1369         * lib/integer_length_l.c: New file.
1370         * modules/integer_length_l: New file.
1371
1372 2011-10-14  Bruno Haible  <bruno@clisp.org>
1373
1374         Tests for module 'integer_length'.
1375         * modules/integer_length-tests: New file.
1376         * tests/test-integer_length.c: New file.
1377
1378         New module 'integer_length'.
1379         * lib/integer_length.h: New file.
1380         * lib/integer_length.c: New file.
1381         * modules/integer_length: New file.
1382
1383 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1384
1385         popen: Fix dependency conditions.
1386         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1387
1388 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1389
1390         perror: Fix autoconf test.
1391         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1392         <stdlib.h> and <string.h>.
1393
1394 2011-10-14  Bruno Haible  <bruno@clisp.org>
1395
1396         ffsl: Optimize on 64-bit platforms.
1397         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1398         unrolling.
1399
1400 2011-10-13  Bruno Haible  <bruno@clisp.org>
1401
1402         ffsl: Optimize on 32-bit platforms.
1403         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1404         use ffs() without a loop.
1405
1406         ffsl, ffsll: Optimize for GCC.
1407         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1408         * lib/ffsl.c (GCC_BUILTIN): New macro.
1409         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1410
1411 2011-10-13  Bruno Haible  <bruno@clisp.org>
1412
1413         ffs, bcopy, memset: Support symbol renaming via config.h.
1414         * lib/ffs.c: Include <config.h>.
1415         * lib/bcopy.c: Likewise.
1416         * lib/memset.c: Likewise.
1417
1418 2011-10-10  Bruno Haible  <bruno@clisp.org>
1419
1420         atanl: Simplify for platforms where 'long double' == 'double'.
1421         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1422         alternative implementation.
1423         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1424         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1425         * modules/atanl (Depends-on): Add atan. Update conditions.
1426
1427 2011-10-10  Bruno Haible  <bruno@clisp.org>
1428
1429         acosl: Simplify for platforms where 'long double' == 'double'.
1430         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1431         alternative implementation.
1432         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1433         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1434         * modules/acosl (Depends-on): Add acos. Update conditions.
1435
1436 2011-10-10  Bruno Haible  <bruno@clisp.org>
1437
1438         asinl: Simplify for platforms where 'long double' == 'double'.
1439         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1440         alternative implementation.
1441         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1442         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1443         * modules/asinl (Depends-on): Add asin. Update conditions.
1444
1445 2011-10-10  Bruno Haible  <bruno@clisp.org>
1446
1447         tanl: Simplify for platforms where 'long double' == 'double'.
1448         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1449         implementation.
1450         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1451         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1452         * modules/tanl (Depends-on): Add tan. Update conditions.
1453         (configure.ac): Don't compile trigl.c if
1454         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1455
1456 2011-10-10  Bruno Haible  <bruno@clisp.org>
1457
1458         cosl: Simplify for platforms where 'long double' == 'double'.
1459         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1460         implementation.
1461         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1462         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1463         * modules/cosl (Depends-on): Add cos. Update conditions.
1464         (configure.ac): Don't compile sincosl.c and trigl.c if
1465         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1466
1467 2011-10-10  Bruno Haible  <bruno@clisp.org>
1468
1469         sinl: Simplify for platforms where 'long double' == 'double'.
1470         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1471         implementation.
1472         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1473         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1474         * modules/sinl (Depends-on): Add sin. Update conditions.
1475         (configure.ac): Don't compile sincosl.c and trigl.c if
1476         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1477
1478 2011-10-10  Bruno Haible  <bruno@clisp.org>
1479
1480         logl: Simplify for platforms where 'long double' == 'double'.
1481         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1482         implementation.
1483         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1484         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1485         * modules/logl (Depends-on): Add log. Update conditions.
1486
1487 2011-10-10  Bruno Haible  <bruno@clisp.org>
1488
1489         expl: Simplify for platforms where 'long double' == 'double'.
1490         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1491         implementation.
1492         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1493         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1494         * modules/expl (Depends-on): Add exp. Update conditions.
1495
1496 2011-10-10  Bruno Haible  <bruno@clisp.org>
1497
1498         sqrtl: Simplify for platforms where 'long double' == 'double'.
1499         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1500         alternative implementation.
1501         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1502         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1503         * modules/sqrtl (Depends-on): Update conditions.
1504
1505 2011-10-10  Bruno Haible  <bruno@clisp.org>
1506
1507         ldexpl: Simplify for platforms where 'long double' == 'double'.
1508         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1509         alternative implementation.
1510         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1511         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1512         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1513
1514 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1515
1516         ffsll: set correct witness
1517         * modules/ffsll (configure.ac): Fix typo.
1518
1519 2011-10-10  Bruno Haible  <bruno@clisp.org>
1520
1521         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1522         * lib/printf-frexpl.c: Include <config.h>.
1523         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1524         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1525         second time.
1526         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1527         gl_LONG_DOUBLE_VS_DOUBLE.
1528         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1529         conditions.
1530
1531 2011-10-10  Bruno Haible  <bruno@clisp.org>
1532
1533         frexpl: Simplify for platforms where 'long double' == 'double'.
1534         * lib/frexpl.c: Include <config.h>.
1535         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1536         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1537         time.
1538         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1539         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1540         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1541         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1542         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1543         conditions.
1544
1545 2011-10-10  Jim Meyering  <meyering@redhat.com>
1546
1547         test-renameat: don't leave behind a temporary file
1548         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1549           ERROR: files left in build directory after distclean:
1550           ./gltests/test-renameat.too
1551           make[1]: *** [distcleancheck] Error 1
1552         Reported by Tom G. Christensen.
1553
1554 2011-10-09  Bruno Haible  <bruno@clisp.org>
1555
1556         rint: Determine RINT_LIBM correctly on AIX 7.
1557         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1558         directly, not only through a function pointer. Also accept an optional
1559         4th argument with extra code.
1560         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1561         rintf() call by gcc when optimizing.
1562
1563         mathfunc.m4: Refactor.
1564         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1565         m4 variable.
1566
1567 2011-10-09  Bruno Haible  <bruno@clisp.org>
1568
1569         rintl: Simplify for platforms where 'long double' == 'double'.
1570         * lib/rintl.c: Include <config.h>.
1571         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1572         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1573         time.
1574         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1575         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1576         * modules/rintl (Depends-on): Add rint. Update conditions.
1577
1578 2011-10-09  Bruno Haible  <bruno@clisp.org>
1579
1580         roundl: Simplify for platforms where 'long double' == 'double'.
1581         * lib/roundl.c: Include <config.h>.
1582         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1583         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1584         time.
1585         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1586         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1587         * modules/roundl (Depends-on): Add round. Update conditions.
1588
1589 2011-10-09  Bruno Haible  <bruno@clisp.org>
1590
1591         truncl: Simplify for platforms where 'long double' == 'double'.
1592         * lib/truncl.c: Include <config.h>.
1593         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1594         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1595         time.
1596         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1597         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1598         * modules/truncl (Depends-on): Add trunc. Update conditions.
1599
1600 2011-10-09  Bruno Haible  <bruno@clisp.org>
1601
1602         ceill: Simplify for platforms where 'long double' == 'double'.
1603         * lib/ceill.c: Include <config.h>.
1604         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1605         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1606         time.
1607         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1608         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1609         * modules/ceill (Depends-on): Add ceil. Update conditions.
1610
1611 2011-10-09  Bruno Haible  <bruno@clisp.org>
1612
1613         floorl: Simplify for platforms where 'long double' == 'double'.
1614         * lib/floorl.c: Include <config.h>.
1615         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1616         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1617         time.
1618         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1619         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1620         * modules/floorl (Depends-on): Add floor. Update conditions.
1621
1622 2011-10-09  Bruno Haible  <bruno@clisp.org>
1623
1624         rint: Fix ordering constraints.
1625         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1626         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1627         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1628
1629 2011-10-09  Bruno Haible  <bruno@clisp.org>
1630
1631         copysignl: Simplify for platforms where 'long double' == 'double'.
1632         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1633         alternative.
1634         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1635         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1636         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1637
1638 2011-10-09  Bruno Haible  <bruno@clisp.org>
1639
1640         Tests for module 'rintl'.
1641         * modules/rintl-tests: New file.
1642         * tests/test-rintl.c: New file.
1643
1644         New module 'rintl'.
1645         * lib/math.in.h (rintl): New declaration.
1646         * lib/rintl.c: New file.
1647         * m4/rintl.m4: New file.
1648         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1650         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1651         * modules/rintl: New file.
1652         * tests/test-math-c++.cc: Check the declaration of rintl.
1653         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1654         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1655         * doc/posix-functions/rintl.texi: Mention the new module.
1656
1657 2011-10-09  Bruno Haible  <bruno@clisp.org>
1658
1659         Tests for module 'rintf'.
1660         * modules/rintf-tests: New file.
1661         * tests/test-rintf.c: New file.
1662
1663         New module 'rintf'.
1664         * lib/math.in.h (rintf): New declaration.
1665         * lib/rintf.c: New file.
1666         * m4/rintf.m4: New file.
1667         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1669         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1670         * modules/rintf: New file.
1671         * tests/test-math-c++.cc: Check the declaration of rintf.
1672         * doc/posix-functions/rintf.texi: Mention the new module.
1673
1674 2011-10-09  Bruno Haible  <bruno@clisp.org>
1675
1676         rint: Support for MSVC.
1677         * lib/math.in.h (rint): New declaration.
1678         * lib/rint.c: New file.
1679         * m4/rint.m4: New file.
1680         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1682         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1683         * modules/rint (Description): Fix.
1684         (Files): Add lib/rint.c, m4/rint.m4.
1685         (Depends-on): Add math.
1686         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1687         gl_MATH_MODULE_INDICATOR.
1688         * tests/test-math-c++.cc: Check the declaration of rint.
1689         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1690         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1691         * doc/posix-functions/rint.texi: Mention the replacement provided by
1692         the module.
1693
1694         rint tests: More tests.
1695         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1696         minus-zero.h, infinity.h, nan.h.
1697         (main): Skip the test if the current rounding mode is not standard. Add
1698         tests for negative numbers, minus zero, infinity, NaN.
1699         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1700         tests/nan.h.
1701         (Depends-on): Add isnand-nolibm.
1702
1703 2011-10-09  Bruno Haible  <bruno@clisp.org>
1704
1705         Tests for module 'copysignl'.
1706         * modules/copysignl-tests: New file.
1707         * tests/test-copysignl.c: New file.
1708
1709         New module 'copysignl'.
1710         * lib/math.in.h (copysignl): New declaration.
1711         * lib/copysignl.c: New file.
1712         * m4/copysignl.m4: New file.
1713         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1714         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1715         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1716         HAVE_COPYSIGNL.
1717         * modules/copysignl: New file.
1718         * tests/test-math-c++.cc: Check the declaration of copysignl.
1719         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1720         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1721         * doc/posix-functions/copysignl.texi: Mention the new module.
1722
1723 2011-10-09  Bruno Haible  <bruno@clisp.org>
1724
1725         Tests for module 'copysignf'.
1726         * modules/copysignf-tests: New file.
1727         * tests/test-copysignf.c: New file.
1728
1729         New module 'copysignf'.
1730         * lib/math.in.h (copysignf): New declaration.
1731         * lib/copysignf.c: New file.
1732         * m4/copysignf.m4: New file.
1733         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1735         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1736         HAVE_COPYSIGNF.
1737         * modules/copysignf: New file.
1738         * tests/test-math-c++.cc: Check the declaration of copysignf.
1739         * doc/posix-functions/copysignf.texi: Mention the new module.
1740
1741 2011-10-09  Bruno Haible  <bruno@clisp.org>
1742
1743         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1744         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1745         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1746         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1747         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1748         gl_SIGNAL_H_DEFAULTS.
1749
1750 2011-10-09  Bruno Haible  <bruno@clisp.org>
1751
1752         poll: Make macro safer.
1753         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1754         ac_cv_header_poll_h is not set.
1755
1756 2011-10-09  Bruno Haible  <bruno@clisp.org>
1757
1758         copysign: Provide replacement.
1759         * lib/math.in.h (copysign): New declaration.
1760         * lib/copysign.c: New file.
1761         * m4/copysign.m4: New file.
1762         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1764         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1765         HAVE_COPYSIGN.
1766         * modules/copysign (Description): Clarify.
1767         (Files): Add lib/copysign.c, m4/copysign.m4.
1768         (Depends-on): Add math, signbit.
1769         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1770         gl_MATH_MODULE_INDICATOR.
1771         * tests/test-math-c++.cc: Check the declaration of copysign.
1772         * doc/posix-functions/copysign.texi: Mention the effects of the module
1773         on Minix and MSVC.
1774
1775 2011-10-09  Bruno Haible  <bruno@clisp.org>
1776
1777         isinf: Ensure macro on AIX 5.1.
1778         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1779         macro.
1780         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1781
1782 2011-10-09  Bruno Haible  <bruno@clisp.org>
1783
1784         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1785         * modules/snprintf-posix-tests (configure.ac): Require
1786         gl_LONG_DOUBLE_VS_DOUBLE.
1787         * modules/sprintf-posix-tests (configure.ac): Likewise.
1788         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1789         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1790         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1791         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1792         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1793         tests on platforms where 'long double' is the same as 'double'.
1794         * tests/test-sprintf-posix.h (test_function): Likewise.
1795         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1796         * tests/test-vasprintf-posix.c (test_function): Likewise.
1797
1798         *printf: Fix for platforms where 'long double' == 'double'.
1799         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1800         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1801         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1802         * modules/fprintf-posix (Files): Likewise.
1803         * modules/obstack-printf-posix (Files): Likewise.
1804         * modules/snprintf-posix (Files): Likewise.
1805         * modules/sprintf-posix (Files): Likewise.
1806         * modules/vasnprintf (Files): Likewise.
1807         * modules/vasnprintf-posix (Files): Likewise.
1808         * modules/vasprintf-posix (Files): Likewise.
1809         * modules/vdprintf-posix (Files): Likewise.
1810         * modules/vfprintf-posix (Files): Likewise.
1811         * modules/vsnprintf-posix (Files): Likewise.
1812         * modules/vsprintf-posix (Files): Likewise.
1813         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1814         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1815         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1816         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1817         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1818         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1819         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1820
1821         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1822         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1823         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1824         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1825         'long double'.
1826         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1827
1828         isinf: Fix for platforms where 'long double' == 'double'.
1829         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1830         Don't blindly assume 80-bit 'long double'.
1831
1832         isfinite: Fix for platforms where 'long double' == 'double'.
1833         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1834         Don't blindly assume 80-bit 'long double'.
1835
1836         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1837         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1838         * modules/isfinite-tests (configure.ac): Require
1839         gl_LONG_DOUBLE_VS_DOUBLE.
1840         * modules/isinf-tests (configure.ac): Likewise.
1841         * modules/isnan-tests (configure.ac): Likewise.
1842         * modules/isnanl-tests (configure.ac): Likewise.
1843         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1844         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1845         tests on platforms where 'long double' is the same as 'double'.
1846         * tests/test-isinf.c (test_isinfl): Likewise.
1847         * tests/test-isnan.c (test_long_double): Likewise.
1848         * tests/test-isnanl.h (main): Likewise.
1849
1850 2011-10-08  Bruno Haible  <bruno@clisp.org>
1851
1852         Tests for module 'tanhf'.
1853         * modules/tanhf-tests: New file.
1854         * tests/test-tanhf.c: New file.
1855
1856         New module 'tanhf'.
1857         * lib/math.in.h (tanhf): New declaration.
1858         * lib/tanhf.c: New file.
1859         * m4/tanhf.m4: New file.
1860         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1862         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1863         * modules/tanhf: New file.
1864         * tests/test-math-c++.cc: Check the declaration of tanhf.
1865         * doc/posix-functions/tanhf.texi: Mention the new module.
1866
1867         tanh: Use a .m4 file.
1868         * m4/tanh.m4: New file.
1869         * modules/tanh (Files): Add it.
1870         (configure.ac): Just invoke gl_FUNC_TANH.
1871
1872 2011-10-08  Bruno Haible  <bruno@clisp.org>
1873
1874         Tests for module 'coshf'.
1875         * modules/coshf-tests: New file.
1876         * tests/test-coshf.c: New file.
1877
1878         New module 'coshf'.
1879         * lib/math.in.h (coshf): New declaration.
1880         * lib/coshf.c: New file.
1881         * m4/coshf.m4: New file.
1882         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1884         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1885         * modules/coshf: New file.
1886         * tests/test-math-c++.cc: Check the declaration of coshf.
1887         * doc/posix-functions/coshf.texi: Mention the new module.
1888
1889         cosh: Use a .m4 file.
1890         * m4/cosh.m4: New file.
1891         * modules/cosh (Files): Add it.
1892         (configure.ac): Just invoke gl_FUNC_COSH.
1893
1894 2011-10-08  Bruno Haible  <bruno@clisp.org>
1895
1896         Tests for module 'sinhf'.
1897         * modules/sinhf-tests: New file.
1898         * tests/test-sinhf.c: New file.
1899
1900         New module 'sinhf'.
1901         * lib/math.in.h (sinhf): New declaration.
1902         * lib/sinhf.c: New file.
1903         * m4/sinhf.m4: New file.
1904         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1906         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1907         * modules/sinhf: New file.
1908         * tests/test-math-c++.cc: Check the declaration of sinhf.
1909         * doc/posix-functions/sinhf.texi: Mention the new module.
1910
1911         sinh: Use a .m4 file.
1912         * m4/sinh.m4: New file.
1913         * modules/sinh (Files): Add it.
1914         (configure.ac): Just invoke gl_FUNC_SINH.
1915
1916 2011-10-08  Bruno Haible  <bruno@clisp.org>
1917
1918         Tests for module 'atan2f'.
1919         * modules/atan2f-tests: New file.
1920         * tests/test-atan2f.c: New file.
1921
1922         New module 'atan2f'.
1923         * lib/math.in.h (atan2f): New declaration.
1924         * lib/atan2f.c: New file.
1925         * m4/atan2f.m4: New file.
1926         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1928         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1929         * modules/atan2f: New file.
1930         * tests/test-math-c++.cc: Check the declaration of atan2f.
1931         * doc/posix-functions/atan2f.texi: Mention the new module.
1932
1933         atan2: Use a .m4 file.
1934         * m4/atan2.m4: New file.
1935         * modules/atan2 (Files): Add it.
1936         (configure.ac): Just invoke gl_FUNC_ATAN2.
1937
1938 2011-10-08  Bruno Haible  <bruno@clisp.org>
1939
1940         Tests for module 'atanf'.
1941         * modules/atanf-tests: New file.
1942         * tests/test-atanf.c: New file.
1943
1944         New module 'atanf'.
1945         * lib/math.in.h (atanf): New declaration.
1946         * lib/atanf.c: New file.
1947         * m4/atanf.m4: New file.
1948         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1950         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1951         * modules/atanf: New file.
1952         * tests/test-math-c++.cc: Check the declaration of atanf.
1953         * doc/posix-functions/atanf.texi: Mention the new module.
1954
1955         atan: Use a .m4 file.
1956         * m4/atan.m4: New file.
1957         * modules/atan (Files): Add it.
1958         (configure.ac): Just invoke gl_FUNC_ATAN.
1959
1960 2011-10-08  Bruno Haible  <bruno@clisp.org>
1961
1962         Tests for module 'acosf'.
1963         * modules/acosf-tests: New file.
1964         * tests/test-acosf.c: New file.
1965
1966         New module 'acosf'.
1967         * lib/math.in.h (acosf): New declaration.
1968         * lib/acosf.c: New file.
1969         * m4/acosf.m4: New file.
1970         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1972         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1973         * modules/acosf: New file.
1974         * tests/test-math-c++.cc: Check the declaration of acosf.
1975         * doc/posix-functions/acosf.texi: Mention the new module.
1976
1977         acos: Use a .m4 file.
1978         * m4/acos.m4: New file.
1979         * modules/acos (Files): Add it.
1980         (configure.ac): Just invoke gl_FUNC_ACOS.
1981
1982 2011-10-08  Bruno Haible  <bruno@clisp.org>
1983
1984         Tests for module 'asinf'.
1985         * modules/asinf-tests: New file.
1986         * tests/test-asinf.c: New file.
1987
1988         New module 'asinf'.
1989         * lib/math.in.h (asinf): New declaration.
1990         * lib/asinf.c: New file.
1991         * m4/asinf.m4: New file.
1992         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1994         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1995         * modules/asinf: New file.
1996         * tests/test-math-c++.cc: Check the declaration of asinf.
1997         * doc/posix-functions/asinf.texi: Mention the new module.
1998
1999         asin: Use a .m4 file.
2000         * m4/asin.m4: New file.
2001         * modules/asin (Files): Add it.
2002         (configure.ac): Just invoke gl_FUNC_ASIN.
2003
2004 2011-10-08  Bruno Haible  <bruno@clisp.org>
2005
2006         Tests for module 'tanf'.
2007         * modules/tanf-tests: New file.
2008         * tests/test-tanf.c: New file.
2009
2010         New module 'tanf'.
2011         * lib/math.in.h (tanf): New declaration.
2012         * lib/tanf.c: New file.
2013         * m4/tanf.m4: New file.
2014         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2016         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2017         * modules/tanf: New file.
2018         * tests/test-math-c++.cc: Check the declaration of tanf.
2019         * doc/posix-functions/tanf.texi: Mention the new module.
2020
2021         tan: Use a .m4 file.
2022         * m4/tan.m4: New file.
2023         * modules/tan (Files): Add it.
2024         (configure.ac): Just invoke gl_FUNC_TAN.
2025
2026 2011-10-08  Bruno Haible  <bruno@clisp.org>
2027
2028         Tests for module 'cosf'.
2029         * modules/cosf-tests: New file.
2030         * tests/test-cosf.c: New file.
2031
2032         New module 'cosf'.
2033         * lib/math.in.h (cosf): New declaration.
2034         * lib/cosf.c: New file.
2035         * m4/cosf.m4: New file.
2036         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2038         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2039         * modules/cosf: New file.
2040         * tests/test-math-c++.cc: Check the declaration of cosf.
2041         * doc/posix-functions/cosf.texi: Mention the new module.
2042
2043         cos: Use a .m4 file.
2044         * m4/cos.m4: New file.
2045         * modules/cos (Files): Add it.
2046         (configure.ac): Just invoke gl_FUNC_COS.
2047
2048 2011-10-08  Bruno Haible  <bruno@clisp.org>
2049
2050         Tests for module 'sinf'.
2051         * modules/sinf-tests: New file.
2052         * tests/test-sinf.c: New file.
2053
2054         New module 'sinf'.
2055         * lib/math.in.h (sinf): New declaration.
2056         * lib/sinf.c: New file.
2057         * m4/sinf.m4: New file.
2058         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2060         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2061         * modules/sinf: New file.
2062         * tests/test-math-c++.cc: Check the declaration of sinf.
2063         * doc/posix-functions/sinf.texi: Mention the new module.
2064
2065         sin: Use a .m4 file.
2066         * m4/sin.m4: New file.
2067         * modules/sin (Files): Add it.
2068         (configure.ac): Just invoke gl_FUNC_SIN.
2069
2070 2011-10-08  Bruno Haible  <bruno@clisp.org>
2071
2072         Tests for module 'powf'.
2073         * modules/powf-tests: New file.
2074         * tests/test-powf.c: New file.
2075
2076         New module 'powf'.
2077         * lib/math.in.h (powf): New declaration.
2078         * lib/powf.c: New file.
2079         * m4/powf.m4: New file.
2080         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2082         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2083         * modules/powf: New file.
2084         * tests/test-math-c++.cc: Check the declaration of powf.
2085         * doc/posix-functions/powf.texi: Mention the new module.
2086
2087         pow: Use a .m4 file.
2088         * m4/pow.m4: New file.
2089         * modules/pow (Files): Add it.
2090         (configure.ac): Just invoke gl_FUNC_POW.
2091
2092 2011-10-08  Bruno Haible  <bruno@clisp.org>
2093
2094         Tests for module 'log10f'.
2095         * modules/log10f-tests: New file.
2096         * tests/test-log10f.c: New file.
2097
2098         New module 'log10f'.
2099         * lib/math.in.h (log10f): New declaration.
2100         * lib/log10f.c: New file.
2101         * m4/log10f.m4: New file.
2102         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2104         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2105         * modules/log10f: New file.
2106         * tests/test-math-c++.cc: Check the declaration of log10f.
2107         * doc/posix-functions/log10f.texi: Mention the new module.
2108
2109         log10: Use a .m4 file.
2110         * m4/log10.m4: New file.
2111         * modules/log10 (Files): Add it.
2112         (configure.ac): Just invoke gl_FUNC_LOG10.
2113
2114 2011-10-08  Bruno Haible  <bruno@clisp.org>
2115
2116         Tests for module 'logf'.
2117         * modules/logf-tests: New file.
2118         * tests/test-logf.c: New file.
2119
2120         New module 'logf'.
2121         * lib/math.in.h (logf): New declaration.
2122         * lib/logf.c: New file.
2123         * m4/logf.m4: New file.
2124         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2126         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2127         * modules/logf: New file.
2128         * tests/test-math-c++.cc: Check the declaration of logf.
2129         * doc/posix-functions/logf.texi: Mention the new module.
2130
2131         log: Use a .m4 file.
2132         * m4/log.m4: New file.
2133         * modules/log (Files): Add it.
2134         (configure.ac): Just invoke gl_FUNC_LOG.
2135
2136 2011-10-08  Bruno Haible  <bruno@clisp.org>
2137
2138         Tests for module 'expf'.
2139         * modules/expf-tests: New file.
2140         * tests/test-expf.c: New file.
2141
2142         New module 'expf'.
2143         * lib/math.in.h (expf): New declaration.
2144         * lib/expf.c: New file.
2145         * m4/expf.m4: New file.
2146         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2148         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2149         * modules/expf: New file.
2150         * tests/test-math-c++.cc: Check the declaration of expf.
2151         * doc/posix-functions/expf.texi: Mention the new module.
2152
2153         exp: Use a .m4 file.
2154         * m4/exp.m4: New file.
2155         * modules/exp (Files): Add it.
2156         (configure.ac): Just invoke gl_FUNC_EXP.
2157
2158 2011-10-08  Bruno Haible  <bruno@clisp.org>
2159
2160         Tests for module 'sqrtf'.
2161         * modules/sqrtf-tests: New file.
2162         * tests/test-sqrtf.c: New file.
2163
2164         New module 'sqrtf'.
2165         * lib/math.in.h (sqrtf): New declaration.
2166         * lib/sqrtf.c: New file.
2167         * m4/sqrtf.m4: New file.
2168         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2170         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2171         * modules/sqrtf: New file.
2172         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2173         * doc/posix-functions/sqrtf.texi: Mention the new module.
2174
2175 2011-10-08  Bruno Haible  <bruno@clisp.org>
2176
2177         Tests: Avoid link failures w.r.t. libintl.
2178         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2179         $(LIBINTL).
2180         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2181         $(LIBINTL).
2182         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2183         against $(LIBINTL).
2184         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2185         $(LIBINTL).
2186         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2187         $(LIBINTL).
2188         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2189
2190 2011-10-08  Bruno Haible  <bruno@clisp.org>
2191
2192         pow tests: Defeat compiler optimizations.
2193         * tests/test-pow.c (main): Assign arguments to x and y before use.
2194
2195 2011-10-08  Bruno Haible  <bruno@clisp.org>
2196
2197         gnulib-tool: Improve last commit.
2198         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2199         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2200         ignore dependencies that are not among the modules list.
2201
2202 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2203
2204         gnulib-tool: don't follow dependencies to avoided modules
2205         This fixes a bug that is related to the previous one.
2206         * gnulib-tool (func_modules_transitive_closure)
2207         (func_emit_autoconf_snippets):
2208         Check whether a dependency is acceptable before using it.
2209         (--extract-dependencies): Report an error if --avoid is also used,
2210         since this combination of options is not yet supported.
2211
2212         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2213         Problem reported by Peter Dyballa in
2214         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2215         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2216         when echoing "$condition".
2217
2218 2011-10-07  Bruno Haible  <bruno@clisp.org>
2219
2220         Fix documentation about math functions on MacOS X.
2221         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2222         MacOS X 10.5.
2223         * doc/posix-functions/fdim.texi: Likewise.
2224         * doc/posix-functions/feclearexcept.texi: Likewise.
2225         * doc/posix-functions/fegetenv.texi: Likewise.
2226         * doc/posix-functions/fegetround.texi: Likewise.
2227         * doc/posix-functions/feholdexcept.texi: Likewise.
2228         * doc/posix-functions/feraiseexcept.texi: Likewise.
2229         * doc/posix-functions/fesetenv.texi: Likewise.
2230         * doc/posix-functions/fesetround.texi: Likewise.
2231         * doc/posix-functions/fetestexcept.texi: Likewise.
2232         * doc/posix-functions/feupdateenv.texi: Likewise.
2233         * doc/posix-functions/fmax.texi: Likewise.
2234         * doc/posix-functions/fmin.texi: Likewise.
2235         * doc/posix-functions/log2.texi: Likewise.
2236         * doc/posix-functions/modff.texi: Likewise.
2237         * doc/posix-functions/nan.texi: Likewise.
2238         * doc/posix-functions/nanf.texi: Likewise.
2239         * doc/posix-functions/nextafterf.texi: Likewise.
2240         * doc/posix-functions/remquo.texi: Likewise.
2241
2242 2011-10-07  Bruno Haible  <bruno@clisp.org>
2243
2244         modff: Drop assumption about library that defines modff.
2245         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2246         AC_CHECK_FUNCS.
2247         * modules/modff (Files): Add m4/mathfunc.m4.
2248
2249 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2250
2251         raise tests: Avoid a GCC warning.
2252         * tests/test-raise.c (handler): Use _Noreturn.
2253
2254 2011-10-07  Bruno Haible  <bruno@clisp.org>
2255
2256         Tests for module 'ldexpf'.
2257         * modules/ldexpf-tests: New file.
2258         * tests/test-ldexpf.c: New file.
2259
2260         New module 'ldexpf'.
2261         * lib/math.in.h (ldexpf): New declaration.
2262         * lib/ldexpf.c: New file.
2263         * m4/ldexpf.m4: New file.
2264         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2266         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2267         * modules/ldexpf: New file.
2268         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2269         * doc/posix-functions/ldexpf.texi: Mention the new module.
2270
2271 2011-10-06  Bruno Haible  <bruno@clisp.org>
2272
2273         frexpf: Work around problems on IRIX and mingw.
2274         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2276         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2277         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2278         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2279         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2280         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2281
2282 2011-10-06  Bruno Haible  <bruno@clisp.org>
2283
2284         fabsf: Drop assumption about library that defines fabsf.
2285         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2286         AC_CHECK_FUNCS.
2287         * modules/fabsf (Files): Add m4/mathfunc.m4.
2288
2289 2011-10-06  Bruno Haible  <bruno@clisp.org>
2290
2291         frexpf: Drop assumption about library that defines frexpf.
2292         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2293         'int *', 'float *', 'long double *', 'float', 'long double'.
2294         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2295         AC_CHECK_FUNCS.
2296         * modules/frexpf (Files): Add m4/mathfunc.m4.
2297
2298         Tests for module 'frexpf'.
2299         * modules/frexpf-tests: New file.
2300         * tests/test-frexpf.c: New file.
2301
2302         New module 'frexpf'.
2303         * lib/math.in.h (frexpf): New declaration.
2304         * lib/frexpf.c: New file.
2305         * m4/frexpf.m4: New file.
2306         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2308         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2309         * modules/frexpf: New file.
2310         * tests/test-math-c++.cc: Check the declaration of frexpf.
2311         * doc/posix-functions/frexpf.texi: Mention the new module.
2312
2313 2011-10-06  Bruno Haible  <bruno@clisp.org>
2314
2315         math: Sort function declarations of math.in.h.
2316         * lib/math.in.h (frexp, logb): Move declarations.
2317
2318 2011-10-05  Bruno Haible  <bruno@clisp.org>
2319
2320         Tests for module 'modff'.
2321         * modules/modff-tests: New file.
2322         * tests/test-modff.c: New file.
2323
2324         New module 'modff'.
2325         * lib/math.in.h (modff): New declaration.
2326         * lib/modff.c: New file.
2327         * m4/modff.m4: New file.
2328         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2329         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2330         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2331         * modules/modff: New file.
2332         * tests/test-math-c++.cc: Check the declaration of modff.
2333         * doc/posix-functions/modff.texi: Mention the new module.
2334
2335         modf tests: Make test sharper.
2336         * tests/test-modf.c (main): Strengthen upper bound.
2337
2338         modf: Use a .m4 file.
2339         * m4/modf.m4: New file.
2340         * modules/modf (Files): Add it.
2341         (configure.ac): Just invoke gl_FUNC_MODF.
2342
2343 2011-10-05  Bruno Haible  <bruno@clisp.org>
2344
2345         Tests for module 'fmodf'.
2346         * modules/fmodf-tests: New file.
2347         * tests/test-fmodf.c: New file.
2348
2349         New module 'fmodf'.
2350         * lib/math.in.h (fmodf): New declaration.
2351         * lib/fmodf.c: New file.
2352         * m4/fmodf.m4: New file.
2353         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2355         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2356         * modules/fmodf: New file.
2357         * tests/test-math-c++.cc: Check the declaration of fmodf.
2358         * doc/posix-functions/fmodf.texi: Mention the new module.
2359
2360         fmod: Use a .m4 file.
2361         * m4/fmod.m4: New file.
2362         * modules/fmod (Files): Add it.
2363         (configure.ac): Just invoke gl_FUNC_FMOD.
2364
2365 2011-10-05  Bruno Haible  <bruno@clisp.org>
2366
2367         Tests for module 'fabsf'.
2368         * modules/fabsf-tests: New file.
2369         * tests/test-fabsf.c: New file.
2370
2371         New module 'fabsf'.
2372         * lib/math.in.h (fabsf): New declaration.
2373         * lib/fabsf.c: New file.
2374         * m4/fabsf.m4: New file.
2375         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2377         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2378         * modules/fabsf: New file.
2379         * tests/test-math-c++.cc: Check the declaration of fabsf.
2380         * doc/posix-functions/fabsf.texi: Mention the new module.
2381
2382         fabs: Use a .m4 file.
2383         * m4/fabs.m4: New file.
2384         * modules/fabs (Files): Add it.
2385         (configure.ac): Just invoke gl_FUNC_FABS.
2386
2387 2011-10-05  Jim Meyering  <meyering@redhat.com>
2388
2389         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2390         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2391         ls -lL regression introduced in coreutils-8.12, it does so at the
2392         cost of an additional stat call in the common case.  Besides, now
2393         that the kernel change that prompted commit 95f7c57f has been reverted
2394         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2395         we have no use for commit 95f7c57f, "file-has-acl: use
2396         acl_extended_file_nofollow if available".
2397
2398 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2399
2400         file-has-acl: revert unintended change in behavior of ls -L
2401         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2402         derived from...
2403         (file_has_acl): ...code here.  Call it.
2404         This problem was introduced with 2011-07-22 commit 95f7c57f,
2405         "file-has-acl: use acl_extended_file_nofollow if available".
2406         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2407
2408 2011-10-03  Bruno Haible  <bruno@clisp.org>
2409
2410         poll: Avoid link errors on MSVC.
2411         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2412         * modules/poll (Depends-on): Add sockets.
2413         (Link): New section.
2414         * NEWS: Mention the change.
2415         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2416         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2417         $(LIB_POLL) instead of $(LIBSOCKET).
2418
2419 2011-10-03  Bruno Haible  <bruno@clisp.org>
2420
2421         sys_select tests: Fix link error on MSVC 9.
2422         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2423         with $(LIB_SELECT) instead of $(LIBSOCKET).
2424
2425 2011-10-03  Bruno Haible  <bruno@clisp.org>
2426
2427         sys_select: Fix compilation error on mingw.
2428         * lib/sys_select.in.h: On native Windows, include <io.h>.
2429
2430 2011-10-03  Bruno Haible  <bruno@clisp.org>
2431
2432         wmemset: Support for MSVC.
2433         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2434         whether wmemset() exists.
2435
2436 2011-10-03  Bruno Haible  <bruno@clisp.org>
2437
2438         wmemmove: Support for MSVC.
2439         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2440         whether wmemmove() exists.
2441
2442 2011-10-03  Bruno Haible  <bruno@clisp.org>
2443
2444         wmemcpy: Support for MSVC.
2445         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2446         whether wmemcpy() exists.
2447
2448 2011-10-03  Bruno Haible  <bruno@clisp.org>
2449
2450         wmemcmp: Support for MSVC.
2451         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2452         whether wmemcmp() exists.
2453
2454 2011-10-03  Bruno Haible  <bruno@clisp.org>
2455
2456         wmemchr: Support for MSVC.
2457         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2458         whether wmemchr() exists.
2459
2460 2011-10-03  Bruno Haible  <bruno@clisp.org>
2461
2462         glthread/*, strsignal: Support for MSVC.
2463         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2464         including <winsock.h> on MSVC 9.
2465         * lib/glthread/lock.h: Likewise.
2466         * lib/glthread/thread.h: Likewise.
2467         * lib/glthread/tls.h: Likewise.
2468         * lib/glthread/yield.h: Likewise.
2469         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2470         if HAVE_UNISTD_H is false.
2471         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2472
2473 2011-10-03  Bruno Haible  <bruno@clisp.org>
2474
2475         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2476         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2477         Set to 100000.
2478
2479 2011-10-03  Bruno Haible  <bruno@clisp.org>
2480
2481         acl: Fix specification.
2482         * lib/file-has-acl.c (file_has_acl): Fix specification.
2483
2484 2011-10-03  Bruno Haible  <bruno@clisp.org>
2485
2486         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2487         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2488         (compute_curr_prefix, shared_library_fullname,
2489         find_shared_library_fullname, get_shared_library_fullname, relocate):
2490         Use it together with PIC && INSTALLDIR.
2491         Reported by <jojelino@gmail.com>
2492         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2493
2494 2011-10-01  Jim Meyering  <meyering@redhat.com>
2495
2496         maint.mk: adjust a release-related rule not to require use of gzip
2497         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2498         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2499         projects that build only .tar.xz files.  Also fix an erroneous test.
2500
2501         test-linkat: don't leave behind a temporary file
2502         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2503         Otherwise, coreutils' "make distcheck" would fail with this:
2504           Only in /c/cu/tests/torture/coreutils/test/\
2505             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2506           make[2]: *** [my-distcheck] Error 1
2507
2508         float, math: add omitted file
2509         * lib/itold.c: Add file, required for yesterday's float change.
2510
2511 2011-10-01  Bruno Haible  <bruno@clisp.org>
2512
2513         isinf: Fix for OpenBSD/x86.
2514         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2515         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2516         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2517
2518 2011-10-01  Bruno Haible  <bruno@clisp.org>
2519
2520         isfinite: Fix syntax error in configure test.
2521         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2522
2523         isfinite: Fix typo.
2524         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2525         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2526
2527 2011-10-01  Bruno Haible  <bruno@clisp.org>
2528
2529         nonblocking tests: Fix test failure on Linux/IA-64.
2530         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2531         Set to 270000.
2532
2533 2011-10-01  Bruno Haible  <bruno@clisp.org>
2534
2535         mkfifoat tests: Fix a test failure on mingw.
2536         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2537         with error ENOSYS.
2538
2539 2011-09-30  Bruno Haible  <bruno@clisp.org>
2540
2541         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2542         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2543         'long double'. Set REPLACE_ITOLD.
2544         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2545         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2546         * lib/itold.c: New file.
2547         * modules/float (Files): Add lib/itold.c.
2548         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2549         (Makefile.am): Substitute REPLACE_ITOLD.
2550         * modules/math (Depends-on): Add float.
2551         (Makefile.am): Substitute REPLACE_ITOLD.
2552         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2553         * doc/posix-headers/math.texi: Likewise.
2554         * doc/posix-functions/logl.texi: Likewise.
2555
2556 2011-09-30  Bruno Haible  <bruno@clisp.org>
2557
2558         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2559         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2560         Set to 140000.
2561
2562 2011-09-30  Bruno Haible  <bruno@clisp.org>
2563
2564         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2565         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2566         invocation, say "right after AC_PROG_CC_STDC", not "right after
2567         AC_PROG_CC".
2568         Reported by Gary V. Vaughan <gary@gnu.org>.
2569
2570 2011-09-30  Bruno Haible  <bruno@clisp.org>
2571
2572         Centralize C99 requirement.
2573         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2574         * modules/stdarg (configure.ac-early): Invoke it instead of
2575         AC_PROG_CC_STDC.
2576         Reported by Gary V. Vaughan and Paul Eggert.
2577
2578 2011-09-29  Bruno Haible  <bruno@clisp.org>
2579
2580         float: Fix LDBL_MAX value on Linux/PowerPC.
2581         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2582         on Linux/PowerPC.
2583         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2584         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2585         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2586         platform.
2587         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2588
2589 2011-09-29  Bruno Haible  <bruno@clisp.org>
2590
2591         doc: Improve doc about gl_EARLY.
2592         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2593         AC_PROG_CC_STDC invocation.
2594         Reported by Gary V. Vaughan <gary@gnu.org>.
2595
2596 2011-09-28  Bruno Haible  <bruno@clisp.org>
2597
2598         fgetc, fputc, fread, fwrite tests: Fix link error.
2599         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2600         on non-MSVC platforms.
2601         * tests/test-fputc.c (main): Likewise.
2602         * tests/test-fread.c (main): Likewise.
2603         * tests/test-fwrite.c (main): Likewise.
2604         Reported by Jim Meyering.
2605
2606 2011-09-27  Bruno Haible  <bruno@clisp.org>
2607
2608         fputc, fwrite tests: Avoid test failure on MSVC.
2609         * tests/test-fgetc.c: Include msvc-inval.h.
2610         (main): Invoke gl_msvc_inval_ensure_handler.
2611         * tests/test-fputc.c: Include msvc-inval.h.
2612         (main): Invoke gl_msvc_inval_ensure_handler.
2613         * tests/test-fread.c: Include msvc-inval.h.
2614         (main): Invoke gl_msvc_inval_ensure_handler.
2615         * tests/test-fwrite.c: Include msvc-inval.h.
2616         (main): Invoke gl_msvc_inval_ensure_handler.
2617         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2618         * modules/fputc-tests (Depends-on): Likewise.
2619         * modules/fread-tests (Depends-on): Likewise.
2620         * modules/fwrite-tests (Depends-on): Likewise.
2621
2622 2011-09-27  Bruno Haible  <bruno@clisp.org>
2623
2624         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2625         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2626         (raise): Remove older, duplicated declaration.
2627         (_gl_raise_SIGPIPE): New declaration.
2628         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2629         (rpl_raise): Remove function.
2630         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2631         a gnulib-defined SIGPIPE here.
2632         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2633         'sigprocmask' has detected missing signal-blocking and the module
2634         'sigpipe' is enabled.
2635         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2636
2637 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2638
2639         base64-tests: avoid memory leak
2640         * tests/test-base64.c (main): Plug memory leak.
2641
2642         base32: new module
2643         * modules/base32: New module.
2644         * lib/base32.c: New file.
2645         * lib/base32.h: Likewise.
2646         * m4/base32.m4: Likewise.
2647         * modules/base32-tests: New test.
2648         * tests/test-base32.c: Likewise.
2649         * MODULES.html.sh (Misc): Mention it.
2650
2651 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2652
2653         gnulib: use more-standard license notice wording
2654         * gnulib-tool (func_emit_copyright_notice): When emitting a
2655         license notice into a file, use the standard wording as suggested
2656         by the current information for GNU maintainers, except say "file"
2657         rather than "program".  The new wording gives a license version
2658         number, which addresses an issue raised by Glenn Morris in
2659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2660         * m4/onceonly.m4: Use that same wording here, too.
2661
2662         dup2: minor simplification
2663         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2664         as lib/dup2.c no longer uses 'inline'.
2665
2666 2011-09-25  Bruno Haible  <bruno@clisp.org>
2667
2668         strings: Fix compilation error on MSVC.
2669         * lib/strings.in.h: Include <stddef.h> for size_t.
2670
2671 2011-09-25  Bruno Haible  <bruno@clisp.org>
2672
2673         fflush et al.: Document limitation on MSVC.
2674         * doc/posix-functions/fflush.texi: Document possible crash in handling
2675         mode other than DEFAULT_HANDLING.
2676         * doc/posix-functions/fgetc.texi: Likewise.
2677         * doc/posix-functions/fputc.texi: Likewise.
2678         * doc/posix-functions/fread.texi: Likewise.
2679         * doc/posix-functions/fwrite.texi: Likewise.
2680
2681 2011-09-25  Bruno Haible  <bruno@clisp.org>
2682
2683         msvc-inval: Allow three invalid parameter handling modes.
2684         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2685         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2686         macros.
2687         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2688         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2689         SANE_LIBRARY_HANDLING as a no-op.
2690         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2691         <stdlib.h>.
2692         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2693
2694 2011-09-25  Bruno Haible  <bruno@clisp.org>
2695
2696         msvc-inval: Make handler multithread-safe.
2697         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2698         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2699         declarations.
2700         (gl_msvc_inval_current): New declaration.
2701         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2702         Operate on the structure returned by gl_msvc_inval_current().
2703         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2704         Remove varaiables.
2705         (tls_index, tls_initialized): New variables.
2706         (not_per_thread): New variable.
2707         (gl_msvc_inval_current): New function.
2708         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2709         returned by gl_msvc_inval_current().
2710
2711 2011-09-25  Bruno Haible  <bruno@clisp.org>
2712
2713         msvc-inval: Install handler globally.
2714         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2715         !_MSC_VER.
2716         (gl_msvc_invalid_parameter_handler): Remove declaration.
2717         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2718         declarations.
2719         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2720         Install the handler globally, don't uninstall it.
2721         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2722         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2723         currently valid, call RaiseException instead.
2724         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2725         for !_MSC_VER.
2726
2727 2011-09-25  Bruno Haible  <bruno@clisp.org>
2728
2729         strerror_r-posix: Fix for MSVC 9.
2730         * lib/strerror_r.c (local_snprintf): New function.
2731         (snprintf): Define to local_snprintf, not to _snprintf.
2732
2733 2011-09-25  Bruno Haible  <bruno@clisp.org>
2734
2735         ftruncate: Support for MSVC 9.
2736         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2737         (chsize_nothrow): New function.
2738         (chsize): Redefine as a macro.
2739         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2740         * modules/ftruncate (Depends-on): Add msvc-inval.
2741
2742 2011-09-25  Bruno Haible  <bruno@clisp.org>
2743
2744         New module 'fstat'.
2745         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2746         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2747         * lib/fchdir.c (rpl_fstat): Remove function.
2748         * m4/fstat.m4: New file.
2749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2750         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2751         declared.
2752         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2753         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2754         * modules/fstat: New file.
2755         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2756         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2757         is set.
2758         * doc/posix-functions/fstat.texi: Mention the new module and the
2759         problem on MSVC.
2760         * NEWS: Mention the change.
2761         * modules/acl (Depends-on): Add fstat.
2762         * modules/chdir-safer (Depends-on): Likewise.
2763         * modules/chown (Depends-on): Likewise.
2764         * modules/copy-file (Depends-on): Likewise.
2765         * modules/fchdir (Depends-on): Likewise.
2766         * modules/fdopendir (Depends-on): Likewise.
2767         * modules/fopen (Depends-on): Likewise.
2768         * modules/fts (Depends-on): Likewise.
2769         * modules/getcwd (Depends-on): Likewise.
2770         * modules/isapipe (Depends-on): Likewise.
2771         * modules/linkat (Depends-on): Likewise.
2772         * modules/lseek (Depends-on): Likewise.
2773         * modules/mkdir-p (Depends-on): Likewise.
2774         * modules/open (Depends-on): Likewise.
2775         * modules/openat (Depends-on): Likewise.
2776         * modules/read-file (Depends-on): Likewise.
2777         * modules/renameat (Depends-on): Likewise.
2778         * modules/utimens (Depends-on): Likewise.
2779
2780 2011-09-25  Bruno Haible  <bruno@clisp.org>
2781
2782         linkat: Fix compilation on MSVC 9.
2783         * lib/linkat.c: Don't include <stdint.h>.
2784
2785 2011-09-25  Bruno Haible  <bruno@clisp.org>
2786
2787         fclose: Support for MSVC 9.
2788         * lib/fclose.c: Include msvc-inval.h.
2789         (fclose_nothrow): New function.
2790         (rpl_fclose): Use it.
2791         * modules/fclose (Depends-on): Add msvc-inval.
2792         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2793
2794 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2795
2796         dup2: minor simplifications
2797         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2798         that it's a performance win.
2799         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2800         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2801
2802 2011-09-24  Jim Meyering  <meyering@redhat.com>
2803
2804         test-futimens: avoid a warning from gcc -Wshadow
2805         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2806         to avoid a shadowing warning.
2807
2808 2011-09-24  Bruno Haible  <bruno@clisp.org>
2809
2810         fdopen: Support for MSVC 9.
2811         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2812         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2813         * lib/fdopen.c: Include msvc-inval.h.
2814         (fdopen_nothrow): New function.
2815         (rpl_fdopen): Use it.
2816         * modules/fdopen (Depends-on): Add msvc-inval.
2817         * modules/fclose-tests (Depends-on): Add fdopen.
2818         * modules/fflush-tests (Depends-on): Likewise.
2819         * modules/fgetc-tests (Depends-on): Likewise.
2820         * modules/fputc-tests (Depends-on): Likewise.
2821         * modules/fread-tests (Depends-on): Likewise.
2822         * modules/freopen-tests (Depends-on): Likewise.
2823         * modules/fseeko-tests (Depends-on): Likewise.
2824         * modules/ftello-tests (Depends-on): Likewise.
2825         * modules/fwrite-tests  (Depends-on): Likewise.
2826         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2827
2828 2011-09-24  Bruno Haible  <bruno@clisp.org>
2829
2830         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2831         * modules/fgetc-tests (Depends-on): Add unistd.
2832         * modules/fputc-tests (Depends-on): Likewise.
2833         * modules/fread-tests (Depends-on): Likewise.
2834         * modules/fwrite-tests (Depends-on): Likewise.
2835
2836 2011-09-24  Bruno Haible  <bruno@clisp.org>
2837
2838         dup: Simplify autoconf test.
2839         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2840         on gl_MSVC_INVAL's result.
2841
2842 2011-09-24  Bruno Haible  <bruno@clisp.org>
2843
2844         Tests for function fwrite().
2845         * modules/fwrite-tests: New file.
2846         * tests/test-fwrite.c: New file.
2847         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2848
2849         Tests for function fread().
2850         * modules/fread-tests: New file.
2851         * tests/test-fread.c: New file.
2852         * modules/stdio-tests (Depends-on): Add fread-tests.
2853
2854         Activate fputc tests.
2855         * modules/stdio-tests (Depends-on): Add fputc-tests.
2856
2857         Enhance fgetc, fputc tests.
2858         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2859         * tests/test-fputc.c (main): Likewise.
2860
2861 2011-09-24  Bruno Haible  <bruno@clisp.org>
2862
2863         write: Support for MSVC 9.
2864         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2865         is not 1.
2866         * lib/write.c (write_nothrow): New function.
2867         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2868         not 1. Use write_nothrow.
2869         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2870         invalid parameter handler.
2871         (gl_PREREQ_WRITE): New macro.
2872         * modules/write (Depends-on): Add msvc-inval.
2873         (configure.ac): Invoke gl_PREREQ_WRITE.
2874         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2875
2876 2011-09-24  Bruno Haible  <bruno@clisp.org>
2877
2878         read: Fix last commit.
2879         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2880
2881 2011-09-24  Bruno Haible  <bruno@clisp.org>
2882
2883         dup2: Fix last commit.
2884         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2885         (rpl_dup2): Disable fcntl workaround on native Windows.
2886
2887         sigprocmask: Make code safer.
2888         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2889         section that changes macro definitions for this compilation unit.
2890
2891 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         dup2: clarify by coalescing Windows-specific material
2894         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2895         "msvc-nothrow.h"' to the Windows-specific section, so that the
2896         Emacs source need not contain these include files.
2897         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2898         Windows-specific fixes into this function rather than just the
2899         nothrow fix, as this shortens and clarifies the code.  Always
2900         define as a function, as that's a bit cleaner than having it be
2901         sometimes a function and sometimes a macro.
2902         (rpl_dup2): Move the Windows-specific stuff out of here and into
2903         ms_windows_dup2.  Don't protect the Haiku-related fix with
2904         "#if !defined __linux__", as the same code also works around
2905         a Linux kernel bug, and it doesn't add any system calls on any
2906         platform.  Add comment about FreeBSD 6.1.
2907
2908         sigprocmask: move #include directive
2909         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2910         Windows-specific section, so that the Emacs source need not
2911         contain msvc-inval.h.
2912
2913 2011-09-23  Bruno Haible  <bruno@clisp.org>
2914
2915         read: Support for MSVC 9.
2916         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2917         is not 1.
2918         * lib/read.c (read_nothrow): New function.
2919         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2920         read_nothrow.
2921         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2922         invalid parameter handler.
2923         (gl_PREREQ_READ): New macro.
2924         * modules/read (Depends-on): Add msvc-inval.
2925         (configure.ac): Invoke gl_PREREQ_READ.
2926         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2927
2928 2011-09-23  Bruno Haible  <bruno@clisp.org>
2929
2930         close: Support for MSVC 9.
2931         * lib/close.c: Include <errno.h>, msvc-inval.h.
2932         (close_nothrow): New function.
2933         (rpl_close): Use it.
2934         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2935         invalid parameter handler.
2936         * modules/close (Depends-on): Add msvc-inval.
2937         * modules/dup2-tests (Depends-on): Add close.
2938         * modules/dup3-tests (Depends-on): Likewise.
2939         * modules/fcntl-tests (Depends-on): Likewise.
2940         * modules/spawn-pipe-tests (Depends-on): Likewise.
2941         * modules/unistd-safer-tests (Depends-on): Likewise.
2942         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2943
2944 2011-09-23  Bruno Haible  <bruno@clisp.org>
2945
2946         New module 'dup'.
2947         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2948         Allow replacement.
2949         * lib/dup.c: New file.
2950         * lib/fchdir.c (rpl_dup): Remove function.
2951         * m4/dup.m4: New file.
2952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2953         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2954         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2955         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2956         * modules/dup: New file.
2957         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2958         'dup' module is in use.
2959         * modules/fdopendir (Depends-on): Add dup.
2960         * modules/fdutimensat-tests (Depends-on): Likewise.
2961         * modules/fts (Depends-on): Likewise.
2962         * modules/futimens-tests (Depends-on): Likewise.
2963         * modules/posix_spawnp-tests (Depends-on): Likewise.
2964         * modules/unistd-safer-tests (Depends-on): Likewise.
2965         * modules/utimens-tests (Depends-on): Likewise.
2966         * doc/posix-functions/dup.texi: Mention the new module and the problem
2967         on MSVC.
2968
2969 2011-09-23  Bruno Haible  <bruno@clisp.org>
2970
2971         getdtablesize: Support for MSVC 9.
2972         * lib/getdtablesize.c: Include msvc-inval.h.
2973         (_setmaxstdio_nothrow): New function.
2974         (_setmaxstdio): Redefine it.
2975         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2976         * modules/getdtablesize (Depends-on): Add msvc-inval.
2977         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2978
2979 2011-09-23  Bruno Haible  <bruno@clisp.org>
2980
2981         signal-h: Rename from signal.
2982         * modules/signal-h: Renamed from modules/signal.
2983         * modules/pthread_sigmask (Depends-on): Update.
2984         * modules/raise (Depends-on): Likewise.
2985         * modules/sigaction (Depends-on): Likewise.
2986         * modules/sigpipe (Depends-on): Likewise.
2987         * modules/sigprocmask (Depends-on): Likewise.
2988         * modules/sys_select (Depends-on): Likewise.
2989         * modules/signal-h-tests: Renamed from modules/signal-tests.
2990         (Files, Depends-on, Makefile.am): Update.
2991         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2992         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2993         (Files, Makefile.am): Update.
2994         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2995         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2996         * modules/signal: New placeholder file.
2997         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2998         * doc/posix-headers/signal.texi: Update.
2999         * NEWS: Mention the change.
3000
3001 2011-09-23  Bruno Haible  <bruno@clisp.org>
3002
3003         sigprocmask: Avoid crashes through signal() on MSVC 9.
3004         * lib/sigprocmask.c: Include msvc-inval.h.
3005         (signal_nothrow): New function.
3006         (signal): Redefine it.
3007         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3008         * modules/sigprocmask (Depends-on): Add msvc-inval.
3009         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3010
3011 2011-09-23  Bruno Haible  <bruno@clisp.org>
3012
3013         Tests for module 'raise'.
3014         * modules/raise-tests: New file.
3015         * tests/test-raise.c: New file.
3016
3017         raise: Support for MSVC.
3018         * lib/signal.in.h (raise): New declaration.
3019         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3020         for native Windows platforms.
3021         * m4/raise.m4: New file.
3022         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3023         HAVE_RAISE, REPLACE_RAISE.
3024         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3025         REPLACE_RAISE.
3026         * modules/raise (Status, Notice): Remove fields.
3027         (Files): Add m4/raise.m4.
3028         (Depends-on): Add signal, msvc-inval.
3029         (configure.ac): Use the common idioms.
3030         (Maintainer): Add me.
3031         * tests/test-signal-c++.cc: Check the signature of raise.
3032         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3033
3034 2011-09-23  Bruno Haible  <bruno@clisp.org>
3035
3036         pipe2: Fix compilation on pre-C99 compilers.
3037         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3038
3039 2011-09-23  Bruno Haible  <bruno@clisp.org>
3040
3041         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3042         * lib/msvc-nothrow.h: New file.
3043         * lib/msvc-nothrow.c: New file.
3044         * m4/msvc-nothrow.m4: New file.
3045         * modules/msvc-nothrow: New file.
3046         * lib/dup2.c: Include msvc-nothrow.h.
3047         (rpl_dup2): No need to protect _get_osfhandle call here.
3048         * lib/accept4.c: Include msvc-nothrow.h.
3049         * lib/error.c: Likewise.
3050         * lib/fcntl.c: Likewise.
3051         * lib/lseek.c: Likewise.
3052         * lib/nonblocking.c: Likewise.
3053         * lib/poll.c: Likewise.
3054         * lib/read.c: Likewise.
3055         * lib/select.c: Likewise.
3056         * lib/sockets.h: Likewise.
3057         * lib/sockets.c: Likewise.
3058         * lib/stdio-read.c: Likewise.
3059         * lib/stdio-write.c: Likewise.
3060         * lib/write.c: Likewise.
3061         * lib/w32sock.h: Likewise.
3062         * lib/w32spawn.h: Likewise.
3063         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3064         * lib/fsync.c: Likewise.
3065         * lib/isapipe.c: Likewise.
3066         * modules/dup2 (Depends-on): Add msvc-nothrow.
3067         * modules/accept4 (Depends-on): Likewise.
3068         * modules/error (Depends-on): Likewise.
3069         * modules/fcntl (Depends-on): Likewise.
3070         * modules/lseek (Depends-on): Likewise.
3071         * modules/nonblocking (Depends-on): Likewise.
3072         * modules/poll (Depends-on): Likewise.
3073         * modules/read (Depends-on): Likewise.
3074         * modules/select (Depends-on): Likewise.
3075         * modules/sockets (Depends-on): Likewise.
3076         * modules/sigpipe (Depends-on): Likewise.
3077         * modules/write (Depends-on): Likewise.
3078         * modules/accept (Depends-on): Likewise.
3079         * modules/bind (Depends-on): Likewise.
3080         * modules/connect (Depends-on): Likewise.
3081         * modules/gethostname (Depends-on): Likewise.
3082         * modules/getpeername (Depends-on): Likewise.
3083         * modules/getsockname (Depends-on): Likewise.
3084         * modules/getsockopt (Depends-on): Likewise.
3085         * modules/ioctl (Depends-on): Likewise.
3086         * modules/listen (Depends-on): Likewise.
3087         * modules/recv (Depends-on): Likewise.
3088         * modules/recvfrom (Depends-on): Likewise.
3089         * modules/send (Depends-on): Likewise.
3090         * modules/sendto (Depends-on): Likewise.
3091         * modules/setsockopt (Depends-on): Likewise.
3092         * modules/shutdown (Depends-on): Likewise.
3093         * modules/socket (Depends-on): Likewise.
3094         * modules/execute (Depends-on): Likewise.
3095         * modules/spawn-pipe (Depends-on): Likewise.
3096         * modules/flock (Depends-on): Likewise.
3097         * modules/fsync (Depends-on): Likewise.
3098         * modules/isapipe (Depends-on): Likewise.
3099         * tests/test-cloexec.c: Include msvc-nothrow.h.
3100         * tests/test-dup-safer.c: Likewise.
3101         * tests/test-dup2.c: Likewise.
3102         * tests/test-dup3.c: Likewise.
3103         * tests/test-fcntl.c: Likewise.
3104         * tests/test-pipe.c: Likewise.
3105         * tests/test-pipe2.c: Likewise.
3106         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3107         * modules/unistd-safer-tests (Depends-on): Likewise.
3108         * modules/dup2-tests (Depends-on): Likewise.
3109         * modules/dup3-tests (Depends-on): Likewise.
3110         * modules/fcntl-tests (Depends-on): Likewise.
3111         * modules/pipe-posix-tests (Depends-on): Likewise.
3112         * modules/pipe2-tests (Depends-on): Likewise.
3113
3114 2011-09-23  Bruno Haible  <bruno@clisp.org>
3115
3116         dup2: Make code more maintainable.
3117         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3118         (rpl_dup2): Use it.
3119         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3120         * modules/dup2 (configure.ac): Invoke it.
3121         Reported by Paul Eggert.
3122
3123 2011-09-23  Bruno Haible  <bruno@clisp.org>
3124
3125         msvc-inval: Fix compilation error.
3126         * lib/msvc-inval.h: Include <excpt.h>.
3127
3128 2011-09-23  Bruno Haible  <bruno@clisp.org>
3129
3130         mkdir: Tweak for MSVC 9.
3131         * lib/sys_stat.in.h: Update comments.
3132         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3133
3134         Tests for module 'chdir'.
3135         * modules/chdir-tests: New file.
3136         * tests/test-chdir.c: New file.
3137
3138         New module 'chdir'.
3139         * modules/chdir: New file.
3140         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3141         (chdir): New declaration.
3142         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3143         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3144         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3145         * tests/test-unistd-c++.cc: Check signature of chdir.
3146         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3147         * modules/chdir-long (Depends-on): Add chdir.
3148         * modules/fchdir (Depends-on): Likewise.
3149         * modules/rename (Depends-on): Likewise.
3150         * modules/savewd (Depends-on): Likewise.
3151
3152         rmdir: Support for mingw, MSVC 9.
3153         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3154         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3155
3156         getcwd: Tweak for MSVC 9.
3157         * lib/unistd.in.h: Update comments.
3158         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3159
3160 2011-09-22  Bruno Haible  <bruno@clisp.org>
3161
3162         strerror_r-posix: Avoid a link error on MSVC.
3163         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3164         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3165
3166 2011-09-22  Bruno Haible  <bruno@clisp.org>
3167
3168         select: Avoid link errors on MSVC.
3169         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3170         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3171         * modules/pselect (Link): Likewise.
3172         * NEWS: Mention the change.
3173         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3174         test-select-stdin against $(LIB_SELECT).
3175         * modules/pselect-tests (Makefile.am): Link test-pselect against
3176         $(LIB_SELECT).
3177
3178 2011-09-22  Bruno Haible  <bruno@clisp.org>
3179
3180         select: Avoid compilation error on MSVC.
3181         * lib/select.c: Don't include <stdbool.h>.
3182
3183 2011-09-21  Bruno Haible  <bruno@clisp.org>
3184
3185         Consolidate all uses of PATH_MAX in *.m4 files.
3186         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3187         macros.
3188         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3189         and gl_PATHMAX_SNIPPET.
3190         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3191         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3192         * modules/chdir-long (Files): Add m4/pathmax.m4.
3193         * modules/getcwd (Files): Likewise.
3194
3195 2011-09-21  Bruno Haible  <bruno@clisp.org>
3196
3197         ftruncate: Un-deprecate, concentrate on Win32 support.
3198         * modules/ftruncate (Status, Notice): Remove sections.
3199         (Depends-on): Add largefile.
3200         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3201         non-mingw platforms.
3202         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3203         include <io.h>.
3204         * modules/perror-tests (Depends-on): Add ftruncate.
3205         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3206         'ftruncate' module.
3207
3208 2011-09-21  Bruno Haible  <bruno@clisp.org>
3209
3210         Add dependencies to new dirent related modules.
3211         * modules/opendir (Depends-on): Add closedir.
3212         * modules/getcwd (Depends-on): Add opendir, closedir.
3213         * modules/dirent-safer-tests (Depends-on): Likewise.
3214         * modules/fdopendir-tests (Depends-on): Likewise.
3215         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3216         * modules/renameat-tests (Depends-on): Likewise.
3217
3218 2011-09-21  Bruno Haible  <bruno@clisp.org>
3219
3220         opendir: Avoid compilation error on mingw.
3221         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3222         * modules/opendir (Depends-on): Add unistd.
3223
3224 2011-09-21  Bruno Haible  <bruno@clisp.org>
3225
3226         ftruncate tests: Avoid a test failure on mingw.
3227         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3228
3229 2011-09-21  Bruno Haible  <bruno@clisp.org>
3230
3231         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3232         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3233         native Windows.
3234
3235 2011-09-21  Bruno Haible  <bruno@clisp.org>
3236
3237         New module 'fdopen'.
3238         * lib/stdio.in.h (fdopen): New declaration.
3239         * lib/fdopen.c: New file.
3240         * m4/fdopen.m4: New file.
3241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3242         REPLACE_FDOPEN.
3243         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3244         REPLACE_FDOPEN.
3245         * modules/fdopen: New file.
3246         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3247         * tests/test-stdio-c++.cc: Check signature of fdopen.
3248         * doc/posix-functions/fdopen.texi: Mention the new module.
3249
3250 2011-09-21  Bruno Haible  <bruno@clisp.org>
3251
3252         unlockpt tests: Avoid test failure on NetBSD 5.1.
3253         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3254         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3255
3256 2011-09-21  Bruno Haible  <bruno@clisp.org>
3257
3258         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3259         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3260         * tests/test-getlogin_r.c (main): Likewise.
3261
3262 2011-09-20  Bruno Haible  <bruno@clisp.org>
3263
3264         time tests: Don't require pid_t.
3265         * doc/posix-headers/time.texi: Revert last change.
3266         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3267         * tests/test-time.c: Comment out the check for pid_t.
3268
3269 2011-09-20  Bruno Haible  <bruno@clisp.org>
3270
3271         fsync tests: Avoid a test failure on mingw.
3272         * tests/test-fsync.c (main): Allow a failure with EIO.
3273
3274 2011-09-20  Bruno Haible  <bruno@clisp.org>
3275
3276         euidaccess: Update comments.
3277         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3278
3279 2011-09-20  Bruno Haible  <bruno@clisp.org>
3280
3281         Ensure EBADF returns for socket functions on mingw.
3282         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3283         descriptor is invalid.
3284         * lib/bind.c (rpl_bind): Likewise.
3285         * lib/connect.c (rpl_connect): Likewise.
3286         * lib/getpeername.c (rpl_getpeername): Likewise.
3287         * lib/getsockname.c (rpl_getsockname): Likewise.
3288         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3289         * lib/listen.c (rpl_listen): Likewise.
3290         * lib/recv.c (rpl_recv): Likewise.
3291         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3292         * lib/send.c (rpl_send): Likewise.
3293         * lib/sendto.c (rpl_sendto): Likewise.
3294         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3295         * lib/shutdown.c (rpl_shutdown): Likewise.
3296
3297 2011-09-20  Bruno Haible  <bruno@clisp.org>
3298
3299         select tests: EBADF tests.
3300         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3301         test_bad_fd): New functions.
3302         (test_function): Invoke also test_bad_fd.
3303
3304 2011-09-20  Bruno Haible  <bruno@clisp.org>
3305
3306         Tests for module 'posix_spawn_file_actions_addopen.
3307         * modules/posix_spawn_file_actions_addopen-tests: New file.
3308         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3309
3310         Tests for module 'posix_spawn_file_actions_adddup2'.
3311         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3312         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3313
3314         Tests for module 'posix_spawn_file_actions_addclose'.
3315         * modules/posix_spawn_file_actions_addclose-tests: New file.
3316         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3317
3318 2011-09-20  Bruno Haible  <bruno@clisp.org>
3319
3320         Tests for module 'unlockpt'.
3321         * modules/unlockpt-tests: New file.
3322         * tests/test-unlockpt.c: New file.
3323         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3324
3325         Tests for module 'grantpt'.
3326         * modules/grantpt-tests: New file.
3327         * tests/test-grantpt.c: New file.
3328         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3329
3330 2011-09-20  Bruno Haible  <bruno@clisp.org>
3331
3332         freopen tests: EBADF tests.
3333         * tests/test-freopen.c: Include errno.h, unistd.h.
3334         (main): Add tests for EBADF, commented out for the moment.
3335
3336         fclose tests: EBADF tests.
3337         * tests/test-fclose.c (main): Add tests for EBADF.
3338
3339         fflush tests: EBADF tests.
3340         * tests/test-fflush.c: Include errno.h, macros.h.
3341         (main): Add tests for EBADF.
3342
3343         ftello tests: EBADF tests.
3344         * tests/test-ftello4.sh: New file.
3345         * tests/test-ftello4.c: New file.
3346         * modules/ftello-tests (Files): Add them.
3347         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3348
3349         fseeko tests: EBADF tests.
3350         * tests/test-fseeko4.sh: New file.
3351         * tests/test-fseeko4.c: New file.
3352         * modules/fseeko-tests (Files): Add them.
3353         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3354
3355         Tests for function fputc().
3356         * modules/fputc-tests: New file.
3357         * tests/test-fputc.c: New file.
3358         * modules/stdio-tests (Depends-on): Add fputc-tests.
3359
3360         Tests for function fgetc().
3361         * modules/fgetc-tests: New file.
3362         * tests/test-fgetc.c: New file.
3363         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3364
3365         Tests for function fdopen().
3366         * modules/fdopen-tests: New file.
3367         * tests/test-fdopen.c: New file.
3368         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3369
3370         Tests for module 'vdprintf'.
3371         * modules/vdprintf-tests: New file.
3372         * tests/test-vdprintf.c: New file.
3373
3374         Tests for module 'dprintf'.
3375         * modules/dprintf-tests: New file.
3376         * tests/test-dprintf.c: New file.
3377
3378 2011-09-20  Bruno Haible  <bruno@clisp.org>
3379
3380         Tests for module 'ioctl'.
3381         * modules/ioctl-tests: New file.
3382         * tests/test-ioctl.c: New file.
3383
3384 2011-09-20  Bruno Haible  <bruno@clisp.org>
3385
3386         fcntl tests: EBADF tests.
3387         * tests/test-fcntl.c (main): Add more tests for EBADF.
3388
3389 2011-09-20  Bruno Haible  <bruno@clisp.org>
3390
3391         utimensat tests: EBADF tests.
3392         * tests/test-utimensat.c (main): Add tests for EBADF.
3393
3394         renameat tests: EBADF tests.
3395         * tests/test-renameat.c (main): Add tests for EBADF.
3396
3397         mkfifoat tests: EBADF tests.
3398         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3399
3400         readlinkat tests: EBADF tests.
3401         * tests/test-readlinkat.c (main): Add tests for EBADF.
3402
3403         symlinkat tests: EBADF tests.
3404         * tests/test-symlinkat.c (main): Add tests for EBADF.
3405
3406         linkat tests: EBADF tests.
3407         * tests/test-linkat.c (main): Add tests for EBADF.
3408
3409         Tests for module 'faccessat'.
3410         * modules/faccessat-tests: New file.
3411         * tests/test-faccessat.c: New file.
3412
3413         fdopendir tests: EBADF tests.
3414         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3415
3416         openat tests: EBADF tests.
3417         * tests/test-fchownat.c (main): Add tests for EBADF.
3418         * tests/test-fstatat.c (main): Likewise.
3419         * tests/test-mkdirat.c (main): Likewise.
3420         * tests/test-openat.c (main): Likewise.
3421         * tests/test-unlinkat.c (main): Likewise.
3422         * tests/test-fchmodat.c: New file.
3423         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3424         (Makefile.am): Also run 'test-fchmodat'.
3425
3426 2011-09-20  Bruno Haible  <bruno@clisp.org>
3427
3428         utimens, futimens, fdutimensat tests: EBADF tests.
3429         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3430
3431         Tests for function fstat().
3432         * modules/fstat-tests: New file.
3433         * tests/test-fstat.c: New file.
3434         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3435
3436 2011-09-20  Bruno Haible  <bruno@clisp.org>
3437
3438         test-ttyname_r tests: EBADF tests.
3439         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3440
3441         Tests for module 'isatty'.
3442         * modules/isatty-tests: New file.
3443         * tests/test-isatty.c: New file.
3444
3445         Tests for module 'write'.
3446         * modules/write-tests: New file.
3447         * tests/test-write.c: New file.
3448
3449         Tests for module 'read'.
3450         * modules/read-tests: New file.
3451         * tests/test-read.c: New file.
3452
3453         pwrite tests: EBADF tests.
3454         * tests/test-pwrite.c (main): Add tests for EBADF.
3455
3456         pread tests: EBADF tests.
3457         * tests/test-pread.c (main): Add tests for EBADF.
3458
3459         lseek tests: EBADF tests.
3460         * tests/test-lseek.c (main): Add more tests for EBADF.
3461
3462         Tests for module 'ftruncate'.
3463         * modules/ftruncate-tests: New file.
3464         * tests/test-ftruncate.sh: New file.
3465         * tests/test-ftruncate.c: New file.
3466
3467         fsync tests: EBADF tests.
3468         * tests/test-fsync.c (main): Add more tests for EBADF.
3469
3470         fdatasync tests: EBADF tests.
3471         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3472
3473         Tests for module 'fchown'.
3474         * modules/fchown-tests: New file.
3475         * tests/test-fchown.c: New file.
3476
3477         Tests for module 'fchmod'.
3478         * modules/fchmod-tests: New file.
3479         * tests/test-fchmod.c: New file.
3480
3481         fchdir tests: EBADF tests.
3482         * tests/test-fchdir.c (main): Add more tests for EBADF.
3483
3484         dup2 tests: EBADF tests.
3485         * tests/test-dup2.c (main): Add more tests for EBADF.
3486
3487         Tests for module 'dup'.
3488         * modules/dup-tests: New file.
3489         * tests/test-dup.c: New file.
3490
3491         Tests for module 'close'.
3492         * modules/close-tests: New file.
3493         * tests/test-close.c: New file.
3494
3495 2011-09-20  Bruno Haible  <bruno@clisp.org>
3496
3497         Tests for module 'shutdown'.
3498         * modules/shutdown-tests: New file.
3499         * tests/test-shutdown.c: New file.
3500
3501         Tests for module 'setsockopt'.
3502         * modules/setsockopt-tests: New file.
3503         * tests/test-setsockopt.c: New file.
3504
3505         Tests for module 'sendto'.
3506         * modules/sendto-tests: New file.
3507         * tests/test-sendto.c: New file.
3508
3509         Tests for module 'send'.
3510         * modules/send-tests: New file.
3511         * tests/test-send.c: New file.
3512
3513         Tests for module 'recvfrom'.
3514         * modules/recvfrom-tests: New file.
3515         * tests/test-recvfrom.c: New file.
3516
3517         Tests for module 'recv'.
3518         * modules/recv-tests: New file.
3519         * tests/test-recv.c: New file.
3520
3521         Tests for module 'listen'.
3522         * modules/listen-tests: New file.
3523         * tests/test-listen.c: New file.
3524
3525         Tests for module 'getsockopt'.
3526         * modules/getsockopt-tests: New file.
3527         * tests/test-getsockopt.c: New file.
3528
3529         Tests for module 'getsockname'.
3530         * modules/getsockname-tests: New file.
3531         * tests/test-getsockname.c: New file.
3532
3533         Tests for module 'getpeername'.
3534         * modules/getpeername-tests: New file.
3535         * tests/test-getpeername.c: New file.
3536
3537         Tests for module 'connect'.
3538         * modules/connect-tests: New file.
3539         * tests/test-connect.c: New file.
3540
3541         Tests for module 'bind'.
3542         * modules/bind-tests: New file.
3543         * tests/test-bind.c: New file.
3544
3545         accept4 tests: Fix for native Windows.
3546         * tests/test-accept4.c: Include sockets.h.
3547         (main): Invoke gl_sockets_startup.
3548         * modules/accept4-tests (Depends-on): Add sockets.
3549
3550         accept tests: Fix for native Windows.
3551         * tests/test-accept.c: Include sockets.h.
3552         (main): Invoke gl_sockets_startup.
3553         * modules/accept-tests (Depends-on): Add sockets.
3554
3555 2011-09-19  Bruno Haible  <bruno@clisp.org>
3556
3557         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3558         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3559         do...while(0).
3560         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3561         Suggested by Paul Eggert.
3562
3563 2011-09-19  Bruno Haible  <bruno@clisp.org>
3564
3565         sched: Ensure pid_t is defined.
3566         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3567         not define pid_t.
3568         * lib/sched.in.h: Include <sys/types.h>.
3569         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3571
3572 2011-09-19  Bruno Haible  <bruno@clisp.org>
3573
3574         msvc-inval: Ensure the entire expansion is a single statement.
3575         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3576         of braces.
3577
3578 2011-09-19  Jim Meyering  <meyering@redhat.com>
3579
3580         tests: use printf, not echo in init.sh's warn_ function
3581         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3582         misbehave when given strings containing a backslash or starting
3583         with e.g., -n.  James Youngman suggested setting IFS.
3584
3585 2011-09-19  Eric Blake  <eblake@redhat.com>
3586
3587         futimens: enhance test
3588         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3589         closed non-negative fd.
3590
3591         date: accept 'hence' as opposite of 'ago'
3592         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3593         * tests/test-parse-datetime.c (main): Enhance test.
3594         Suggested by Jesse Wilson.
3595
3596 2011-09-19  Jim Meyering  <meyering@redhat.com>
3597
3598         getcwd: don't fail in a deep directory on a system without openat
3599         Before this change, getcwd would fail when called from a directory
3600         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3601         the non-openat implementation used "..", "../..", "../../..", etc.
3602         to access ancestor directories.  With too many, that string would
3603         be longer than PATH_MAX.
3604         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3605         using gnulib's openat replacement.
3606         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3607         we're using the replacement function.
3608
3609 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3610
3611         maint.mk: avoid warnings from perl about missing files
3612         * top/maint.mk (def_sym_regex): Ignore files listed in
3613         $(gl_other_headers_) that do not exist, say because a project
3614         does not use a corresponding module.
3615
3616 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3617
3618         stat: use pathmax.h only if needed
3619         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3620         This is better for Emacs, which does not have a mingw port and
3621         therefore can avoid the pathmax module.
3622
3623         utimens: remove dependency on dup2
3624         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3625         to work around the Linux kernel bug.
3626         * modules/utimens (Depends-on): Remove dup2.
3627
3628 2011-09-18  Bruno Haible  <bruno@clisp.org>
3629
3630         inet_ntop, inet_pton: Look for it also in libresolv.
3631         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3632         libnsl, search for it in libresolv.
3633         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3634         Needed on Solaris 7.
3635
3636 2011-09-18  Bruno Haible  <bruno@clisp.org>
3637
3638         accept, accept4 tests: Avoid link error on Solaris.
3639         * modules/accept-tests (Makefile.am): Link test-accept against
3640         $(LIBSOCKET).
3641         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3642         $(LIBSOCKET).
3643
3644         accept4: Avoid link error on Solaris.
3645         * modules/accept4 (Link): New section.
3646
3647         socket functions: Avoid link errors on Solaris.
3648         * modules/accept (Depends-on): Add socketlib.
3649         (Link): New section.
3650         * modules/bind (Depends-on): Add socketlib.
3651         (Link): New section.
3652         * modules/connect (Depends-on): Add socketlib.
3653         (Link): New section.
3654         * modules/getpeername (Depends-on): Add socketlib.
3655         (Link): New section.
3656         * modules/getsockname (Depends-on): Add socketlib.
3657         (Link): New section.
3658         * modules/getsockopt (Depends-on): Add socketlib.
3659         (Link): New section.
3660         * modules/listen (Depends-on): Add socketlib.
3661         (Link): New section.
3662         * modules/recv (Depends-on): Add socketlib.
3663         (Link): New section.
3664         * modules/recvfrom (Depends-on): Add socketlib.
3665         (Link): New section.
3666         * modules/send (Depends-on): Add socketlib.
3667         (Link): New section.
3668         * modules/sendto (Depends-on): Add socketlib.
3669         (Link): New section.
3670         * modules/setsockopt (Depends-on): Add socketlib.
3671         (Link): New section.
3672         * modules/shutdown (Depends-on): Add socketlib.
3673         (Link): New section.
3674         * modules/socket (Depends-on): Add socketlib.
3675         (Link): New section.
3676
3677 2011-09-18  Bruno Haible  <bruno@clisp.org>
3678
3679         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3680         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3681         than 5 seconds.
3682         * modules/ptsname-tests (configure.ac): Test for alarm.
3683
3684 2011-09-18  Bruno Haible  <bruno@clisp.org>
3685
3686         posix_spawn_file_actions_add*: Fix module dependencies.
3687         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3688         posix_spawn_file_actions_init.
3689         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3690         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3691
3692 2011-09-18  Bruno Haible  <bruno@clisp.org>
3693
3694         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3695         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3696         * tests/test-renameat.c (main): Likewise.
3697
3698 2011-09-18  Bruno Haible  <bruno@clisp.org>
3699
3700         Tests for module 'accept4'.
3701         * modules/accept4-tests: New file.
3702         * tests/test-accept4.c: New file.
3703
3704 2011-09-18  Bruno Haible  <bruno@clisp.org>
3705
3706         Tests for module 'accept'.
3707         * modules/accept-tests: New file.
3708         * tests/test-accept.c: New file.
3709
3710 2011-09-18  Bruno Haible  <bruno@clisp.org>
3711
3712         dup2: Support for MSVC.
3713         * lib/dup2.c: Include msvc-inval.h.
3714         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3715         _get_osfhandle calls.
3716         * modules/dup2 (Depends-on): Add msvc-inval.
3717         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3718
3719         New module 'msvc-inval'.
3720         * lib/msvc-inval.h: New file.
3721         * lib/msvc-inval.c: New file.
3722         * m4/msvc-inval.m4: New file.
3723         * modules/msvc-inval: New file.
3724
3725 2011-09-17  Bruno Haible  <bruno@clisp.org>
3726
3727         Tests for module 'pclose'.
3728         * modules/pclose-tests: New file.
3729
3730         New module 'pclose'.
3731         * lib/stdio.in.h (pclose): New declaration.
3732         * lib/pclose.c: New file.
3733         * m4/pclose.m4: New file.
3734         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3735         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3736         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3737         * modules/pclose: New file.
3738         * modules/popen-tests (Depends-on): Add pclose.
3739         * modules/popen-safer-tests (Depends-on): Likewise.
3740         * doc/posix-functions/pclose.texi: Mention the new module.
3741
3742 2011-09-17  Bruno Haible  <bruno@clisp.org>
3743
3744         popen: Support for MSVC.
3745         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3746         * lib/popen.c (popen): Provide alternate definition for native Windows.
3747         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3749         * modules/popen (Depends-on, configure.ac): Update condition.
3750         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3751         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3752         fixed.
3753
3754 2011-09-17  Bruno Haible  <bruno@clisp.org>
3755
3756         isnanl, isnand, isnanf: Work around MSVC bug.
3757         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3758
3759 2011-09-17  Bruno Haible  <bruno@clisp.org>
3760
3761         sys_socket tests: Fix recent mistake.
3762         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3763
3764 2011-09-17  Bruno Haible  <bruno@clisp.org>
3765
3766         putenv: Support for MSVC.
3767         * modules/putenv (Depends-on): Add environ.
3768         * lib/putenv.c (environ): Disable declaration.
3769         * lib/unistd.in.h: Update comment.
3770
3771 2011-09-17  Bruno Haible  <bruno@clisp.org>
3772
3773         math: Avoid macro redefinition warnings on MSVC.
3774         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3775         Undefine before redefining.
3776
3777 2011-09-17  Bruno Haible  <bruno@clisp.org>
3778
3779         doc: Mention functions which are declared as macros.
3780         * doc/posix-functions/*[fl].texi: Mention that some functions are
3781         defined as macros with arguments only.
3782
3783 2011-09-17  Bruno Haible  <bruno@clisp.org>
3784
3785         Add dependencies to new dirent related modules.
3786         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3787         * modules/fts (Depends-on): Likewise.
3788         * modules/glob (Depends-on): Likewise.
3789         * modules/savedir (Depends-on): Likewise.
3790         * modules/scandir (Depends-on): Likewise.
3791         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3792         * modules/fdopendir (Depends-on): Add opendir.
3793
3794 2011-09-17  Bruno Haible  <bruno@clisp.org>
3795
3796         inet_pton: Support for MSVC on Windows Vista or newer.
3797         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3798         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3799         HAVE_DECL_INET_PTON is defined.
3800         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3801         On platforms with <winsock2.h>, test whether inet_pton is declared in
3802         <ws2tcpip.h>. If so, arrange to replace it.
3803         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3804         REPLACE_INET_PTON.
3805         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3806         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3807         (Depends-on, configure.ac): Update condition.
3808         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3809
3810 2011-09-17  Bruno Haible  <bruno@clisp.org>
3811
3812         inet_ntop: Support for MSVC on Windows Vista or newer.
3813         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3814         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3815         HAVE_DECL_INET_NTOP is defined.
3816         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3817         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3818         <ws2tcpip.h>. If so, arrange to replace it.
3819         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3820         REPLACE_INET_NTOP.
3821         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3822         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3823         (Depends-on, configure.ac): Update condition.
3824         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3825
3826 2011-09-16  Eric Blake  <eblake@redhat.com>
3827
3828         test-fsync: yet another enhancement
3829         * tests/test-fsync.c (main): Also test behavior on read-only text
3830         file.
3831
3832 2011-09-16  Bruno Haible  <bruno@clisp.org>
3833
3834         Enhance fsync, fdatasync tests.
3835         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3836         * tests/test-fdatasync.c (main): Likewise.
3837
3838 2011-09-16  Bruno Haible  <bruno@clisp.org>
3839
3840         Support for MSVC compiler: Ensure mode_t gets defined.
3841         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3842         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3843         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3844         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3845         * tests/test-fcntl-h.c: Check that mode_t is defined.
3846         * tests/test-sys_stat.c: Likewise.
3847         * tests/test-sys_types.c: Likewise.
3848         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3849         * doc/posix-headers/sys_stat.texi: Likewise.
3850         * doc/posix-headers/sys_types.texi: Likewise.
3851
3852 2011-09-16  Bruno Haible  <bruno@clisp.org>
3853
3854         sys_stat: Support for MSVC.
3855         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3856         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3857         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3858         MSVC.
3859
3860 2011-09-16  Bruno Haible  <bruno@clisp.org>
3861
3862         Support for MSVC compiler: Ensure off_t gets defined.
3863         * lib/unistd.in.h: Include <sys/types.h>.
3864         * tests/test-fcntl-h.c: Check that off_t is defined.
3865         * tests/test-sys_stat.c: Likewise.
3866         * tests/test-sys_types.c: Likewise.
3867
3868 2011-09-16  Eric Blake  <eblake@redhat.com>
3869
3870         fdatasync: port to Solaris
3871         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3872         * modules/fdatasync (Link): Document it.
3873         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3874
3875         fdatasync: port to MacOS X 10.7
3876         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3877         declared.
3878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3879         * modules/unistd (Makefile.am): Substitute it.
3880         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3881         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3882
3883         fdatasync: minor improvements
3884         * modules/fdatasync (Depends-on): Add condition for fsync.
3885         * lib/fdatasync.c (fdatasync): Add comment.
3886         * tests/test-unistd-c++.cc: Test fdatasync.
3887
3888         unistd: update refs to newer POSIX
3889         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3890         Suggested by Bruno Haible.
3891
3892         fdatasync: new module
3893         * modules/fsync (Description): Document difference to fdatasync.
3894         * modules/fdatasync: New module.
3895         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3896         * lib/fdatasync.c (fdatasync): Likewise.
3897         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3898         defaults.
3899         * modules/unistd (Makefile.am): Set witnesses.
3900         * lib/unistd.in.h (fdatasync): Declare.
3901         * MODULES.html.sh: Document it.
3902         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3903         * modules/fdatasync-tests: New test.
3904         * tests/test-fdatasync.c: Likewise.
3905
3906 2011-09-16  Eric Blake  <eblake@redhat.com>
3907
3908         test-fsync: enhance tests
3909         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3910         * tests/test-fsync.c (main): Enhance test.
3911
3912 2011-09-15  Bruno Haible  <bruno@clisp.org>
3913
3914         Support for MSVC compiler: Ensure ssize_t gets defined.
3915         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3916         * doc/posix-headers/stdio.texi: Likewise.
3917         * modules/stdio (Depends-on): Add ssize_t.
3918         * modules/sys_socket (Depends-on): Likewise.
3919         * modules/sys_types (Depends-on): Likewise.
3920         * modules/sys_uio (Depends-on): Likewise.
3921         * modules/unistd (Depends-on): Likewise.
3922         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3923         * tests/test-sys_types.c: Check that ssize_t is defined.
3924
3925 2011-09-14  Bruno Haible  <bruno@clisp.org>
3926
3927         Avoid using #, the m4 comment starter character, near brackets.
3928         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3929         delimiter character in sed expressions.
3930         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3931         Suggested by Eric Blake.
3932
3933         Properly quote AC_CHECK_DECLS' 4th argument.
3934         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3935         argument.
3936         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3937         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3938         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3939         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3940         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3941         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3942         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3943         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3944         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3945         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3946         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3947         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3948         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3949         * m4/isinf.m4 (gl_ISINF): Likewise.
3950         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3951         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3952         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3953         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3954         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3955         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3956         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3957         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3958         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3959         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3960         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3961         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3963         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3965         Reported by Eric Blake.
3966
3967         Properly quote AC_CHECK_DECL's 4th argument.
3968         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3969         argument.
3970         * m4/argp.m4 (gl_ARGP): Likewise.
3971         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3972         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3973         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3974         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3975         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3976         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3977         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3978         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3979         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3980         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3981         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3982         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3983         Reported by Eric Blake.
3984
3985 2011-09-14  Eric Blake  <eblake@redhat.com>
3986
3987         opendir: avoid compile warning
3988         * lib/opendir.c (includes): Always include errno.h.
3989         Reported by Tatsuro MATSUOKA.
3990
3991 2011-09-14  Jim Meyering  <meyering@redhat.com>
3992
3993         maint.mk: sc_tight_scope: propagate failure from sub-make
3994         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3995         Reported by Martin von Gagern.
3996
3997 2011-09-13  Bruno Haible  <bruno@clisp.org>
3998
3999         tempname: Support for MSVC.
4000         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4001         MSVC.
4002         * modules/tempname (Depends-on): Add fcntl-h.
4003
4004 2011-09-13  Bruno Haible  <bruno@clisp.org>
4005
4006         sys_time: Support for MSVC.
4007         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4008         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4009         include <winsock2.h>.
4010         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4011         function declarations that collide with POSIX.
4012         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4013         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4014
4015 2011-09-13  Bruno Haible  <bruno@clisp.org>
4016
4017         stat: Support for MSVC.
4018         * lib/stat.c: Include pathmax.h.
4019         * modules/stat (Depends-on): Add pathmax.
4020
4021         pathmax: Support for native Windows.
4022         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4023
4024 2011-09-12  Bruno Haible  <bruno@clisp.org>
4025
4026         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4027         * lib/dirent.in.h (struct dirent): New type.
4028         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4029         DT_WHT): New macros.
4030         (DIR): New type.
4031         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4032         (readdir, rewinddir): New declarations.
4033         * lib/dirent-private.h: New file.
4034         * lib/opendir.c: New file.
4035         * lib/readdir.c: New file.
4036         * lib/rewinddir.c: New file.
4037         * lib/closedir.c: New file.
4038         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4039         * m4/opendir.m4: New file.
4040         * m4/readdir.m4: New file.
4041         * m4/rewinddir.m4: New file.
4042         * m4/closedir.m4: New file.
4043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4044         REPLACE_CLOSEDIR here.
4045         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4046         readdir, rewinddir are declared.
4047         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4048         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4049         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4050         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4051         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4052         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4053         * modules/opendir: New file.
4054         * modules/readdir: New file.
4055         * modules/rewinddir: New file.
4056         * modules/closedir: New file.
4057         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4058         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4059         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4060         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4061         * NEWS: Mention the 'fchdir' change.
4062
4063 2011-09-11  Bruno Haible  <bruno@clisp.org>
4064
4065         asm-underscore.m4: Support for MSVC.
4066         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4067         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4068
4069 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4070
4071         Doc about crypt functions.
4072         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4073         needing for _GNU_SOURCE to get crypt.
4074         * doc/posix-functions/encrypt.texi: Likewise.
4075         * doc/posix-functions/setkey.texi: Likewise.
4076
4077 2011-09-11  Bruno Haible  <bruno@clisp.org>
4078
4079         doc: Update regarding MSVC 9.
4080         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4081         tested".
4082         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4083         * doc/posix-headers/*.texi: Likewise.
4084         * doc/pastposix-functions/*.texi: Likewise.
4085         * doc/glibc-functions/*.texi: Likewise.
4086         * doc/glibc-headers/*.texi: Likewise.
4087
4088 2011-09-11  Bruno Haible  <bruno@clisp.org>
4089
4090         unistd et al.: Don't assume <unistd.h> exists.
4091         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4092         does not exist.
4093         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4094         exist. But include <stdlib.h>.
4095         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4096         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4097         symlink() does not exist.
4098         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4099         include <io.h> instead.
4100         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4101         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4102         include <direct.h> instead.
4103         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4105         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4106         <io.h> instead.
4107         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4108         correctly if the system does not have hard links.
4109         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4110         <direct.h> instead.
4111         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4112         it when looking for function declarations.
4113         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4114         <direct.h> and <io.h> instead.
4115         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4116
4117 2011-09-11  Bruno Haible  <bruno@clisp.org>
4118
4119         strcase: Support for MSVC.
4120         * modules/strcase (Status, Notice): Remove obsoletion mark.
4121         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4122         * doc/posix-functions/strncasecmp.texi: Likewise.
4123
4124         strings: Don't assume <strings.h> exists.
4125         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4126         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4127         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4128         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4129
4130 2011-09-11  Bruno Haible  <bruno@clisp.org>
4131
4132         dirent: Don't assume <dirent.h> exists.
4133         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4134         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4135         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4136         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4137
4138 2011-09-11  Bruno Haible  <bruno@clisp.org>
4139
4140         Fix wint_t on MSVC.
4141         * lib/wchar.in.h (wint_t): On MSVC, override it.
4142         * lib/wctype.in.h (wint_t): Likewise.
4143         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4144         MSVC.
4145         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4146         * doc/posix-headers/wctype.texi: Likewise.
4147
4148 2011-09-11  Bruno Haible  <bruno@clisp.org>
4149
4150         sys_types: Fix typo.
4151         * lib/sys_types.in.h: Fix typo in comment.
4152         Reported by Paul Eggert.
4153
4154         Support for MSVC compiler: Ensure size_t gets defined.
4155         * modules/strings (Depends-on): Add 'sys_types'.
4156         * modules/sys_uio (Depends-on): Likewise.
4157         * lib/sys_uio.in.h: Update comment.
4158
4159         C++ tests for module 'sys_types'.
4160         * modules/sys_types-c++-tests: New file.
4161         * tests/test-sys_types-c++.cc: New file.
4162
4163         Tests for module 'sys_types'.
4164         * modules/sys_types-tests: New file.
4165         * tests/test-sys_types.c: New file.
4166
4167         New module 'sys_types'.
4168         * lib/sys_types.in.h: New file.
4169         * m4/sys_types_h.m4: New file.
4170         * modules/sys_types: New file.
4171         * doc/posix-headers/sys_types.texi: Mention the new module and the
4172         size_t problem on MSVC 9.
4173
4174 2011-09-11  Bruno Haible  <bruno@clisp.org>
4175
4176         Support for MSVC compiler: Avoid division by a literal 0.
4177         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4178         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4179         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4180         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4181         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4182         * tests/infinity.h: New file.
4183         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4184         on MSVC.
4185         * tests/test-ceilf1.c: Include infinity.h.
4186         (main): Use Infinityf.
4187         * tests/test-ceil1.c: Include infinity.h.
4188         (main): Use Infinityd.
4189         * tests/test-ceill.c: Include infinity.h.
4190         (main): Use Infinityl.
4191         * tests/test-dprintf-posix.c: Include infinity.h.
4192         (test_function): Use Infinityd.
4193         * tests/test-floorf1.c: Include infinity.h.
4194         (main): Use Infinityf.
4195         * tests/test-floor1.c: Include infinity.h.
4196         (main): Use Infinityd.
4197         * tests/test-floorl.c: Include infinity.h.
4198         (main): Use Infinityl.
4199         * tests/test-fprintf-posix.c: Include infinity.h.
4200         (test_function): Use Infinityd.
4201         * tests/test-frexp.c: Include infinity.h.
4202         (main): Use Infinityd.
4203         * tests/test-frexpl.c: Include infinity.h.
4204         (main): Use Infinityl.
4205         * tests/test-isfinite.c: Include infinity.h.
4206         (test_isfinitef): Use Infinityf.
4207         (test_isfinited): Use Infinityd.
4208         (test_isfinitel): Use Infinityl.
4209         * tests/test-isinf.c: Include infinity.h.
4210         (test_isinff): Use Infinityf.
4211         (test_isinfd): Use Infinityd.
4212         (test_isinfl): Use Infinityl.
4213         * tests/test-isnan.c: Include infinity.h.
4214         (test_float): Use Infinityf.
4215         (test_double): Use Infinityd.
4216         (test_long_double): Use Infinityl.
4217         * tests/test-isnanf.h: Include infinity.h.
4218         (main): Use Infinityf.
4219         * tests/test-isnand.h: Include infinity.h.
4220         (main): Use Infinityd.
4221         * tests/test-isnanl.h: Include infinity.h.
4222         (main): Use Infinityl.
4223         * tests/test-ldexpl.c: Include infinity.h.
4224         (main): Use Infinityl.
4225         * tests/test-printf-posix.h: Include infinity.h.
4226         (test_function): Use Infinityd.
4227         * tests/test-roundf1.c: Include infinity.h.
4228         (main): Use Infinityf.
4229         * tests/test-round1.c: Include infinity.h.
4230         (main): Use Infinityd.
4231         * tests/test-roundl.c: Include infinity.h.
4232         (main): Use Infinityl.
4233         * tests/test-signbit.c: Include infinity.h.
4234         (test_signbitf): Use Infinityf.
4235         (test_signbitd): Use Infinityd.
4236         (test_signbitl): Use Infinityl.
4237         * tests/test-snprintf-posix.h: Include infinity.h.
4238         (test_function): Use Infinityd, Infinityl.
4239         * tests/test-sprintf-posix.h: Include infinity.h.
4240         (test_function): Use Infinityd, Infinityl.
4241         * tests/test-truncf1.c: Include infinity.h.
4242         (main): Use Infinityf.
4243         * tests/test-trunc1.c: Include infinity.h.
4244         (main): Use Infinityd.
4245         * tests/test-truncl.c: Include infinity.h.
4246         (main): Use Infinityl.
4247         * tests/test-vasnprintf-posix.c: Include infinity.h.
4248         (test_function): Use Infinityd, Infinityl.
4249         * tests/test-vasprintf-posix.c: Include infinity.h.
4250         (test_function): Use Infinityd, Infinityl.
4251         * modules/ceilf-tests (Files): Add tests/infinity.h.
4252         * modules/ceil-tests (Files): Likewise.
4253         * modules/ceill-tests (Files): Likewise.
4254         * modules/dprintf-posix-tests (Files): Likewise.
4255         * modules/floorf-tests (Files): Likewise.
4256         * modules/floor-tests (Files): Likewise.
4257         * modules/floorl-tests (Files): Likewise.
4258         * modules/fprintf-posix-tests (Files): Likewise.
4259         * modules/frexp-tests (Files): Likewise.
4260         * modules/frexp-nolibm-tests (Files): Likewise.
4261         * modules/frexpl-tests (Files): Likewise.
4262         * modules/frexpl-nolibm-tests (Files): Likewise.
4263         * modules/isfinite-tests (Files): Likewise.
4264         * modules/isinf-tests (Files): Likewise.
4265         * modules/isnan-tests (Files): Likewise.
4266         * modules/isnanf-tests (Files): Likewise.
4267         * modules/isnanf-nolibm-tests (Files): Likewise.
4268         * modules/isnand-tests (Files): Likewise.
4269         * modules/isnand-nolibm-tests (Files): Likewise.
4270         * modules/isnanl-tests (Files): Likewise.
4271         * modules/isnanl-nolibm-tests (Files): Likewise.
4272         * modules/ldexpl-tests (Files): Likewise.
4273         * modules/printf-posix-tests (Files): Likewise.
4274         * modules/roundf-tests (Files): Likewise.
4275         * modules/round-tests (Files): Likewise.
4276         * modules/roundl-tests (Files): Likewise.
4277         * modules/signbit-tests (Files): Likewise.
4278         * modules/snprintf-posix-tests (Files): Likewise.
4279         * modules/sprintf-posix-tests (Files): Likewise.
4280         * modules/truncf-tests (Files): Likewise.
4281         * modules/trunc-tests (Files): Likewise.
4282         * modules/truncl-tests (Files): Likewise.
4283         * modules/vasnprintf-posix-tests (Files): Likewise.
4284         * modules/vasprintf-posix-tests (Files): Likewise.
4285         * modules/vdprintf-posix-tests (Files): Likewise.
4286         * modules/vfprintf-posix-tests (Files): Likewise.
4287         * modules/vprintf-posix-tests (Files): Likewise.
4288         * modules/vsnprintf-posix-tests (Files): Likewise.
4289         * modules/vsprintf-posix-tests (Files): Likewise.
4290         * modules/xprintf-posix-tests (Files): Likewise.
4291
4292 2011-09-11  Bruno Haible  <bruno@clisp.org>
4293
4294         Ensure pid_t gets defined.
4295         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4296         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4297         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4298         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4299         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4300         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4301         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4302         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4303         * tests/test-fcntl-h.c: Check that pid_t is defined.
4304         * tests/test-sched.c: Likewise.
4305         * tests/test-termios.c: Likewise.
4306         * tests/test-time.c: Likewise.
4307         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4308         * doc/posix-headers/signal.texi: Likewise.
4309         * doc/posix-headers/sys_types.texi: Likewise.
4310         * doc/posix-headers/time.texi: Likewise.
4311
4312 2011-09-11  Bruno Haible  <bruno@clisp.org>
4313
4314         acl: Fix compilation on Solaris 10 (older version).
4315         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4316         of ACE_EVERYONE.
4317         * lib/set-mode-acl.c (qset_acl): Likewise.
4318         Reported by Christian Jullien <eligis@orange.fr>.
4319
4320 2011-09-10  Bruno Haible  <bruno@clisp.org>
4321
4322         iconv, unsetenv: Add support for MSVC compiler.
4323         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4324         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4325
4326 2011-09-10  Bruno Haible  <bruno@clisp.org>
4327
4328         *printf: Add support for MSVC compiler.
4329         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4330         handles the exception caused by the %n directive. When cross-compiling,
4331         guess no on native Windows.
4332         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4333         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4334         emulate it through vsnprintf.
4335         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4336         * doc/posix-functions/dprintf.texi: Update documentation regarding
4337         MSVC 9.
4338         * doc/posix-functions/fprintf.texi: Likewise.
4339         * doc/posix-functions/printf.texi: Likewise.
4340         * doc/posix-functions/snprintf.texi: Likewise.
4341         * doc/posix-functions/sprintf.texi: Likewise.
4342         * doc/posix-functions/swprintf.texi: Likewise.
4343         * doc/posix-functions/vdprintf.texi: Likewise.
4344         * doc/posix-functions/vfprintf.texi: Likewise.
4345         * doc/posix-functions/vprintf.texi: Likewise.
4346         * doc/posix-functions/vsnprintf.texi: Likewise.
4347         * doc/posix-functions/vsprintf.texi: Likewise.
4348         * doc/glibc-functions/asprintf.texi: Likewise.
4349         * doc/glibc-functions/obstack_printf.texi: Likewise.
4350         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4351         * doc/glibc-functions/vasprintf.texi: Likewise.
4352
4353 2011-09-10  Bruno Haible  <bruno@clisp.org>
4354
4355         nocrash: Add support for native Windows.
4356         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4357
4358 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4359             Bruno Haible  <bruno@clisp.org>
4360
4361         absolute-header, include-next: Add support for MSVC compiler.
4362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4363         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4364         directory separator in #line directives.
4365         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4366         recognize also backslash as directory separator in #line directives.
4367
4368 2011-09-08  Jim Meyering  <meyering@redhat.com>
4369
4370         maint.mk: mark the post-release commit log with "maint: " prefix
4371         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4372         one-line commit-log summary.
4373
4374 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4375             Bruno Haible  <bruno@clisp.org>
4376
4377         Doc about crypt functions.
4378         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4379         systems.
4380         * doc/posix-functions/encrypt.texi: Likewise.
4381         * doc/posix-functions/setkey.texi: Likewise.
4382
4383 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4384
4385         * lib/gc.h: Fix copyright header.
4386
4387 2011-09-07  Bruno Haible  <bruno@clisp.org>
4388
4389         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4390         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4391         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4392
4393 2011-09-07  Bruno Haible  <bruno@clisp.org>
4394
4395         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4396         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4397         * lib/freopen.c: Likewise.
4398         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4399         * lib/lstat.c: Likewise.
4400         * lib/stat.c: Likewise.
4401         * lib/open.c: Use different syntax for include of <fcntl.h>.
4402         * lib/openat.c: Include fcntl.h again, explicitly.
4403
4404 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4405
4406         parse-datetime: document the newly accepted format
4407         * doc/parse-datetime.texi (Combined date and time of day items):
4408         New section.
4409
4410 2011-09-06  Bruno Haible  <bruno@clisp.org>
4411
4412         acl: Fix a test failure on newer Solaris 10 with ZFS.
4413         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4414         ENOSYS as no ACL.
4415         Reported by Jim Meyering.
4416
4417 2011-09-06  Bruno Haible  <bruno@clisp.org>
4418
4419         acl: Update for AIX >= 5.3 with NFS.
4420         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4421         ENOSYS as no ACL.
4422
4423         acl: Fix a test failure on AIX >= 5.3 with NFS.
4424         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4425         as no ACL.
4426
4427 2011-09-06  Bruno Haible  <bruno@clisp.org>
4428
4429         acl: Fix a test failure on IRIX 6.5 with NFS.
4430         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4431         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4432         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4433         * lib/copy-acl.c (qcopy_acl): Likewise.
4434
4435 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4436
4437         openat: port to AIX 7.1 with large files
4438         AIX 7.1 does a "#define openat open64at" if large files are in use,
4439         so we can't simply #undef openat.  Use the orig_openat trick (similar
4440         to orig_open in lib/open.c) to work around the problem.  Problem
4441         reported by Kevin Brott for GNU tar, in the thread containing
4442         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4443         * lib/openat.c (__need_system_fcntl_h): Define first.
4444         Include <fcntl.h> and <sys/types.h> before undefining.
4445         (orig_openat) [HAVE_OPENAT]: New inline function.
4446         (openat) [HAVE_OPENAT]: Do not undef.
4447         (rpl_openat): Use orig_openat, not openat.
4448
4449 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4450             Bruno Haible  <bruno@clisp.org>
4451
4452         acl: Avoid errors on NonStop Kernel.
4453         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4454         ENOTSUP errors.
4455
4456 2011-09-05  Bruno Haible  <bruno@clisp.org>
4457
4458         acl: Clean up Solaris code.
4459         * lib/acl-internal.h: Remove no-op #if.
4460         * lib/file-has-acl.c: Likewise.
4461         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4462         * lib/copy-acl.c (qcopy_acl): Likewise.
4463
4464 2011-09-05  Bruno Haible  <bruno@clisp.org>
4465
4466         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4467         binaries built on the original Solaris 10.
4468         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4469         trivial.
4470
4471 2011-09-05  Bruno Haible  <bruno@clisp.org>
4472
4473         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4474         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4475         10.
4476         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4477         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4478         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4479         instead of acl_get, facl_get, acl_set, facl_set.
4480
4481 2011-09-05  Bruno Haible  <bruno@clisp.org>
4482
4483         copy-file: Try unit tests on more file systems.
4484         * tests/test-copy-file-1.sh: New file.
4485         * tests/test-copy-file-2.sh: New file.
4486         * modules/copy-file-tests (Files): Add them.
4487         (Makefile.am): Add them to TESTS.
4488
4489         acl: Try unit tests on more file systems.
4490         * tests/test-file-has-acl-1.sh: New file.
4491         * tests/test-file-has-acl-2.sh: New file.
4492         * tests/test-set-mode-acl-1.sh: New file.
4493         * tests/test-set-mode-acl-2.sh: New file.
4494         * tests/test-copy-acl-1.sh: New file.
4495         * tests/test-copy-acl-2.sh: New file.
4496         * modules/acl-tests (Files): Add them.
4497         (Makefile.am): Add them to TESTS.
4498
4499 2011-09-04  Bruno Haible  <bruno@clisp.org>
4500
4501         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4502         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4503         10.
4504         (OLD_ALLOW, OLD_DENY): New macros.
4505         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4506         ACE_ACCESS_ALLOWED_ACE_TYPE.
4507         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4508         ACE_ACCESS_DENIED_ACE_TYPE.
4509         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4510         (NEW_ACE_EXECUTE): Fix value.
4511         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4512         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4513         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4514         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4515         NEW_ACE_SYNCHRONIZE): New macros.
4516         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4517         instead of acl_fromtext, acl_set, facl_set.
4518         Fixes a coreutils/tests/cp/perm failure.
4519
4520 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4521
4522         openat: test for fstatat (..., 0) bug
4523         Further testing with tar suggests that fstatat (..., 0)
4524         does not work in general, on AIX 7.1; see
4525         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4526         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4527         replacement fstatat (which is what older AIX releases were using
4528         anyway).
4529         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4530         use is now changed to orig_fstatat.  This was probably the right
4531         thing to do anyway.
4532         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4533         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4534         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4535         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4536         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4537         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4538         if the bug is found.
4539
4540         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4541         This tests for another fstatat bug on AIX 7.1:
4542         fstatat (AT_FDCWD, ..., 0) does not work.  See
4543         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4544         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4545         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4546         (rpl_fstatat): Adjust so that it works around either (or both)
4547         bugs if present.
4548         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4549
4550 2011-09-03  Karl Berry  <karl@gnu.org>
4551
4552         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4553         in index entries.
4554
4555 2011-09-02  Bruno Haible  <bruno@clisp.org>
4556
4557         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4558         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4559         values of AR, ARFLAGS, RANLIB.
4560         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4561
4562 2011-09-02  Bruno Haible  <bruno@clisp.org>
4563
4564         Find 'ar' program that fits with --host argument.
4565         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4566
4567 2011-09-02  Bruno Haible  <bruno@clisp.org>
4568
4569         tests: init.sh: Support any non-GNU diff.
4570         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4571         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4572         Solaris 8.
4573
4574 2011-09-02  Bruno Haible  <bruno@clisp.org>
4575
4576         tests: init.sh: work also with any non-GNU diff that supports -u
4577         * tests/init.sh: Relax check for diff -u support.
4578         Rather than checking for GNU diff via --version, simply check
4579         for support for -u itself.  Useful at least on OpenBSD 4.9,
4580         AIX 7.1, IRIX 6.5, and Solaris 10.
4581
4582 2011-09-01  Bruno Haible  <bruno@clisp.org>
4583
4584         strtoimax, strtoumax: Document problem on HP-UX 11.
4585         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4586         * doc/posix-functions/strtoumax.texi: Likewise.
4587
4588 2011-09-01  Bruno Haible  <bruno@clisp.org>
4589
4590         strtoumax: Avoid link error on OSF/1 with DTK cc.
4591         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4592         defined as a function.
4593         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4594         strtoumax is defined, not whether it is declared.
4595
4596 2011-09-01  Bruno Haible  <bruno@clisp.org>
4597
4598         strtoimax: Avoid link error on OSF/1 with DTK cc.
4599         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4600         defined as a function.
4601         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4602         strtoimax is defined, not whether it is declared.
4603
4604 2011-09-01  Bruno Haible  <bruno@clisp.org>
4605
4606         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4607         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4608         as a function.
4609         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4610         whether it is declared.
4611
4612 2011-09-01  Bruno Haible  <bruno@clisp.org>
4613
4614         imaxabs: Avoid link error on OSF/1 with DTK cc.
4615         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4616         as a function.
4617         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4618         whether it is declared.
4619
4620 2011-09-01  Bruno Haible  <bruno@clisp.org>
4621
4622         Tests for module 'strtoumax'.
4623         * modules/strtoumax-tests: New file.
4624         * tests/test-strtoumax.c: New file.
4625
4626         Tests for module 'strtoimax'.
4627         * modules/strtoimax-tests: New file.
4628         * tests/test-strtoimax.c: New file.
4629
4630         Tests for module 'imaxdiv'.
4631         * modules/imaxdiv-tests: New file.
4632         * tests/test-imaxdiv.c: New file.
4633
4634         Tests for module 'imaxabs'.
4635         * modules/imaxabs-tests: New file.
4636         * tests/test-imaxabs.c: New file.
4637
4638 2011-09-01  Bruno Haible  <bruno@clisp.org>
4639
4640         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4641         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4642         pthread_create.
4643
4644 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4645
4646         openat: work around AIX 7.1 fstatat issue
4647         This should fix the problem that was not properly fixed
4648         in the previous change, dated 2011-08-30.
4649         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4650         __need_system_stat_h defined.
4651         (orig_fstatat) [HAVE_FSTATAT]: New function.
4652         (rpl_fstatat): Go back to the old way of doing things,
4653         except call orig_fstatat instead of fstatat.
4654         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4655         Remove unnecessary check whether fstatat fills in st_size etc.
4656
4657 2011-09-01  Bruno Haible  <bruno@clisp.org>
4658
4659         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4660         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4661         just include the system's header.
4662
4663 2011-08-31  Jim Meyering  <meyering@redhat.com>
4664
4665         tests: avoid spurious assertion failure in test-float.c on ppc64
4666         * tests/test-float.c (test_long_double): Comment out an assertion,
4667         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4668         with gcc-4.4.4.
4669
4670         maint: indent with spaces, not TABs
4671         I need to get in the habit of running gnulib's "make check".
4672         Both of these would have been caught.
4673         * m4/largefile.m4: Indent with spaces, not TABs.
4674         * lib/parse-datetime.y (iso_8601_time): Likewise.
4675         Spotted by Pádraig Brady.
4676
4677         test-parse-datetime.c: accommodate a relatively strict gcc warning
4678         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4679         to avoid a warning from gcc's -Werror=missing-declarations.
4680         Insert a few spaces-before-funcall-parenthesis.
4681
4682 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4683
4684         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4685         The parser now accepts ISO 8601 date-time strings with "T" as the
4686         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4687         with a space between the date and time strings.  Now it also parses
4688         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4689         variants like "2004-02-29T16:21:42.333-07:00"
4690         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4691         of day representation using the 'T' separator character.
4692         * doc/parse-datetime.texi (General date syntax): replace use of
4693         deprecated --iso-8601 option with --rfc-3339 in example of date
4694         command output formats that can be parsed.
4695         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4696         lib/parse-datetime.y.
4697         (gmt_offset): New function.
4698         (main): Add additional test cases to validate ISO8601 extended
4699         date and time of day parsing.
4700
4701 2011-08-31  Bruno Haible  <bruno@clisp.org>
4702
4703         freopen: Documentation.
4704         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4705         name.
4706         Reported by Claudio Bley <claudio.bley@gmail.com>.
4707
4708 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4709
4710         freopen: Don't crash if the filename argument is NULL.
4711         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4712         NULL.
4713
4714 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4715
4716         openat: work around AIX 7.1 fstatat bug
4717         Problem reported by Kevin Brott for GNU tar, in the thread containing
4718         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4719         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4720         FSTATAT_ST_SIZE_ETC_BROKEN.
4721         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4722         rpl_fstatat.
4723         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4724         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4725         AC_CHECK_FUNCS_ONCE for fstatat.
4726         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4727         fchmodat, mkdirat, openat and unlinkat.
4728
4729 2011-08-30  Bruno Haible  <bruno@clisp.org>
4730
4731         Avoid endless recursions if config.h includes some header files.
4732         * lib/fopen.c (__need_FILE): Define already before including config.h.
4733         * lib/freopen.c (__need_FILE): Likewise.
4734         * lib/open.c (__need_system_fcntl_h): Likewise.
4735         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4736         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4737         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4738
4739 2011-08-25  Karl Berry  <karl@gnu.org>
4740
4741         * config/srclist.txt (ylwrap): new try.
4742         * build-aux/ylwrap: new file.
4743
4744 2011-08-23  Bruno Haible  <bruno@clisp.org>
4745
4746         tmpdir: Use a good default directory on native Windows.
4747         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4748         (P_tmpdir): Default to _P_tmpdir on native Windows.
4749         (path_search): On native Windows, try the value returned by GetTempPath
4750         before trying P_tmpdir.
4751         * modules/tmpdir (Depends-on): Add pathmax.
4752         Suggested by John Darrington <john@darrington.wattle.id.au>.
4753
4754 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4755
4756         doc: fix typo in README-release
4757         * top/README-release: Capitalize first word of a sentence.
4758
4759 2011-08-19  Jim Meyering  <meyering@redhat.com>
4760
4761         fts: do not exhaust memory when processing million-entry directories
4762         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4763         directory would require about 256*N bytes of memory.  Thus, it was
4764         easy to construct a directory too large to be processed by any of
4765         those tools.  With this change, fts' maximum memory utilization is
4766         now limited to around 30MB.
4767         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4768         (fts_read): When we've processed the final entry (i.e., when
4769         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4770         using the parent entry to read any remaining entries.  Dispatch
4771         depending on what fts_build returns:
4772         - NULL+stop, aka failure: stop
4773         - NULL otherwise: move up in the dir hierarchy
4774         - non-NULL: handle this new entry
4775         (fts_build): Declare and use new local, continue_readdir.
4776         Prepare to be called from fts_read, when the entries
4777         from a partially-read directory have just been exhausted.
4778         In that case, we'll skip the opendir and instead use the parent's
4779         fts_dirp and derive dir_fd from that.
4780         Finally, in the readdir loop, if we read max_entries entries,
4781         exit the loop ensuring *not* to call closedir.  This is required
4782         so that fts_dirp can be reused on a subsequent call.
4783         Prompted by Ben England's report of memory exhaustion in find
4784         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4785
4786         maint: fts: move decl of `dp' down into while loop; split a long line
4787         * lib/fts.c (fts_build): No semantic change.
4788
4789         fts: add/use new struct member, fts_dirp
4790         We are about to use this to manage any directory with
4791         too many entries to read all of them into memory at once.
4792         To do that, we'll need to save the DIR* pointer in each
4793         affected FTSENT struct.
4794         * lib/fts_.h: Include <dirent.h>.
4795         (struct FTSENT) [fts_dirp]: New member.
4796         * lib/fts.c (closedir_and_clear): Define.
4797         Use it in place of closedir so that we are sure to
4798         clear the new fts_dirp member when done with it.
4799         (fts_alloc): Initialize the new member.
4800         (fts_lfree): Free, if needed.
4801
4802         maint: fts: give __opendir2 a new parameter and rename
4803         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4804         than surreptitiously using sole caller's "dir_fd".
4805         (fts_opendir): Rename from __opendir2.
4806
4807         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4808         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4809
4810         maint: fts.c: correct off-by-one indentation
4811         * lib/fts.c (fts_build): Correct indentation, change style
4812         of a couple of block comments, and bracing style.
4813
4814         maint: fts.c: move __opendir2 #define "up" out of function body
4815         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4816
4817         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4818         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4819         out for a long time and besides was useful only on BSD systems.
4820
4821 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4822
4823         regex: port to Stratus OpenVOS
4824         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4825         define to empty, rather than attempting nonportable optimizations.
4826         Problem reported by Paul Green in:
4827         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4828         and fix suggested by Eric Blake in:
4829         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4830
4831 2011-08-17  Eric Blake  <eblake@redhat.com>
4832
4833         getcwd: fix test failures on mingw
4834         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4835         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4836         test if long directory cannot be created, and allow mingw errno.
4837
4838         getcwd-lgpl: fix m4 to match relaxed test for BSD
4839         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4840         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4841         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4842         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4843         signature problem.
4844
4845         getcwd: fix compilation on mingw64
4846         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4847         getcwd.
4848         Reported by Marc-André Lureau.
4849
4850         pipe2: silence compiler warning
4851         * lib/pipe2.c (pipe2): Hide label if it is not used.
4852
4853 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4854
4855         relocatable-prog: fix link error
4856         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4857         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4858         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4859         into modules/relocatable-lib without noticing that
4860         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4861         also needs to build relocatable.c.
4862
4863 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4864
4865         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4866         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4867         shell code: it contained a 'break' that was not in a loop.
4868         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4869         via a shell-language loop; this may have been true in old Autoconf
4870         versions, but it's not true in Autoconf 2.68.  I found this bug
4871         when testing coreutils git on Solaris 8, whose shell complains
4872         about the syntax error.
4873
4874 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4875
4876         * lib/base64.c: Fix comment to reference RFC 4648.
4877         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4878         <gvtulder@gmail.com>.
4879
4880 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4881
4882         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4883
4884         po/Makefile.in.in: fix make -q problem
4885         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4886         rule, since there's no file named 'check-macro-version' and its
4887         use as a file breaks make -q.
4888         (all): Don't depend on check-macro-version.
4889         (CHECK_MACRO_VERSION): New macro.
4890         (stamp-po): Use it.
4891
4892         configmake: fix make -q problem
4893         * modules/configmake (configmake.h): Update configmake.h's time stamp
4894         even if the file does not change.  Otherwise, 'make -q' fails.
4895         Problem reported by Simon Josefsson in
4896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4897
4898 2011-08-11  Jim Meyering  <meyering@redhat.com>
4899
4900         git-version-gen: correct the advice in a comment
4901         * build-aux/git-version-gen: Correct comment.
4902         Don't recommend to list .tarball-version in .gitignore.
4903
4904 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4905
4906         base64: fix off-by-one buffer size bug
4907         Problem and (trivial) fix reported by Gijs van Tulder in
4908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4909         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4910         * tests/test-base64.c (main): Catch the bug.
4911
4912 2011-08-10  Eric Blake  <eblake@redhat.com>
4913
4914         closein: correct comments
4915         * lib/closein.c (close_stdin): Improve comments.
4916
4917 2011-08-09  Bruno Haible  <bruno@clisp.org>
4918
4919         More tests for 'fseeko'.
4920         * tests/test-fseeko3.c: New file, from Eric Blake.
4921         * tests/test-fseeko3.sh: New file.
4922         * modules/fseeko-tests (Files): Add them.
4923         (TESTS): Add test-fseeko3.sh.
4924         (check_PROGRAMS): Add test-fseeko3.
4925
4926 2011-08-09  Eric Blake  <eblake@redhat.com>
4927
4928         fseeko: remove unneeded hack
4929         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4930
4931         fseeko: fix bug on glibc
4932         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4933         Reported by John W. Eaton.
4934
4935 2011-08-08  Bruno Haible  <bruno@clisp.org>
4936
4937         unictype/base: Fix interoperability with preinstalled libunistring.
4938         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4939         Reported by Simon Josefsson.
4940
4941 2011-08-08  Bruno Haible  <bruno@clisp.org>
4942
4943         iswblank: Detect declaration correctly.
4944         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4945         AC_CHECK_DECLS invocation.
4946
4947 2011-08-08  Bruno Haible  <bruno@clisp.org>
4948
4949         tcgetsid: Detect declaration correctly.
4950         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4951         AC_CHECK_DECLS invocation.
4952         Reported by Simon Josefsson.
4953
4954 2011-08-08  Eric Blake  <eblake@redhat.com>
4955
4956         largefile: fix typo that regressed large file support
4957         * modules/largefile (configure.ac-early): Fix section name.
4958
4959 2011-08-06  Karl Berry  <karl@gnu.org>
4960
4961         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4962         a separate module.
4963
4964 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4965
4966         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4967         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4968         get prototype for free.
4969
4970 2011-08-04  Bruno Haible  <bruno@clisp.org>
4971
4972         Tests for module 'pathmax'.
4973         * modules/pathmax-tests: New file.
4974         * tests/test-pathmax.c: New file.
4975
4976         canonicalize-lgpl: Support larger filenames on the Hurd.
4977         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4978         Reported by Paul Eggert.
4979
4980         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4981         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4982         * lib/chdir-long.h: Include pathmax.h.
4983         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4984         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4985         (PATH_MAX): Remove code that is done by pathmax.h.
4986         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4987         * lib/tmpfile.c: Add a comment.
4988         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4989         * modules/chdir-long (Depends-on): Add pathmax.
4990         * modules/getcwd (Depends-on): Add pathmax.
4991         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4992         is not defined.
4993         * doc/posix-headers/limits.texi: Mention the pathmax module.
4994         * NEWS: Mention the change.
4995
4996 2011-08-02  Bruno Haible  <bruno@clisp.org>
4997
4998         pthread_sigmask: Actually use results of gl_THREADLIB.
4999         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5000         gl_THREADLIB, not gl_[]THREADLIB.
5001         Reported by Eric Blake.
5002
5003 2011-08-02  Jim Meyering  <meyering@redhat.com>
5004
5005         maint.mk: relax the default _gl_TS_function_match regexp
5006         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5007         space between function name and "(" in an "extern" declaration.
5008         That would fail to match a decl with no space there: extern void foo();
5009
5010 2011-07-31  Iain Nicol  <iain@thenicols.net>
5011
5012         git-version-gen: document that EXTRA_DIST must include .version
5013         * build-aux/git-version-gen: In the how-to-use comment, document
5014         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5015         will fail when run from an unpacked distribution tarball.
5016
5017 2011-08-01  Bruno Haible  <bruno@clisp.org>
5018
5019         wctype-h: Fix last change.
5020         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5021         REPLACE_TOWLOWER to 0.
5022         Reported by Sam Steingold <sds@gnu.org>.
5023
5024 2011-07-31  Bruno Haible  <bruno@clisp.org>
5025
5026         frexpl: Update autoconf test.
5027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5028         according to changes of 2011-06-20.
5029
5030 2011-07-31  Bruno Haible  <bruno@clisp.org>
5031
5032         sys_utsname: Add support for Minix.
5033         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5034         <sys/utsname.h>.
5035         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5036         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5037
5038 2011-07-31  Bruno Haible  <bruno@clisp.org>
5039
5040         strings: Add support for Minix.
5041         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5042         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5043         * doc/posix-headers/strings.texi: Document the Minix problem.
5044
5045 2011-07-31  Bruno Haible  <bruno@clisp.org>
5046
5047         wctype-h: Add support for Minix.
5048         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5049         REPLACE_TOWLOWER.
5050         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5051         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5052         REPLACE_ISWCNTRL.
5053
5054 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5055
5056         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5057         This is a performance improvement for 64-bit hosts: it causes the
5058         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5059
5060 2011-07-31  Bruno Haible  <bruno@clisp.org>
5061
5062         stdioext: Add support for Minix.
5063         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5064         * lib/fpurge.c (fpurge): Likewise.
5065         * lib/freadahead.c (freadahead): Likewise.
5066         * lib/freadable.c (freadable): Likewise.
5067         * lib/freading.c (freading): Likewise.
5068         * lib/freadptr.c (freadptr): Likewise.
5069         * lib/freadseek.c (freadptrinc): Likewise.
5070         * lib/fseeko.c (rpl_fseeko): Likewise.
5071         * lib/fseterr.c (fseterr): Likewise.
5072         * lib/fwritable.c (fwritable): Likewise.
5073         * lib/fwriting.c (fwriting): Likewise.
5074         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5075         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5076
5077 2011-07-31  Bruno Haible  <bruno@clisp.org>
5078
5079         errno: Port to Minix.
5080         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5081         ECONNABORTED are defined.
5082         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5083         GNULIB_defined_ECONNABORTED): New macros.
5084         * lib/strerror-override.h (strerror_override): Test also
5085         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5086         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5087         ECONNABORTED.
5088         * doc/posix-headers/errno.texi: Mention the Minix problem.
5089
5090 2011-07-31  Bruno Haible  <bruno@clisp.org>
5091
5092         Work around declaration collisions on Minix.
5093         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5094         defined, set REPLACE_MBSINIT.
5095         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5096         defined, set REPLACE_MBRTOWC.
5097         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5098         set REPLACE_MBRLEN.
5099         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5100         defined, set REPLACE_MBSRTOWCS.
5101         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5102         defined, set REPLACE_WCRTOMB.
5103         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5104         defined, set REPLACE_WCSRTOMBS.
5105
5106 2011-07-31  Bruno Haible  <bruno@clisp.org>
5107
5108         Add support for Minix with ACK compiler.
5109         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5110         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5111         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5112
5113 2011-07-31  Bruno Haible  <bruno@clisp.org>
5114
5115         Documentation about Minix.
5116         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5117         * doc/glibc-headers/*.texi: Likewise.
5118         * doc/posix-functions/*.texi: Likewise.
5119         * doc/glibc-functions/*.texi: Likewise.
5120
5121 2011-07-31  Bruno Haible  <bruno@clisp.org>
5122
5123         snippet/warn-on-use: Fix indentation.
5124         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5125
5126 2011-07-25  Jim Meyering  <meyering@redhat.com>
5127
5128         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5129         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5130         commands.
5131
5132 2011-07-27  Jim Meyering  <meyering@redhat.com>
5133
5134         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5135         * top/maint.mk (gl_extract_significant_defines_): Now that
5136         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5137         gnulib/lib/signal.in.h, and now that we recommend to
5138         define-if-undefined those two symbols in application code,
5139         we must filter them out of the "significant" list.
5140         This avoids a "make syntax-check" failure in coreutils.
5141
5142 2011-07-26  Eric Blake  <eblake@redhat.com>
5143
5144         warnings: add comments about previous patch
5145         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5146         * m4/include_next.m4: Likewise.
5147         * m4/warn-on-use.m4: Likewise.
5148         * m4/warnings.m4: Likewise, and simplify use.
5149         Suggested by Stefano Lattarini.
5150
5151         include-next, warnings: support older autoconf
5152         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5153         AS_VAR_PUSHDEF in a way that works with older autoconf.
5154         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5155         Reported by Daniel P. Berrange.
5156
5157 2011-07-25  Bruno Haible  <bruno@clisp.org>
5158
5159         fseek, ftell: Fix doc.
5160         * doc/posix-functions/fseek.texi: Reword statement about
5161         AC_SYS_LARGEFILE.
5162         * doc/posix-functions/ftell.texi: Likewise.
5163
5164 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5165             Bruno Haible  <bruno@clisp.org>
5166
5167         Add dependencies to the 'largefile' module.
5168         * modules/fopen (Depends-on): Add 'largefile'.
5169         * modules/freopen (Depends-on): Likewise.
5170         * modules/fseeko (Depends-on): Likewise.
5171         * modules/ftello (Depends-on): Likewise.
5172         * modules/glob (Depends-on): Likewise.
5173         * modules/lseek (Depends-on): Likewise.
5174         * modules/lstat (Depends-on): Likewise.
5175         * modules/mkostemp (Depends-on): Likewise.
5176         * modules/mkostemps (Depends-on): Likewise.
5177         * modules/mkstemp (Depends-on): Likewise.
5178         * modules/mkstemps (Depends-on): Likewise.
5179         * modules/open (Depends-on): Likewise.
5180         * modules/openat (Depends-on): Likewise.
5181         * modules/pread (Depends-on): Likewise.
5182         * modules/pwrite (Depends-on): Likewise.
5183         * modules/scandir (Depends-on): Likewise.
5184         * modules/stat (Depends-on): Likewise.
5185         * modules/tmpfile (Depends-on): Likewise.
5186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5187         since the containing module now depends on the largefile module.
5188         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5189         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5190         off_t is fixed by gnulib.
5191         * doc/posix-functions/freopen.texi: Likewise.
5192         * doc/posix-functions/fseeko.texi: Likewise.
5193         * doc/posix-functions/fstatat.texi: Likewise.
5194         * doc/posix-functions/ftello.texi: Likewise.
5195         * doc/posix-functions/glob.texi: Likewise.
5196         * doc/posix-functions/lseek.texi: Likewise.
5197         * doc/posix-functions/lstat.texi: Likewise.
5198         * doc/posix-functions/mkstemp.texi: Likewise.
5199         * doc/posix-functions/open.texi: Likewise.
5200         * doc/posix-functions/openat.texi: Likewise.
5201         * doc/posix-functions/pread.texi: Likewise.
5202         * doc/posix-functions/pwrite.texi: Likewise.
5203         * doc/posix-functions/scandir.texi: Likewise.
5204         * doc/posix-functions/stat.texi: Likewise.
5205         * doc/posix-functions/tmpfile.texi: Likewise.
5206         * doc/glibc-functions/mkostemp.texi: Likewise.
5207         * doc/glibc-functions/mkostemps.texi: Likewise.
5208         * doc/glibc-functions/mkstemps.texi: Likewise.
5209
5210 2011-07-25  Bruno Haible  <bruno@clisp.org>
5211
5212         fcntl: Move AC_LIBOBJ invocation to module description.
5213         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5214         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5215
5216         fcntl: Remove call-in from fchdir.m4.
5217         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5219
5220         dup3: Remove potential call-in from fchdir.m4.
5221         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5223
5224         dup2: Move AC_LIBOBJ invocation to module description.
5225         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5226         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5227         Don't invoke AC_LIBOBJ.
5228         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5229
5230         dup2: Remove call-in from fchdir.m4.
5231         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5233
5234         fclose: Move AC_LIBOBJ invocation to module description.
5235         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5236         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5237         to 1.
5238         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5239
5240         fclose: Remove call-in from close.m4.
5241         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5242         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5243
5244         close: Move AC_LIBOBJ invocation to module description.
5245         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5246         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5247         1.
5248         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5249
5250         close: Remove call-in from fchdir.m4.
5251         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5252         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5253
5254         open: Move AC_LIBOBJ invocation to module description.
5255         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5256         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5257         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5258
5259         open: Remove call-in from fchdir.m4.
5260         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5262
5263         fchdir: Start to remove gl_REPLACE_* idiom.
5264         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5265         (gl_FUNC_FCHDIR): Invoke it.
5266
5267 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5268
5269         * lib/ftell.c (ftell): Comment out cast.
5270
5271         close: use gl_REPLACE_FCLOSE only if defined
5272         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5273         is defined.  The close module doesn't depend on the fclose module
5274         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5276         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5277
5278 2011-07-24  Jim Meyering  <meyering@redhat.com>
5279
5280         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5281         * tests/test-select.h (test_function): Declare as "static".
5282
5283 2011-07-24  Bruno Haible  <bruno@clisp.org>
5284
5285         doc: Mention the effects of AC_SYS_LARGEFILE.
5286         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5287         on this function.
5288         * doc/posix-functions/aio_error.texi: Likewise.
5289         * doc/posix-functions/aio_fsync.texi: Likewise.
5290         * doc/posix-functions/aio_read.texi: Likewise.
5291         * doc/posix-functions/aio_return.texi: Likewise.
5292         * doc/posix-functions/aio_suspend.texi: Likewise.
5293         * doc/posix-functions/aio_write.texi: Likewise.
5294         * doc/posix-functions/fgetpos.texi: Likewise.
5295         * doc/posix-functions/fopen.texi: Likewise.
5296         * doc/posix-functions/freopen.texi: Likewise.
5297         * doc/posix-functions/fsetpos.texi: Likewise.
5298         * doc/posix-functions/fstatvfs.texi: Likewise.
5299         * doc/posix-functions/ftruncate.texi: Likewise.
5300         * doc/posix-functions/ftw.texi: Likewise.
5301         * doc/posix-functions/getrlimit.texi: Likewise.
5302         * doc/posix-functions/glob.texi: Likewise.
5303         * doc/posix-functions/lio_listio.texi: Likewise.
5304         * doc/posix-functions/lockf.texi: Likewise.
5305         * doc/posix-functions/mkstemp.texi: Likewise.
5306         * doc/posix-functions/mmap.texi: Likewise.
5307         * doc/posix-functions/nftw.texi: Likewise.
5308         * doc/posix-functions/openat.texi: Likewise.
5309         * doc/posix-functions/opendir.texi: Likewise.
5310         * doc/posix-functions/posix_fadvise.texi: Likewise.
5311         * doc/posix-functions/posix_fallocate.texi: Likewise.
5312         * doc/posix-functions/pread.texi: Likewise.
5313         * doc/posix-functions/pwrite.texi: Likewise.
5314         * doc/posix-functions/readdir.texi: Likewise.
5315         * doc/posix-functions/readdir_r.texi: Likewise.
5316         * doc/posix-functions/rewinddir.texi: Likewise.
5317         * doc/posix-functions/scandir.texi: Likewise.
5318         * doc/posix-functions/seekdir.texi: Likewise.
5319         * doc/posix-functions/setrlimit.texi: Likewise.
5320         * doc/posix-functions/statvfs.texi: Likewise.
5321         * doc/posix-functions/telldir.texi: Likewise.
5322         * doc/posix-functions/tmpfile.texi: Likewise.
5323         * doc/posix-functions/truncate.texi: Likewise.
5324         * doc/glibc-functions/fallocate.texi: Likewise.
5325         * doc/glibc-functions/fstatfs.texi: Likewise.
5326         * doc/glibc-functions/fts_children.texi: Likewise.
5327         * doc/glibc-functions/fts_read.texi: Likewise.
5328         * doc/glibc-functions/getdirentries.texi: Likewise.
5329         * doc/glibc-functions/mkostemp.texi: Likewise.
5330         * doc/glibc-functions/mkostemps.texi: Likewise.
5331         * doc/glibc-functions/mkstemps.texi: Likewise.
5332         * doc/glibc-functions/preadv.texi: Likewise.
5333         * doc/glibc-functions/pwritev.texi: Likewise.
5334         * doc/glibc-functions/sendfile.texi: Likewise.
5335         * doc/glibc-functions/statfs.texi: Likewise.
5336
5337 2011-07-24  Bruno Haible  <bruno@clisp.org>
5338
5339         doc: Fix typo.
5340         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5341
5342 2011-07-24  Bruno Haible  <bruno@clisp.org>
5343
5344         doc: Mention fsusage.
5345         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5346
5347 2011-07-24  Bruno Haible  <bruno@clisp.org>
5348
5349         doc: Mention new glibc headers and functions.
5350         * doc/glibc-headers/gshadow.texi: New file.
5351         * doc/glibc-functions/endsgent.texi: New file.
5352         * doc/glibc-functions/fgetsgent.texi: New file.
5353         * doc/glibc-functions/fgetsgent_r.texi: New file.
5354         * doc/glibc-functions/getsgent.texi: New file.
5355         * doc/glibc-functions/getsgent_r.texi: New file.
5356         * doc/glibc-functions/getsgnam.texi: New file.
5357         * doc/glibc-functions/getsgnam_r.texi: New file.
5358         * doc/glibc-functions/putsgent.texi: New file.
5359         * doc/glibc-functions/setsgent.texi: New file.
5360         * doc/glibc-functions/sgetsgent.texi: New file.
5361         * doc/glibc-functions/sgetsgent_r.texi: New file.
5362         * doc/glibc-functions/malloc_info.texi: New file.
5363         * doc/glibc-functions/preadv.texi: New file.
5364         * doc/glibc-functions/pwritev.texi: New file.
5365         * doc/glibc-functions/register_printf_modifier.texi: New file.
5366         * doc/glibc-functions/register_printf_specifier.texi: New file.
5367         * doc/glibc-functions/register_printf_type.texi: New file.
5368         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5369         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5370         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5371         * doc/glibc-functions/pthread_getname_np.texi: New file.
5372         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5373         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5374         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5375         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5376         * doc/glibc-functions/pthread_setname_np.texi: New file.
5377         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5378         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5379         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5380         * doc/glibc-functions/qsort_r.texi: New file.
5381         * doc/glibc-functions/quick_exit.texi: New file.
5382         * doc/glibc-functions/syncfs.texi: New file.
5383         * doc/gnulib.texi: Include them.
5384         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5385         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5386         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5387         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5388         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5389         * doc/glibc-functions/execvpe.texi: Likewise.
5390
5391 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5392
5393         ftell: don't include <unistd.h>
5394         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5395         guaranteed to define off_t, and the ftell module depends on the
5396         stdio module.
5397
5398         ftell: do not assume wraparound signed arithmetic
5399         * lib/ftell.c: Include <limits.h>.
5400         (ftell): Don't assume wraparound signed arithmetic.
5401
5402 2011-07-24  Bruno Haible  <bruno@clisp.org>
5403
5404         close: No longer depend on module 'fclose'.
5405         * modules/close (Depends-on): Remove fclose.
5406         * NEWS: Mention the change.
5407         Suggested by Sam Steingold <sds@gnu.org>.
5408
5409 2011-07-24  Bruno Haible  <bruno@clisp.org>
5410
5411         fsusage: Enable large volume support on AIX >= 5.2.
5412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5413         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5414         instead of STAT_STATVFS.
5415         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5416
5417         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5418         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5419         f_blocks field only on MacOS X.
5420
5421         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5422         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5423         * modules/fsusage (Depends-on): Add largefile.
5424
5425 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5426
5427         * README: Modernize discussion of signed integers.
5428         Assuming overflow wraparound is no longer safe.
5429         Mention ones' complement and signed magnitude.
5430
5431 2011-07-22  Bruno Haible  <bruno@clisp.org>
5432
5433         select tests, pselect tests: Refactor.
5434         * tests/test-select.h: New file, extracted from tests/test-select.c.
5435         (select_fn): New type.
5436         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5437         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5438         test_pipe): Add my_select argument.
5439         (test_function): Renamed from main. Add my_select argument.
5440         * tests/test-select.c: Move most code to tests/test-select.h. Include
5441         test-select.h.
5442         * modules/select-tests (Files): Add tests/test-select.h.
5443         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5444         (my_select, main): New functions.
5445         * modules/pselect-tests (Files): Add tests/test-select.h,
5446         tests/macros.h, tests/signature.h.
5447         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5448         (configure.ac): Check for <sys/wait.h>.
5449
5450 2011-07-22  Bruno Haible  <bruno@clisp.org>
5451
5452         sys_select tests: Check the signature of FD_*.
5453         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5454         signature tests from here...
5455         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5456         here.
5457         * modules/sys_select-tests (Files): Add tests/signature.h.
5458
5459 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5460
5461         largefile: new module, replacing large-inode
5462         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5463         * MODULES.html.sh: Add largefile, remove large-inode.
5464         * modules/largefile, m4/largefile.m4: New files.
5465         * modules/large-inode, m4/large-inode.m4: Remove.
5466
5467         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5468         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5469         implementations that use only 32 bits to count blocks.
5470         On typical hosts with 1024-byte blocks, this fails with file
5471         systems as small as 4 TiB.  Problem reported by Herb Wartens
5472         <http://debbugs.gnu.org/9140> and this should also fix a similar
5473         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5474
5475         large-inode: New module
5476         * MODULES.html.sh: Add it.
5477         * modules/large-inode, m4/large-inode.m4: New files.
5478
5479         extensions: Enable extensions on MacOS X 10.5 and later.
5480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5481
5482 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5483
5484         file-has-acl: use acl_extended_file_nofollow if available
5485         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5486         (acl_extended_file): New macro.
5487         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5488         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5489
5490 2011-07-21  Bruno Haible  <bruno@clisp.org>
5491
5492         Declare system functions in a way that works with C++.
5493         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5494         declare fdopendir as extern "C".
5495         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5496         declare frexpl as extern "C".
5497         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5498         declare gai_strerror as extern "C".
5499         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5500         programs, declare gai_strerror as extern "C".
5501         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5502         declare getlogin_r as extern "C".
5503         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5504         as extern "C".
5505         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5506         declare ldexpl as extern "C".
5507         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5508         as extern "C".
5509         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5510         program, declare getmntinfo as extern "C".
5511         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5512         stpncpy as extern "C".
5513         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5514         program, declare __xpg_strerror_r as extern "C".
5515         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5516         strndup as extern "C".
5517         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5518         declare memset and bzero as extern "C".
5519         Reported by Sam Steingold <sds@gnu.org>.
5520
5521 2011-07-12  Jim Meyering  <meyering@redhat.com>
5522
5523         maint.mk: prohibit inclusion of "verify.h" without use
5524         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5525
5526 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5527
5528         timer-time: A new module to check for timer_settime()
5529         * m4/timer_time.m4: Check for the posix function.
5530         * modules/timer-time: Add the new module.
5531         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5532         Mention it.
5533
5534 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5535             Bruno Haible  <bruno@clisp.org>
5536
5537         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5538         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5539         not defined, assume POSIX threads and look for pthread_sigmask in
5540         $LIBS, without changing $CPPFLAGS.
5541
5542 2011-07-19  Bruno Haible  <bruno@clisp.org>
5543
5544         strstr: Update cross-compilation guess.
5545         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5546         CPUs, guess no, in view of glibc
5547         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5548         Suggested by Eric Blake. Reported by Reuben Thomas.
5549
5550 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5551
5552         getopt-gnu: suppress core dumps from detection code
5553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5554         to suppress core dumps that may well occur on glibc systems.
5555         * modules/getopt-gnu: Depend on nocrash.
5556
5557 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5558
5559         pthread_sigmask: ensure usleep is declared
5560         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5561         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5562
5563 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5564
5565         doc: Document NonStop portability issues.
5566         * doc/posix-functions/sigaction.texi (sigaction):
5567         * doc/posix-headers/signal.texi (signal.h):
5568         Document NonStop.  See Joachim Schmitz in
5569         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5570
5571 2011-07-15  Bruno Haible  <bruno@clisp.org>
5572
5573         ffsl, ffsll: Avoid unportable behaviour.
5574         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5575
5576 2011-07-15  Bruno Haible  <bruno@clisp.org>
5577
5578         ffs: More tests.
5579         * tests/test-ffs.c (NBITS): New macro.
5580         (main): Add more tests.
5581         * tests/test-ffsl.c (NBITS): New macro.
5582         (main): Add more tests.
5583         * tests/test-ffsll.c (NBITS): New macro.
5584         (main): Add more tests.
5585
5586 2011-07-15  Eric Blake  <eblake@redhat.com>
5587
5588         ffsl, ffsll: new modules
5589         * modules/ffsl: New file.
5590         * modules/ffsll: Likewise.
5591         * m4/ffsl.m4: Likewise.
5592         * m4/ffsll.m4: Likewise.
5593         * lib/ffsl.c: Likewise.
5594         * lib/ffsl.h: Likewise.
5595         * lib/ffsll.c: Likewise.
5596         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5597         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5598         * modules/string (Makefile.am): Substitute witnesses.
5599         * lib/strings.in.h (ffsl, ffsll): Declare.
5600         * modules/ffsl-tests: New test file.
5601         * modules/ffsll-tests: Likewise.
5602         * tests/test-ffsl.c: Likewise.
5603         * tests/test-ffsll.c: Likewise.
5604         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5605         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5606         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5607
5608         ffs: fix m4 prerequisite
5609         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5610
5611         ffs: avoid undefined behavior
5612         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5613         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5614         Reported by Bruno Haible.
5615
5616 2011-07-12  Bruno Haible  <bruno@clisp.org>
5617
5618         pthread_sigmask: Rely on module 'threadlib'.
5619         * modules/pthread_sigmask (Depends-on): Add threadlib.
5620         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5621         is defined.
5622
5623 2011-07-12  Bruno Haible  <bruno@clisp.org>
5624
5625         regex: Depend on module 'strcase'.
5626         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5627
5628 2011-07-12  Jim Meyering  <meyering@redhat.com>
5629
5630         warn-on-use: fix typo in file name
5631         * modules/snippet/warn-on-use (Files): Correct file name:
5632         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5633
5634 2011-07-12  Bruno Haible  <bruno@clisp.org>
5635
5636         strings: Document module.
5637         * doc/posix-headers/strings.texi: Mention module 'strings'.
5638
5639 2011-07-12  Bruno Haible  <bruno@clisp.org>
5640
5641         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5642         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5643         (Files, Makefile.am): Update.
5644         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5645         * modules/stdlib (Depends-on): Update.
5646
5647 2011-07-12  Bruno Haible  <bruno@clisp.org>
5648
5649         * NEWS: Mention the changes.
5650
5651         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5652         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5653         (Files, Makefile.am): Update.
5654         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5655         * modules/arpa_inet (Depends-on): Update.
5656         * modules/ctype (Depends-on): Update.
5657         * modules/dirent (Depends-on): Update.
5658         * modules/fcntl-h (Depends-on): Update.
5659         * modules/glob (Depends-on): Update.
5660         * modules/iconv-h (Depends-on): Update.
5661         * modules/inttypes-incomplete (Depends-on): Update.
5662         * modules/langinfo (Depends-on): Update.
5663         * modules/locale (Depends-on): Update.
5664         * modules/math (Depends-on): Update.
5665         * modules/netdb (Depends-on): Update.
5666         * modules/poll-h (Depends-on): Update.
5667         * modules/pty (Depends-on): Update.
5668         * modules/search (Depends-on): Update.
5669         * modules/signal (Depends-on): Update.
5670         * modules/spawn (Depends-on): Update.
5671         * modules/stdio (Depends-on): Update.
5672         * modules/stdlib (Depends-on): Update.
5673         * modules/string (Depends-on): Update.
5674         * modules/strings (Depends-on): Update.
5675         * modules/sys_file (Depends-on): Update.
5676         * modules/sys_ioctl (Depends-on): Update.
5677         * modules/sys_select (Depends-on): Update.
5678         * modules/sys_socket (Depends-on): Update.
5679         * modules/sys_stat (Depends-on): Update.
5680         * modules/sys_time (Depends-on): Update.
5681         * modules/sys_times (Depends-on): Update.
5682         * modules/sys_utsname (Depends-on): Update.
5683         * modules/sys_wait (Depends-on): Update.
5684         * modules/termios (Depends-on): Update.
5685         * modules/time (Depends-on): Update.
5686         * modules/unistd (Depends-on): Update.
5687         * modules/wchar (Depends-on): Update.
5688         * modules/wctype-h (Depends-on): Update.
5689         * MODULES.html.sh (Support for building libraries and executables):
5690         Update.
5691
5692         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5693         * modules/snippet/unused-parameter: Renamed from
5694         modules/unused-parameter.
5695         (Files, Makefile.am): Update.
5696         * build-aux/snippet/unused-parameter.h: Renamed from
5697         build-aux/unused-parameter.h.
5698         * modules/selinux-h (Depends-on): Update.
5699         * modules/unistr/base (Depends-on): Update.
5700         * MODULES.html.sh (Core language properties): Update.
5701
5702         Rename module 'link-warning' to 'snippet/link-warning'.
5703         * modules/snippet/link-warning: Renamed from modules/link-warning.
5704         (Files, Makefile.am): Update.
5705         * build-aux/snippet/link-warning.h: Renamed from
5706         build-aux/link-warning.h.
5707         * MODULES.html.sh (Support for building libraries and executables):
5708         Update.
5709
5710         Rename module 'c++defs' to 'snippet/c++defs'.
5711         * modules/snippet/c++defs: Renamed from modules/c++defs.
5712         (Files, Makefile.am): Update.
5713         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5714         * modules/arpa_inet (Depends-on): Update.
5715         * modules/ctype (Depends-on): Update.
5716         * modules/dirent (Depends-on): Update.
5717         * modules/fcntl-h (Depends-on): Update.
5718         * modules/glob (Depends-on): Update.
5719         * modules/iconv-h (Depends-on): Update.
5720         * modules/langinfo (Depends-on): Update.
5721         * modules/locale (Depends-on): Update.
5722         * modules/math (Depends-on): Update.
5723         * modules/netdb (Depends-on): Update.
5724         * modules/poll-h (Depends-on): Update.
5725         * modules/pty (Depends-on): Update.
5726         * modules/search (Depends-on): Update.
5727         * modules/signal (Depends-on): Update.
5728         * modules/spawn (Depends-on): Update.
5729         * modules/stdio (Depends-on): Update.
5730         * modules/stdlib (Depends-on): Update.
5731         * modules/string (Depends-on): Update.
5732         * modules/strings (Depends-on): Update.
5733         * modules/sys_ioctl (Depends-on): Update.
5734         * modules/sys_select (Depends-on): Update.
5735         * modules/sys_socket (Depends-on): Update.
5736         * modules/sys_stat (Depends-on): Update.
5737         * modules/sys_time (Depends-on): Update.
5738         * modules/sys_wait (Depends-on): Update.
5739         * modules/termios (Depends-on): Update.
5740         * modules/time (Depends-on): Update.
5741         * modules/unistd (Depends-on): Update.
5742         * modules/wchar (Depends-on): Update.
5743         * modules/wctype-h (Depends-on): Update.
5744
5745         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5746         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5747         (Files, Makefile.am): Update.
5748         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5749         * modules/argv-iter (Depends-on): Update.
5750         * modules/arpa_inet (Depends-on): Update.
5751         * modules/dirent (Depends-on): Update.
5752         * modules/fcntl-h (Depends-on): Update.
5753         * modules/fnmatch (Depends-on): Update.
5754         * modules/getopt-posix (Depends-on): Update.
5755         * modules/glob (Depends-on): Update.
5756         * modules/iconv-h (Depends-on): Update.
5757         * modules/inttypes-incomplete (Depends-on): Update.
5758         * modules/locale (Depends-on): Update.
5759         * modules/math (Depends-on): Update.
5760         * modules/netdb (Depends-on): Update.
5761         * modules/search (Depends-on): Update.
5762         * modules/signal (Depends-on): Update.
5763         * modules/spawn (Depends-on): Update.
5764         * modules/stdio (Depends-on): Update.
5765         * modules/stdlib (Depends-on): Update.
5766         * modules/string (Depends-on): Update.
5767         * modules/strings (Depends-on): Update.
5768         * modules/sys_socket (Depends-on): Update.
5769         * modules/sys_stat (Depends-on): Update.
5770         * modules/sys_time (Depends-on): Update.
5771         * modules/sys_times (Depends-on): Update.
5772         * modules/sys_utsname (Depends-on): Update.
5773         * modules/time (Depends-on): Update.
5774         * modules/unistd (Depends-on): Update.
5775         * modules/wchar (Depends-on): Update.
5776         * MODULES.html.sh (Support for building libraries and executables):
5777         Update.
5778
5779 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5780
5781         Improvements on _Noreturn and related modules.
5782
5783         modules/_Exit-tests: test _Noreturn too
5784         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5785         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5786         (main): Use them.
5787
5788         stdnoreturn, stdnoreturn-tests: remove modules
5789         They're not needed here and a bit premature for use elsewhere.  See
5790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5791         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5792         * tests/test-stdnoreturn.c: Remove files.
5793         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5794         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5795         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5796         and using noreturn.
5797         * modules/openat, modules/sigpipe-die, modules/xalloc:
5798         * modules/xmemdup0, modules/xstrtol:
5799         Remove dependency on stdnoreturn.
5800
5801         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5802         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5803         Reparenthesize to avoid GCC warning.
5804         Support Microsoft's syntax.
5805         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5806
5807         _Noreturn-tests: remove module
5808         * modules/_Noreturn-tests: Remove.
5809         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5810         * tests/test-_Noreturn.c: Remove.
5811         * tests/test-stdnoreturn.c: Merge from the old
5812         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5813
5814 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5815
5816         _Noreturn, stdnoreturn, and related modules.
5817
5818         * top/maint.mk: Adjust to new noreturn support.
5819         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5820         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5821
5822         xalloc: use stdnoreturn.h
5823         * lib/xalloc.h: Include <stdnoreturn.h>.
5824         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5825         * modules/xalloc (Depends-on): Add stdnoreturn.
5826
5827         xstrtol: use stdnoreturn.h
5828         * lib/xstrtol.h: Include <stdnoreturn.h>.
5829         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5830         * modules/xstrtol (Depends-on): Add stdnoreturn.
5831
5832         xmemdup0: use stdnoreturn.h
5833         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5834         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5835         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5836
5837         sigpipe-die: use stdnoreturn.h
5838         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5839         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5840         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5841
5842         openat: use stdnoreturn.h
5843         * lib/openat.h: Include <stdnoreturn.h>.
5844         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5845         * modules/openat (Depends-on): Add stdnoreturn.
5846
5847         * lib/openat-die.c (openat_save_fail): Modernize comment.
5848
5849         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5850
5851         * lib/glthread/thread.h: Modernize comment.
5852
5853         obstack: use _Noreturn
5854         * lib/obstack.c (__attribute__): Remove macro.
5855         (print_and_abort): Use _Noreturn.
5856
5857         c-stack: use _Noreturn
5858         * lib/c-stack.c (die, overflow_handler, segv_handler):
5859         Use _Noreturn rather than __attribute__((noreturn)).
5860
5861         argmatch-tests, exclude_tests: use _Noreturn
5862         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5863         Remove.
5864         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5865
5866         stdlib: use _Noreturn
5867         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5868         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5869         * modules/stdlib (Depends-on): Add _Noreturn.
5870         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5871
5872         stdnoreturn-tests: new module
5873         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5874
5875         stdnoreturn: new module
5876         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5877         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5878
5879         _Noreturn-tests: new module
5880         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5881
5882         _Noreturn: new module
5883         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5884         New section, mentioning it.
5885         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5886
5887         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5888
5889 2011-07-11  Eric Blake  <eblake@redhat.com>
5890
5891         ffs: new module
5892         * modules/ffs: New file.
5893         * m4/ffs.m4: Likewise.
5894         * lib/ffs.c: Likewise.
5895         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5896         * modules/strings (Makefile.am): Substitute witness.
5897         (Depends-on): Add c++defs.
5898         * lib/strings.in.h (ffs): Declare.
5899         * modules/ffs-tests: New test file.
5900         * tests/test-ffs.c: Test new module.
5901         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5902         * doc/posix-functions/ffs.texi (ffs): Likewise.
5903
5904         regex: avoid compiler warning
5905         * lib/regex.c (includes): Include <strings.h>, for use of
5906         strcasecmp in regcomp.c.
5907         Reported by Joachim Schmitz.
5908
5909 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5910
5911         stdint: respect system's intmax_t if INTMAX_MAX
5912         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5913         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5914         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5915         long but int64_t is long long, and where we will clash with the
5916         system intmax_t if we override it.  See
5917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5918         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5919         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5920         similarly for UINTMAX_C.
5921
5922 2011-07-08  Bruno Haible  <bruno@clisp.org>
5923
5924         pthread_sigmask tests: Avoid a compiler warning.
5925         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5926         non-zero.
5927
5928         sigprocmask tests: A better way to avoid a compiler warning.
5929         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5930         (main): Complain if system() returns non-zero.
5931         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5932
5933 2011-07-08  Bruno Haible  <bruno@clisp.org>
5934
5935         pthread_sigmask: Work around IRIX bug.
5936         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5937         bug.
5938         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5939         there may be unblocked pending signals.
5940         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5941
5942 2011-07-08  Bruno Haible  <bruno@clisp.org>
5943
5944         pthread_sigmask: Work around Cygwin bug.
5945         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5946         bug.
5947         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5948         the system's pthread_sigmask function.
5949         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5950
5951 2011-07-08  Bruno Haible  <bruno@clisp.org>
5952
5953         pthread_sigmask: Work around bug in single-threaded implementation.
5954         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5955         FreeBSD, HP-UX, Solaris bug.
5956         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5957         * lib/pthread_sigmask.c: Include <stddef.h>.
5958         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5959         the system's pthread_sigmask function.
5960         * modules/pthread_sigmask (configure.ac): Invoke
5961         gl_PREREQ_PTHREAD_SIGMASK.
5962         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5963         HP-UX, Solaris.
5964
5965 2011-07-08  Eric Blake  <eblake@redhat.com>
5966
5967         test-sigprocmask: avoid compiler warning
5968         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5969         * tests/test-sigprocmask.c (main): Use it to silence warning.
5970         Reported by Jim Meyering.
5971
5972         test-snprintf: avoid compiler warning
5973         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5974         * tests/test-vsnprintf.c (main): Likewise.
5975         Reported by Jim Meyering.
5976
5977 2011-07-08  Bruno Haible  <bruno@clisp.org>
5978
5979         Tests for module 'pthread_sigmask'.
5980         * modules/pthread_sigmask-tests: New file.
5981         * tests/test-pthread_sigmask1.c: New file, based on
5982         tests/test-sigprocmask.c.
5983         * tests/test-pthread_sigmask2.c: New file.
5984
5985 2011-07-08  Jim Meyering  <meyering@redhat.com>
5986
5987         test-getopt.h: avoid warning about an unused variable
5988         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5989
5990 2011-07-07  Jim Meyering  <meyering@redhat.com>
5991
5992         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5993         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5994         now that it no longer contains leading TABs.
5995         Remove unused "url=FIXME" statement.
5996
5997 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5998
5999         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6000         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6001         When gl_THREADLIB is not in use, assume that the POSIX sematics
6002         are desired.  This is better for Emacs, which uses POSIX semantics
6003         on GNUish and/or POSIXish platforms, and does not use threads at
6004         all otherwise.
6005
6006         pthread_sigmask: fix typo when testing for libraries
6007         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6008         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6009
6010 2011-07-08  Eric Blake  <eblake@redhat.com>
6011
6012         fts: introduce FTS_NOATIME
6013         * lib/fts_.h (FTS_NOATIME): New bit flag.
6014         (FTS_OPTIONMASK): Adjust.
6015         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6016         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6017
6018 2011-07-08  Bruno Haible  <bruno@clisp.org>
6019
6020         Tests for module 'thread'.
6021         * modules/thread-tests: New file.
6022         * tests/test-thread_self.c: New file.
6023         * tests/test-thread_create.cc: New file.
6024
6025 2011-07-08  Bruno Haible  <bruno@clisp.org>
6026
6027         thread: Avoid gcc warnings when using gl_thread_self().
6028         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6029         'void *'.
6030         (gl_thread_self_pointer): Update.
6031
6032 2011-07-07  Bruno Haible  <bruno@clisp.org>
6033
6034         signal-c++-tests: Check declaration of pthread_sigmask.
6035         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6036         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6037         $(LIB_PTHREAD_SIGMASK).
6038
6039 2011-07-07  Bruno Haible  <bruno@clisp.org>
6040
6041         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6042         * lib/signal.in.h (pthread_sigmask): Override if
6043         REPLACE_PTHREAD_SIGMASK is 1.
6044         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6045         REPLACE_PTHREAD_SIGMASK.
6046         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6047         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6048         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6049         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6050         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6051
6052 2011-07-07  Bruno Haible  <bruno@clisp.org>
6053
6054         pthread_sigmask: Ensure declaration in <signal.h>.
6055         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6056         include <pthread.h>.
6057         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6058         problem.
6059
6060 2011-07-07  Bruno Haible  <bruno@clisp.org>
6061
6062         pthread_sigmask: Document the module.
6063         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6064
6065 2011-07-07  Bruno Haible  <bruno@clisp.org>
6066
6067         pthread_sigmask: Follow gnulib conventions.
6068         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6069         gl_PTHREAD_SIGMASK.
6070         * modules/pthread_sigmask (configure.ac): Update.
6071
6072 2011-07-07  Bruno Haible  <bruno@clisp.org>
6073
6074         pthread_sigmask: Make declaration C++ safe.
6075         * lib/signal.in.h: In two special conditions, just do an #include_next.
6076         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6077         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6078         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6079         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6080         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6081         not REPLACE_PTHREAD_MASK.
6082         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6083         not REPLACE_PTHREAD_MASK.
6084         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6085
6086 2011-07-07  Bruno Haible  <bruno@clisp.org>
6087
6088         pthread_sigmask: Fix return value.
6089         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6090         * lib/pthread_sigmask.c: New file.
6091         * modules/pthread_sigmask (Files): Add it.
6092         (configure.ac): Invoke AC_LIBOBJ.
6093
6094 2011-07-07  Eric Blake  <eblake@redhat.com>
6095
6096         getopt: more portable argv creation
6097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6098         const, use char arrays rather than strings.
6099         Suggested by Paul Eggert.
6100
6101 2011-07-07  Bruno Haible  <bruno@clisp.org>
6102
6103         Tests for module 'sigprocmask'.
6104         * modules/sigprocmask-tests: New file.
6105         * tests/test-sigprocmask.c: New file.
6106
6107 2011-07-07  Bruno Haible  <bruno@clisp.org>
6108
6109         float tests: Tweak.
6110         * tests/test-float.c (main): Tweak skip message.
6111
6112 2011-07-07  Eric Blake  <eblake@redhat.com>
6113
6114         getopt: avoid compiler warning during configure
6115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6116         assigning string literals to non-const pointer.
6117
6118         getopt-gnu: avoid crash in glibc getopt
6119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6120         * tests/test-getopt.h (test_getopt): Enhance test.
6121         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6122         * doc/posix-functions/getopt.texi (getopt): Document it.
6123         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6124         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6125         Likewise.
6126
6127 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6128
6129         getopt: handle W; without long options in getopt [BZ #12922]
6130         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6131         but no long options are defined, just return 'W'.
6132
6133 2011-07-07  Bruno Haible  <bruno@clisp.org>
6134
6135         Avoid literal tabs.
6136         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6137         variable containing a tab instead of a literal tab.
6138         Reported by Jim Meyering.
6139
6140 2011-07-07  Bruno Haible  <bruno@clisp.org>
6141
6142         Comments.
6143         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6144
6145 2011-07-06  Bruno Haible  <bruno@clisp.org>
6146
6147         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6148         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6149         <winsock2.h>.
6150         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6151         lib/sys_socket.in.h.
6152         (close, gethostname): Hide declarations from <winsock2.h>.
6153         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6154         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6155         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6156         (select): Don't override if gnulib's <sys/select.h> was already
6157         included.
6158         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6159         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6160         setsockopt, shutdown, select): Tweak indentation.
6161
6162 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6163
6164         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6165         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6166         in an application that does not use the sys_select module.
6167
6168 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6169
6170         poll: do not return 0 on timeout=-1
6171         * lib/poll.c: Loop with yield if no events occured
6172
6173 2011-07-06  Eric Blake  <eblake@redhat.com>
6174
6175         pthread_sigmask: always replace when not using pthread
6176         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6177         replacement when using some threading other than pthread.  Fix
6178         logic bug.
6179
6180 2011-07-06  Bruno Haible  <bruno@clisp.org>
6181
6182         Comments.
6183         * m4/printf.m4: Update comments about mingw.
6184
6185 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6186
6187         sys_select: define sigset_t more portably
6188         * lib/sys_select.in.h: Always include <sys/types.h>, since
6189         we now need sigset_t and mingw defines it there.
6190         Include <signal.h> before split inclusion guard, to avoid
6191         mishaps on Solaris, whose <signal.h> eventually includes us.
6192         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6193         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6194         which come from ...
6195         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6196         gl_CHECK_TYPE_SIGSET_T.
6197         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6198         does the real work.
6199         * modules/sys_select (Depends-on): Add 'signal'.
6200
6201         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6202         Suggested by Bruno Haible.
6203
6204         pselect: Use pthread_sigmask, not sigprocmask.
6205         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6206         multithreaded apps better than sigprocmask does.
6207         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6208         sigprocmask directly.
6209
6210 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6211
6212         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6213         Don't #undef,  since we don't need any underlying pselect.
6214         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6215         (Depends-on): Add select.
6216         (Link): Add $(LIBSOCKET).
6217         These changes suggested by Bruno Haible.
6218
6219         pselect: document better
6220         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6221         * doc/posix-functions/pselect.texi (pselect): Document new module.
6222
6223         pthread_sigmask: new module
6224         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6225         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6226         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6227         This is done only as a macro; I don't know how well that'll
6228         work for C++.  Move <sys/types.h> include before the include_next,
6229         to avoid mishap on Solaris.
6230         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6231         * modules/signal (Makefile.am): Substitute the check's results.
6232         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6233
6234         test-pselect: new module
6235         * modules/pselect-tests, tests/test-pselect.c: New files.
6236         * tests/test-select.c, tests/test-sys_select-c++.cc:
6237         If TEST_PSELECT is defined, test pselect instead of testing select.
6238
6239         * tests/test-sys_select.c (sigset_t): Test for it, too.
6240         Suggested by Bruno Haible.
6241
6242 2011-07-05  Eric Blake  <eblake@redhat.com>
6243
6244         snprintf: guarantee %1$d, for libintl
6245         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6246         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6247         * doc/posix-functions/snprintf.texi (snprintf): Update.
6248         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6249         * tests/test-snprintf.c (main): Enhance test.
6250         * tests/test-vsnprintf.c (main): Likewise.
6251
6252 2011-07-05  Jim Meyering  <meyering@redhat.com>
6253
6254         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6255         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6256         per Bruno's request, to accommodate this idiom (no space after "#")
6257         even when the function is inside an #if block:
6258         char *
6259         gets (char *s)
6260         #undef gets
6261         {
6262           ...
6263         }
6264
6265 2011-07-04  Jim Meyering  <meyering@redhat.com>
6266
6267         maint: indent with spaces, not TABs, and add a rule to check this
6268         * tests/test-userspec.c: Indent with spaces, not TABs.
6269         * tests/test-argp.c: Likewise.
6270         * tests/test-c-stack2.sh: Likewise.
6271         * tests/test-parse-duration.sh: Likewise
6272         * m4/strtod.m4: Likewise.
6273         * m4/alloca.m4: Likewise.
6274         * m4/pselect.m4: Likewise.
6275         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6276
6277 2011-07-03  Jim Meyering  <meyering@redhat.com>
6278
6279         maint.mk: correct omissions in prohibit_argmatch_without_use check
6280         This rule would mistakenly report that argmatch.h is included without
6281         use even when both the argmatch and invalid_arg macro were used.
6282         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6283         of argmatch and invalid_arg.
6284
6285 2011-07-03  Bruno Haible  <bruno@clisp.org>
6286
6287         Comments about EINTR.
6288         * lib/safe-read.h: Explain the purpose of this module.
6289         * lib/safe-write.h: Likewise.
6290         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6291         module.
6292         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6293         module.
6294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6295
6296 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6297
6298         xnanosleep: Rewrite to use new dtotimespec module.
6299         It has the conversion code that used to be in xnanosleep.
6300         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6301         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6302         (TIME_T_MAX): Remove.
6303         (xnanosleep): Rewrite in terms of dtotimespec.
6304         * modules/xnanosleep (Depends-on): Add dtotimespec.
6305         Remove intprops, stdbool.
6306
6307         timespec-add, timespec-sub: new modules
6308         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6309         * lib/timespec-add.c, lib/timespec-sub.c:
6310         * modules/timespec-add, modules/timespec-sub: New files.
6311
6312         dtotimespec: new module
6313         * lib/timespec.h (dtotimespec): New decl.
6314         * lib/dtotimespec.c, modules/dtotimespec: New files.
6315
6316         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6317
6318         pselect: new module
6319         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6320         (pselect): New decls.
6321         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6322         since the standard pselect decl uses 'restrict'.
6323         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6324         HAVE_PSELECT, REPLACE_PSELECT.
6325         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6326         HAVE_PSELECT, REPLACE_PSELECT.
6327         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6328
6329         sys_select: don't depend on sys_socket
6330         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6332         This fix works on GNU and GNU-like platforms, but has not been tested
6333         on native Windows.
6334         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6336         gl_HEADER_SYS_SOCKET.
6337         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6338         gl_PREREQ_SYS_H_WINSOCK2.
6339
6340 2011-06-29  Eric Blake  <eblake@redhat.com>
6341
6342         pipe2: fix C89 compile problem
6343         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6344         Reported by Bruno Haible.
6345
6346         pipe, pipe2: don't corrupt fd on error
6347         * lib/pipe.c (pipe): Leave fd unchanged on error.
6348         * lib/pipe2.c (pipe2): Likewise.
6349         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6350         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6351
6352 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6353
6354         mmap-anon: do not use regular expressions inadvertently
6355         * m4/mmap-anon.m4: Remove trailing period from strings sought
6356         in the output.
6357
6358 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6359
6360         nanosleep: fix integer overflow problem
6361         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6362         arithmetic wraps around on overflow.
6363
6364         nanosleep: simplify carrying
6365         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6366         first call to the underyling nanosleep, not for the last one.
6367         This doesn't fix any bugs, but it simplifies the computation of
6368         the remaining delay.  Found while auditing integer overflow issues.
6369
6370         dup2: remove test for existence of fcntl
6371         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6372         "#if HAVE_FCNTL", in the configure-time test program.
6373         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6374         and therefore speeds up "configure" a bit.  Found while
6375         adding the dup2 module to Emacs.
6376
6377 2011-06-24  Eric Blake  <eblake@redhat.com>
6378
6379         maint.mk: enhance useless header checks
6380         * top/maint.mk (_sc_header_without_use): Check both include
6381         styles.
6382         (sc_prohibit_assert_without_use)
6383         (sc_prohibit_close_stream_without_use)
6384         (sc_prohibit_getopt_without_use)
6385         (sc_prohibit_quotearg_without_use)
6386         (sc_prohibit_quote_without_use)
6387         (sc_prohibit_long_options_without_use)
6388         (sc_prohibit_inttostr_without_use)
6389         (sc_prohibit_ignore_value_without_use)
6390         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6391         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6392         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6393         (sc_prohibit_hash_pjw_without_use)
6394         (sc_prohibit_safe_read_without_use)
6395         (sc_prohibit_argmatch_without_use)
6396         (sc_prohibit_canonicalize_without_use)
6397         (sc_prohibit_root_dev_ino_without_use)
6398         (sc_prohibit_openat_without_use)
6399         (sc_prohibit_c_ctype_without_use)
6400         (sc_prohibit_signal_without_use)
6401         (sc_prohibit_stdio--_without_use)
6402         (sc_prohibit_stdio-safer_without_use)
6403         (sc_prohibit_strings_without_use)
6404         (sc_prohibit_intprops_without_use)
6405         (sc_prohibit_stddef_without_use)
6406         (sc_prohibit_xfreopen_without_use): Update clients.
6407
6408 2011-06-24  Jim Meyering  <meyering@redhat.com>
6409
6410         syntax-check: keep one maint.mk rule in sync with its header
6411         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6412         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6413         I prefer to avoid temporary files here, so use <(...), but that
6414         is not supported by /bin/sh, so...
6415         (SHELL): Define to /bin/bash.
6416
6417 2011-06-24  Eric Blake  <eblake@redhat.com>
6418
6419         maint.mk: update sc_prohibit_intprops_without_use
6420         * top/maint.mk (_intprops_names): Match recent changes.
6421
6422 2011-06-24  Bruno Haible  <bruno@clisp.org>
6423
6424         strerror-override: No-op tweak.
6425         * lib/strerror-override.h (strerror_override): Reorder conditions,
6426         for consistency with lib/strerror-override.c.
6427
6428 2011-06-23  Eric Blake  <eblake@redhat.com>
6429
6430         maint.mk: test further PATH_MAX issues
6431         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6432         (sc_prohibit_path_max_allocation): ...and also test alloca.
6433         Suggested by Jim Meyering.
6434
6435 2011-06-22  Eric Blake  <eblake@redhat.com>
6436
6437         maint.mk: add syntax-check to avoid char[PATH_MAX]
6438         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6439
6440         stat: be robust to PATH_MAX definition
6441         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6442         * modules/stat (Depends-on): Add verify.
6443
6444         link: work around IRIX bug
6445         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6446         * lib/link.c (rpl_link): Work around it.
6447         * tests/test-link.h (test_link): Enhance test.
6448         * doc/posix-functions/link.texi (link): Document the bug.
6449
6450         getopt: silence clang warning
6451         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6452         dereference.
6453         Reported by Gustavo Martin Domato.
6454
6455 2011-06-22  Jim Meyering  <meyering@redhat.com>
6456
6457         bootstrap: do not insert a blank line into each .gitignore file
6458         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6459
6460 2011-06-21  Eric Blake  <eblake@redhat.com>
6461
6462         perror: test for output mismatch
6463         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6464         perror on IRIX.
6465
6466         strerror_r: fix OpenBSD behavior on out-of-range
6467         * lib/strerror_r.c (strerror_r): Always use maximal string.
6468         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6469
6470         strerror_r: fix OpenBSD behavior on 0
6471         * lib/strerror-override.c (strerror_override): Also override 0
6472         when needed.
6473         * lib/strerror-override.h (strerror_override): Likewise.
6474         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6475         earlier.
6476         * lib/strerror_r.c (strerror_r): Likewise.
6477         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6478         behavior...
6479         (gl_FUNC_STRERROR_0): ...into new macro.
6480         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6481         is overridden.
6482         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6483         * modules/strerror-override (Files): Add strerror.m4.
6484         (configure.ac): Also provide override for 0 when needed.
6485         * doc/posix-functions/strerror.texi (strerror): Document this.
6486         * doc/posix-functions/perror.texi (perror): Likewise.
6487
6488         perror: adjust array size
6489         * modules/perror (Depends-on): Add strerror-override.
6490         * lib/perror.c (perror): Use it to avoid magic number.
6491
6492         strerror-override: reduce size
6493         * lib/strerror-override.c (strerror_override): Use fewer lines.
6494
6495 2011-06-20  Bruno Haible  <bruno@clisp.org>
6496
6497         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6498         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6499
6500 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6501
6502         alloca: port to compilers that can optimize like GCC 4.6.0
6503         * lib/alloca.c (find_stack_direction): New signature, taken from
6504         Autoconf git.  This works with GCC 4.6.0.  This code should never
6505         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6506         be used with other compilers that optimize as well as GCC 4.6.0 does.
6507         (alloca): Adjust to new signature.
6508         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6509         New macro, which patches Autoconf in a similar way.
6510
6511         c-stack: stop worrying about stack direction
6512         * lib/c-stack.c (find_stack_direction): Remove.
6513         (segv_handler): Don't worry about stack direction growth, as it's
6514         too much of a pain to configure this correctly, given how compilers
6515         are optimizing-away our stack-growth detection code.  Instead, assume
6516         that any access to just before or just after the stack is OK.
6517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6518         Don't require AC_FUNC_ALLOCA; no longer needed.
6519
6520 2011-06-20  Eric Blake  <eblake@redhat.com>
6521
6522         test-stat: don't allocate PATH_MAX bytes
6523         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6524         PATH_MAX-sized buffer.
6525         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6526         * modules/stat-tests (Depends-on): Likewise.
6527         * tests/test-fstatat.c (includes): Drop pathmax.h.
6528         * tests/test-stat.c (includes): Likewise.
6529         Reported by Bruno Haible.
6530
6531 2011-06-20  Bruno Haible  <bruno@clisp.org>
6532
6533         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6534         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6535         * lib/float.c: New file.
6536         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6537         REPLACE_FLOAT_LDBL.
6538         * modules/float (Files): Add lib/float.c.
6539         (configure.ac): Invoke AC_LIBOBJ.
6540         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6541
6542 2011-06-20  Bruno Haible  <bruno@clisp.org>
6543
6544         Tests for module 'float'.
6545         * modules/float-tests: New file.
6546         * tests/test-float.c: New file.
6547
6548 2011-06-19  Bruno Haible  <bruno@clisp.org>
6549
6550         isinf: Coding style.
6551         * lib/isinf.c: Use GNU coding style.
6552
6553 2011-06-19  Bruno Haible  <bruno@clisp.org>
6554
6555         linkat test: Avoid test failure on AIX 7.1.
6556         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6557         * tests/test-link.h (test_link): Likewise.
6558
6559 2011-06-19  Bruno Haible  <bruno@clisp.org>
6560
6561         pread test: Avoid test failure on OpenBSD 4.9.
6562         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6563
6564 2011-06-19  Bruno Haible  <bruno@clisp.org>
6565
6566         sprintf-posix: Fix test failure on AIX 7.1.
6567         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6568         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6569         on AIX.
6570         * doc/posix-functions/fprintf.texi: Likewise.
6571         * doc/posix-functions/printf.texi: Likewise.
6572         * doc/posix-functions/snprintf.texi: Likewise.
6573         * doc/posix-functions/sprintf.texi: Likewise.
6574         * doc/posix-functions/vdprintf.texi: Likewise.
6575         * doc/posix-functions/vfprintf.texi: Likewise.
6576         * doc/posix-functions/vprintf.texi: Likewise.
6577         * doc/posix-functions/vsnprintf.texi: Likewise.
6578         * doc/posix-functions/vsprintf.texi: Likewise.
6579
6580 2011-06-19  Bruno Haible  <bruno@clisp.org>
6581
6582         roundl-ieee: Fix test failure on AIX 7.1.
6583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6584         * doc/posix-functions/roundl.texi: Mention problem with negative
6585         arguments.
6586
6587 2011-06-19  Bruno Haible  <bruno@clisp.org>
6588
6589         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6590         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6591         * doc/posix-functions/round.texi: Mention problem with negative
6592         arguments.
6593         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6594
6595 2011-06-19  Bruno Haible  <bruno@clisp.org>
6596
6597         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6598         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6599         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6600         * doc/posix-functions/roundf.texi: Mention problem with negative
6601         arguments.
6602         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6603
6604 2011-06-19  Bruno Haible  <bruno@clisp.org>
6605
6606         ceilf-ieee: Work around bug on MacOS X 10.5.
6607         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6608
6609         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6610         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6611         IEEE compliant, avoid compiler optimizations.
6612         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6613         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6614         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6615         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6616         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6617         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6618         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6619         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6620         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6621         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6622
6623 2011-06-19  Bruno Haible  <bruno@clisp.org>
6624
6625         ceilf-ieee: Work around bug on AIX 7.1.
6626         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6627         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6628
6629 2011-06-19  Bruno Haible  <bruno@clisp.org>
6630
6631         ceil-ieee: Work around bug on AIX 7.1.
6632         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6633         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6634
6635 2011-06-18  Bruno Haible  <bruno@clisp.org>
6636
6637         fsync test: Avoid test failure on MacOS X and AIX.
6638         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6639         EINVAL.
6640
6641 2011-06-18  Bruno Haible  <bruno@clisp.org>
6642
6643         openat, fdopendir tests: Fix link errors.
6644         * modules/openat-tests (Depends-on): Add progname.
6645         * modules/fdopendir-tests (Depends-on): Likewise.
6646         * tests/test-fchownat.c: Include progname.h.
6647         (main): Call set_program_name.
6648         * tests/test-fstatat.c: Include progname.h.
6649         (main): Call set_program_name.
6650         * tests/test-mkdirat.c: Include progname.h.
6651         (main): Call set_program_name.
6652         * tests/test-openat.c: Include progname.h.
6653         (main): Call set_program_name.
6654         * tests/test-unlinkat.c: Include progname.h.
6655         (main): Call set_program_name.
6656         * tests/test-fdopendir.c: Include progname.h.
6657         (main): Call set_program_name.
6658
6659 2011-06-18  Bruno Haible  <bruno@clisp.org>
6660
6661         Doc update.
6662         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6663         HP-UX.
6664         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6665
6666 2011-06-18  Bruno Haible  <bruno@clisp.org>
6667
6668         getcwd tests: Avoid compilation error on HP-UX 11.31.
6669         * modules/getcwd-tests (Depends-on): Add pathmax.
6670         * tests/test-getcwd.c: Include pathmax.h.
6671
6672 2011-06-18  Bruno Haible  <bruno@clisp.org>
6673
6674         isfinite, isinf: Fix link error on AIX 6 and 7.
6675         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6676         needed, also test the macro with a 'float' argument.
6677         * m4/isinf.m4 (gl_ISINF): Likewise.
6678
6679 2011-06-18  Bruno Haible  <bruno@clisp.org>
6680
6681         getloadavg: Don't clobber LIBS. Regression from previous commit.
6682         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6683         AC_CHECK_LIB from here...
6684         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6685         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6686         gl_func_getloadavg_done.
6687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6688
6689 2011-06-18  Bruno Haible  <bruno@clisp.org>
6690
6691         clean-temp: Improve documentation.
6692         * lib/clean-temp.h: Explain better how to use this module.
6693         Reported by John Darrington <john@darrington.wattle.id.au>.
6694
6695 2011-06-17  Bruno Haible  <bruno@clisp.org>
6696
6697         pread, pwrite: Avoid cc warning on AIX.
6698         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6699         (pwrite): Likewise.
6700
6701 2011-06-17  Bruno Haible  <bruno@clisp.org>
6702
6703         spawn-pipe tests: Fix link error.
6704         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6706
6707 2011-06-17  Bruno Haible  <bruno@clisp.org>
6708
6709         Tests: Remove unnecessary dependency.
6710         * modules/canonicalize-tests (Depends-on): Remove progname.
6711         * modules/chown-tests (Depends-on): Likewise.
6712         * modules/dirname-tests (Depends-on): Likewise.
6713         * modules/fdopendir-tests (Depends-on): Likewise.
6714         * modules/fdutimensat-tests (Depends-on): Likewise.
6715         * modules/hash-tests (Depends-on): Likewise.
6716         * modules/lchown-tests (Depends-on): Likewise.
6717         * modules/linkat-tests (Depends-on): Likewise.
6718         * modules/renameat-tests (Depends-on): Likewise.
6719         * modules/spawn-pipe-tests (Depends-on): Likewise.
6720         * modules/utimensat-tests (Depends-on): Likewise.
6721
6722 2011-06-17  Bruno Haible  <bruno@clisp.org>
6723
6724         spawn-pipe tests: Fix link error.
6725         * tests/test-spawn-pipe-child.c: Undefine fflush.
6726
6727 2011-06-17  Bruno Haible  <bruno@clisp.org>
6728
6729         Fix tests link errors.
6730         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6731         * modules/chown-tests (Makefile.am): Don't link test-chown with
6732         LIBINTL.
6733         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6734         LIBINTL.
6735         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6736         LIBINTL.
6737         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6738         LIBINTL.
6739
6740 2011-06-16  Bruno Haible  <bruno@clisp.org>
6741
6742         crypto/gc-sha1: Fix recent regression.
6743         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6744         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6745
6746         crypto/gc-md5: Fix recent regression.
6747         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6748
6749         crypto/gc-md4: Fix recent regression.
6750         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6751         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6752
6753         crypto/gc-arctwo: Fix recent regression.
6754         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6755         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6756
6757         crypto/gc-rijndael: Fix recent regression.
6758         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6759         (configure.ac): Invoke AC_LIBOBJ here.
6760         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6762
6763         crypto/gc-hmac-sha1: Fix recent regression.
6764         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6765         (configure.ac): Invoke AC_LIBOBJ here.
6766         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6768
6769         crypto/gc-hmac-md5: Fix recent regression.
6770         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6771         (configure.ac): Invoke AC_LIBOBJ here.
6772         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6774
6775         crypto/gc-des: Fix recent regression.
6776         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6777         (configure.ac): Invoke AC_LIBOBJ here.
6778         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6779         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6780
6781         crypto/gc-arcfour: Fix recent regression.
6782         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6783         (configure.ac): Invoke AC_LIBOBJ here.
6784         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6786
6787 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6788
6789         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6790         After the 2011-05-21 change, this macro requires
6791         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6792         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6793
6794 2011-06-16  Bruno Haible  <bruno@clisp.org>
6795
6796         fprintftime: Move AC_LIBOBJ invocations to module description.
6797         * m4/fprintftime.m4: Remove file.
6798         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6799         (configure.ac): Remove gl_FPRINTFTIME call.
6800         (Makefile.am): Augment lib_SOURCES.
6801         Reported by Jim Meyering.
6802
6803 2011-06-16  Bruno Haible  <bruno@clisp.org>
6804
6805         tmpfile-safer: Finish 2011-05-23 commit.
6806         * m4/stdio-safer.m4: Really remove file.
6807         Reported by Jim Meyering.
6808
6809 2011-06-16  Bruno Haible  <bruno@clisp.org>
6810
6811         syntax-check: Fix typo.
6812         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6813         printf-posix.m4.
6814         Reported by Jim Meyering.
6815
6816 2011-06-13  Jim Meyering  <meyering@redhat.com>
6817
6818         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6819         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6820
6821 2011-05-23  Bruno Haible  <bruno@clisp.org>
6822
6823         yesno: Move AC_LIBOBJ invocations to module description.
6824         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6825         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6826
6827 2011-05-23  Bruno Haible  <bruno@clisp.org>
6828
6829         xstrtol: Move AC_LIBOBJ invocations to module description.
6830         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6831         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6832
6833 2011-05-23  Bruno Haible  <bruno@clisp.org>
6834
6835         xstrtold: Move AC_LIBOBJ invocations to module description.
6836         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6837         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6838
6839 2011-05-23  Bruno Haible  <bruno@clisp.org>
6840
6841         xstrtod: Move AC_LIBOBJ invocations to module description.
6842         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6843         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6844
6845 2011-05-23  Bruno Haible  <bruno@clisp.org>
6846
6847         xnanosleep: Move AC_LIBOBJ invocations to module description.
6848         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6849         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6850
6851 2011-05-23  Bruno Haible  <bruno@clisp.org>
6852
6853         xgetcwd: Move AC_LIBOBJ invocations to module description.
6854         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6855         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6856
6857 2011-05-23  Bruno Haible  <bruno@clisp.org>
6858
6859         xalloc: Move AC_LIBOBJ invocations to module description.
6860         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6861         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6862
6863 2011-05-23  Bruno Haible  <bruno@clisp.org>
6864
6865         write-any-file: Move AC_LIBOBJ invocations to module description.
6866         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6867         invocation.
6868         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6869
6870 2011-05-23  Bruno Haible  <bruno@clisp.org>
6871
6872         utimens: Move AC_LIBOBJ invocations to module description.
6873         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6874         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6875
6876 2011-05-23  Bruno Haible  <bruno@clisp.org>
6877
6878         utimecmp: Move AC_LIBOBJ invocations to module description.
6879         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6880         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6881
6882 2011-05-23  Bruno Haible  <bruno@clisp.org>
6883
6884         userspec: Move AC_LIBOBJ invocations to module description.
6885         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6886         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6887
6888 2011-05-23  Bruno Haible  <bruno@clisp.org>
6889
6890         unlinkdir: Move AC_LIBOBJ invocations to module description.
6891         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6892         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6893
6894 2011-05-23  Bruno Haible  <bruno@clisp.org>
6895
6896         unistd-safer: Move AC_LIBOBJ invocations to module description.
6897         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6898         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6899
6900 2011-05-23  Bruno Haible  <bruno@clisp.org>
6901
6902         tempname: Move AC_LIBOBJ invocations to module description.
6903         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6904         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6905
6906 2011-05-23  Bruno Haible  <bruno@clisp.org>
6907
6908         strftime: Move AC_LIBOBJ invocations to module description.
6909         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6910         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6911
6912 2011-05-23  Bruno Haible  <bruno@clisp.org>
6913
6914         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6915         * m4/stdlib-safer.m4: Remove file.
6916         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6917         (configure.ac): Remove gl_STDLIB_SAFER call.
6918         (Makefile.am): Augment lib_SOURCES.
6919
6920 2011-05-23  Bruno Haible  <bruno@clisp.org>
6921
6922         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6923         * m4/stdio-safer.m4: Remove file.
6924         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6925         (configure.ac): Remove gl_TMPFILE_SAFER call.
6926         (Makefile.am): Augment lib_SOURCES.
6927
6928 2011-05-23  Bruno Haible  <bruno@clisp.org>
6929
6930         popen-safer: Move AC_LIBOBJ invocations to module description.
6931         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6932         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6933         (configure.ac): Remove gl_POPEN_SAFER call.
6934         (Makefile.am): Augment lib_SOURCES.
6935
6936 2011-05-23  Bruno Haible  <bruno@clisp.org>
6937
6938         freopen-safer: Move AC_LIBOBJ invocations to module description.
6939         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6940         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6941         (configure.ac): Remove gl_FREOPEN_SAFER call.
6942         (Makefile.am): Augment lib_SOURCES.
6943
6944 2011-05-23  Bruno Haible  <bruno@clisp.org>
6945
6946         fopen-safer: Move AC_LIBOBJ invocations to module description.
6947         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6948         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6949         (configure.ac): Remove gl_FOPEN_SAFER call.
6950         (Makefile.am): Augment lib_SOURCES.
6951
6952 2011-05-23  Bruno Haible  <bruno@clisp.org>
6953
6954         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6955         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6956         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6957
6958 2011-05-23  Bruno Haible  <bruno@clisp.org>
6959
6960         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6961         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6962         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6963
6964 2011-05-23  Bruno Haible  <bruno@clisp.org>
6965
6966         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6967         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6968         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6969
6970 2011-05-23  Bruno Haible  <bruno@clisp.org>
6971
6972         settime: Move AC_LIBOBJ invocations to module description.
6973         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6974         * modules/settime (Makefile.am): Augment lib_SOURCES.
6975
6976 2011-05-23  Bruno Haible  <bruno@clisp.org>
6977
6978         savedir: Move AC_LIBOBJ invocations to module description.
6979         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6980         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6981
6982 2011-05-23  Bruno Haible  <bruno@clisp.org>
6983
6984         save-cwd: Move AC_LIBOBJ invocations to module description.
6985         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6986         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6987
6988 2011-05-23  Bruno Haible  <bruno@clisp.org>
6989
6990         same: Move AC_LIBOBJ invocations to module description.
6991         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6992         * modules/same (Makefile.am): Augment lib_SOURCES.
6993
6994 2011-05-23  Bruno Haible  <bruno@clisp.org>
6995
6996         safe-write: Move AC_LIBOBJ invocations to module description.
6997         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6998         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6999         instead of gl_SAFE_WRITE.
7000         (Makefile.am): Augment lib_SOURCES.
7001
7002 2011-05-23  Bruno Haible  <bruno@clisp.org>
7003
7004         safe-read: Move AC_LIBOBJ invocations to module description.
7005         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7006         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7007         of gl_SAFE_READ.
7008         (Makefile.am): Augment lib_SOURCES.
7009
7010 2011-05-23  Bruno Haible  <bruno@clisp.org>
7011
7012         safe-alloc: Move AC_LIBOBJ invocations to module description.
7013         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7014         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7015
7016 2011-05-23  Bruno Haible  <bruno@clisp.org>
7017
7018         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7019         * m4/rijndael.m4: Remove file.
7020         * modules/crypto/rijndael (Files): Remove it.
7021         (configure.ac): Remove gl_RIJNDAEL call.
7022         (Makefile.am): Augment lib_SOURCES.
7023
7024 2011-05-23  Bruno Haible  <bruno@clisp.org>
7025
7026         readtokens: Move AC_LIBOBJ invocations to module description.
7027         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7028         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7029
7030 2011-05-23  Bruno Haible  <bruno@clisp.org>
7031
7032         read-file: Move AC_LIBOBJ invocations to module description.
7033         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7034         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7035         of gl_FUNC_READ_FILE.
7036         (Makefile.am): Augment lib_SOURCES.
7037
7038 2011-05-23  Bruno Haible  <bruno@clisp.org>
7039
7040         quotearg: Move AC_LIBOBJ invocations to module description.
7041         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7042         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7043
7044 2011-05-23  Bruno Haible  <bruno@clisp.org>
7045
7046         quote: Move AC_LIBOBJ invocations to module description.
7047         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7048         * modules/quote (Makefile.am): Augment lib_SOURCES.
7049
7050 2011-05-23  Bruno Haible  <bruno@clisp.org>
7051
7052         posixver: Move AC_LIBOBJ invocations to module description.
7053         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7054         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7055
7056 2011-05-23  Bruno Haible  <bruno@clisp.org>
7057
7058         posixtm: Move AC_LIBOBJ invocations to module description.
7059         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7060         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         physmem: Move AC_LIBOBJ invocations to module description.
7065         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7066         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7067
7068 2011-05-23  Bruno Haible  <bruno@clisp.org>
7069
7070         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7071         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7072         invocation.
7073         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7074
7075 2011-05-23  Bruno Haible  <bruno@clisp.org>
7076
7077         mpsort: Move AC_LIBOBJ invocations to module description.
7078         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7079         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7080
7081 2011-05-23  Bruno Haible  <bruno@clisp.org>
7082
7083         modechange: Move AC_LIBOBJ invocations to module description.
7084         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7085         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7086
7087 2011-05-23  Bruno Haible  <bruno@clisp.org>
7088
7089         mkdir-p: Move AC_LIBOBJ invocations to module description.
7090         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7091         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7092
7093 2011-05-23  Bruno Haible  <bruno@clisp.org>
7094
7095         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7096         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7097         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7098
7099 2011-05-23  Bruno Haible  <bruno@clisp.org>
7100
7101         mgetgroups: Move AC_LIBOBJ invocations to module description.
7102         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7103         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7104
7105 2011-05-23  Bruno Haible  <bruno@clisp.org>
7106
7107         memxor: Move AC_LIBOBJ invocations to module description.
7108         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7109         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7110
7111 2011-05-23  Bruno Haible  <bruno@clisp.org>
7112
7113         memcoll: Move AC_LIBOBJ invocations to module description.
7114         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7115         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7116
7117 2011-05-23  Bruno Haible  <bruno@clisp.org>
7118
7119         memcasecmp: Move AC_LIBOBJ invocations to module description.
7120         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7121         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7122
7123 2011-05-23  Bruno Haible  <bruno@clisp.org>
7124
7125         crypto/md5: Move AC_LIBOBJ invocations to module description.
7126         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7127         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7128
7129 2011-05-23  Bruno Haible  <bruno@clisp.org>
7130
7131         crypto/md4: Move AC_LIBOBJ invocations to module description.
7132         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7133         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7134
7135 2011-05-23  Bruno Haible  <bruno@clisp.org>
7136
7137         crypto/md2: Move AC_LIBOBJ invocations to module description.
7138         * m4/md2.m4: Remove file.
7139         * modules/crypto/md2 (Files): Remove it.
7140         (configure.ac): Remove gl_MD2 call.
7141         (Makefile.am): Augment lib_SOURCES.
7142
7143 2011-05-23  Bruno Haible  <bruno@clisp.org>
7144
7145         long-options: Move AC_LIBOBJ invocations to module description.
7146         * m4/long-options.m4: Remove file.
7147         * modules/long-options (Files): Remove it.
7148         (configure.ac): Remove gl_LONG_OPTIONS call.
7149         (Makefile.am): Augment lib_SOURCES.
7150
7151 2011-05-23  Bruno Haible  <bruno@clisp.org>
7152
7153         i-ring: Move AC_LIBOBJ invocations to module description.
7154         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7155         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7156
7157 2011-05-23  Bruno Haible  <bruno@clisp.org>
7158
7159         idcache: Move AC_LIBOBJ invocations to module description.
7160         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7161         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7162
7163 2011-05-23  Bruno Haible  <bruno@clisp.org>
7164
7165         human: Move AC_LIBOBJ invocations to module description.
7166         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7167         * modules/human (Makefile.am): Augment lib_SOURCES.
7168
7169 2011-05-23  Bruno Haible  <bruno@clisp.org>
7170
7171         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7172         * m4/hmac-sha1.m4: Remove file.
7173         * modules/crypto/hmac-sha1 (Files): Remove it.
7174         (configure.ac): Remove gl_HMAC_SHA1 call.
7175         (Makefile.am): Augment lib_SOURCES.
7176
7177 2011-05-23  Bruno Haible  <bruno@clisp.org>
7178
7179         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7180         * m4/hmac-md5.m4: Remove file.
7181         * modules/crypto/hmac-md5 (Files): Remove it.
7182         (configure.ac): Remove gl_HMAC_MD5 call.
7183         (Makefile.am): Augment lib_SOURCES.
7184
7185 2011-05-23  Bruno Haible  <bruno@clisp.org>
7186
7187         hash: Move AC_LIBOBJ invocations to module description.
7188         * m4/hash.m4: Remove file.
7189         * modules/hash (Files): Remove it.
7190         (configure.ac): Remove gl_HASH call.
7191         (Makefile.am): Augment lib_SOURCES.
7192
7193 2011-05-23  Bruno Haible  <bruno@clisp.org>
7194
7195         hard-locale: Move AC_LIBOBJ invocations to module description.
7196         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7197         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7198
7199 2011-05-23  Bruno Haible  <bruno@clisp.org>
7200
7201         getugroups: Move AC_LIBOBJ invocations to module description.
7202         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7203         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7204
7205 2011-05-23  Bruno Haible  <bruno@clisp.org>
7206
7207         gettime: Move AC_LIBOBJ invocations to module description.
7208         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7209         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7210
7211 2011-05-23  Bruno Haible  <bruno@clisp.org>
7212
7213         getndelim2: Move AC_LIBOBJ invocations to module description.
7214         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7215         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7216
7217 2011-05-23  Bruno Haible  <bruno@clisp.org>
7218
7219         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7220         * m4/gc-pbkdf2-sha1.m4: Remove file.
7221         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7222         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7223         (Makefile.am): Augment lib_SOURCES.
7224
7225 2011-05-23  Bruno Haible  <bruno@clisp.org>
7226
7227         fts: Move AC_LIBOBJ invocations to module description.
7228         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7229         * modules/fts (configure.ac): ... to here.
7230
7231 2011-05-23  Bruno Haible  <bruno@clisp.org>
7232
7233         file-type: Move AC_LIBOBJ invocations to module description.
7234         * m4/file-type.m4: Remove file.
7235         * modules/file-type (Files): Remove it.
7236         (configure.ac): Remove gl_FILE_TYPE call.
7237         (Makefile.am): Augment lib_SOURCES.
7238
7239 2011-05-23  Bruno Haible  <bruno@clisp.org>
7240
7241         filenamecat*: Respect rules for use of AC_LIBOBJ.
7242         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7243         Remove AC_LIBOBJ invocation.
7244         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7245         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7246
7247 2011-05-23  Bruno Haible  <bruno@clisp.org>
7248
7249         filemode: Move AC_LIBOBJ invocations to module description.
7250         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7251         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7252
7253 2011-05-23  Bruno Haible  <bruno@clisp.org>
7254
7255         openat-safer: Move AC_LIBOBJ invocations to module description.
7256         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7257         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7258
7259 2011-05-23  Bruno Haible  <bruno@clisp.org>
7260
7261         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7262         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7263         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7264
7265 2011-05-23  Bruno Haible  <bruno@clisp.org>
7266
7267         exclude: Move AC_LIBOBJ invocations to module description.
7268         * m4/exclude.m4: Remove file.
7269         * modules/exclude (Files): Remove it.
7270         (configure.ac): Remove gl_EXCLUDE call.
7271         (Makefile.am): Augment lib_SOURCES.
7272
7273 2011-05-23  Bruno Haible  <bruno@clisp.org>
7274
7275         dirname*: Respect rules for use of AC_LIBOBJ.
7276         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7277         invocations.
7278         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7279         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7280
7281 2011-05-23  Bruno Haible  <bruno@clisp.org>
7282
7283         dirent-safer: Move AC_LIBOBJ invocations to module description.
7284         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7285         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7286
7287 2011-05-23  Bruno Haible  <bruno@clisp.org>
7288
7289         crypto/des: Move AC_LIBOBJ invocations to module description.
7290         * m4/des.m4: Remove file.
7291         * modules/crypto/des (Files): Remove it.
7292         (configure.ac): Remove gl_DES call.
7293         (Makefile.am): Augment lib_SOURCES.
7294
7295 2011-05-23  Bruno Haible  <bruno@clisp.org>
7296
7297         cycle-check: Move AC_LIBOBJ invocations to module description.
7298         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7299         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7300
7301 2011-05-23  Bruno Haible  <bruno@clisp.org>
7302
7303         c-strtold: Move AC_LIBOBJ invocations to module description.
7304         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7305         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7306
7307 2011-05-23  Bruno Haible  <bruno@clisp.org>
7308
7309         c-strtod: Move AC_LIBOBJ invocations to module description.
7310         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7311         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7312
7313 2011-05-23  Bruno Haible  <bruno@clisp.org>
7314
7315         crc: Move AC_LIBOBJ invocations to module description.
7316         * m4/crc.m4: Remove file.
7317         * modules/crc (Files): Remove it.
7318         (configure.ac): Remove gl_CRC call.
7319         (Makefile.am): Augment lib_SOURCES.
7320
7321 2011-05-23  Bruno Haible  <bruno@clisp.org>
7322
7323         close-stream: Move AC_LIBOBJ invocations to module description.
7324         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7325         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7326
7327 2011-05-23  Bruno Haible  <bruno@clisp.org>
7328
7329         closeout: Move AC_LIBOBJ invocations to module description.
7330         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7331         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7332
7333 2011-05-23  Bruno Haible  <bruno@clisp.org>
7334
7335         closein: Move AC_LIBOBJ invocations to module description.
7336         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7337         * modules/closein (Makefile.am): Augment lib_SOURCES.
7338
7339 2011-05-23  Bruno Haible  <bruno@clisp.org>
7340
7341         cloexec: Move AC_LIBOBJ invocations to module description.
7342         * m4/cloexec.m4: Remove file.
7343         * modules/cloexec (Files): Remove it.
7344         (configure.ac): Remove gl_CLOEXEC call.
7345         (Makefile.am): Augment lib_SOURCES.
7346
7347 2011-05-23  Bruno Haible  <bruno@clisp.org>
7348
7349         check-version: Move AC_LIBOBJ invocations to module description.
7350         * m4/check-version.m4: Remove file.
7351         * modules/check-version (Files): Remove it.
7352         (configure.ac): Remove gl_CHECK_VERSION call.
7353         (Makefile.am): Augment lib_SOURCES.
7354
7355 2011-05-23  Bruno Haible  <bruno@clisp.org>
7356
7357         chdir-safer: Move AC_LIBOBJ invocations to module description.
7358         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7359         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7360
7361 2011-05-23  Bruno Haible  <bruno@clisp.org>
7362
7363         canonicalize: Move AC_LIBOBJ invocations to module description.
7364         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7365         AC_LIBOBJ invocation.
7366         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7367
7368 2011-05-23  Bruno Haible  <bruno@clisp.org>
7369
7370         canon-host: Move AC_LIBOBJ invocations to module description.
7371         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7372         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7373         instead of gl_CANON_HOST.
7374         (Makefile.am): Augment lib_SOURCES.
7375
7376 2011-05-23  Bruno Haible  <bruno@clisp.org>
7377
7378         backupfile: Move AC_LIBOBJ invocations to module description.
7379         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7380         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7381
7382 2011-05-23  Bruno Haible  <bruno@clisp.org>
7383
7384         argmatch: Move AC_LIBOBJ invocations to module description.
7385         * m4/argmatch.m4: Remove file.
7386         * modules/argmatch (Files): Remove it.
7387         (configure.ac): Remove gl_ARGMATCH call.
7388         (Makefile.am): Augment lib_SOURCES.
7389
7390 2011-05-23  Bruno Haible  <bruno@clisp.org>
7391
7392         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7393         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7394         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7395
7396 2011-05-23  Bruno Haible  <bruno@clisp.org>
7397
7398         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7399         * m4/arcfour.m4: Remove file.
7400         * modules/crypto/arcfour (Files): Remove it.
7401         (configure.ac): Remove gl_ARCFOUR call.
7402         (Makefile.am): Augment lib_SOURCES.
7403
7404 2011-05-22  Bruno Haible  <bruno@clisp.org>
7405
7406         write: Move AC_LIBOBJ invocations to module description.
7407         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7408         * modules/write (configure.ac): ... to here.
7409
7410 2011-05-22  Bruno Haible  <bruno@clisp.org>
7411
7412         wmemset: Move AC_LIBOBJ invocations to module description.
7413         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7414         here...
7415         * modules/wmemset (configure.ac): ... to here.
7416
7417 2011-05-22  Bruno Haible  <bruno@clisp.org>
7418
7419         wmemmove: Move AC_LIBOBJ invocations to module description.
7420         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7421         here...
7422         * modules/wmemmove (configure.ac): ... to here.
7423
7424 2011-05-22  Bruno Haible  <bruno@clisp.org>
7425
7426         wmemcpy: Move AC_LIBOBJ invocations to module description.
7427         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7428         here...
7429         * modules/wmemcpy (configure.ac): ... to here.
7430
7431 2011-05-22  Bruno Haible  <bruno@clisp.org>
7432
7433         wmemcmp: Move AC_LIBOBJ invocations to module description.
7434         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7435         here...
7436         * modules/wmemcmp (configure.ac): ... to here.
7437
7438 2011-05-22  Bruno Haible  <bruno@clisp.org>
7439
7440         wmemchr: Move AC_LIBOBJ invocations to module description.
7441         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7442         here...
7443         * modules/wmemchr (configure.ac): ... to here.
7444
7445 2011-05-22  Bruno Haible  <bruno@clisp.org>
7446
7447         wcswidth: Move AC_LIBOBJ invocations to module description.
7448         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7449         here...
7450         * modules/wcswidth (configure.ac): ... to here.
7451
7452 2011-05-22  Bruno Haible  <bruno@clisp.org>
7453
7454         wcwidth: Respect rules for use of AC_LIBOBJ.
7455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7456         invocation from here...
7457         * modules/wcwidth (configure.ac): ... to here.
7458         (Depends-on): Update conditions.
7459
7460 2011-05-22  Bruno Haible  <bruno@clisp.org>
7461
7462         wctype: Move AC_LIBOBJ invocations to module description.
7463         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7464         invocation from here...
7465         * modules/wctype (configure.ac): ... to here.
7466         (Depends-on): Update conditions.
7467
7468 2011-05-22  Bruno Haible  <bruno@clisp.org>
7469
7470         wctrans: Move AC_LIBOBJ invocations to module description.
7471         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7472         invocation from here...
7473         * modules/wctrans (configure.ac): ... to here.
7474
7475 2011-05-22  Bruno Haible  <bruno@clisp.org>
7476
7477         wctomb: Move AC_LIBOBJ invocations to module description.
7478         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7479         invocations from here...
7480         * modules/wctomb (configure.ac): ... to here.
7481
7482 2011-05-22  Bruno Haible  <bruno@clisp.org>
7483
7484         wctob: Move AC_LIBOBJ invocations to module description.
7485         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7486         gl_PREREQ_WCTOB invocations from here...
7487         * modules/wctob (configure.ac): ... to here.
7488         (Depends-on): Update conditions.
7489
7490 2011-05-22  Bruno Haible  <bruno@clisp.org>
7491
7492         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7493         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7494         here...
7495         * modules/wcsxfrm (configure.ac): ... to here.
7496
7497 2011-05-22  Bruno Haible  <bruno@clisp.org>
7498
7499         wcstok: Move AC_LIBOBJ invocations to module description.
7500         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7501         * modules/wcstok (configure.ac): ... to here.
7502
7503 2011-05-22  Bruno Haible  <bruno@clisp.org>
7504
7505         wcsstr: Move AC_LIBOBJ invocations to module description.
7506         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7507         * modules/wcsstr (configure.ac): ... to here.
7508
7509 2011-05-22  Bruno Haible  <bruno@clisp.org>
7510
7511         wcsspn: Move AC_LIBOBJ invocations to module description.
7512         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7513         * modules/wcsspn (configure.ac): ... to here.
7514
7515 2011-05-22  Bruno Haible  <bruno@clisp.org>
7516
7517         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7518         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7519         gl_PREREQ_WCSRTOMBS invocations from here...
7520         * modules/wcsrtombs (configure.ac): ... to here.
7521
7522 2011-05-22  Bruno Haible  <bruno@clisp.org>
7523
7524         wcsrchr: Move AC_LIBOBJ invocations to module description.
7525         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7526         here...
7527         * modules/wcsrchr (configure.ac): ... to here.
7528
7529 2011-05-22  Bruno Haible  <bruno@clisp.org>
7530
7531         wcspbrk: Move AC_LIBOBJ invocations to module description.
7532         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7533         here...
7534         * modules/wcspbrk (configure.ac): ... to here.
7535
7536 2011-05-22  Bruno Haible  <bruno@clisp.org>
7537
7538         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7539         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7540         gl_PREREQ_WCSNRTOMBS invocations from here...
7541         * modules/wcsnrtombs (configure.ac): ... to here.
7542
7543 2011-05-22  Bruno Haible  <bruno@clisp.org>
7544
7545         wcsnlen: Move AC_LIBOBJ invocations to module description.
7546         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7547         here...
7548         * modules/wcsnlen (configure.ac): ... to here.
7549
7550 2011-05-22  Bruno Haible  <bruno@clisp.org>
7551
7552         wcsncpy: Move AC_LIBOBJ invocations to module description.
7553         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7554         here...
7555         * modules/wcsncpy (configure.ac): ... to here.
7556
7557 2011-05-22  Bruno Haible  <bruno@clisp.org>
7558
7559         wcsncmp: Move AC_LIBOBJ invocations to module description.
7560         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7561         here...
7562         * modules/wcsncmp (configure.ac): ... to here.
7563
7564 2011-05-22  Bruno Haible  <bruno@clisp.org>
7565
7566         wcsncat: Move AC_LIBOBJ invocations to module description.
7567         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7568         here...
7569         * modules/wcsncat (configure.ac): ... to here.
7570
7571 2011-05-22  Bruno Haible  <bruno@clisp.org>
7572
7573         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7574         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7575         from here...
7576         * modules/wcsncasecmp (configure.ac): ... to here.
7577
7578 2011-05-22  Bruno Haible  <bruno@clisp.org>
7579
7580         wcslen: Move AC_LIBOBJ invocations to module description.
7581         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7582         * modules/wcslen (configure.ac): ... to here.
7583
7584 2011-05-22  Bruno Haible  <bruno@clisp.org>
7585
7586         wcsdup: Move AC_LIBOBJ invocations to module description.
7587         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7588         * modules/wcsdup (configure.ac): ... to here.
7589
7590 2011-05-22  Bruno Haible  <bruno@clisp.org>
7591
7592         wcscspn: Move AC_LIBOBJ invocations to module description.
7593         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7594         here...
7595         * modules/wcscspn (configure.ac): ... to here.
7596
7597 2011-05-22  Bruno Haible  <bruno@clisp.org>
7598
7599         wcscpy: Move AC_LIBOBJ invocations to module description.
7600         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7601         * modules/wcscpy (configure.ac): ... to here.
7602
7603 2011-05-22  Bruno Haible  <bruno@clisp.org>
7604
7605         wcscoll: Move AC_LIBOBJ invocations to module description.
7606         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7607         here...
7608         * modules/wcscoll (configure.ac): ... to here.
7609
7610 2011-05-22  Bruno Haible  <bruno@clisp.org>
7611
7612         wcscmp: Move AC_LIBOBJ invocations to module description.
7613         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7614         * modules/wcscmp (configure.ac): ... to here.
7615
7616 2011-05-22  Bruno Haible  <bruno@clisp.org>
7617
7618         wcschr: Move AC_LIBOBJ invocations to module description.
7619         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7620         * modules/wcschr (configure.ac): ... to here.
7621
7622 2011-05-22  Bruno Haible  <bruno@clisp.org>
7623
7624         wcscat: Move AC_LIBOBJ invocations to module description.
7625         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7626         * modules/wcscat (configure.ac): ... to here.
7627
7628 2011-05-22  Bruno Haible  <bruno@clisp.org>
7629
7630         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7631         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7632         here...
7633         * modules/wcscasecmp (configure.ac): ... to here.
7634
7635 2011-05-22  Bruno Haible  <bruno@clisp.org>
7636
7637         wcrtomb: Move AC_LIBOBJ invocations to module description.
7638         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7639         invocations from here...
7640         * modules/wcrtomb (configure.ac): ... to here.
7641
7642 2011-05-22  Bruno Haible  <bruno@clisp.org>
7643
7644         wcpncpy: Move AC_LIBOBJ invocations to module description.
7645         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7646         here...
7647         * modules/wcpncpy (configure.ac): ... to here.
7648
7649 2011-05-22  Bruno Haible  <bruno@clisp.org>
7650
7651         wcpcpy: Move AC_LIBOBJ invocations to module description.
7652         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7653         * modules/wcpcpy (configure.ac): ... to here.
7654
7655 2011-05-22  Bruno Haible  <bruno@clisp.org>
7656
7657         waitpid: Move AC_LIBOBJ invocations to module description.
7658         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7659         invocation from here...
7660         * modules/waitpid (configure.ac): ... to here.
7661
7662 2011-05-22  Bruno Haible  <bruno@clisp.org>
7663
7664         utimensat: Move AC_LIBOBJ invocations to module description.
7665         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7666         here...
7667         * modules/utimensat (configure.ac): ... to here.
7668
7669 2011-05-22  Bruno Haible  <bruno@clisp.org>
7670
7671         usleep: Move AC_LIBOBJ invocations to module description.
7672         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7673         here...
7674         * modules/usleep (configure.ac): ... to here.
7675
7676 2011-05-22  Bruno Haible  <bruno@clisp.org>
7677
7678         unlockpt: Move AC_LIBOBJ invocations to module description.
7679         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7680         gl_PREREQ_UNLOCKPT invocations from here...
7681         * modules/unlockpt (configure.ac): ... to here.
7682
7683 2011-05-22  Bruno Haible  <bruno@clisp.org>
7684
7685         unlink: Respect rules for use of AC_LIBOBJ.
7686         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7687         * modules/unlink (configure.ac): ... to here.
7688
7689 2011-05-22  Bruno Haible  <bruno@clisp.org>
7690
7691         uname: Move AC_LIBOBJ invocations to module description.
7692         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7694         here...
7695         * modules/uname (configure.ac): ... to here.
7696
7697 2011-05-22  Bruno Haible  <bruno@clisp.org>
7698
7699         ttyname_r: Move AC_LIBOBJ invocations to module description.
7700         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7701         gl_PREREQ_TTYNAME_R invocations from here...
7702         * modules/ttyname_r (configure.ac): ... to here.
7703
7704 2011-05-22  Bruno Haible  <bruno@clisp.org>
7705
7706         tsearch: Move AC_LIBOBJ invocations to module description.
7707         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7708         invocations from here...
7709         * modules/tsearch (configure.ac): ... to here.
7710
7711 2011-05-22  Bruno Haible  <bruno@clisp.org>
7712
7713         towctrans: Move AC_LIBOBJ invocations to module description.
7714         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7715         AC_LIBOBJ invocation from here...
7716         * modules/towctrans (configure.ac): ... to here.
7717
7718 2011-05-22  Bruno Haible  <bruno@clisp.org>
7719
7720         tmpfile: Move AC_LIBOBJ invocations to module description.
7721         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7722         invocations from here...
7723         * modules/tmpfile (configure.ac): ... to here.
7724
7725 2011-05-22  Bruno Haible  <bruno@clisp.org>
7726
7727         times: Move AC_LIBOBJ invocations to module description.
7728         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7729         * modules/times (configure.ac): ... to here.
7730
7731 2011-05-22  Bruno Haible  <bruno@clisp.org>
7732
7733         time_r: Move AC_LIBOBJ invocations to module description.
7734         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7735         invocations from here...
7736         * modules/time_r (configure.ac): ... to here.
7737
7738 2011-05-22  Bruno Haible  <bruno@clisp.org>
7739
7740         timegm: Move AC_LIBOBJ invocations to module description.
7741         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7742         invocations from here...
7743         * modules/timegm (configure.ac): ... to here.
7744
7745 2011-05-22  Bruno Haible  <bruno@clisp.org>
7746
7747         tcgetsid: Move AC_LIBOBJ invocations to module description.
7748         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7749         and gl_PREREQ_TCGETSID invocations from here...
7750         * modules/tcgetsid (configure.ac): ... to here.
7751         (Depends-on): Update conditions.
7752
7753 2011-05-22  Bruno Haible  <bruno@clisp.org>
7754
7755         symlinkat: Move AC_LIBOBJ invocations to module description.
7756         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7757         here...
7758         * modules/symlinkat (configure.ac): ... to here.
7759
7760 2011-05-22  Bruno Haible  <bruno@clisp.org>
7761
7762         symlink: Move AC_LIBOBJ invocations to module description.
7763         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7764         here...
7765         * modules/symlink (configure.ac): ... to here.
7766
7767 2011-05-22  Bruno Haible  <bruno@clisp.org>
7768
7769         strverscmp: Move AC_LIBOBJ invocations to module description.
7770         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7771         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7772         from here...
7773         * modules/strverscmp (configure.ac): ... to here.
7774
7775 2011-05-22  Bruno Haible  <bruno@clisp.org>
7776
7777         strtok_r: Move AC_LIBOBJ invocations to module description.
7778         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7779         and gl_PREREQ_STRTOK_R invocations from here...
7780         * modules/strtok_r (configure.ac): ... to here.
7781         (Depends-on): Update conditions.
7782
7783 2011-05-22  Bruno Haible  <bruno@clisp.org>
7784
7785         strtoumax: Move AC_LIBOBJ invocations to module description.
7786         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7787         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7788         from here...
7789         * modules/strtoumax (configure.ac): ... to here.
7790
7791 2011-05-22  Bruno Haible  <bruno@clisp.org>
7792
7793         strtoimax: Move AC_LIBOBJ invocations to module description.
7794         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7796         from here...
7797         * modules/strtoimax (configure.ac): ... to here.
7798
7799 2011-05-22  Bruno Haible  <bruno@clisp.org>
7800
7801         strtoull: Move AC_LIBOBJ invocations to module description.
7802         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7804         from here...
7805         * modules/strtoull (configure.ac): ... to here.
7806
7807 2011-05-22  Bruno Haible  <bruno@clisp.org>
7808
7809         strtoll: Move AC_LIBOBJ invocations to module description.
7810         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7811         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7812         here...
7813         * modules/strtoll (configure.ac): ... to here.
7814
7815 2011-05-22  Bruno Haible  <bruno@clisp.org>
7816
7817         strtoul: Move AC_LIBOBJ invocations to module description.
7818         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7819         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7820         * modules/strtoul (configure.ac): ... to here.
7821
7822 2011-05-22  Bruno Haible  <bruno@clisp.org>
7823
7824         strtol: Move AC_LIBOBJ invocations to module description.
7825         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7826         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7827         * modules/strtol (configure.ac): ... to here.
7828
7829 2011-05-22  Bruno Haible  <bruno@clisp.org>
7830
7831         strtod: Move AC_LIBOBJ invocations to module description.
7832         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7833         invocations from here...
7834         * modules/strtod (configure.ac): ... to here.
7835
7836 2011-05-22  Bruno Haible  <bruno@clisp.org>
7837
7838         strstr*: Move AC_LIBOBJ invocations to module description.
7839         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7840         invocations from here...
7841         * modules/strstr-simple (configure.ac): ... to here.
7842         * modules/strstr (configure.ac): ... and here.
7843
7844 2011-05-22  Bruno Haible  <bruno@clisp.org>
7845
7846         strsignal: Move AC_LIBOBJ invocations to module description.
7847         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7848         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7849         * modules/strsignal (configure.ac): ... to here.
7850         (Depends-on): Update conditions.
7851
7852 2011-05-22  Bruno Haible  <bruno@clisp.org>
7853
7854         strsep: Move AC_LIBOBJ invocations to module description.
7855         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7856         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7857         here...
7858         * modules/strsep (configure.ac): ... to here.
7859
7860 2011-05-22  Bruno Haible  <bruno@clisp.org>
7861
7862         strptime: Move AC_LIBOBJ invocations to module description.
7863         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7864         gl_PREREQ_STRPTIME invocations from here...
7865         * modules/strptime (configure.ac): ... to here.
7866
7867 2011-05-22  Bruno Haible  <bruno@clisp.org>
7868
7869         strpbrk: Move AC_LIBOBJ invocations to module description.
7870         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7872         here...
7873         * modules/strpbrk (configure.ac): ... to here.
7874
7875 2011-05-22  Bruno Haible  <bruno@clisp.org>
7876
7877         strnlen: Move AC_LIBOBJ invocations to module description.
7878         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7879         invocations from here...
7880         * modules/strnlen (configure.ac): ... to here.
7881
7882 2011-05-22  Bruno Haible  <bruno@clisp.org>
7883
7884         strndup: Move AC_LIBOBJ invocations to module description.
7885         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7886         invocations from here...
7887         * modules/strndup (configure.ac): ... to here.
7888         (Depends-on): Update conditions.
7889
7890 2011-05-22  Bruno Haible  <bruno@clisp.org>
7891
7892         strncat: Move AC_LIBOBJ invocations to module description.
7893         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7894         invocations from here...
7895         * modules/strncat (configure.ac): ... to here.
7896
7897 2011-05-22  Bruno Haible  <bruno@clisp.org>
7898
7899         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7900         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7901         invocations from here...
7902         * modules/strdup (configure.ac): ... to here.
7903         * modules/strdup-posix (configure.ac): ... and here.
7904
7905 2011-05-22  Bruno Haible  <bruno@clisp.org>
7906
7907         strcspn: Move AC_LIBOBJ invocations to module description.
7908         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7910         here...
7911         * modules/strcspn (configure.ac): ... to here.
7912
7913 2011-05-22  Bruno Haible  <bruno@clisp.org>
7914
7915         strchrnul: Move AC_LIBOBJ invocations to module description.
7916         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7917         gl_PREREQ_STRCHRNUL invocations from here...
7918         * modules/strchrnul (configure.ac): ... to here.
7919
7920 2011-05-22  Bruno Haible  <bruno@clisp.org>
7921
7922         strcasestr*: Move AC_LIBOBJ invocations to module description.
7923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7924         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7925         * modules/strcasestr-simple (configure.ac): ... to here.
7926         * modules/strcasestr (configure.ac): ... and here.
7927
7928 2011-05-22  Bruno Haible  <bruno@clisp.org>
7929
7930         strcase: Move AC_LIBOBJ invocations to module description.
7931         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7932         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7933         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7934         gl_PREREQ_STRNCASECMP invocations from here...
7935         * modules/strcase (configure.ac): ... to here.
7936
7937 2011-05-22  Bruno Haible  <bruno@clisp.org>
7938
7939         stpncpy: Move AC_LIBOBJ invocations to module description.
7940         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7941         here...
7942         * modules/stpncpy (configure.ac): ... to here.
7943
7944 2011-05-22  Bruno Haible  <bruno@clisp.org>
7945
7946         stpcpy: Move AC_LIBOBJ invocations to module description.
7947         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7949         here...
7950         * modules/stpcpy (configure.ac): ... to here.
7951
7952 2011-05-21  Bruno Haible  <bruno@clisp.org>
7953
7954         stat: Move AC_LIBOBJ invocations to module description.
7955         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7956         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7957         here...
7958         * modules/stat (configure.ac): ... to here.
7959
7960 2011-05-21  Bruno Haible  <bruno@clisp.org>
7961
7962         sleep: Move AC_LIBOBJ invocations to module description.
7963         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7964         * modules/sleep (configure.ac): ... to here.
7965
7966 2011-05-21  Bruno Haible  <bruno@clisp.org>
7967
7968         signbit: Move AC_LIBOBJ invocations to module description.
7969         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7970         * modules/signbit (configure.ac): ... to here.
7971
7972 2011-05-21  Bruno Haible  <bruno@clisp.org>
7973
7974         sigprocmask: Move AC_LIBOBJ invocations to module description.
7975         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7976         gl_PREREQ_SIGPROMASK invocations from here...
7977         * modules/sigprocmask (configure.ac): ... to here.
7978
7979 2011-05-21  Bruno Haible  <bruno@clisp.org>
7980
7981         sigaction: Move AC_LIBOBJ invocations to module description.
7982         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7983         gl_PREREQ_SIGACTION invocations from here...
7984         * modules/sigaction (configure.ac): ... to here.
7985
7986 2011-05-21  Bruno Haible  <bruno@clisp.org>
7987
7988         sig2str: Move AC_LIBOBJ invocations to module description.
7989         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7991         here...
7992         * modules/sig2str (configure.ac): ... to here.
7993
7994 2011-05-21  Bruno Haible  <bruno@clisp.org>
7995
7996         setlocale: Move AC_LIBOBJ invocations to module description.
7997         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7998         gl_PREREQ_SETLOCALE invocations from here...
7999         * modules/setlocale (configure.ac): ... to here.
8000
8001 2011-05-21  Bruno Haible  <bruno@clisp.org>
8002
8003         unsetenv: Move AC_LIBOBJ invocations to module description.
8004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8005         and gl_PREREQ_UNSETENV invocations from here...
8006         * modules/unsetenv (configure.ac): ... to here.
8007         (Depends-on): Update.
8008
8009 2011-05-21  Bruno Haible  <bruno@clisp.org>
8010
8011         setenv: Move AC_LIBOBJ invocations to module description.
8012         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8013         here...
8014         * modules/setenv (configure.ac): ... to here.
8015
8016 2011-05-21  Bruno Haible  <bruno@clisp.org>
8017
8018         selinux-h: Move AC_LIBOBJ invocations to module description.
8019         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8020         AC_LIBOBJ invocation from here...
8021         * modules/selinux-h (configure.ac): ... to here.
8022
8023 2011-05-21  Bruno Haible  <bruno@clisp.org>
8024
8025         select: Respect rules for use of AC_LIBOBJ.
8026         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8027         here...
8028         * modules/select (configure.ac): ... to here.
8029
8030 2011-05-21  Bruno Haible  <bruno@clisp.org>
8031
8032         scandir: Move AC_LIBOBJ invocations to module description.
8033         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8034         invocations from here...
8035         * modules/scandir (configure.ac): ... to here.
8036
8037 2011-05-21  Bruno Haible  <bruno@clisp.org>
8038
8039         rpmatch: Move AC_LIBOBJ invocations to module description.
8040         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8042         here...
8043         * modules/rpmatch (configure.ac): ... to here.
8044
8045 2011-05-21  Bruno Haible  <bruno@clisp.org>
8046
8047         rmdir: Respect rules for use of AC_LIBOBJ.
8048         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8049         * modules/rmdir (configure.ac): ... to here.
8050
8051 2011-05-21  Bruno Haible  <bruno@clisp.org>
8052
8053         renameat: Move AC_LIBOBJ invocations to module description.
8054         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8055         here...
8056         * modules/renameat (configure.ac): ... to here.
8057
8058 2011-05-21  Bruno Haible  <bruno@clisp.org>
8059
8060         rename: Respect rules for use of AC_LIBOBJ.
8061         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8062         here...
8063         * modules/rename (configure.ac): ... to here.
8064
8065 2011-05-21  Bruno Haible  <bruno@clisp.org>
8066
8067         remove: Move AC_LIBOBJ invocations to module description.
8068         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8069         here...
8070         * modules/remove (configure.ac): ... to here.
8071
8072 2011-05-21  Bruno Haible  <bruno@clisp.org>
8073
8074         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8075         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8076         macro.
8077         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8078         * modules/relocatable-lib (configure.ac): ... to here.
8079         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8080         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8081
8082 2011-05-21  Bruno Haible  <bruno@clisp.org>
8083
8084         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8085         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8086         here...
8087         * modules/relocatable-prog (configure.ac): ... to here.
8088
8089 2011-05-21  Bruno Haible  <bruno@clisp.org>
8090
8091         regex: Move AC_LIBOBJ invocations to module description.
8092         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8093         invocations from here...
8094         * modules/regex (configure.ac): ... to here.
8095
8096 2011-05-21  Bruno Haible  <bruno@clisp.org>
8097
8098         realloc-*: Move AC_LIBOBJ invocations to module description.
8099         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8100         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8101         AC_LIBOBJ invocations from here...
8102         * modules/realloc-gnu (configure.ac): ... to here.
8103         * modules/realloc-posix (configure.ac): ... and here.
8104
8105 2011-05-21  Bruno Haible  <bruno@clisp.org>
8106
8107         readutmp: Move AC_LIBOBJ invocations to module description.
8108         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8109         * modules/readutmp (configure.ac): ... to here.
8110
8111 2011-05-21  Bruno Haible  <bruno@clisp.org>
8112
8113         readlinkat: Move AC_LIBOBJ invocations to module description.
8114         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8115         here...
8116         * modules/readlinkat (configure.ac): ... to here.
8117
8118 2011-05-21  Bruno Haible  <bruno@clisp.org>
8119
8120         readlink: Move AC_LIBOBJ invocations to module description.
8121         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8122         gl_PREREQ_READLINK invocations from here...
8123         * modules/readlink (configure.ac): ... to here.
8124
8125 2011-05-21  Bruno Haible  <bruno@clisp.org>
8126
8127         readline: Move AC_LIBOBJ invocations to module description.
8128         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8129         gl_PREREQ_READLINE invocations from here...
8130         * modules/readline (configure.ac): ... to here.
8131
8132 2011-05-21  Bruno Haible  <bruno@clisp.org>
8133
8134         read: Move AC_LIBOBJ invocations to module description.
8135         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8136         * modules/read (configure.ac): ... to here.
8137
8138 2011-05-21  Bruno Haible  <bruno@clisp.org>
8139
8140         rawmemchr: Move AC_LIBOBJ invocations to module description.
8141         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8143         from here...
8144         * modules/rawmemchr (configure.ac): ... to here.
8145
8146 2011-05-21  Bruno Haible  <bruno@clisp.org>
8147
8148         random_r: Move AC_LIBOBJ invocations to module description.
8149         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8150         gl_PREREQ_RANDOM_R invocations from here...
8151         * modules/random_r (configure.ac): ... to here.
8152
8153 2011-05-21  Bruno Haible  <bruno@clisp.org>
8154
8155         pwrite: Move AC_LIBOBJ invocations to module description.
8156         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8157         * modules/pwrite (configure.ac): ... to here.
8158
8159 2011-05-21  Bruno Haible  <bruno@clisp.org>
8160
8161         putenv: Move AC_LIBOBJ invocations to module description.
8162         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8163         * modules/putenv (configure.ac): ... to here.
8164
8165 2011-05-21  Bruno Haible  <bruno@clisp.org>
8166
8167         login_tty: Move AC_LIBOBJ invocations to module description.
8168         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8169         * modules/login_tty (configure.ac): ... to here.
8170
8171 2011-05-21  Bruno Haible  <bruno@clisp.org>
8172
8173         openpty: Move AC_LIBOBJ invocations to module description.
8174         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8175         * modules/openpty (configure.ac): ... to here.
8176
8177 2011-05-21  Bruno Haible  <bruno@clisp.org>
8178
8179         forkpty: Move AC_LIBOBJ invocations to module description.
8180         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8181         * modules/forkpty (configure.ac): ... to here.
8182
8183 2011-05-21  Bruno Haible  <bruno@clisp.org>
8184
8185         ptsname: Move AC_LIBOBJ invocations to module description.
8186         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8187         invocations from here...
8188         * modules/ptsname (configure.ac): ... to here.
8189
8190 2011-05-21  Bruno Haible  <bruno@clisp.org>
8191
8192         pread: Move AC_LIBOBJ invocations to module description.
8193         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8194         * modules/pread (configure.ac): ... to here.
8195
8196 2011-05-21  Bruno Haible  <bruno@clisp.org>
8197
8198         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8199         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8200         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8201         * modules/posix_spawn (configure.ac): ... to here.
8202         * modules/posix_spawnp (configure.ac): ... and here.
8203
8204 2011-05-21  Bruno Haible  <bruno@clisp.org>
8205
8206         popen: Move AC_LIBOBJ invocations to module description.
8207         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8208         invocations from here...
8209         * modules/popen (configure.ac): ... to here.
8210
8211 2011-05-21  Bruno Haible  <bruno@clisp.org>
8212
8213         poll: Move AC_LIBOBJ invocations to module description.
8214         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8215         invocations from here...
8216         * modules/poll (configure.ac): ... to here.
8217
8218 2011-05-21  Bruno Haible  <bruno@clisp.org>
8219
8220         pipe-posix: Move AC_LIBOBJ invocations to module description.
8221         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8222         * modules/pipe-posix (configure.ac): ... to here.
8223
8224 2011-05-21  Bruno Haible  <bruno@clisp.org>
8225
8226         openat: Respect rules for use of AC_LIBOBJ.
8227         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8228         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8229         * modules/openat (configure.ac): ... to here.
8230
8231 2011-05-21  Bruno Haible  <bruno@clisp.org>
8232
8233         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8234         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8235         invocation from here...
8236         * modules/obstack-printf (configure.ac): ... to here.
8237         * modules/obstack-printf-posix (configure.ac): ... and here.
8238
8239 2011-05-21  Bruno Haible  <bruno@clisp.org>
8240
8241         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8242         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8243         from here...
8244         * modules/nl_langinfo (configure.ac): ... to here.
8245
8246 2011-05-21  Bruno Haible  <bruno@clisp.org>
8247
8248         nanosleep: Move AC_LIBOBJ invocations to module description.
8249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8250         gl_PREREQ_NANOSLEEP invocations from here...
8251         * modules/nanosleep (configure.ac): ... to here.
8252
8253 2011-05-21  Bruno Haible  <bruno@clisp.org>
8254
8255         mountlist: Move AC_LIBOBJ invocations to module description.
8256         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8257         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8258         * modules/mountlist (configure.ac): ... to here.
8259
8260 2011-05-21  Bruno Haible  <bruno@clisp.org>
8261
8262         mktime: Respect rules for use of AC_LIBOBJ.
8263         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8264         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8265         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8266         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8267         * modules/mktime (configure.ac): ... to here.
8268         * modules/mktime-internal (configure.ac): ... and here.
8269         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8270
8271 2011-05-21  Bruno Haible  <bruno@clisp.org>
8272
8273         mkstemps: Move AC_LIBOBJ invocations to module description.
8274         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8275         here...
8276         * modules/mkstemps (configure.ac): ... to here.
8277
8278 2011-05-21  Bruno Haible  <bruno@clisp.org>
8279
8280         mkstemp: Move AC_LIBOBJ invocations to module description.
8281         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8282         gl_PREREQ_MKSTEMP invocations from here...
8283         * modules/mkstemp (configure.ac): ... to here.
8284
8285 2011-05-21  Bruno Haible  <bruno@clisp.org>
8286
8287         mkostemps: Move AC_LIBOBJ invocations to module description.
8288         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8289         here...
8290         * modules/mkostemps (configure.ac): ... to here.
8291
8292 2011-05-21  Bruno Haible  <bruno@clisp.org>
8293
8294         mkostemp: Move AC_LIBOBJ invocations to module description.
8295         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8296         gl_PREREQ_MKOSTEMP invocations from here...
8297         * modules/mkostemp (configure.ac): ... to here.
8298
8299 2011-05-21  Bruno Haible  <bruno@clisp.org>
8300
8301         mknod: Move AC_LIBOBJ invocations to module description.
8302         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8303         * modules/mknod (configure.ac): ... to here.
8304
8305 2011-05-21  Bruno Haible  <bruno@clisp.org>
8306
8307         mkfifoat: Move AC_LIBOBJ invocations to module description.
8308         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8309         here...
8310         * modules/mkfifoat (configure.ac): ... to here.
8311
8312 2011-05-21  Bruno Haible  <bruno@clisp.org>
8313
8314         mkfifo: Respect rules for use of AC_LIBOBJ.
8315         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8316         here...
8317         * modules/mkfifo (configure.ac): ... to here.
8318
8319 2011-05-21  Bruno Haible  <bruno@clisp.org>
8320
8321         mkdtemp: Move AC_LIBOBJ invocations to module description.
8322         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8323         invocations from here...
8324         * modules/mkdtemp (configure.ac): ... to here.
8325
8326 2011-05-21  Bruno Haible  <bruno@clisp.org>
8327
8328         mkdir: Move AC_LIBOBJ invocations to module description.
8329         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8330         * modules/mkdir (configure.ac): ... to here.
8331
8332 2011-05-21  Bruno Haible  <bruno@clisp.org>
8333
8334         memset: Move AC_LIBOBJ invocations to module description.
8335         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8337         here...
8338         * modules/memset (configure.ac): ... to here.
8339
8340 2011-05-21  Bruno Haible  <bruno@clisp.org>
8341
8342         memrchr: Move AC_LIBOBJ invocations to module description.
8343         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8345         here...
8346         * modules/memrchr (configure.ac): ... to here.
8347
8348 2011-05-21  Bruno Haible  <bruno@clisp.org>
8349
8350         mempcpy: Move AC_LIBOBJ invocations to module description.
8351         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8353         here...
8354         * modules/mempcpy (configure.ac): ... to here.
8355
8356 2011-05-21  Bruno Haible  <bruno@clisp.org>
8357
8358         memmove: Move AC_LIBOBJ invocations to module description.
8359         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8361         here...
8362         * modules/memmove (configure.ac): ... to here.
8363
8364 2011-05-21  Bruno Haible  <bruno@clisp.org>
8365
8366         memmem*: Move AC_LIBOBJ invocations to module description.
8367         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8368         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8369         here...
8370         (gl_FUNC_MEMMEM): ... and here...
8371         * modules/memmem-simple (configure.ac): ... to here.
8372         * modules/memmem (configure.ac): ... and here.
8373
8374 2011-05-21  Bruno Haible  <bruno@clisp.org>
8375
8376         memcpy: Move AC_LIBOBJ invocations to module description.
8377         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8379         here...
8380         * modules/memcpy (configure.ac): ... to here.
8381
8382 2011-05-21  Bruno Haible  <bruno@clisp.org>
8383
8384         memcmp: Simplify autoconf macro.
8385         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8386         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8387         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8388
8389 2011-05-21  Bruno Haible  <bruno@clisp.org>
8390
8391         memcmp: Move AC_LIBOBJ invocations to module description.
8392         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8393         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8394         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8395         * modules/memcmp (configure.ac): ... to here.
8396         (Depends-on): Update conditions.
8397
8398 2011-05-21  Bruno Haible  <bruno@clisp.org>
8399
8400         memchr: Respect rules for use of AC_LIBOBJ.
8401         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8402         invocations from here...
8403         * modules/memchr (configure.ac): ... to here.
8404
8405 2011-05-21  Bruno Haible  <bruno@clisp.org>
8406
8407         mbtowc: Move AC_LIBOBJ invocations to module description.
8408         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8409         invocations from here...
8410         * modules/mbtowc (configure.ac): ... to here.
8411
8412 2011-05-21  Bruno Haible  <bruno@clisp.org>
8413
8414         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8415         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8416         gl_PREREQ_MBSRTOWCS invocations from here...
8417         * modules/mbsrtowcs (configure.ac): ... to here.
8418
8419 2011-05-21  Bruno Haible  <bruno@clisp.org>
8420
8421         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8422         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8423         gl_PREREQ_MBSNRTOWCS invocations from here...
8424         * modules/mbsnrtowcs (configure.ac): ... to here.
8425
8426 2011-05-21  Bruno Haible  <bruno@clisp.org>
8427
8428         mbsinit: Move AC_LIBOBJ invocations to module description.
8429         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8430         invocations from here...
8431         * modules/mbsinit (configure.ac): ... to here.
8432
8433 2011-05-21  Bruno Haible  <bruno@clisp.org>
8434
8435         mbrlen: Move AC_LIBOBJ invocations to module description.
8436         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8437         invocations from here...
8438         * modules/mbrlen (configure.ac): ... to here.
8439
8440 2011-05-21  Bruno Haible  <bruno@clisp.org>
8441
8442         mbrtowc: Respect rules for use of AC_LIBOBJ.
8443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8444         invocations from here...
8445         * modules/mbrtowc (configure.ac): ... to here.
8446
8447 2011-05-21  Bruno Haible  <bruno@clisp.org>
8448
8449         malloc-*: Move AC_LIBOBJ invocations to module description.
8450         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8451         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8452         AC_LIBOBJ invocations from here...
8453         * modules/malloc-gnu (configure.ac): ... to here.
8454         * modules/malloc-posix (configure.ac): ... and here.
8455
8456 2011-05-21  Bruno Haible  <bruno@clisp.org>
8457
8458         lstat, openat: Respect rules for use of AC_LIBOBJ.
8459         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8460         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8461         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8462         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8463         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8464         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8465         here.
8466         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8467
8468 2011-05-21  Bruno Haible  <bruno@clisp.org>
8469
8470         lseek: Move AC_LIBOBJ invocations to module description.
8471         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8472         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8473         * modules/lseek (configure.ac): ... to here.
8474
8475 2011-05-21  Bruno Haible  <bruno@clisp.org>
8476
8477         linkat: Move AC_LIBOBJ invocations to module description.
8478         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8479         here...
8480         * modules/linkat (configure.ac): ... to here.
8481
8482 2011-05-21  Bruno Haible  <bruno@clisp.org>
8483
8484         link: Respect rules for use of AC_LIBOBJ.
8485         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8486         * modules/link (configure.ac): ... to here.
8487
8488 2011-05-21  Bruno Haible  <bruno@clisp.org>
8489
8490         lchown: Move AC_LIBOBJ invocations to module description.
8491         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8492         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8493         * modules/lchown (configure.ac): ... to here.
8494
8495 2011-05-21  Bruno Haible  <bruno@clisp.org>
8496
8497         iswctype: Move AC_LIBOBJ invocations to module description.
8498         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8499         here...
8500         * modules/iswctype (configure.ac): ... to here.
8501
8502 2011-05-21  Bruno Haible  <bruno@clisp.org>
8503
8504         iswblank: Move AC_LIBOBJ invocations to module description.
8505         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8506         here...
8507         * modules/iswblank (configure.ac): ... to here.
8508
8509 2011-05-21  Bruno Haible  <bruno@clisp.org>
8510
8511         atanl: Move AC_LIBOBJ invocations to module description.
8512         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8513         * modules/atanl (configure.ac): ... to here.
8514
8515 2011-05-21  Bruno Haible  <bruno@clisp.org>
8516
8517         acosl: Move AC_LIBOBJ invocations to module description.
8518         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8519         * modules/acosl (configure.ac): ... to here.
8520
8521 2011-05-21  Bruno Haible  <bruno@clisp.org>
8522
8523         asinl: Respect rules for use of AC_LIBOBJ.
8524         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8525         * modules/asinl (configure.ac): ... to here.
8526
8527 2011-05-21  Bruno Haible  <bruno@clisp.org>
8528
8529         tanl: Move AC_LIBOBJ invocations to module description.
8530         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8531         * modules/tanl (configure.ac): ... to here.
8532
8533 2011-05-21  Bruno Haible  <bruno@clisp.org>
8534
8535         cosl: Move AC_LIBOBJ invocations to module description.
8536         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8537         * modules/cosl (configure.ac): ... to here.
8538
8539 2011-05-21  Bruno Haible  <bruno@clisp.org>
8540
8541         sinl: Move AC_LIBOBJ invocations to module description.
8542         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8543         * modules/sinl (configure.ac): ... to here.
8544
8545 2011-05-21  Bruno Haible  <bruno@clisp.org>
8546
8547         logl: Move AC_LIBOBJ invocations to module description.
8548         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8549         * modules/logl (configure.ac): ... to here.
8550
8551 2011-05-21  Bruno Haible  <bruno@clisp.org>
8552
8553         expl: Move AC_LIBOBJ invocations to module description.
8554         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8555         * modules/expl (configure.ac): ... to here.
8556
8557 2011-05-21  Bruno Haible  <bruno@clisp.org>
8558
8559         roundl: Move AC_LIBOBJ invocations to module description.
8560         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8561         * modules/roundl (configure.ac): ... to here.
8562
8563 2011-05-21  Bruno Haible  <bruno@clisp.org>
8564
8565         round: Move AC_LIBOBJ invocations to module description.
8566         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8567         * modules/round (configure.ac): ... to here.
8568
8569 2011-05-21  Bruno Haible  <bruno@clisp.org>
8570
8571         roundf: Move AC_LIBOBJ invocations to module description.
8572         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8573         * modules/roundf (configure.ac): ... to here.
8574
8575 2011-05-21  Bruno Haible  <bruno@clisp.org>
8576
8577         truncl: Move AC_LIBOBJ invocations to module description.
8578         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8579         * modules/truncl (configure.ac): ... to here.
8580
8581 2011-05-21  Bruno Haible  <bruno@clisp.org>
8582
8583         trunc: Move AC_LIBOBJ invocations to module description.
8584         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8585         * modules/trunc (configure.ac): ... to here.
8586
8587 2011-05-21  Bruno Haible  <bruno@clisp.org>
8588
8589         truncf: Move AC_LIBOBJ invocations to module description.
8590         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8591         * modules/truncf (configure.ac): ... to here.
8592
8593 2011-05-21  Bruno Haible  <bruno@clisp.org>
8594
8595         ceill: Move AC_LIBOBJ invocations to module description.
8596         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8597         * modules/ceill (configure.ac): ... to here.
8598
8599 2011-05-21  Bruno Haible  <bruno@clisp.org>
8600
8601         ceil: Move AC_LIBOBJ invocations to module description.
8602         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8603         * modules/ceil (configure.ac): ... to here.
8604
8605 2011-05-21  Bruno Haible  <bruno@clisp.org>
8606
8607         ceilf: Move AC_LIBOBJ invocations to module description.
8608         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8609         * modules/ceilf (configure.ac): ... to here.
8610
8611 2011-05-21  Bruno Haible  <bruno@clisp.org>
8612
8613         floorl: Respect rules for use of AC_LIBOBJ.
8614         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8615         * modules/floorl (configure.ac): ... to here.
8616
8617 2011-05-21  Bruno Haible  <bruno@clisp.org>
8618
8619         floor: Respect rules for use of AC_LIBOBJ.
8620         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8621         * modules/floor (configure.ac): ... to here.
8622
8623 2011-05-21  Bruno Haible  <bruno@clisp.org>
8624
8625         floorf: Move AC_LIBOBJ invocations to module description.
8626         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8627         * modules/floorf (configure.ac): ... to here.
8628
8629 2011-05-20  Bruno Haible  <bruno@clisp.org>
8630
8631         sqrtl: Respect rules for use of AC_LIBOBJ.
8632         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8633         * modules/sqrtl (configure.ac): ... to here.
8634
8635 2011-05-20  Bruno Haible  <bruno@clisp.org>
8636
8637         ldexpl: Respect rules for use of AC_LIBOBJ.
8638         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8639         * modules/ldexpl (configure.ac): ... to here.
8640
8641 2011-05-20  Bruno Haible  <bruno@clisp.org>
8642
8643         frexpl*: Respect rules for use of AC_LIBOBJ.
8644         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8645         invocation from here...
8646         * modules/frexpl (configure.ac): ... to here.
8647         * modules/frexpl-nolibm (configure.ac): ... and here.
8648
8649 2011-05-20  Bruno Haible  <bruno@clisp.org>
8650
8651         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8652         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8653         invocation from here...
8654         * modules/frexp (configure.ac): ... to here.
8655         * modules/frexp-nolibm (configure.ac): ... and here.
8656
8657 2011-05-20  Bruno Haible  <bruno@clisp.org>
8658
8659         isnan: Respect rules for use of AC_LIBOBJ.
8660         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8661         invocations here.
8662         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8663         REPLACE_ISNAN.
8664         * modules/isnand (configure.ac): Likewise.
8665         * modules/isnanl (configure.ac): Likewise.
8666
8667 2011-05-20  Bruno Haible  <bruno@clisp.org>
8668
8669         isnanl*: Respect rules for use of AC_LIBOBJ.
8670         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8671         invocation from here...
8672         * modules/isnanl (configure.ac): ... to here.
8673         * modules/isnanl-nolibm (configure.ac): ... and here.
8674
8675 2011-05-20  Bruno Haible  <bruno@clisp.org>
8676
8677         isnand*: Move AC_LIBOBJ invocations to module description.
8678         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8679         invocation from here...
8680         * modules/isnand (configure.ac): ... to here.
8681         * modules/isnand-nolibm (configure.ac): ... and here.
8682
8683 2011-05-20  Bruno Haible  <bruno@clisp.org>
8684
8685         isnanf*: Move AC_LIBOBJ invocations to module description.
8686         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8687         invocation from here...
8688         * modules/isnanf (configure.ac): ... to here.
8689         * modules/isnanf-nolibm (configure.ac): ... and here.
8690
8691 2011-05-20  Bruno Haible  <bruno@clisp.org>
8692
8693         isnan*: Separate the AC_LIBOBJ invocations.
8694         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8695         AC_LIBOBJ invocation.
8696         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8697         here.
8698         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8699         AC_LIBOBJ invocation.
8700         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8701         here.
8702         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8703         AC_LIBOBJ invocation.
8704         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8705         here.
8706         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8707
8708 2011-05-08  Bruno Haible  <bruno@clisp.org>
8709
8710         isinf: Move AC_LIBOBJ invocations to module description.
8711         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8712         * modules/isinf (configure.ac): ... to here.
8713
8714 2011-05-08  Bruno Haible  <bruno@clisp.org>
8715
8716         isfinite: Move AC_LIBOBJ invocations to module description.
8717         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8718         * modules/isfinite (configure.ac): ... to here.
8719
8720 2011-05-08  Bruno Haible  <bruno@clisp.org>
8721
8722         isblank: Move AC_LIBOBJ invocations to module description.
8723         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8724         here...
8725         * modules/isblank (configure.ac): ... to here.
8726
8727 2011-05-08  Bruno Haible  <bruno@clisp.org>
8728
8729         isapipe: Move AC_LIBOBJ invocations to module description.
8730         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8731         gl_PREREQ_ISAPIPE invocations from here...
8732         * modules/isapipe (configure.ac): ... to here.
8733         (Depends-on): Update condition.
8734
8735 2011-05-08  Bruno Haible  <bruno@clisp.org>
8736
8737         ioctl: Move AC_LIBOBJ invocations to module description.
8738         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8739         invocations from here...
8740         * modules/ioctl (configure.ac): ... to here.
8741         (Depends-on): Update condition.
8742
8743 2011-05-08  Bruno Haible  <bruno@clisp.org>
8744
8745         imaxdiv: Move AC_LIBOBJ invocations to module description.
8746         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8747         invocations from here...
8748         * modules/imaxdiv (configure.ac): ... to here.
8749
8750 2011-05-08  Bruno Haible  <bruno@clisp.org>
8751
8752         imaxabs: Move AC_LIBOBJ invocations to module description.
8753         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8754         invocations from here...
8755         * modules/imaxabs (configure.ac): ... to here.
8756
8757 2011-05-08  Bruno Haible  <bruno@clisp.org>
8758
8759         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8761         AC_LIBOBJ invocations from here...
8762         * modules/getaddrinfo (configure.ac): ... to here.
8763         (Depends-on): Add conditions.
8764
8765 2011-05-08  Bruno Haible  <bruno@clisp.org>
8766
8767         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8768         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8769         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8770         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8771         (gl_PREREQ_INET_PTON): ... from here.
8772         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8773         gl_PREREQ_INET_PTON here.
8774         (Depends-on): Update condition.
8775
8776 2011-05-08  Bruno Haible  <bruno@clisp.org>
8777
8778         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8779         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8780         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8781         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8782         (gl_PREREQ_INET_NTOP): ... from here.
8783         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8784         gl_PREREQ_INET_NTOP here.
8785         (Depends-on): Update condition.
8786
8787 2011-05-08  Bruno Haible  <bruno@clisp.org>
8788
8789         iconv_open: Move AC_LIBOBJ invocations to module description.
8790         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8791         AC_LIBOBJ invocations from here...
8792         * modules/iconv_open (configure.ac): ... to here.
8793
8794 2011-05-08  Bruno Haible  <bruno@clisp.org>
8795
8796         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8797         If module 'iconv_open' is among the main modules and module
8798         'iconv_open-utf' is among the tests dependencies, then
8799         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8800         return the special iconv_t values. Therefore iconv() and iconv_close()
8801         must support these special iconv_t values, already in lib, not only in
8802         tests.
8803         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8804         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8805         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8806         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8807         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8808         (Depends-on): Add the dependencies of iconv_open-utf.
8809         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8810         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8811         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8812
8813 2011-05-08  Bruno Haible  <bruno@clisp.org>
8814
8815         group-member: Move AC_LIBOBJ invocations to module description.
8816         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8817         gl_PREREQ_GROUP_MEMBER invocations from here...
8818         * modules/group-member (configure.ac): ... to here.
8819
8820 2011-05-08  Bruno Haible  <bruno@clisp.org>
8821
8822         grantpt: Move AC_LIBOBJ invocations to module description.
8823         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8824         invocations from here...
8825         * modules/grantpt (configure.ac): ... to here.
8826
8827 2011-05-08  Bruno Haible  <bruno@clisp.org>
8828
8829         glob: Move AC_LIBOBJ invocations to module description.
8830         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8831         from here...
8832         * modules/glob (configure.ac): ... to here.
8833
8834 2011-05-08  Bruno Haible  <bruno@clisp.org>
8835
8836         getusershell: Move AC_LIBOBJ invocations to module description.
8837         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8838         Move AC_LIBOBJ invocation from here...
8839         * modules/getusershell (configure.ac): ... to here.
8840         (Depends-on): Update condition.
8841
8842 2011-05-08  Bruno Haible  <bruno@clisp.org>
8843
8844         gettimeofday: Move AC_LIBOBJ invocations to module description.
8845         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8846         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8847         gl_PREREQ_GETTIMEOFDAY invocations from here...
8848         * modules/gettimeofday (configure.ac): ... to here.
8849
8850 2011-05-08  Bruno Haible  <bruno@clisp.org>
8851
8852         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8853         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8854         just gl_FUNC_TZSET.
8855         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8856         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8857         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8858         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8859
8860 2011-05-08  Bruno Haible  <bruno@clisp.org>
8861
8862         getsubopt: Move AC_LIBOBJ invocations to module description.
8863         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8864         gl_PREREQ_GETSUBOPT invocations from here...
8865         * modules/getsubopt (configure.ac): ... to here.
8866
8867 2011-05-08  Bruno Haible  <bruno@clisp.org>
8868
8869         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8870         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8871         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8872         * modules/getpass-gnu (configure.ac): ... to here.
8873
8874 2011-05-08  Bruno Haible  <bruno@clisp.org>
8875
8876         getpass: Move AC_LIBOBJ invocations to module description.
8877         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8878         gl_PREREQ_GETPASS invocations from here...
8879         * modules/getpass (configure.ac): ... to here.
8880
8881 2011-05-08  Bruno Haible  <bruno@clisp.org>
8882
8883         getpagesize: Move AC_LIBOBJ invocations to module description.
8884         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8885         from here...
8886         * modules/getpagesize (configure.ac): ... to here.
8887
8888 2011-05-08  Bruno Haible  <bruno@clisp.org>
8889
8890         getopt: Move AC_LIBOBJ invocations to module description.
8891         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8892         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8893         invocations from here...
8894         * modules/getopt-gnu (configure.ac): ... to here.
8895         * modules/getopt-posix (configure.ac): ... and here.
8896         (Depends-on): Update condition.
8897
8898 2011-05-08  Bruno Haible  <bruno@clisp.org>
8899
8900         getopt, argp: Respect rules for use of AC_LIBOBJ.
8901         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8902         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8903         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8904         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8905
8906 2011-05-08  Bruno Haible  <bruno@clisp.org>
8907
8908         getlogin_r: Move AC_LIBOBJ invocations to module description.
8909         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8910         gl_PREREQ_GETLOGIN_R invocations from here...
8911         * modules/getlogin_r (configure.ac): ... to here.
8912
8913 2011-05-08  Bruno Haible  <bruno@clisp.org>
8914
8915         getlogin: Move AC_LIBOBJ invocations to module description.
8916         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8917         here...
8918         * modules/getlogin (configure.ac): ... to here.
8919
8920 2011-05-08  Bruno Haible  <bruno@clisp.org>
8921
8922         getloadavg: Move AC_LIBOBJ invocations to module description.
8923         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8924         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8925         * modules/getloadavg (configure.ac): ... to here.
8926
8927 2011-05-08  Bruno Haible  <bruno@clisp.org>
8928
8929         gethrxtime: Move AC_LIBOBJ invocations to module description.
8930         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8931         LIB_GETHRXTIME from here...
8932         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8933         invocations from here...
8934         * modules/gethrxtime (configure.ac): ... to here.
8935
8936 2011-05-08  Bruno Haible  <bruno@clisp.org>
8937
8938         gethostname: Move AC_LIBOBJ invocations to module description.
8939         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8940         gl_PREREQ_GETHOSTNAME invocations from here...
8941         * modules/gethostname (configure.ac): ... to here.
8942
8943 2011-05-08  Bruno Haible  <bruno@clisp.org>
8944
8945         getgroups: Move AC_LIBOBJ invocations to module description.
8946         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8947         here...
8948         * modules/getgroups (configure.ac): ... to here.
8949
8950 2011-05-08  Bruno Haible  <bruno@clisp.org>
8951
8952         getdtablesize: Move AC_LIBOBJ invocations to module description.
8953         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8954         invocation from here...
8955         * modules/getdtablesize (configure.ac): ... to here.
8956
8957 2011-05-08  Bruno Haible  <bruno@clisp.org>
8958
8959         getdomainname: Move AC_LIBOBJ invocations to module description.
8960         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8961         gl_PREREQ_GETDOMAINNAME invocations from here...
8962         * modules/getdomainname (configure.ac): ... to here.
8963
8964 2011-05-08  Bruno Haible  <bruno@clisp.org>
8965
8966         getline: Move AC_LIBOBJ invocations to module description.
8967         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8968         invocations from here...
8969         * modules/getline (configure.ac): ... to here.
8970
8971 2011-05-08  Bruno Haible  <bruno@clisp.org>
8972
8973         getline: Simplify.
8974         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8975         It's already handled through the module dependency.
8976
8977 2011-05-08  Bruno Haible  <bruno@clisp.org>
8978
8979         getdelim: Move AC_LIBOBJ invocations to module description.
8980         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8981         and gl_PREREQ_GETDELIM invocations from here...
8982         * modules/getdelim (configure.ac): ... to here.
8983         (Depends-on): Fix condition.
8984
8985 2011-05-08  Bruno Haible  <bruno@clisp.org>
8986
8987         getcwd: Move AC_LIBOBJ invocations to module description.
8988         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8989         invocations from here...
8990         * modules/getcwd (configure.ac): ... to here.
8991
8992 2011-05-08  Bruno Haible  <bruno@clisp.org>
8993
8994         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8995         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8996         here...
8997         * modules/getcwd-lgpl (configure.ac): ... to here.
8998
8999 2011-05-07  Bruno Haible  <bruno@clisp.org>
9000
9001         crypto/gc: Move AC_LIBOBJ invocations to module description.
9002         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9003         * modules/crypto/gc (configure.ac): ... to here.
9004
9005 2011-05-07  Bruno Haible  <bruno@clisp.org>
9006
9007         fwriting: Move AC_LIBOBJ invocations to module description.
9008         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9009         here...
9010         * modules/fwriting (configure.ac): ... to here.
9011
9012 2011-05-07  Bruno Haible  <bruno@clisp.org>
9013
9014         fwritable: Move AC_LIBOBJ invocations to module description.
9015         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9016         here...
9017         * modules/fwritable (configure.ac): ... to here.
9018
9019 2011-05-07  Bruno Haible  <bruno@clisp.org>
9020
9021         futimens: Move AC_LIBOBJ invocations to module description.
9022         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9023         here...
9024         * modules/futimens (configure.ac): ... to here.
9025
9026 2011-05-07  Bruno Haible  <bruno@clisp.org>
9027
9028         ftruncate: Move AC_LIBOBJ invocations to module description.
9029         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9030         gl_PREREQ_FTRUNCATE invocations from here...
9031         * modules/ftruncate (configure.ac): ... to here.
9032
9033 2011-05-07  Bruno Haible  <bruno@clisp.org>
9034
9035         fsync: Move AC_LIBOBJ invocations to module description.
9036         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9037         invocations from here...
9038         * modules/fsync (configure.ac): ... to here.
9039
9040 2011-05-07  Bruno Haible  <bruno@clisp.org>
9041
9042         fsusage: Move AC_LIBOBJ invocations to module description.
9043         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9044         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9045         * modules/fsusage (configure.ac): ... to here.
9046
9047 2011-05-07  Bruno Haible  <bruno@clisp.org>
9048
9049         freopen: Move AC_LIBOBJ invocations to module description.
9050         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9051         invocations from here...
9052         * modules/freopen (configure.ac): ... to here.
9053
9054 2011-05-07  Bruno Haible  <bruno@clisp.org>
9055
9056         free: Move AC_LIBOBJ invocations to module description.
9057         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9058         invocations from here...
9059         * modules/free (configure.ac): ... to here.
9060
9061 2011-05-07  Bruno Haible  <bruno@clisp.org>
9062
9063         freadable: Move AC_LIBOBJ invocations to module description.
9064         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9065         here...
9066         * modules/freadable (configure.ac): ... to here.
9067
9068 2011-05-07  Bruno Haible  <bruno@clisp.org>
9069
9070         fpurge: Move AC_LIBOBJ invocations to module description.
9071         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9072         invocations from here...
9073         * modules/fpurge (configure.ac): ... to here.
9074
9075 2011-05-07  Bruno Haible  <bruno@clisp.org>
9076
9077         fpending: Move AC_LIBOBJ invocations to module description.
9078         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9079         gl_FUNC_FPENDING.
9080         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9081         invocations from here...
9082         * modules/fpending (configure.ac): ... to here.
9083
9084 2011-05-07  Bruno Haible  <bruno@clisp.org>
9085
9086         fopen: Move AC_LIBOBJ invocations to module description.
9087         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9088         invocations from here...
9089         * modules/fopen (configure.ac): ... to here.
9090
9091 2011-05-07  Bruno Haible  <bruno@clisp.org>
9092
9093         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9094         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9095         gl_FUNC_FNMATCH_POSIX.
9096         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9097         invocations from here...
9098         * modules/fnmatch (configure.ac): ... to here.
9099         * modules/fnmatch-gnu (configure.ac): ... and here.
9100
9101 2011-05-07  Bruno Haible  <bruno@clisp.org>
9102
9103         flock: Move AC_LIBOBJ invocations to module description.
9104         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9105         invocations from here...
9106         * modules/flock (configure.ac): ... to here.
9107
9108 2011-05-07  Bruno Haible  <bruno@clisp.org>
9109
9110         fileblocks: Move AC_LIBOBJ invocations to module description.
9111         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9112         gl_PREREQ_FILEBLOCKS invocations from here...
9113         * modules/fileblocks (configure.ac): ... to here.
9114
9115 2011-05-06  Bruno Haible  <bruno@clisp.org>
9116
9117         fflush: Move AC_LIBOBJ invocations to module description.
9118         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9119         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9120         invocations from here...
9121         * modules/fflush (configure.ac): ... to here.
9122
9123 2011-05-06  Bruno Haible  <bruno@clisp.org>
9124
9125         fdopendir: Move AC_LIBOBJ invocations to module description.
9126         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9127         here...
9128         * modules/fdopendir (configure.ac): ... to here.
9129         (Depends-on): Improve conditions.
9130
9131 2011-05-06  Bruno Haible  <bruno@clisp.org>
9132
9133         _Exit: Move AC_LIBOBJ invocations to module description.
9134         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9135         invocations from here...
9136         * modules/_Exit (configure.ac): ... to here.
9137
9138 2011-05-21  Bruno Haible  <bruno@clisp.org>
9139
9140         euidaccess: Respect rules for use of AC_LIBOBJ.
9141         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9143         from here...
9144         * modules/euidaccess (configure.ac): ... to here.
9145
9146 2011-05-06  Bruno Haible  <bruno@clisp.org>
9147
9148         error: Move AC_LIBOBJ invocations to module description.
9149         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9150         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9151         invocations from here...
9152         * modules/error (configure.ac): ... to here.
9153
9154 2011-05-06  Bruno Haible  <bruno@clisp.org>
9155
9156         duplocale: Move AC_LIBOBJ invocations to module description.
9157         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9158         gl_PREREQ_DUPLOCALE invocations from here...
9159         * modules/duplocale (configure.ac): ... to here.
9160
9161 2011-05-05  Bruno Haible  <bruno@clisp.org>
9162
9163         dirfd: Move AC_LIBOBJ invocations to module description.
9164         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9165         gl_FUNC_DIRFD.
9166         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9167         here...
9168         * modules/dirfd (configure.ac): ... to here.
9169         (Depends-on): Fix condition.
9170
9171 2011-05-05  Bruno Haible  <bruno@clisp.org>
9172
9173         chown: Respect rules for use of AC_LIBOBJ.
9174         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9175         * modules/chown (configure.ac): ... to here.
9176
9177 2011-05-05  Bruno Haible  <bruno@clisp.org>
9178
9179         chdir-long: Move AC_LIBOBJ invocations to module description.
9180         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9181         gl_PREREQ_CHDIR_LONG invocations from here...
9182         * modules/chdir-long (configure.ac): ... to here.
9183
9184 2011-05-05  Bruno Haible  <bruno@clisp.org>
9185
9186         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9187         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9188         from here...
9189         * modules/canonicalize-lgpl (configure.ac): ... to here.
9190
9191 2011-05-05  Bruno Haible  <bruno@clisp.org>
9192
9193         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9194         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9195         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9196         REPLACE_CALLOC.
9197         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9198         * modules/calloc-gnu (configure.ac): Likewise.
9199
9200 2011-05-05  Bruno Haible  <bruno@clisp.org>
9201
9202         btowc: Move AC_LIBOBJ invocations to module description.
9203         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9204         invocations from here...
9205         * modules/btowc (configure.ac): ... to here.
9206
9207 2011-05-21  Bruno Haible  <bruno@clisp.org>
9208
9209         atexit: Move AC_LIBOBJ invocations to module description.
9210         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9212         here...
9213         * modules/atexit (configure.ac): ... to here.
9214
9215 2011-05-05  Bruno Haible  <bruno@clisp.org>
9216
9217         atoll: Move AC_LIBOBJ invocations to module description.
9218         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9219         invocations from here...
9220         * modules/atoll (configure.ac): ... to here.
9221
9222 2011-05-05  Bruno Haible  <bruno@clisp.org>
9223
9224         argz: Move AC_LIBOBJ invocations to module description.
9225         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9226         * modules/argz (configure.ac): ... to here.
9227
9228 2011-05-05  Bruno Haible  <bruno@clisp.org>
9229
9230         alphasort: Move AC_LIBOBJ invocations to module description.
9231         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9232         gl_PREREQ_ALPHASORT invocations from here...
9233         * modules/alphasort (configure.ac): ... to here.
9234
9235 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9236
9237         verify: new macro verify_expr; verify_true deprecated
9238         * NEWS: Mention this.
9239         * doc/verify.texi (Compile-time Assertions): Document this.
9240         * lib/verify.h (verify_true): Deprecate.
9241         (verify_expr): New macro.
9242         * tests/test-verify.c (function): Test verify_expr.
9243
9244 2011-06-14  Jim Meyering  <meyering@redhat.com>
9245
9246         init.sh: give more portable redirection-related advice in a comment
9247         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9248         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9249         for lots of discussion.  Stefano Lattarini suggested the solution
9250         of putting "9>&2" after the command.  Reported by Bruno Haible.
9251
9252 2011-06-13  Bruno Haible  <bruno@clisp.org>
9253
9254         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9255         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9256         'none'.
9257
9258 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9259
9260         ftoastr: use strtof only if HAVE_STRTOF
9261         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9263         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9264         * modules/ftoastr (configure.ac): Check for strtof.
9265
9266 2011-06-13  Bruno Haible  <bruno@clisp.org>
9267
9268         gnulib-tool: Addendum to 2011-06-08 commit.
9269         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9270         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9271
9272 2011-06-13  Bruno Haible  <bruno@clisp.org>
9273
9274         fseeko: Provide a non-inline replacement of fseek().
9275         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9276         * modules/fseeko (Depends-on): Add fseek.
9277         * modules/fseek (License): Change to LGPLv2+.
9278
9279 2011-06-13  Bruno Haible  <bruno@clisp.org>
9280
9281         ftello: Provide a non-inline replacement of ftell().
9282         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9283         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9284         not have ftello() (such as on mingw).
9285         * modules/ftello (Depends-on): Add ftell.
9286         * modules/ftell (License): Change to LGPLv2+.
9287
9288 2011-05-07  Bruno Haible  <bruno@clisp.org>
9289
9290         ftell: Move AC_LIBOBJ invocations to module description.
9291         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9292         * modules/ftell (configure.ac): ... to here.
9293
9294 2011-05-07  Bruno Haible  <bruno@clisp.org>
9295
9296         ftello: Respect rules for use of AC_LIBOBJ.
9297         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9298         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9299         here...
9300         * modules/ftello (configure.ac): ... to here.
9301
9302 2011-05-07  Bruno Haible  <bruno@clisp.org>
9303
9304         fseeko: Simplify.
9305         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9306         (gl_FUNC_FSEEKO): Inline it here.
9307
9308 2011-05-07  Bruno Haible  <bruno@clisp.org>
9309
9310         fseek: Move AC_LIBOBJ invocations to module description.
9311         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9312         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9313         * modules/fseek (configure.ac): ... to here.
9314
9315 2011-05-07  Bruno Haible  <bruno@clisp.org>
9316
9317         fseek: Respect rules for use of AC_LIBOBJ.
9318         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9319         here...
9320         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9321
9322 2011-05-07  Bruno Haible  <bruno@clisp.org>
9323
9324         fseeko: Respect rules for use of AC_LIBOBJ.
9325         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9326         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9327         here...
9328         * modules/fseeko (configure.ac): ... to here.
9329
9330 2011-06-13  Bruno Haible  <bruno@clisp.org>
9331
9332         gnulib-tool: Allow comments in the 'Depends-on' section.
9333         * doc/gnulib.texi (Module description): Mention comment syntax in the
9334         Depends-on section.
9335         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9336
9337 2011-06-13  Bruno Haible  <bruno@clisp.org>
9338
9339         file-set.h: guard __attibute__ use, now that it's not always defined
9340         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9341         versions that support it.  This fixes a coreutils build failure with
9342         the vendor cc on HP-UX 11.31.
9343
9344 2011-06-12  Bruno Haible  <bruno@clisp.org>
9345
9346         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9347         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9348         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9349         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9350         (acl, aclsort): New declarations.
9351         (aclv_nontrivial): New declaration.
9352         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9353         (file_has_acl): Read also the second kind of HP-UX ACLs.
9354         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9355         kind of HP-UX ACLs if the first kind fails.
9356         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9357         second kind of HP-UX ACLs.
9358         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9359         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9360         agree.
9361         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9362         hpuxjfs.
9363         Handle hpuxjfs.
9364         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9365         hpuxjfs.
9366         Handle hpuxjfs.
9367         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9368         (func_test_same_acls): Use both lsacl and getacl.
9369         Handle hpuxjfs.
9370         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9371         (func_test_same_acls): Use both lsacl and getacl.
9372         Handle hpuxjfs.
9373
9374 2011-06-12  Bruno Haible  <bruno@clisp.org>
9375
9376         acl: Complete the 2010-08-10 fix.
9377         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9378         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9379         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9380         explicitly.
9381         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9382         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9383
9384 2011-06-12  Bruno Haible  <bruno@clisp.org>
9385
9386         spawn-pipe tests: Comments.
9387         * tests/test-spawn-pipe-child.c (main): Update comment.
9388         Reported by James Youngman <jay@gnu.org>.
9389
9390 2011-06-11  James Youngman  <jay@gnu.org>
9391
9392         New module 'stat-size'.
9393         * modules/stat-size: New module.  Provides macros for accessing
9394         file size information in instances of struct stat.  Depends on the
9395         fileblocks module because it calls st_blocks.
9396         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9397         * doc/gnulib.texi: Include stat-size.texi.
9398         * doc/stat-size.texi: Documentation for this module.
9399         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9400         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9401         AC_STRUCT_ST_BLOCKS.
9402
9403 2011-06-09  Bruno Haible  <bruno@clisp.org>
9404
9405         thread: Support pthreads-win32.
9406         * lib/glthread/thread.h (gl_thread_self): Define differently on
9407         pthreads-win32.
9408         (gl_null_thread): New declaration.
9409         (gl_thread_self_pointer): New macro.
9410         * lib/glthread/thread.c (gl_null_thread): New constant.
9411         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9412         gl_thread_self.
9413         * tests/test-tls.c: Likewise.
9414         Suggested by Paul Eggert. Reported by Eric Blake.
9415
9416 2011-06-09  Bruno Haible  <bruno@clisp.org>
9417
9418         thread: Fix confusion between NULL and 0.
9419         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9420         Reported by Paul Eggert.
9421
9422 2011-06-09  Bruno Haible  <bruno@clisp.org>
9423
9424         spawn-pipe tests: Avoid test failure on HP-UX 11.
9425         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9426         is closed.
9427
9428 2011-06-09  Bruno Haible  <bruno@clisp.org>
9429
9430         acl tests: Fix compilation error on HP-UX 11.
9431         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9432
9433 2011-06-09  Bruno Haible  <bruno@clisp.org>
9434
9435         rmdir: Avoid test failure on HP-UX 10.20.
9436         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9437         EEXIST.
9438
9439 2011-06-08  Eric Blake  <eblake@redhat.com>
9440
9441         perror: fix test on mingw
9442         * modules/perror-tests (Depends-on): Add dup2.
9443
9444         strerror_r-posix: fix on MacOS
9445         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9447         logic bug.
9448         * lib/strerror_r.c (strerror_r): Fix the bug.
9449         * lib/strerror.c (strerror): Likewise.
9450         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9451         problem.
9452         * doc/posix-functions/strerror.texi (strerror): Likewise.
9453         * doc/posix-functions/perror.texi (perror): Likewise.
9454         * tests/test-strerror.c (main): Enhance test.
9455         * tests/test-strerror_r.c (main): Likewise.
9456
9457 2011-06-08  Bruno Haible  <bruno@clisp.org>
9458
9459         gnulib-tool: Better isolation between different gnulib-tool invocations.
9460         * gnulib-tool: New option --witness-c-macro.
9461         (witness_c_macro): New variable.
9462         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9463         AM_CPPFLAGS define it as a C macro.
9464         (func_emit_tests_Makefile_am): Likewise.
9465         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9466         read it from there.
9467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9468         m4_define, not AC_DEFUN.
9469         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9470         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9471         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9472         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9473         s|...|...|, to substitute the values of the GNULIB_* module indicator
9474         variables.
9475         * modules/dirent (Makefile.am): Likewise.
9476         * modules/fcntl-h (Makefile.am): Likewise.
9477         * modules/iconv-h (Makefile.am): Likewise.
9478         * modules/langinfo (Makefile.am): Likewise.
9479         * modules/locale (Makefile.am): Likewise.
9480         * modules/math (Makefile.am): Likewise.
9481         * modules/netdb (Makefile.am): Likewise.
9482         * modules/poll-h (Makefile.am): Likewise.
9483         * modules/pty (Makefile.am): Likewise.
9484         * modules/search (Makefile.am): Likewise.
9485         * modules/signal (Makefile.am): Likewise.
9486         * modules/spawn (Makefile.am): Likewise.
9487         * modules/stdio (Makefile.am): Likewise.
9488         * modules/stdlib (Makefile.am): Likewise.
9489         * modules/string (Makefile.am): Likewise.
9490         * modules/sys_ioctl (Makefile.am): Likewise.
9491         * modules/sys_select (Makefile.am): Likewise.
9492         * modules/sys_socket (Makefile.am): Likewise.
9493         * modules/sys_stat (Makefile.am): Likewise.
9494         * modules/sys_times (Makefile.am): Likewise.
9495         * modules/sys_utsname (Makefile.am): Likewise.
9496         * modules/sys_wait (Makefile.am): Likewise.
9497         * modules/termios (Makefile.am): Likewise.
9498         * modules/time (Makefile.am): Likewise.
9499         * modules/unistd (Makefile.am): Likewise.
9500         * modules/wchar (Makefile.am): Likewise.
9501
9502 2011-06-08  Eric Blake  <eblake@redhat.com>
9503
9504         strerror: simplify replacement
9505         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9506         * modules/strerror (configure.ac): No prereqs needed here...
9507         * modules/strerror-override (configure.ac): ...but this needs it.
9508         (Files): Add file for needed prereq macro.
9509
9510 2011-06-08  Bruno Haible  <bruno@clisp.org>
9511
9512         strerror_r-posix: Tweaks.
9513         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9514         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9515         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9516         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9517         (gl_FUNC_STRERROR_R): ... to here.
9518         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9519
9520 2011-06-07  Eric Blake  <eblake@redhat.com>
9521
9522         perror: document fixed bugs
9523         * doc/posix-functions/perror.texi (perror): Document recent
9524         patches.
9525
9526 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9527
9528         stat-time: get_stat_birthtime failure is better-defined
9529         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9530         return a timestamp whose tv_sec and tv_nsec values are both -1.
9531         Previously, the spec said only that the tv_nsec value was negative.
9532         This upward-compatible change simplifies GNU tar a bit.
9533
9534 2011-06-07  Eric Blake  <eblake@redhat.com>
9535
9536         strerror_r-posix: work around cygwin 1.7.9
9537         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9538         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9539         bug without replacing strerror_r.
9540         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9541         strerror_r is buggy, but without requiring strerror_r compilation.
9542         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9543
9544         test-perror: relax test to ignore cygwin bug
9545         * tests/test-perror2.c (main): Relax test on requiring detection
9546         of stream errors, and use unbuffered stream.
9547         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9548         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9549         * doc/posix-functions/fputc.texi (fputc): Likewise.
9550         * doc/posix-functions/fputs.texi (fputs): Likewise.
9551         * doc/posix-functions/fputws.texi (fputws): Likewise.
9552         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9553         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9554         * doc/posix-functions/getopt.texi (getopt): Likewise.
9555         * doc/posix-functions/perror.texi (perror): Likewise.
9556         * doc/posix-functions/printf.texi (printf): Likewise.
9557         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9558         * doc/posix-functions/psignal.texi (psignal): Likewise.
9559         * doc/posix-functions/putc.texi (putc): Likewise.
9560         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9561         Likewise.
9562         * doc/posix-functions/putchar.texi (putchar): Likewise.
9563         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9564         Likewise.
9565         * doc/posix-functions/puts.texi (puts): Likewise.
9566         * doc/posix-functions/putwc.texi (putwc): Likewise.
9567         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9568         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9569         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9570         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9571         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9572         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9573         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9574         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9575
9576 2011-05-22  Bruno Haible  <bruno@clisp.org>
9577
9578         strerror: Move AC_LIBOBJ invocations to module description.
9579         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9580         gl_PREREQ_STRERROR invocations from here...
9581         * modules/strerror (configure.ac): ... to here.
9582
9583 2011-05-21  Bruno Haible  <bruno@clisp.org>
9584
9585         perror: Use common idiom.
9586         * modules/perror (configure.ac): Reorder statements.
9587
9588 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9589
9590         tests: fix usage message in 'mktempd_'
9591         * tests/init.sh (mktempd_): In the usage message, use literal
9592         'mktempd_', not '$ME' (which is even undefined), as the name of
9593         the subroutine.
9594
9595 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9596
9597         tests init: new function 'fatal_', for hard errors
9598         Before this patch, the only way offered by tests/init.sh to
9599         properly signal a hard error was the `framework_failure_'
9600         function.  But the error message issued by that function,
9601         as its name would suggest, refers to a set-up failure in the
9602         testsuite, while hard errors can obviously also be due to
9603         other reasons.  The best way to fix this inconsistency is to
9604         introduce a new function with a more general error message.
9605         * tests/init.sh (fatal_): New function.
9606
9607 2011-06-06  Eric Blake  <eblake@redhat.com>
9608
9609         canonicalize-lgpl: use common idiom
9610         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9611         over newer POSIX -Rf.
9612         Reported by Bruno Haible.
9613
9614         canonicalize-lgpl: work around AIX realpath bug
9615         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9616         * doc/posix-functions/realpath.texi (realpath): Document it.
9617         Reported by Bruno Haible.
9618
9619         strerror: work around FreeBSD bug
9620         * lib/strerror.c (strerror): Special case 0.
9621         Reported by Bruno Haible.
9622
9623         strerror-override: avoid bloating errno module
9624         * modules/errno (Files, configure.ac): Move replacement strings...
9625         * modules/strerror-override: ...to new module.
9626         * modules/strerror (Depends-on): Add strerror-override.
9627         * modules/strerror_r-posix (Depends-on): Likewise.
9628         * MODULES.html.sh: Document new module.
9629         Reported by Bruno Haible.
9630
9631 2011-06-06  Bruno Haible  <bruno@clisp.org>
9632
9633         spawn-pipe tests: Rename program.
9634         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9635         * tests/test-spawn-pipe-child.c: Update comment.
9636         * tests/test-spawn-pipe.sh: Update.
9637         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9638
9639         spawn-pipe tests: Link the child program only against libc.
9640         * tests/test-spawn-pipe-child.c: New file, extracted from
9641         tests/test-spawn-pipe.c.
9642         (main): Expect only one argument.
9643         (is_open): New function, copied from tests/test-pipe.c.
9644         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9645         (child_main): Remove function.
9646         (test_pipe): Pass only one argument to the child program.
9647         (main): Remove child process code. Expect the child program's name as
9648         first argument.
9649         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9650         argument.
9651         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9652         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9653         test-spawn-pipe-child against no libraries.
9654
9655 2011-06-06  Bruno Haible  <bruno@clisp.org>
9656
9657         careadlinkat: Avoid mismatch between ssize_t and int.
9658         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9659         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9660
9661 2011-06-06  Jim Meyering  <meyering@redhat.com>
9662
9663         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9664         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9665         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9666
9667 2011-06-05  Bruno Haible  <bruno@clisp.org>
9668
9669         ansi-c++-opt: Interoperability with libtool.
9670         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9671         set the variable to "no", not to ":".
9672         * NEWS: Mention the change.
9673
9674 2011-06-05  Bruno Haible  <bruno@clisp.org>
9675
9676         acl: Fix test failure on AIX 7.
9677         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9678         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9679
9680 2011-06-05  Bruno Haible  <bruno@clisp.org>
9681
9682         pipe-filter-ii: Fix test failure on AIX and IRIX.
9683         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9684         with EAGAIN, retry with a smaller buffer size.
9685
9686 2011-06-05  Bruno Haible  <bruno@clisp.org>
9687
9688         localename: Fix link dependencies.
9689         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9690         * modules/localename-tests (Makefile.am): Link test-localename with
9691         $(LIBTHREAD).
9692
9693 2011-06-05  Bruno Haible  <bruno@clisp.org>
9694
9695         error: Avoid gcc warning.
9696         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9697
9698 2011-06-05  Bruno Haible  <bruno@clisp.org>
9699
9700         unsetenv: Avoid gcc warning.
9701         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9702
9703 2011-06-05  Bruno Haible  <bruno@clisp.org>
9704
9705         setenv: Avoid gcc warning.
9706         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9707
9708 2011-06-05  Bruno Haible  <bruno@clisp.org>
9709
9710         sys_select: Ensure memset is declared also on AIX 7.
9711         * lib/sys_select.in.h: Include <string.h> also on AIX.
9712         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9713         self-contained also on AIX 7.1.
9714
9715 2011-06-04  Jim Meyering  <meyering@redhat.com>
9716
9717         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9718         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9719         function name, "error".
9720         (_gl_translatable_diag_func_re): New configurable variable.
9721
9722 2011-06-04  Bruno Haible  <bruno@clisp.org>
9723
9724         getopt: Avoid gcc warning.
9725         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9726
9727 2011-06-04  Bruno Haible  <bruno@clisp.org>
9728
9729         strerror_r: Fix comments.
9730         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9731         commit.
9732
9733 2011-06-04  Bruno Haible  <bruno@clisp.org>
9734
9735         perror: Fix compilation error.
9736         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9737         Undefine fprintf, not sprintf.
9738         * modules/perror (Depends-on): Remove intprops, verify.
9739
9740 2011-06-04  Bruno Haible  <bruno@clisp.org>
9741
9742         setlocale: Enable replacement on Cygwin 1.5.
9743         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9744         Cygwin 1.5.x.
9745         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9746         LC_CTYPE category also exists on Cygwin 1.5.x.
9747
9748 2011-06-04  Bruno Haible  <bruno@clisp.org>
9749
9750         strerror-override: Don't disable symbol renamings.
9751         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9752         * lib/strerror-override.c: Include config.h.
9753         (strerror_override): Don't undefine.
9754
9755 2011-06-03  Bruno Haible  <bruno@clisp.org>
9756
9757         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9758         * lib/localename.h: Update copyright header.
9759         * lib/localename.c: Likewise.
9760         * lib/relocatable.h: Likewise.
9761         * lib/relocatable.c: Likewise.
9762
9763 2011-06-02  Bruno Haible  <bruno@clisp.org>
9764
9765         doc: Fix a module name.
9766         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9767
9768 2011-06-02  Bruno Haible  <bruno@clisp.org>
9769
9770         pipe2: Remove dependency on 'nonblocking' module.
9771         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9772         O_NONBLOCK is defined by gnulib.
9773         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9774         is zero.
9775         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9776         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9777         defined by gnulib.
9778         (get_nonblocking_flag): New function.
9779         (main): Test O_NONBLOCK flag only if it is nonzero.
9780         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9781
9782 2011-06-03  Jim Meyering  <meyering@redhat.com>
9783
9784         maint: three new prohibit-header-without-use rules
9785         Prohibit use of cloexec.h, posixver.h, same.h without use.
9786         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9787         (sc_prohibit_posixver_without_use): Likewise.
9788         (sc_prohibit_same_without_use): Likewise.
9789
9790 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9791
9792         allocator: 'die' routine is now given requested size
9793         * lib/allocator.h (struct allocator.die): New size arg.
9794         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9795         If the actual problem is an ssize_t limitation, not a size_t or
9796         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9797
9798 2011-06-01  Eric Blake  <eblake@redhat.com>
9799
9800         strerror: drop strerror_r dependency
9801         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9802         * lib/strerror-override.c (strerror_override): ...to new file.
9803         * lib/strerror-override.h: Add prototype.
9804         * lib/strerror-impl.h: Delete.
9805         * lib/strerror.c (strerror): New implementation.
9806         * modules/errno (Files): Add new files.
9807         (configure.ac): Compile new file as appropriate.
9808         * modules/strerror (Files): Drop unused file.
9809         (Depends-on): Drop strerror_r-posix.
9810         * MODULES.html.sh: Document strerror_r-posix.
9811         Requested by Sam Steingold.
9812
9813         perror: call strerror_r directly
9814         * modules/perror (Files): Drop strerror-impl.h.
9815         * lib/perror.c (perror): Use our own stack buffer, rather than
9816         calling a wrapper that uses static storage.
9817         * doc/posix-functions/perror.texi (perror): Document a limitation
9818         of our replacement.
9819
9820         strerror_r: fix includes for FreeBSD
9821         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9822         since we use abort on some platforms.
9823         Reported by Matthias Bolte.
9824
9825 2011-05-31  Bruno Haible  <bruno@clisp.org>
9826
9827         Fix link errors in tests: openat-die uses gettext-h.
9828         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9829         against $(LIBINTL).
9830         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9831         against $(LIBINTL).
9832         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9833         $(LIBINTL).
9834         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9835         against $(LIBINTL).
9836         * modules/linkat-tests (Makefile.am): Link test-linkat against
9837         $(LIBINTL).
9838         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9839         $(LIBINTL).
9840         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9841         against $(LIBINTL).
9842         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9843         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9844         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9845         $(LIBINTL).
9846         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9847         $(LIBINTL).
9848         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9849         $(LIBINTL).
9850         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9851
9852 2011-05-31  Bruno Haible  <bruno@clisp.org>
9853
9854         Fix link errors in tests: wait-process uses gettext-h.
9855         * modules/nonblocking-pipe-tests (Makefile.am): Set
9856         test_nonblocking_pipe_main_LDADD.
9857         * modules/nonblocking-socket-tests (Makefile.am): Link
9858         test-nonblocking-socket-main against $(LIBINTL).
9859         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9860
9861 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9862
9863         assert-h: work around 'verify' incompatibility
9864         * lib/verify.h: Use @...@ directives, not ifdef.
9865         * modules/assert-h (assert.h): Implement the directives.
9866         (assert.h): Substitute the symbol-prefix more consistently.
9867
9868 2011-05-29  Jim Meyering  <meyering@redhat.com>
9869
9870         trim: remove three superfluous assignments
9871         * lib/trim.c (trim2): Remove three superfluous assignments
9872         and correct brace positioning.
9873
9874 2011-05-29  Bruno Haible  <bruno@clisp.org>
9875
9876         wctype-h: Avoid namespace pollution on Solaris 2.6.
9877         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9878         identifiers.
9879         * doc/posix-headers/wctype.texi: Mention the problem.
9880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9881
9882 2011-05-28  Jim Meyering  <meyering@redhat.com>
9883
9884         parse-datetime.y: accommodate -Wstrict-overflow
9885         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9886         placate -Wstrict-overflow.
9887
9888         trim: avoid a warning from -O2 -Wstrict-overflow
9889         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9890
9891 2011-05-29  Bruno Haible  <bruno@clisp.org>
9892
9893         gnulib-tool: Fix bug in yesterday's commit.
9894         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9895         twice.
9896
9897 2011-05-29  Bruno Haible  <bruno@clisp.org>
9898
9899         Allow multiple gnulib generated include files to be combined.
9900         * gnulib-tool (func_compute_include_guard_prefix): New function.
9901         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9902         ${gl_include_guard_prefix} references.
9903         (func_import, func_create_testdir): Invoke
9904         func_compute_include_guard_prefix.
9905         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9906         * lib/ctype.in.h: Likewise.
9907         * lib/dirent.in.h: Likewise.
9908         * lib/errno.in.h: Likewise.
9909         * lib/fcntl.in.h: Likewise.
9910         * lib/float.in.h: Likewise.
9911         * lib/getopt.in.h: Likewise.
9912         * lib/iconv.in.h: Likewise.
9913         * lib/langinfo.in.h: Likewise.
9914         * lib/locale.in.h: Likewise.
9915         * lib/math.in.h: Likewise.
9916         * lib/netdb.in.h: Likewise.
9917         * lib/netinet_in.in.h: Likewise.
9918         * lib/poll.in.h: Likewise.
9919         * lib/pthread.in.h: Likewise.
9920         * lib/pty.in.h: Likewise.
9921         * lib/sched.in.h: Likewise.
9922         * lib/se-selinux.in.h: Likewise.
9923         * lib/search.in.h: Likewise.
9924         * lib/signal.in.h: Likewise.
9925         * lib/spawn.in.h: Likewise.
9926         * lib/stdarg.in.h: Likewise.
9927         * lib/stddef.in.h: Likewise.
9928         * lib/stdint.in.h: Likewise.
9929         * lib/stdio.in.h: Likewise.
9930         * lib/stdlib.in.h: Likewise.
9931         * lib/string.in.h: Likewise.
9932         * lib/strings.in.h: Likewise.
9933         * lib/sys_file.in.h: Likewise.
9934         * lib/sys_ioctl.in.h: Likewise.
9935         * lib/sys_select.in.h: Likewise.
9936         * lib/sys_socket.in.h: Likewise.
9937         * lib/sys_stat.in.h: Likewise.
9938         * lib/sys_time.in.h: Likewise.
9939         * lib/sys_times.in.h: Likewise.
9940         * lib/sys_uio.in.h: Likewise.
9941         * lib/sys_utsname.in.h: Likewise.
9942         * lib/sys_wait.in.h: Likewise.
9943         * lib/sysexits.in.h: Likewise.
9944         * lib/termios.in.h: Likewise.
9945         * lib/time.in.h: Likewise.
9946         * lib/unistd.in.h: Likewise.
9947         * lib/wchar.in.h: Likewise.
9948         * lib/wctype.in.h: Likewise.
9949         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9950         * modules/ctype (Makefile.am): Likewise.
9951         * modules/dirent (Makefile.am): Likewise.
9952         * modules/errno (Makefile.am): Likewise.
9953         * modules/fcntl-h (Makefile.am): Likewise.
9954         * modules/float (Makefile.am): Likewise.
9955         * modules/getopt-posix (Makefile.am): Likewise.
9956         * modules/iconv-h (Makefile.am): Likewise.
9957         * modules/langinfo (Makefile.am): Likewise.
9958         * modules/locale (Makefile.am): Likewise.
9959         * modules/math (Makefile.am): Likewise.
9960         * modules/netdb (Makefile.am): Likewise.
9961         * modules/netinet_in (Makefile.am): Likewise.
9962         * modules/poll-h (Makefile.am): Likewise.
9963         * modules/pthread (Makefile.am): Likewise.
9964         * modules/pty (Makefile.am): Likewise.
9965         * modules/sched (Makefile.am): Likewise.
9966         * modules/search (Makefile.am): Likewise.
9967         * modules/selinux-h (Makefile.am): Likewise.
9968         * modules/signal (Makefile.am): Likewise.
9969         * modules/spawn (Makefile.am): Likewise.
9970         * modules/stdarg (Makefile.am): Likewise.
9971         * modules/stddef (Makefile.am): Likewise.
9972         * modules/stdint (Makefile.am): Likewise.
9973         * modules/stdio (Makefile.am): Likewise.
9974         * modules/stdlib (Makefile.am): Likewise.
9975         * modules/string (Makefile.am): Likewise.
9976         * modules/strings (Makefile.am): Likewise.
9977         * modules/sys_file (Makefile.am): Likewise.
9978         * modules/sys_ioctl (Makefile.am): Likewise.
9979         * modules/sys_select (Makefile.am): Likewise.
9980         * modules/sys_socket (Makefile.am): Likewise.
9981         * modules/sys_stat (Makefile.am): Likewise.
9982         * modules/sys_time (Makefile.am): Likewise.
9983         * modules/sys_times (Makefile.am): Likewise.
9984         * modules/sys_uio (Makefile.am): Likewise.
9985         * modules/sys_utsname (Makefile.am): Likewise.
9986         * modules/sys_wait (Makefile.am): Likewise.
9987         * modules/sysexits (Makefile.am): Likewise.
9988         * modules/termios (Makefile.am): Likewise.
9989         * modules/time (Makefile.am): Likewise.
9990         * modules/unistd (Makefile.am): Likewise.
9991         * modules/wchar (Makefile.am): Likewise.
9992         * modules/wctype-h (Makefile.am): Likewise.
9993         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9994
9995 2011-05-29  Bruno Haible  <bruno@clisp.org>
9996
9997         assert-h: Allow multiple gnulib generated replacements to coexist.
9998         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9999
10000 2011-05-29  Bruno Haible  <bruno@clisp.org>
10001
10002         argp: Allow coexistence with strerror_r-posix module.
10003         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10004         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10005         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10006         not the glibc signature.
10007
10008 2011-05-28  Bruno Haible  <bruno@clisp.org>
10009
10010         gnulib-tool: Alternative structure of testdirs, similar to --import.
10011         * gnulib-tool: New option --single-configure.
10012         (func_usage): Document it.
10013         (single_configure): New variable.
10014         (func_modules_transitive_closure_separately,
10015         func_modules_transitive_closure_separately,
10016         func_determine_use_libtests, func_modules_add_dummy_separately,
10017         func_modules_to_filelist_separately): New functions, extracted from
10018         func_import.
10019         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10020         (func_import): Use the new functions.
10021         (func_create_testdir): Set final_modules. Handle $single_configure =
10022         true case.
10023
10024 2011-05-28  Bruno Haible  <bruno@clisp.org>
10025
10026         getloadavg: Remove an unreliable safety check.
10027         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10028         getloadavg.c is in place.
10029         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10030         Reported by Sam Steingold <sds@gnu.org>.
10031
10032 2011-05-28  Bruno Haible  <bruno@clisp.org>
10033
10034         doc: Cleanup yet another file produced by texinfo.tex.
10035         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10036
10037 2011-05-28  Bruno Haible  <bruno@clisp.org>
10038
10039         Finish the conditional dependencies mechanism.
10040         * gnulib-tool: New option --no-conditional-dependencies.
10041         (func_usage): Document it. Don't mark --conditional-dependencies as
10042         experimental.
10043         (cond_dependencies): The possible values can now be true, false, empty.
10044         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10045         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10046         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10047
10048 2011-05-28  Bruno Haible  <bruno@clisp.org>
10049
10050         doc: Use a recent texinfo.tex.
10051         * doc/Makefile (tex_opts): New variable.
10052         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10053
10054 2011-05-28  Jim Meyering  <meyering@redhat.com>
10055
10056         intprops.h: adjust comment to match code change
10057         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10058         only once, it *may* have side effects.  Also fix an unrelated typo.
10059         (_GL_INT_SIGNED): Likewise.
10060
10061 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10062
10063         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10064
10065 2011-05-26  Bruno Haible  <bruno@clisp.org>
10066
10067         mbsrchr: Avoid collision with system function on Interix.
10068         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10069         Reported by Markus Duft <mduft@gentoo.org>.
10070
10071 2011-05-15  James Youngman  <jay@gnu.org>
10072
10073         getopt: for ambiguous options, enumerate the possibilities.
10074         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10075         the ambiguous options when an ambiguous prefix is given. This was
10076         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10077         glibc change was
10078         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10079
10080 2011-05-25  Eric Blake  <eblake@redhat.com>
10081
10082         getcwd: work around mingw bug
10083         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10084         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10085         Reported by Matthias Bolte.
10086
10087 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10088
10089         test-intprops: disable -Wtype-limits diagnostics
10090         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10091         diagnostics.  Otherwise, the integer overflow macros generate many
10092         diagnostics.  Reported by Jim Meyering in
10093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10094
10095         intprops: shorten, to pacify gcc -Woverlength-strings
10096         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10097         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10098         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10099         likely to run afoul of C compiler limits for string constant lengths.
10100         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10101
10102 2011-05-24  Eric Blake  <eblake@redhat.com>
10103
10104         docs: document recently fixed glibc printf bug
10105         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10106         * doc/posix-functions/printf.texi (printf): Likewise.
10107         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10108         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10109
10110         closein-tests: convert to init.sh
10111         * modules/closein-tests (Files): Add init.sh
10112         * tests/test-closein.sh Use it.
10113
10114         yesno-tests: convert to init.sh
10115         * modules/yesno-tests (Files): Add init.sh.
10116         * tests/test-yesno.sh: Use it.
10117
10118         atexit-tests: ensure reliable exit status
10119         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10120         Reported by Bruno Haible.
10121
10122 2011-05-24  Bruno Haible  <bruno@clisp.org>
10123
10124         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10125         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10126         gl_PREREQ_STRERROR_R invocations from here...
10127         * modules/strerror_r-posix (configure.ac): ... to here.
10128
10129 2011-05-24  Eric Blake  <eblake@redhat.com>
10130
10131         strerror_r: fix missing header
10132         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10133
10134         strerror_r: fix AIX test failures
10135         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10136         ERANGE failure.
10137
10138         strerror_r: fix Solaris test failures
10139         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10140         failures.
10141         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10142
10143         strerror_r: enforce POSIX recommendations
10144         * lib/strerror_r.c (safe_copy): New helper method.
10145         (strerror_r): Guarantee a non-empty string.
10146         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10147         recent POSIX rulings and to match our strerror guarantees.
10148         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10149
10150 2011-05-24  Jim Meyering  <meyering@redhat.com>
10151
10152         test-perror2.c: avoid warning about unused variable
10153         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10154
10155 2011-05-24  Eric Blake  <eblake@redhat.com>
10156
10157         perror: avoid spurious test failure on HP-UX
10158         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10159
10160         tests: fix logic bug in init.sh
10161         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10162         shell.
10163
10164 2011-05-24  Jim Meyering  <meyering@redhat.com>
10165
10166         utimensat: do not reference an out-of-scope buffer
10167         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10168         declared in an inner scope, yet "times" would be dereferenced outside
10169         the scope in which "ts" was valid.
10170         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10171         of ts[2] "out/up", so that the use of aliased "times" (via
10172         "times = ts;") does not end up referencing an out-of-scope "ts"
10173
10174         opendir-safer.c: don't clobber errno; don't close negative FD
10175         * lib/opendir-safer.c (opendir_safer):
10176         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10177         file descriptor, and more importantly, don't clobber the
10178         offending errno value with EINVAL.  Before, upon failure
10179         of dup_safer, we would pass the negative file descriptor to
10180         fdopendir, which would clobber errno.
10181
10182 2011-05-23  Bruno Haible  <bruno@clisp.org>
10183
10184         idcache: Fix module description.
10185         * modules/idcache (Include): Set to "idcache.h".
10186
10187 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10188
10189         gnulib-tool: fix portability problem with MacOS sed
10190         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10191         before the "}".  Problem reported by Leo in
10192         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10193         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10194         sed_extract_condition1, sed_extract_condition2.
10195
10196 2011-05-23  Bruno Haible  <bruno@clisp.org>
10197
10198         hash: Simplify autoconf macro.
10199         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10200
10201 2011-05-23  Bruno Haible  <bruno@clisp.org>
10202
10203         getugroups: Fix module description.
10204         * modules/getugroups (Include): Set to "getugroups.h".
10205
10206 2011-05-23  Bruno Haible  <bruno@clisp.org>
10207
10208         linkat: Simplify autoconf macro.
10209         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10210
10211 2011-05-23  Bruno Haible  <bruno@clisp.org>
10212             Eric Blake  <eblake@redhat.com>
10213
10214         linkat, renameat: Update dependencies.
10215         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10216         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10217         symlinkat.
10218
10219 2011-05-23  Jim Meyering  <meyering@redhat.com>
10220
10221         maint.mk: more tight_scope improvements
10222         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10223         (_gl_TS_headers): Define only in if-0'd block.
10224         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10225         sometimes we must *not* use it.  Adjust uses accordingly.
10226         (sc_tight_scope): Use much simpler grep-based test to determine
10227         whether we skip this rule.
10228
10229         maint.mk: generalize/improve the tight-scope rule
10230         * top/maint.mk: Emit a warning when the test is skipped.
10231         (_gl_TS_dir): Add $(srcdir)/ prefix.
10232         (_gl_TS_function_match): Simplify, rather than trying
10233         to enumerate common types.  Otherwise, it would fail to match an
10234         "extern unsigned char const *" declaration in idutils.
10235         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10236         a way to support use of that type of macro.
10237         (_gl_TS_var_match): Simplify regexp.
10238         (_gl_TS_obj_files): New configurable variable.
10239         (_gl_TS_headers): Likewise.
10240
10241 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10242
10243         verify: fix bug when gnulib <assert.h> is also included
10244         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10245         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10246         Perhaps there's a better way, but this fixes the immediate problem.
10247         Problem reported by Bruno Haible in
10248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10249
10250 2011-05-22  Bruno Haible  <bruno@clisp.org>
10251
10252         xgetcwd: Simplify autoconf macro.
10253         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10254
10255 2011-05-22  Bruno Haible  <bruno@clisp.org>
10256
10257         New module 'mktime-internal'.
10258         * modules/mktime-internal: New file.
10259         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10260         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10261         mktime_internal as a C macro if libc has __mktime_internal.
10262         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10263         conditions.
10264         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10265
10266 2011-05-22  Bruno Haible  <bruno@clisp.org>
10267
10268         timegm: Correct mktime replacement statements.
10269         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10270         defining mktime as a C macro. This completes a 2009-07-28 commit.
10271
10272 2011-05-22  Bruno Haible  <bruno@clisp.org>
10273
10274         timegm: Simplify autoconf macro.
10275         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10276
10277 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10278
10279         clock-time: change to LGPLv2+.
10280         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10281         BSD-like but we have no mark for that; this is good enough for now.
10282
10283 2011-05-21  Bruno Haible  <bruno@clisp.org>
10284
10285         strerror_r: Fix comments.
10286         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10287
10288 2011-05-21  Bruno Haible  <bruno@clisp.org>
10289
10290         relocatable-prog-wrapper: Fix possible link error.
10291         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10292         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10293         (gl_FUNC_SETENV): ... to here.
10294         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10295         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10296
10297 2011-05-21  Bruno Haible  <bruno@clisp.org>
10298
10299         relocatable-prog-wrapper: Assume strerror() exists.
10300         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10301         m4/strerror.m4.
10302         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10303         * lib/relocwrapper.c: Remove mention of strerror module.
10304         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10305         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10306         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10307         C macro.
10308
10309 2011-05-21  Bruno Haible  <bruno@clisp.org>
10310
10311         select: Simplify replacement idiom.
10312         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10313         Win32 platforms.
10314         * lib/sys_select.in.h (select): Simplify accordingly.
10315         * modules/select (Depends-on): Likewise.
10316
10317 2011-05-21  Bruno Haible  <bruno@clisp.org>
10318
10319         mkdir-p: Simplify autoconf macro.
10320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10321         gl_FUNC_LCHOWN.
10322
10323 2011-05-21  Eric Blake  <eblake@redhat.com>
10324
10325         strerror_r: avoid clobbering strerror on cygwin
10326         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10327         fall back instead to sys_errlist.
10328         * modules/strerror (configure.ac): Add witness.
10329         * tests/test-strerror_r.c (main): Enhance test.
10330         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10331         * tests/test-perror2.c (main): Free memory before exit.
10332
10333 2011-05-21  Bruno Haible  <bruno@clisp.org>
10334
10335         mkdtemp: Use gnulib naming conventions.
10336         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10337         * modules/mkdtemp (configure.ac): Update.
10338
10339 2011-05-20  Eric Blake  <eblake@redhat.com>
10340
10341         strerror_r: avoid corrupting errno on Solaris
10342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10343         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10344
10345         strerror_r: avoid compiler warning
10346         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10347
10348         strerror_r: simplify AIX code
10349         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10350
10351         test-perror: avoid spurious failure on FreeBSD
10352         * modules/perror-tests (Depends-on): Add strerror, now that
10353         strerror_r no longer pulls it in.
10354
10355 2011-05-20  Bruno Haible  <bruno@clisp.org>
10356
10357         strerror_r-posix: Remove unused dependencies.
10358         * modules/strerror_r-posix (Depends-on): Remove strerror.
10359         Reported by Eric Blake.
10360
10361 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10362
10363         intprops: remove assumption about A|B representation
10364         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10365         is a valid integer if both A and B are.  Although this is true for
10366         all known practical hosts, the C standard doesn't guarantee it,
10367         and the code need not assume it.  Also, this change may work around
10368         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10370
10371 2011-05-20  Eric Blake  <eblake@redhat.com>
10372
10373         perror: work around FreeBSD bug
10374         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10375         is broken.  Move AC_LIBOBJ...
10376         * modules/perror (configure.ac): Here.
10377         * doc/posix-functions/perror.texi (perror): Document this.
10378         * tests/test-perror2.c (main): Enhance test.
10379
10380         test-perror: check for strerror interactions
10381         * tests/macros.h (STREQ): Add macro.
10382         * modules/perror-tests (Files): Add second test.
10383         * tests/test-perror2.c (main): New file.
10384         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10385
10386         test-perror: rewrite to use init script
10387         * modules/perror-tests (Files): Add init.sh.
10388         * tests/test-perror.sh: Use temporary directory.
10389
10390 2011-05-20  Jim Meyering  <meyering@redhat.com>
10391
10392         maint: replace misused "a" with "an"
10393         * doc/intprops.texi: "a integer"
10394         * doc/regex.texi: "a explanation"
10395         * lib/alignof.h: "a object"
10396         * lib/argmatch.h: "a explanation"
10397         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10398         * lib/stdint.in.h: "a integer"
10399         * lib/userspec.c: "a owner"
10400         * doc/gnulib.texi: Fix "a idea", and reword.
10401
10402 2011-05-19  Jim Meyering  <meyering@redhat.com>
10403
10404         maint: correct misuse of "a" and "an"
10405         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10406         * lib/argp-help.c: "an docum...": s/an/a/
10407         * lib/argp-parse.c: "An vector": s/An/A/
10408         * lib/execute.c: "an native": s/an/a/
10409         * lib/spawn-pipe.c: Likewise.
10410         * lib/gc.h: "an Gc_rc": s/an/a/
10411         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10412         * lib/fts.c: "an stat.st_dev": s/an/a/
10413
10414 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10415
10416         intprops-tests: work around HP-UX 11.23 cc bug with constants
10417         * tests/test-intprops.c (VERIFY): New macro.
10418         (main): Use it, instead of verify, to work around the compiler bug; see
10419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10420
10421         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10422         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10423         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10424         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10425         (_GL_REMAINDER_OVERFLOW): Use it.
10426
10427         intprops-tests: revert unsigned part of previous change
10428         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10429         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10430         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10432
10433 2011-05-19  Bruno Haible  <bruno@clisp.org>
10434
10435         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10436         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10437         strerror_r() returned without filling the buffer.
10438         Reported by Eric Blake.
10439
10440 2011-05-19  Eric Blake  <eblake@redhat.com>
10441
10442         strerror_r: guarantee unchanged errno
10443         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10444         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10445         failure.
10446         * tests/test-strerror_r.c (main): Enhance test.
10447
10448 2011-05-19  Bruno Haible  <bruno@clisp.org>
10449
10450         strerror_r: Reorder #if blocks.
10451         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10452         for consistency with the previous commit.
10453
10454 2011-05-19  Bruno Haible  <bruno@clisp.org>
10455
10456         perror: Avoid clobbering the strerror buffer when possible.
10457         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10458         * lib/strerror.c: Include it.
10459         * modules/strerror (Files): Add lib/strerror-impl.h.
10460         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10461         (my_strerror): New function, defined through lib/strerror-impl.h.
10462         (perror): Use it instead of strerror.
10463         * modules/perror (Files): Add lib/strerror-impl.h.
10464         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10465
10466 2011-05-19  Eric Blake  <eblake@redhat.com>
10467
10468         strerror_r: fix on newer cygwin
10469         * lib/strerror_r.c (strerror_r): Cygwin now has
10470         __xpg_strerror_r, use it.
10471
10472 2011-05-19  Bruno Haible  <bruno@clisp.org>
10473
10474         strerror_r: Avoid clobbering the strerror buffer when possible.
10475         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10476         (sys_nerr, sys_errlist): New declarations.
10477         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10478         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10479         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10480
10481 2011-05-19  Bruno Haible  <bruno@clisp.org>
10482
10483         strerror_r: Fix test failure on mingw.
10484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10485         EXTEND_STRERROR_R.
10486         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10487         macros from errno.in.h instead.
10488
10489 2011-05-19  Eric Blake  <eblake@redhat.com>
10490
10491         strerror: relax test for Solaris
10492         * tests/test-strerror.c (main): Permit Solaris behavior.
10493         * tests/test-strerror_r.c (main): Likewise.
10494
10495         strerror: enforce POSIX ruling on strerror(0)
10496         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10498         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10499         * doc/posix-functions/strerror.texi (strerror): Document it.
10500         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10501         * tests/test-strerror.c (main): Strengthen test.
10502         * tests/test-strerror_r.c (main): Likewise.
10503
10504 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10505
10506         intprop-tests: port to older and more-pedantic compilers
10507         * modules/intprops-tests (Files): Add tests/macros.h.
10508         * tests/test-intprops.c: Include macros.h.
10509         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10510         it's no longer documented to expand to an integer constant expression.
10511         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10512         argument is floating point, as it's no longer documented to expand
10513         to an integer constant expression in that case.
10514         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10515         compiler bugs reported by Bruno Haible.  See
10516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10517         (U0, U1): New constants, to work around the same bugs.  Also,
10518         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10519
10520         intprops: work around C compiler bugs
10521         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10522         bug in Sun C 5.11 2010/08/13 and other compilers; see
10523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10524
10525         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10526         * doc/intprops.texi (Integer Type Determination): Fix
10527         documentation for TYPE_IS_INTEGER: it returns an constant
10528         expression, not an integer constant expression.  Fix doc for
10529         TYPE_SIGNED: it returns an integer constant expression only if its
10530         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10531         hardly worth documented that way....)
10532
10533 2011-05-18  Bruno Haible  <bruno@clisp.org>
10534
10535         strerror_r: Avoid clobbering the strerror buffer when possible.
10536         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10537         Handle gnulib defined errno values here. When strerror() returns NULL
10538         or an empty string, return EINVAL.
10539         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10540         gnulib defined errno values here.
10541         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10542
10543 2011-05-18  Eric Blake  <eblake@redhat.com>
10544
10545         fnmatch: avoid compiler warning
10546         * lib/fnmatch_loop.c (FCT): Use correct type.
10547         Reported by Matthias Bolte.
10548
10549 2011-05-13  Jim Meyering  <meyering@redhat.com>
10550
10551         maint.mk: three new prohibit_<HDR>_without_use rules
10552         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10553         (sc_prohibit_stdio-safer_without_use): Likewise.
10554         (sc_prohibit_xfreopen_without_use): Likewise.
10555
10556 2011-05-17  Jim Meyering  <meyering@redhat.com>
10557
10558         announce-gen: fail if the NEWS delta is empty
10559         If there's nothing noteworthy in NEWS, then either you forgot
10560         or you shouldn't be releasing.
10561         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10562
10563 2011-05-17  Pádraig Brady <P@draigBrady.com>
10564
10565         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10566         reserved symbols starting with double underscore from the check.
10567
10568 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10569
10570         intprops: add doc
10571         * doc/intprops.texi: New file, documenting intprops.
10572         * doc/gnulib.texi (Particular Modules): Include it.
10573
10574         verify: add doc to gnulib manual and fix example
10575         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10576         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10577         (Compile-time Assertions): Fix example so it can't overflow.
10578
10579 2011-05-17  Jim Meyering  <meyering@redhat.com>
10580
10581         warnings.m4: don't usurp save_CPPFLAGS variable name
10582         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10583
10584         doc: fix typo
10585         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10586
10587 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10588             Bruno Haible  <bruno@clisp.org>
10589
10590         doc: Tweak recent change.
10591         * README (Portability guidelines): Tweak new text.
10592         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10593         Interix 6.1.
10594
10595 2011-05-16  Eric Blake  <eblake@redhat.com>
10596
10597         inttypes: avoid autoconf warning
10598         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10599         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10600
10601 2011-05-16  Sam Steingold <sds@gnu.org>
10602         and Eric Blake  <eblake@redhat.com>
10603
10604         vc-list-files: accept multiple directory operands
10605         * build-aux/vc-list-files: Iterate over all remaining operands.
10606
10607 2011-05-16  Bruno Haible  <bruno@clisp.org>
10608
10609         Fix confusion regarding deprecated modules.
10610         * modules/calloc (Status, Notice): Mark module as deprecated, not
10611         obsolete.
10612         * modules/fnmatch-posix (Status, Notice): Likewise.
10613         * modules/getdate (Status, Notice): Likewise.
10614         * modules/getopt (Status, Notice): Likewise.
10615         * modules/malloc (Status, Notice): Likewise.
10616         * modules/pipe (Status, Notice): Likewise.
10617         * modules/realloc (Status, Notice): Likewise.
10618         * modules/rename-dest-slash (Status, Notice): Likewise.
10619         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10620         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10621         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10622         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10623         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10624
10625 2011-05-16  Bruno Haible  <bruno@clisp.org>
10626
10627         doc: List the target platforms.
10628         * doc/gnulib-intro.texi (Target Platforms): New section.
10629         * doc/gnulib.texi (Introduction): Update menu.
10630         * README (Portability guidelines): Refer to the new section. Update
10631         statement about oldest supported environment. Remove rationale why
10632         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10633         unportable C89 function.
10634         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10635         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10636
10637 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10640
10641 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10642
10643         intprops-tests: new module
10644         * modules/intprops-tests, tests/test-intprops.c: New files.
10645
10646         intprops: add safe, portable integer overflow checking
10647         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10648         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10649         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10650         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10651         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10652         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10653         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10654         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10655         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10656         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10657         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10658
10659 2011-05-12  James Youngman  <jay@gnu.org>
10660
10661         Add a test for glibc's Bugzilla bug #12378.
10662         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10663         doesn't allow the literal matching of a lone "[" (which is
10664         required by POSIX).
10665         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10666
10667 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10668
10669         Sync glibc change fixing Bugzilla bug #12378.
10670         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10671         beginning and fall back to matching as normal character if the
10672         string ends before the matching ']' is found.  This is what POSIX
10673         requires.
10674
10675 2011-05-13  Eric Blake  <eblake@redhat.com>
10676
10677         getcwd-lgpl: relax test for FreeBSD
10678         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10679         issue.
10680         * tests/test-getcwd-lgpl.c (main): Relax test.
10681         Reported by Matthias Bolte.
10682
10683 2011-05-11  Eric Blake  <eblake@redhat.com>
10684
10685         test-fflush: silence compiler warning
10686         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10687
10688 2011-05-11  Bruno Haible  <bruno@clisp.org>
10689
10690         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10691         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10692         * modules/canonicalize (Depends-on): Add 'nocrash'.
10693         * modules/canonicalize-lgpl (Depends-on): Likewise.
10694         * doc/posix-functions/realpath.texi: Update platforms list.
10695         Reported by Ryan Schmidt <ryandesign@macports.org>.
10696
10697 2011-05-11  Bruno Haible  <bruno@clisp.org>
10698
10699         group-member: Declare function in <unistd.h>.
10700         * lib/unistd.in.h (group_member): New declaration.
10701         * lib/group-member.h: Remove file.
10702         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10703         * tests/test-unistd-c++.cc: Check signature of group_member.
10704         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10705         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10706         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10707         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10708         HAVE_GROUP_MEMBER.
10709         * modules/group-member (Files): Remove lib/group-member.h.
10710         (Depends-on): Add unistd. Specify conditions.
10711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10712         (Include): Change to <unistd.h>.
10713         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10714         HAVE_GROUP_MEMBER.
10715         * NEWS: Mention the change.
10716         * lib/euidaccess.c: Don't include group-member.h.
10717
10718 2011-05-11  Bruno Haible  <bruno@clisp.org>
10719
10720         group-member: Document module.
10721         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10722         module.
10723
10724 2011-05-11  Bruno Haible  <bruno@clisp.org>
10725
10726         fclose: Fix mistake earlier today.
10727         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10728
10729 2011-05-11  Eric Blake  <eblake@redhat.com>
10730
10731         fclose: preserve fflush errors
10732         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10733         Reported by Jim Meyering.
10734
10735         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10736         * build-aux/bootstrap (check_versions): When no specific version
10737         is required, merely check that the app produces an exit status
10738         that indicates its existence.
10739
10740         maint.mk: drop redundant check
10741         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10742         the same but better.
10743
10744 2011-05-11  Bruno Haible  <bruno@clisp.org>
10745
10746         fclose: Fix possible link error.
10747         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10748         unregister_shadow_fd. Improve comments.
10749         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10750         Eric Blake.
10751
10752 2011-05-11  Jim Meyering  <meyering@redhat.com>
10753
10754         maint.mk: improve "can not" detection and generalize rule name
10755         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10756         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10757         Use the same technique as in sc_prohibit_doubled_word, so that
10758         we recognize "can not" also when the words are separated by a newline.
10759         Suggested by Eric Blake.
10760         (perl_filename_lineno_text_): Define.  Factored out of...
10761         (prohibit_doubled_word_): ...here.  Use the new definition.
10762         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10763         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10764         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10765
10766 2011-05-10  Eric Blake  <eblake@redhat.com>
10767
10768         fclose: avoid double close race when possible
10769         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10770         all but WINDOWS_SOCKETS.
10771
10772 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10773
10774         openat: correct new comment
10775         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10776
10777 2011-05-10  Jim Meyering  <meyering@redhat.com>
10778
10779         openat: add comments
10780         * lib/openat-proc.c (openat_proc_name): Add comments,
10781         mostly from Eric Blake.
10782
10783 2011-05-09  Eric Blake  <eblake@redhat.com>
10784
10785         openat: reduce syscalls in first probe of /proc
10786         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10787         be a directory.  Simplify the probe for .. bugs.
10788         * modules/openat (Depends-on): Drop same-inode.
10789         Reported by Bastien ROUCARIES.
10790
10791 2011-05-09  Jim Meyering  <meyering@redhat.com>
10792
10793         maint.mk: change semantics/name of tight_scope variables
10794         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10795         Rename variables to align with semantics that make them more useful.
10796
10797         maint.mk: tweak new rule's name not to impinge
10798         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10799         (sc_tight_scope): Use new rule name rather than $@-0.
10800
10801         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10802         * top/maint.mk (sc_tight_scope): New rule.
10803         (sc_tight_scope-0): New rule, ifdef'd out.
10804         (_gl_TS_dir): Default.
10805         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10806         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10807
10808 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10809
10810         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10811         Haible <bruno@clisp.org>.
10812
10813 2011-05-08  Bruno Haible  <bruno@clisp.org>
10814
10815         Comments.
10816         * m4/isnanf.m4: Add comment.
10817         * m4/isnanl.m4: Likewise.
10818
10819 2011-05-08  Bruno Haible  <bruno@clisp.org>
10820
10821         glob: Remove obsolete macro.
10822         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10823
10824 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10825
10826         intprops: Sun C 5.11 supports __typeof__
10827         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10828         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10829         which is new.
10830         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10831
10832         intprops: switch to usual gnulib indenting and naming
10833         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10834         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10835
10836         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10837
10838 2011-05-08  Jim Meyering  <meyering@redhat.com>
10839
10840         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10841         * top/maint.mk (release-prep): Use make's --no-print-directory
10842         option when generating the announcement.  This eliminates the
10843         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10844         generated announcement template.
10845
10846 2011-05-08  Bruno Haible  <bruno@clisp.org>
10847
10848         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10849         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10850         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10851
10852 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10853
10854         ignore-value, verify: Omit include files from lib_SOURCES.
10855         * modules/ignore-value, modules/verify (Makefile.am):
10856         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10857         that leads Automake to duplicate use of am__objects_... variables
10858         in Makefile.in.  See
10859         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10860
10861 2011-05-07  Bruno Haible  <bruno@clisp.org>
10862
10863         fclose: Simplify autoconf macro.
10864         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10865         defined.
10866
10867 2011-05-07  Bruno Haible  <bruno@clisp.org>
10868
10869         canonicalize-lgpl: Fix autoconf macro ordering bug.
10870         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10871         gl_STDLIB_H_DEFAULTS.
10872
10873 2011-05-06  Eric Blake  <eblake@redhat.com>
10874
10875         maintainer-makefile: make sc_po_check easier to tune
10876         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10877         to probe for strings, such as an alternate location for gnulib.
10878
10879         fclose: guarantee behavior on seekable stdin
10880         * modules/fclose (Depends-on): Add fflush.
10881         * doc/posix-functions/fclose.texi (fclose): Document this.
10882         * tests/test-fclose.c (main): Make test for this unconditional.
10883
10884 2011-05-06  Bruno Haible  <bruno@clisp.org>
10885
10886         fflush, fpurge: Relicense under LGPLv2+.
10887         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10888         * modules/fpurge (License): Likewise.
10889         With permission from Eric Blake and Jim Meyering.
10890         Suggested by Eric Blake.
10891
10892 2011-05-06  Karl Berry  <karl@gnu.org>
10893
10894         * MODULES.html.sh (func_all_modules): remove exit.
10895
10896 2011-05-06  Jim Meyering  <meyering@redhat.com>
10897
10898         maint.mk: use info-gnu@ as the default only for a stable release
10899         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10900         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10901         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10902         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10903
10904 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10905
10906         assert-h: new module, which supports C1X-style static_assert
10907         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10908         * lib/verify.h: Revamp so that this can be copied into assert.h,
10909         while retaining the ability to use it standalone as before.
10910         Rename private identifiers so as not to encroach on the
10911         standard C namespace, since this is now used by assert.h.
10912         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10913         the old verify_true.
10914         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10915         the old verify_true.  Use _GL_VERIFY_TYPE.
10916         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10917         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10918         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10919         defined when this file is copied into the replacement assert.h.
10920         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10921         and _Static_assert is not built in.
10922         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10923         defined, and use the new macros mentioned above.
10924         * doc/posix-headers/assert.texi: Document this.
10925
10926 2011-05-05  Bruno Haible  <bruno@clisp.org>
10927
10928         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10929         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10930         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10931         gl_REPLACE_FCLOSE here.
10932         * modules/fflush (Depends-on): Remove fclose.
10933         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10934         combination with module 'fclose'.
10935
10936 2011-05-05  Bruno Haible  <bruno@clisp.org>
10937
10938         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10939         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10940         gl_FUNC_FFLUSH.
10941         (gl_FUNC_FFLUSH): Use it.
10942         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10943         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10944         gl_REPLACE_FSEEKO here.
10945
10946 2011-05-05  Bruno Haible  <bruno@clisp.org>
10947
10948         tzset: Relicense under LGPL.
10949         * modules/tzset (License): Change to LGPL.
10950         No agreement needed; it's a no-op.
10951
10952         strtoimax, strtoumax: Relicense under LGPL.
10953         * modules/strtoimax (License): Change to LGPL.
10954         * modules/strtoumax (License): Likewise.
10955         With permission from Jim Meyering, Paul Eggert:
10956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10957         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10958
10959         getgroups: Relicense under LGPL.
10960         * modules/getgroups (License): Change to LGPL.
10961         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10965
10966         nanosleep: Relicense under LGPL.
10967         * modules/nanosleep (License): Change to LGPL.
10968         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10969         Haible:
10970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10974
10975         futimens: Relicense under LGPL.
10976         * modules/futimens (License): Change to LGPL.
10977         With permission from Eric Blake:
10978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10979
10980         fflush: Relicense under LGPL.
10981         * modules/fflush (License): Change to LGPL.
10982         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10986
10987         tmpfile: Relicense under LGPL.
10988         * modules/tmpfile (License): Change to LGPL.
10989         With permission from Ben Pfaff:
10990         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10991
10992         isfinite: Relicense under LGPL.
10993         * modules/isfinite (License): Change to LGPL.
10994         With permission from Ben Pfaff, Bruno Haible:
10995         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10997
10998         acosl..tanl: Relicense under LGPL.
10999         * modules/acosl (License): Change to LGPL.
11000         * modules/asinl (License): Likewise.
11001         * modules/atanl (License): Likewise.
11002         * modules/cosl (License): Likewise.
11003         * modules/expl (License): Likewise.
11004         * modules/logl (License): Likewise.
11005         * modules/sinl (License): Likewise.
11006         * modules/sqrtl (License): Likewise.
11007         * modules/tanl (License): Likewise.
11008         Source code originally from glibc and Paolo Bonzini. Agreements:
11009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11011
11012 2011-05-05  Bruno Haible  <bruno@clisp.org>
11013
11014         signal: Define sighandler_t.
11015         * lib/signal.in.h (sighandler_t): New type.
11016         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11017         whether sighandler_t is defined.
11018         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11019         * modules/signal (Depends-on): Add extensions.
11020         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11021         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11022         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11023
11024 2011-05-05  Eric Blake  <eblake@redhat.com>
11025
11026         maint: remove useless REPLACE_*_H macros
11027         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11028         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11029         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11030         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11031         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11032         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11033         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11034         * m4/btowc.m4: Update callers.
11035         * m4/dirfd.m4: Likewise.
11036         * m4/duplocale.m4: Likewise.
11037         * m4/fchdir.m4: Likewise.
11038         * m4/fdopendir.m4: Likewise.
11039         * m4/inet_ntop.m4: Likewise.
11040         * m4/inet_pton.m4: Likewise.
11041         * m4/ioctl.m4: Likewise.
11042         * m4/mbrlen.m4: Likewise.
11043         * m4/mbrtowc.m4: Likewise.
11044         * m4/mbsinit.m4: Likewise.
11045         * m4/mbsnrtowcs.m4: Likewise.
11046         * m4/mbsrtowcs.m4: Likewise.
11047         * m4/poll.m4: Likewise.
11048         * m4/setlocale.m4: Likewise.
11049         * m4/wcrtomb.m4: Likewise.
11050         * m4/wcsnrtombs.m4: Likewise.
11051         * m4/wcsrtombs.m4: Likewise.
11052         * m4/wctob.m4: Likewise.
11053         * m4/wcwidth.m4: Likewise.
11054         * modules/posix_spawn: Likewise.
11055         * modules/posix_spawn_file_actions_addclose: Likewise.
11056         * modules/posix_spawn_file_actions_adddup2: Likewise.
11057         * modules/posix_spawn_file_actions_addopen: Likewise.
11058         * modules/posix_spawn_file_actions_destroy: Likewise.
11059         * modules/posix_spawn_file_actions_init: Likewise.
11060         * modules/posix_spawnattr_destroy: Likewise.
11061         * modules/posix_spawnattr_getflags: Likewise.
11062         * modules/posix_spawnattr_getpgroup: Likewise.
11063         * modules/posix_spawnattr_getschedparam: Likewise.
11064         * modules/posix_spawnattr_getschedpolicy: Likewise.
11065         * modules/posix_spawnattr_getsigdefault: Likewise.
11066         * modules/posix_spawnattr_getsigmask: Likewise.
11067         * modules/posix_spawnattr_init: Likewise.
11068         * modules/posix_spawnattr_setflags: Likewise.
11069         * modules/posix_spawnattr_setpgroup: Likewise.
11070         * modules/posix_spawnattr_setschedparam: Likewise.
11071         * modules/posix_spawnattr_setschedpolicy: Likewise.
11072         * modules/posix_spawnattr_setsigdefault: Likewise.
11073         * modules/posix_spawnattr_setsigmask: Likewise.
11074         * modules/posix_spawnp: Likewise.
11075
11076 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11077
11078         Add option to do-release-commit-and-tag to specify branch.
11079         * build-aux/do-release-commit-and-tag: Add --branch.
11080
11081 2011-05-03  Bruno Haible  <bruno@clisp.org>
11082
11083         Avoid unnecessary compilation units, through conditional dependencies.
11084         * modules/accept (Depends-on): Add conditions to the dependencies.
11085         * modules/acosl (Depends-on): Likewise.
11086         * modules/argz (Depends-on): Likewise.
11087         * modules/asinl (Depends-on): Likewise.
11088         * modules/atanl (Depends-on): Likewise.
11089         * modules/atoll (Depends-on): Likewise.
11090         * modules/bind (Depends-on): Likewise.
11091         * modules/btowc (Depends-on): Likewise.
11092         * modules/canonicalize-lgpl (Depends-on): Likewise.
11093         * modules/ceil (Depends-on): Likewise.
11094         * modules/ceilf (Depends-on): Likewise.
11095         * modules/ceill (Depends-on): Likewise.
11096         * modules/chdir-long (Depends-on): Likewise.
11097         * modules/chown (Depends-on): Likewise.
11098         * modules/close (Depends-on): Likewise.
11099         * modules/connect (Depends-on): Likewise.
11100         * modules/cosl (Depends-on): Likewise.
11101         * modules/dirfd (Depends-on): Likewise.
11102         * modules/dprintf (Depends-on): Likewise.
11103         * modules/dprintf-posix (Depends-on): Likewise.
11104         * modules/error (Depends-on): Likewise.
11105         * modules/euidaccess (Depends-on): Likewise.
11106         * modules/expl (Depends-on): Likewise.
11107         * modules/faccessat (Depends-on): Likewise.
11108         * modules/fchdir (Depends-on): Likewise.
11109         * modules/fclose (Depends-on): Likewise.
11110         * modules/fcntl (Depends-on): Likewise.
11111         * modules/fdopendir (Depends-on): Likewise.
11112         * modules/fflush (Depends-on): Likewise.
11113         * modules/floor (Depends-on): Likewise.
11114         * modules/floorf (Depends-on): Likewise.
11115         * modules/floorl (Depends-on): Likewise.
11116         * modules/fnmatch (Depends-on): Likewise.
11117         * modules/fopen (Depends-on): Likewise.
11118         * modules/fprintf-posix (Depends-on): Likewise.
11119         * modules/frexp (Depends-on): Likewise.
11120         * modules/frexp-nolibm (Depends-on): Likewise.
11121         * modules/frexpl (Depends-on): Likewise.
11122         * modules/frexpl-nolibm (Depends-on): Likewise.
11123         * modules/fseek (Depends-on): Likewise.
11124         * modules/fsusage (Depends-on): Likewise.
11125         * modules/ftell (Depends-on): Likewise.
11126         * modules/ftello (Depends-on): Likewise.
11127         * modules/futimens (Depends-on): Likewise.
11128         * modules/getcwd (Depends-on): Likewise.
11129         * modules/getcwd-lgpl (Depends-on): Likewise.
11130         * modules/getdelim (Depends-on): Likewise.
11131         * modules/getdomainname (Depends-on): Likewise.
11132         * modules/getgroups (Depends-on): Likewise.
11133         * modules/gethostname (Depends-on): Likewise.
11134         * modules/getline (Depends-on): Likewise.
11135         * modules/getlogin_r (Depends-on): Likewise.
11136         * modules/getopt-posix (Depends-on): Likewise.
11137         * modules/getpeername (Depends-on): Likewise.
11138         * modules/getsockname (Depends-on): Likewise.
11139         * modules/getsockopt (Depends-on): Likewise.
11140         * modules/getsubopt (Depends-on): Likewise.
11141         * modules/getusershell (Depends-on): Likewise.
11142         * modules/glob (Depends-on): Likewise.
11143         * modules/grantpt (Depends-on): Likewise.
11144         * modules/iconv_open (Depends-on): Likewise.
11145         * modules/iconv_open-utf (Depends-on): Likewise.
11146         * modules/inet_ntop (Depends-on): Likewise.
11147         * modules/inet_pton (Depends-on): Likewise.
11148         * modules/ioctl (Depends-on): Likewise.
11149         * modules/isapipe (Depends-on): Likewise.
11150         * modules/isfinite (Depends-on): Likewise.
11151         * modules/isinf (Depends-on): Likewise.
11152         * modules/lchown (Depends-on): Likewise.
11153         * modules/ldexpl (Depends-on): Likewise.
11154         * modules/link (Depends-on): Likewise.
11155         * modules/linkat (Depends-on): Likewise.
11156         * modules/listen (Depends-on): Likewise.
11157         * modules/logl (Depends-on): Likewise.
11158         * modules/lstat (Depends-on): Likewise.
11159         * modules/mbrlen (Depends-on): Likewise.
11160         * modules/mbrtowc (Depends-on): Likewise.
11161         * modules/mbsinit (Depends-on): Likewise.
11162         * modules/mbsnrtowcs (Depends-on): Likewise.
11163         * modules/mbsrtowcs (Depends-on): Likewise.
11164         * modules/mbtowc (Depends-on): Likewise.
11165         * modules/memcmp (Depends-on): Likewise.
11166         * modules/mkdir (Depends-on): Likewise.
11167         * modules/mkdtemp (Depends-on): Likewise.
11168         * modules/mkfifo (Depends-on): Likewise.
11169         * modules/mkfifoat (Depends-on): Likewise.
11170         * modules/mknod (Depends-on): Likewise.
11171         * modules/mkostemp (Depends-on): Likewise.
11172         * modules/mkostemps (Depends-on): Likewise.
11173         * modules/mkstemp (Depends-on): Likewise.
11174         * modules/mkstemps (Depends-on): Likewise.
11175         * modules/mktime (Depends-on): Likewise.
11176         * modules/nanosleep (Depends-on): Likewise.
11177         * modules/open (Depends-on): Likewise.
11178         * modules/openat (Depends-on): Likewise.
11179         * modules/perror (Depends-on): Likewise.
11180         * modules/poll (Depends-on): Likewise.
11181         * modules/popen (Depends-on): Likewise.
11182         * modules/posix_spawn (Depends-on): Likewise.
11183         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11184         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11185         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11186         * modules/posix_spawnp (Depends-on): Likewise.
11187         * modules/pread (Depends-on): Likewise.
11188         * modules/printf-posix (Depends-on): Likewise.
11189         * modules/ptsname (Depends-on): Likewise.
11190         * modules/putenv (Depends-on): Likewise.
11191         * modules/pwrite (Depends-on): Likewise.
11192         * modules/readline (Depends-on): Likewise.
11193         * modules/readlink (Depends-on): Likewise.
11194         * modules/readlinkat (Depends-on): Likewise.
11195         * modules/recv (Depends-on): Likewise.
11196         * modules/recvfrom (Depends-on): Likewise.
11197         * modules/regex (Depends-on): Likewise.
11198         * modules/remove (Depends-on): Likewise.
11199         * modules/rename (Depends-on): Likewise.
11200         * modules/renameat (Depends-on): Likewise.
11201         * modules/rmdir (Depends-on): Likewise.
11202         * modules/round (Depends-on): Likewise.
11203         * modules/roundf (Depends-on): Likewise.
11204         * modules/roundl (Depends-on): Likewise.
11205         * modules/rpmatch (Depends-on): Likewise.
11206         * modules/select (Depends-on): Likewise.
11207         * modules/send (Depends-on): Likewise.
11208         * modules/sendto (Depends-on): Likewise.
11209         * modules/setenv (Depends-on): Likewise.
11210         * modules/setlocale (Depends-on): Likewise.
11211         * modules/setsockopt (Depends-on): Likewise.
11212         * modules/shutdown (Depends-on): Likewise.
11213         * modules/sigaction (Depends-on): Likewise.
11214         * modules/signbit (Depends-on): Likewise.
11215         * modules/sigprocmask (Depends-on): Likewise.
11216         * modules/sinl (Depends-on): Likewise.
11217         * modules/sleep (Depends-on): Likewise.
11218         * modules/snprintf (Depends-on): Likewise.
11219         * modules/snprintf-posix (Depends-on): Likewise.
11220         * modules/socket (Depends-on): Likewise.
11221         * modules/sprintf-posix (Depends-on): Likewise.
11222         * modules/sqrtl (Depends-on): Likewise.
11223         * modules/stat (Depends-on): Likewise.
11224         * modules/strchrnul (Depends-on): Likewise.
11225         * modules/strdup-posix (Depends-on): Likewise.
11226         * modules/strerror (Depends-on): Likewise.
11227         * modules/strerror_r-posix (Depends-on): Likewise.
11228         * modules/strndup (Depends-on): Likewise.
11229         * modules/strnlen (Depends-on): Likewise.
11230         * modules/strptime (Depends-on): Likewise.
11231         * modules/strsep (Depends-on): Likewise.
11232         * modules/strsignal (Depends-on): Likewise.
11233         * modules/strstr-simple (Depends-on): Likewise.
11234         * modules/strtod (Depends-on): Likewise.
11235         * modules/strtoimax (Depends-on): Likewise.
11236         * modules/strtok_r (Depends-on): Likewise.
11237         * modules/strtoumax (Depends-on): Likewise.
11238         * modules/symlink (Depends-on): Likewise.
11239         * modules/symlinkat (Depends-on): Likewise.
11240         * modules/tanl (Depends-on): Likewise.
11241         * modules/tcgetsid (Depends-on): Likewise.
11242         * modules/tmpfile (Depends-on): Likewise.
11243         * modules/trunc (Depends-on): Likewise.
11244         * modules/truncf (Depends-on): Likewise.
11245         * modules/truncl (Depends-on): Likewise.
11246         * modules/uname (Depends-on): Likewise.
11247         * modules/unlink (Depends-on): Likewise.
11248         * modules/unlockpt (Depends-on): Likewise.
11249         * modules/unsetenv (Depends-on): Likewise.
11250         * modules/usleep (Depends-on): Likewise.
11251         * modules/utimensat (Depends-on): Likewise.
11252         * modules/vasprintf (Depends-on): Likewise.
11253         * modules/vdprintf (Depends-on): Likewise.
11254         * modules/vdprintf-posix (Depends-on): Likewise.
11255         * modules/vfprintf-posix (Depends-on): Likewise.
11256         * modules/vprintf-posix (Depends-on): Likewise.
11257         * modules/vsnprintf (Depends-on): Likewise.
11258         * modules/vsnprintf-posix (Depends-on): Likewise.
11259         * modules/vsprintf-posix (Depends-on): Likewise.
11260         * modules/wcrtomb (Depends-on): Likewise.
11261         * modules/wcscasecmp (Depends-on): Likewise.
11262         * modules/wcscspn (Depends-on): Likewise.
11263         * modules/wcsdup (Depends-on): Likewise.
11264         * modules/wcsncasecmp (Depends-on): Likewise.
11265         * modules/wcsnrtombs (Depends-on): Likewise.
11266         * modules/wcspbrk (Depends-on): Likewise.
11267         * modules/wcsrtombs (Depends-on): Likewise.
11268         * modules/wcsspn (Depends-on): Likewise.
11269         * modules/wcsstr (Depends-on): Likewise.
11270         * modules/wcstok (Depends-on): Likewise.
11271         * modules/wcswidth (Depends-on): Likewise.
11272         * modules/wctob (Depends-on): Likewise.
11273         * modules/wctomb (Depends-on): Likewise.
11274         * modules/wctype (Depends-on): Likewise.
11275         * modules/wcwidth (Depends-on): Likewise.
11276         * modules/write (Depends-on): Likewise.
11277
11278 2011-05-03  Bruno Haible  <bruno@clisp.org>
11279
11280         Support for conditional dependencies.
11281         * doc/gnulib.texi (Module description): Document the syntax of
11282         conditional dependencies.
11283         * gnulib-tool: New option --conditional-dependencies.
11284         (func_usage): Document it.
11285         (cond_dependencies): New variable.
11286         (func_get_automake_snippet_conditional,
11287         func_get_automake_snippet_unconditional): New functions, extracted from
11288         func_get_automake_snippet.
11289         (func_get_automake_snippet): Use them.
11290         (sed_first_32_chars): New variable.
11291         (func_module_shellfunc_name): New function.
11292         (func_module_shellvar_name): New function.
11293         (func_module_conditional_name): New function.
11294         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11295         func_cond_module_condition): New functions.
11296         (func_modules_transitive_closure): Add support for conditional
11297         dependencies.
11298         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11299         conditional automake snippet in an automake conditional.
11300         (func_emit_autoconf_snippets): Emit shell functions that contain the
11301         code for conditional modules.
11302         (func_import, func_create_testdir): Update specification.
11303
11304 2011-05-03  Eric Blake  <eblake@redhat.com>
11305
11306         test-getaddrinfo: report error information
11307         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11308
11309 2011-05-03  Jim Meyering  <meyering@redhat.com>
11310
11311         bootstrap: avoid build failure when $GZIP is set
11312         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11313         program name.  If defined at all, it is supposed to list gzip options.
11314         Reported by Alan Curry in http://debbugs.gnu.org/8609
11315
11316 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11317
11318         readme-release: new module with release instructions
11319         * modules/readme-release: New module.
11320         * top/README-release: New file, from coreutils, grep, diffutils.
11321         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11322
11323 2011-05-02  Eric Blake  <eblake@redhat.com>
11324
11325         fflush: also replace fclose when fixing fflush
11326         * modules/fflush (Depends-on): Add fclose.
11327         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11328         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11329         memstreams with no backing fd.
11330         * doc/posix-functions/fclose.texi (fclose): Document the use of
11331         fflush module to fix the bug.
11332         * tests/test-fclose.c (main): Relax test when fclose is used in
11333         isolation.
11334
11335         fclose: add some tests
11336         * modules/fclose-tests: New test module.
11337         * tests/test-fclose.c: New file.
11338         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11339
11340         fclose: reduced dependencies
11341         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11342         simpler lseek.
11343         * lib/fclose.c (rpl_fclose): Likewise.
11344         Reported by Simon Josefsson.
11345
11346         exit: drop remaining clients
11347         * modules/argmatch (Depends-on): Replace exit with stdlib.
11348         * modules/copy-file (Depends-on): Likewise.
11349         * modules/execute (Depends-on): Likewise.
11350         * modules/exitfail (Depends-on): Likewise.
11351         * modules/obstack (Depends-on): Likewise.
11352         * modules/pagealign_alloc (Depends-on): Likewise.
11353         * modules/pipe-filter-gi (Depends-on): Likewise.
11354         * modules/pipe-filter-ii (Depends-on): Likewise.
11355         * modules/savewd (Depends-on): Likewise.
11356         * modules/spawn-pipe (Depends-on): Likewise.
11357         * modules/wait-process (Depends-on): Likewise.
11358         * modules/xsetenv (Depends-on): Likewise.
11359         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11360         * modules/git-merge-changelog (Depends-on): Likewise.
11361         * modules/long-options (Depends-on): Likewise.
11362         * modules/pt_chown (Depends-on): Likewise.
11363         * modules/sysexits (Depends-on): Likewise.
11364
11365         freading: relax license from LGPLv3+ to LGPLv2+
11366         * modules/freading (License): Relax LGPL version.
11367
11368 2011-05-02  Bruno Haible  <bruno@clisp.org>
11369
11370         fchdir: Remove unused dependencies.
11371         * modules/fchdir (Depends-on): Remove include_next.
11372
11373 2011-05-02  Bruno Haible  <bruno@clisp.org>
11374
11375         gnulib-tool: Refactor.
11376         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11377         from func_emit_autoconf_snippets.
11378         (func_emit_autoconf_snippets): Use it.
11379
11380 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11381
11382         * NEWS: Document removal of 'exit'.
11383         * modules/exit: Remove file.
11384
11385 2011-05-01  Bruno Haible  <bruno@clisp.org>
11386
11387         Update DEPENDENCIES.
11388         * DEPENDENCIES (gettext): Recommend the newest release.
11389         Reported by Simon Josefsson.
11390
11391 2011-05-01  Bruno Haible  <bruno@clisp.org>
11392
11393         gnulib-tool: Reduce code duplication.
11394         * gnulib-tool (func_emit_autoconf_snippets): New function.
11395         (func_import, func_create_testdir): Use it.
11396
11397 2011-04-30  Eric Blake  <eblake@redhat.com>
11398
11399         fclose: don't fail on non-seekable input stream
11400         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11401         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11402         since fflush is allowed to fail in that case.
11403
11404 2011-04-30  Bruno Haible  <bruno@clisp.org>
11405
11406         dup3: cleanup
11407         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11408
11409 2011-04-30  Bruno Haible  <bruno@clisp.org>
11410
11411         netdb: Make it work in C++ mode.
11412         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11413         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11414         module.
11415         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11416         gl_MODULE_INDICATOR_FOR_TESTS.
11417         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11418         * modules/netdb-c++-tests: New file.
11419         * tests/test-netdb-c++.cc: New file.
11420
11421 2011-04-30  Bruno Haible  <bruno@clisp.org>
11422
11423         New modules 'vfscanf', 'vscanf'.
11424         * modules/vfscanf: New file.
11425         * modules/vscanf: New file.
11426         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11427         here.
11428         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11429         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11430
11431 2011-04-30  Bruno Haible  <bruno@clisp.org>
11432
11433         passfd: Add comments.
11434         * lib/passfd.c: Add comments about platforms.
11435
11436 2011-04-30  Bruno Haible  <bruno@clisp.org>
11437
11438         sys_uio: Make <sys/uio.h> self-contained.
11439         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11440         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11441
11442 2011-04-30  Bruno Haible  <bruno@clisp.org>
11443
11444         sys_socket: Ensure 'struct iovec' definition.
11445         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11446         <sys/socket.h>.
11447         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11448
11449 2011-04-30  Bruno Haible  <bruno@clisp.org>
11450
11451         sys_uio: Protect definition of 'struct iovec'.
11452         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11453         it as a C struct.
11454
11455 2011-04-30  Bruno Haible  <bruno@clisp.org>
11456
11457         manywarnings: fix indentation
11458         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11459
11460 2011-04-30  Pádraig Brady <P@draigBrady.com>
11461
11462         manywarnings: add -Wno-missing-field-initializers if needed.
11463         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11464         option if it's needed to allow initialization with { 0, }
11465
11466 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11467
11468         announce-gen: cosmetic improvement
11469         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11470
11471 2011-04-29  Jim Meyering  <meyering@redhat.com>
11472
11473         vc-list-files: indent with spaces, not TABs
11474         * build-aux/vc-list-files: Convert leading TABs to spaces,
11475         to match the style of most other files in gnulib.
11476
11477         announce-gen: indent with spaces, not TABs
11478         * build-aux/announce-gen: Convert all TABs to spaces, to match
11479         the style of most other files in gnulib.
11480
11481 2011-04-29  Eric Blake  <eblake@redhat.com>
11482
11483         quotearg: avoid uninitialized variable use
11484         * lib/quotearg.c (quoting_options_from_style): Initialize
11485         remaining fields, and ensure that custom styles are only used via
11486         quoting_options rather than quoting_style.
11487
11488 2011-04-29  Jim Meyering  <meyering@redhat.com>
11489
11490         maint.mk: remove unused VC-tag variable
11491         * top/maint.mk (VC-tag): Remove unused variable.
11492
11493 2011-04-29  Bruno Haible  <bruno@clisp.org>
11494
11495         netdb: fix gai_strerror replacements
11496         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11497         * modules/netdb: Substitute it.
11498
11499 2011-04-29  Jim Meyering  <meyering@redhat.com>
11500
11501         test-getcwd.c: avoid new set-but-not-used warning
11502         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11503         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11504         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11505         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11506
11507         test-hash.c: avoid a new shadowing warning
11508         * tests/test-hash.c (main): Don't shadow "dup".
11509
11510 2011-04-28  Eric Blake  <eblake@redhat.com>
11511
11512         getaddrinfo: fix gai_strerror signature
11513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11514         and work around mingw with UNICODE defined.
11515         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11516         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11517         * modules/netdb (Makefile.am): Substitute it.
11518         * lib/netdb.in.h (gai_strerror): Declare replacement.
11519         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11520         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11521         the fix.
11522
11523         getsockopt: avoid compiler warning
11524         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11525         Reported by Matthias Bolte.
11526
11527         tests: drop unused link dependency
11528         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11529         * modules/dirent-safer-tests (Makefile.am): Likewise.
11530         * modules/fdopendir-tests (Makefile.am): Likewise.
11531         * modules/mkfifoat-tests (Makefile.am): Likewise.
11532         * modules/openat-safer-tests (Makefile.am): Likewise.
11533         * modules/openat-tests (Makefile.am): Likewise.
11534         * modules/readlinkat-tests (Makefile.am): Likewise.
11535         * modules/symlinkat-tests (Makefile.am): Likewise.
11536         * modules/linkat-tests (Makefile.am): Likewise.
11537         (Depends-on): Switch to filenamecat-lgpl.
11538         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11539         LIBINTL.
11540         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11541         * tests/test-linkat.c (main): Don't require xalloc.
11542
11543         hash, mgetgroups: drop xalloc dependency
11544         * lib/hash.c (includes): Adjust includes.
11545         * lib/mgetgroups.c (includes): Likewise.
11546         (xgetgroups): Move...
11547         * lib/xgetgroups.c: ...to new file.
11548         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11549         * modules/xgetgroups: New file, split from...
11550         * modules/mgetgroups: ...here.
11551         (Depends-on): Add xalloc-oversized.
11552         * modules/hash (Depends-on): Likewise.
11553         * modules/hash-tests (Depends-on): Drop xalloc.
11554         (test_hash_LDADD): Drop unused library.
11555         * tests/test-hash.c (main): Break xalloc dependency.
11556         (includes): Drop unused include.
11557
11558         xalloc-oversized: new module
11559         * modules/xalloc-oversized: New module.
11560         * modules/xalloc (Depends-on): Add it.
11561         * lib/xalloc.h (xalloc_oversized): Move...
11562         * lib/xalloc-oversized.h: ...into new file.
11563
11564         utimecmp: drop dependency on xmalloc
11565         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11566         due to memory pressure.
11567         * modules/utimecmp (Depends-on): Drop xalloc.
11568
11569 2011-04-27  Eric Blake  <eblake@redhat.com>
11570
11571         getcwd: fix mingw bugs
11572         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11573         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11574         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11575
11576 2011-04-27  Bruno Haible  <bruno@clisp.org>
11577
11578         mkstemps: Ensure declaration on MacOS X 10.5.
11579         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11580         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11581         MacOS X.
11582
11583 2011-04-27  Bruno Haible  <bruno@clisp.org>
11584
11585         mkstemp: More documentation.
11586         * doc/posix-functions/mkstemp.texi: Document header file problem on
11587         MacOS X.
11588
11589 2011-04-27  Bruno Haible  <bruno@clisp.org>
11590
11591         mkstemp: Tweak configure message when cross-compiling.
11592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11593         result as a guess.
11594
11595 2011-04-27  Bruno Haible  <bruno@clisp.org>
11596
11597         clean-temp: Clarify what it does.
11598         * lib/clean-temp.h: Add more comments.
11599         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11600         module.
11601         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11602         * doc/glibc-functions/mkstemps.texi: Likewise.
11603         * doc/glibc-functions/mkostemps.texi: Likewise.
11604
11605 2011-04-27  Eric Blake  <eblake@redhat.com>
11606
11607         fchdir: avoid extra chdir and fix test
11608         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11609         getcwd-lgpl.
11610         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11611         have to be canonical.
11612         (canonicalize_file_name): Drop unused macro.
11613         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11614
11615         filenamecat-lgpl: fix licence
11616         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11617         when it was first created.
11618
11619         linkat, renameat: add missing dependency
11620         * modules/linkat (Depends-on): Require getcwd-lgpl.
11621         * modules/renameat (Depends-on): Likewise.
11622
11623         tests: reduce dependencies
11624         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11625         * tests/test-renameat.c (main): Likewise.
11626         * modules/linkat-tests (Depends-on): Relax dependency.
11627         * modules/renameat-tests (Depends-on): Likewise.
11628         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11629         dependency explicit.
11630
11631         save-cwd: reduce default dependency
11632         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11633         * lib/save-cwd.c: Update comments.
11634         * NEWS: Document the semantic change.
11635
11636         getcwd: enhance tests
11637         * tests/test-getcwd-lgpl.c: New file, taken from...
11638         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11639         repeat long path stress tests from m4 probe.
11640         * modules/getcwd-lgpl-tests: New module.
11641         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11642         * m4/getcwd-abort-bug.m4: Update comment.
11643         * m4/getcwd-path-max.m4: Likewise.
11644
11645         getcwd-lgpl: new module
11646         * modules/getcwd-lgpl: New module.
11647         * lib/getcwd-lgpl.c: New file.
11648         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11649         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11650         * modules/getcwd (configure.ac): Set C witness.
11651         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11652
11653         getcwd: tweak comments
11654         * m4/getcwd-abort-bug.m4: Fix comments.
11655         * m4/getcwd-path-max.m4: Likewise.
11656         * m4/getcwd.m4: Likewise.
11657
11658 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11659         and Eric Blake  <eblake@redhat.com>
11660
11661         mkstemp: replace if system version uses wrong permissions
11662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11663         read/write mode bits set in file created by mkstemp.
11664         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11665
11666 2011-04-27  Eric Blake  <eblake@redhat.com>
11667
11668         passfd: avoid compiler warning
11669         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11670         Reported by Laine Stump.
11671
11672 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11673
11674         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11675         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11676
11677 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11678         and Eric Blake  <eblake@redhat.com>
11679
11680         mkstemp: mention clean-temp module
11681         * lib/mkstemp.c: Add comment.
11682         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11683
11684 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11685
11686         inttypes: also provide default values for 32-bit tests
11687         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11688         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11689
11690 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11691
11692         strtoumax: remove dependency on strtoimax
11693         This is like the strtoull change of yesterday.
11694         * modules/strtoumax (Files): Add lib/strtoimax.c.
11695         (Depends-on): Remove strtoimax and add verify.
11696
11697         inttypes-incomplete: new module
11698         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11699         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11700         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11701         of gl_INTTYPES_H.
11702         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11703         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11704         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11705         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11706         * modules/strtoumax, modules/xstrtol (Depends-on):
11707         Depend on inttypes-incomplete, not inttypes.
11708         * modules/inttypes-incomplete: New module, containing the contents
11709         of the old modules/inttypes module, except that the Files: section
11710         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11711         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11712         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11713         (Depends-on): Depend only on inttypes-incomplete.
11714         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11715
11716         inttypes: omit now-redundant strtoimax and strtoumax work
11717         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11718         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11719
11720         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11721         This supports apps that need pointers to strtoimax and strtoumax,
11722         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11723         nonexistent functions.  See
11724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11725         et seq.
11726         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11727         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11728         a macro.
11729         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11730
11731 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11732
11733         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11734
11735 2011-04-25  Bruno Haible  <bruno@clisp.org>
11736
11737         strtol, strtoul: Mark modules as obsolete.
11738         * modules/strtol (Status, Notice): New sections.
11739         * modules/strtoul (Status, Notice): New sections.
11740
11741 2011-04-25  Bruno Haible  <bruno@clisp.org>
11742
11743         strtod: Remove check for strtod, unless supporting old platforms.
11744         * modules/strtod-obsolete: New file.
11745         * m4/strtod-obsolete.m4: New file.
11746         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11747         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11748         * modules/strtod (Depends-on): Add strtod-obsolete.
11749         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11750
11751 2011-04-25  Bruno Haible  <bruno@clisp.org>
11752
11753         strcase: Make module obsolete.
11754         * modules/strcase (Status, Notice): New sections.
11755
11756 2011-04-25  Bruno Haible  <bruno@clisp.org>
11757
11758         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11759         * modules/dup2-obsolete: New file.
11760         * m4/dup2-obsolete.m4: New file.
11761         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11762         gl_FUNC_DUP2_OBSOLETE is not also defined.
11763         * modules/dup2 (Depends-on): Add dup2-obsolete.
11764         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11765
11766 2011-04-25  Bruno Haible  <bruno@clisp.org>
11767
11768         strnlen: Avoid memchr related link error on old obsolete platforms.
11769         * modules/memchr-obsolete: New file.
11770         * m4/memchr-obsolete.m4: New file.
11771         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11772         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11773         * modules/memchr (Depends-on): Add memchr-obsolete.
11774         * modules/strnlen (Depends-on): Likewise.
11775         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11776
11777 2011-04-25  Jim Meyering  <meyering@redhat.com>
11778
11779         maint.mk: makefile_at_at_check extend and clean up
11780         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11781         in addition to */Makefile.am.
11782         Exempt legitimate uses of @VAR@ notation, e.g.,
11783         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11784         Remove obsolete coreutils-specific comment.
11785         Prompted by discussion here:
11786         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11787
11788 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11789
11790         strtoul: remove dependency on strtol
11791         This is so that 'configure' need not check for strtol merely because
11792         the application needs strtoul.
11793         * modules/strtoul (Files): Add lib/strtol.c.
11794         (Depends-on): Remove strtol.
11795
11796         strtoull: remove dependency on strtoul
11797         This is like the strtoll change.
11798         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11799         (Depends-on): Remove strtoul.
11800
11801         strtoll: remove dependency on strtol
11802         This is so that 'configure' need not check for strtol merely because
11803         the application needs strtoll.
11804         * modules/strtoll (Files): Add lib/strtol.c.
11805         (Depends-on): Remove strtol.
11806
11807 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11808
11809         inttypes: Move some configure check to module 'imaxdiv'.
11810         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11811         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11812         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11813
11814 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11815
11816         inttypes: Move some configure check to module 'imaxabs'.
11817         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11818         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11819         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11820
11821 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         inttypes: Remove configure tests that are not needed since 2009-12-31.
11824         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11825         gl_cv_header_working_inttypes_h.
11826
11827 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11828
11829         * modules/strnlen (Depends-on): Remove memchr.
11830         The strnlen implementation doesn't need the memchr module's fixes; see
11831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11832
11833         strtol: remove dependency on wchar
11834         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11835         * modules/strtol (Depends-on): Remove wchar.
11836
11837 2011-04-21  Eric Blake  <eblake@redhat.com>
11838
11839         passfd: fix test regression on Linux
11840         * modules/passfd-tests (configure.ac): Correct socketpair check.
11841
11842         passfd: speed up configure and drop unused code
11843         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11844         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11845         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11846         Instead of probing at configure for unix_scm_rights_bsd44_way,
11847         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11848         check to a struct member probe.
11849         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11850         (sendfd, recvfd): Update preprocessor checks.
11851         * modules/passfd (Files): Reflect rename, and drop unused file.
11852         (Depends-on): Drop unused dependency.
11853
11854         passfd: allow compilation on mingw
11855         * modules/sys_socket (Depends-on): Add sys_uio.
11856         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11857         iovec and a minimal struct msghdr.
11858         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11859         * tests/test-sys_socket.c (main): Enhance test.
11860         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11861         guaranteed to provide what we need.
11862         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11863         * modules/passfd-tests (Depends-on): Add sys_wait.
11864         * tests/test-passfd.c (main): Skip test on mingw, for now.
11865         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11866         partial 'struct msghdr' implementation.
11867
11868         sys_uio: new module
11869         * modules/sys_uio: New module.
11870         * modules/sys_uio-tests: Likewise.
11871         * lib/sys_uio.in.h: New file.
11872         * m4/sys_uio_h.m4: Likewise.
11873         * tests/test-sys_uio.c: Likewise.
11874         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11875         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11876
11877 2011-04-20  Jim Meyering  <meyering@redhat.com>
11878
11879         useless-if-before-free: avoid false-positive
11880         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11881         disjunct so that it too requires a terminating ";".  Without that,
11882         this script would identify as useless one statement from gcc that
11883         was not:
11884           if (aligned_ptr)
11885             free (((void **) aligned_ptr) [-1]);
11886
11887 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11888
11889         doc: update users.txt.
11890         * users.txt: Add barcode.
11891
11892 2011-04-19  Bruno Haible  <bruno@clisp.org>
11893
11894         ioctl: Remove link dependency on native Windows.
11895         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11896         (gl_close_fn, gl_ioctl_fn): New types.
11897         (struct fd_hook): Renamed from struct close_hook. Change type of
11898         private_close_fn field. Add private_ioctl_fn field.
11899         (close_hook_fn): Add parameter for primary close method.
11900         (execute_close_hooks, execute_all_close_hooks): Likewise.
11901         (ioctl_hook_fn): New type.
11902         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11903         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11904         argument.
11905         (unregister_fd_hook): Renamed from unregister_close_hook.
11906         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11907         Don't include <unistd.h>.
11908         (close): Remove undef.
11909         (anchor): Update.
11910         (execute_close_hooks): Add argument for primary close method.
11911         (execute_all_close_hooks): Likewise.
11912         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11913         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11914         argument. Allow each argument to be NULL.
11915         (unregister_fd_hook): Renamed from unregister_close_hook.
11916         * lib/close.c (rpl_close): Pass 'close' function pointer to
11917         execute_all_close_hooks.
11918         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11919         (primary_ioctl): New function.
11920         (ioctl): Don't call ioctlsocket here. Instead, call
11921         execute_all_ioctl_hooks.
11922         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11923         close method.
11924         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11925         (fd_sockets_hook): Renamed from close_sockets_hook.
11926         (gl_sockets_startup, gl_sockets_cleanup): Update.
11927         * modules/fd-hook: Renamed from modules/close-hook. Update.
11928         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11929         * modules/sockets (Depends-on): Likewise.
11930         * modules/ioctl (Depends-on): Add fd-hook.
11931         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11932         GNULIB_SOCKET.
11933
11934 2011-04-19  Bruno Haible  <bruno@clisp.org>
11935
11936         Move the support of O_NONBLOCK in open() to the 'open' module.
11937         * modules/nonblocking (Depends-on): Remove 'open'.
11938         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11939         gl_cv_have_open_O_NONBLOCK.
11940         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11941         O_NONBLOCK support.
11942         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11943
11944 2011-04-17  Bruno Haible  <bruno@clisp.org>
11945
11946         pipe2: Simplify code.
11947         * lib/pipe2.c (pipe2): Reduce code duplication.
11948
11949 2011-04-17  Bruno Haible  <bruno@clisp.org>
11950
11951         nonblocking: Add comment.
11952         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11953
11954 2011-04-17  Bruno Haible  <bruno@clisp.org>
11955
11956         nonblocking: Add tests for sockets.
11957         * tests/test-nonblocking-socket.sh: New file.
11958         * tests/test-nonblocking-socket-main.c: New file.
11959         * tests/test-nonblocking-socket-child.c: New file.
11960         * tests/test-nonblocking-socket.h: New file.
11961         * tests/socket-server.h: New file.
11962         * tests/socket-client.h: New file.
11963         * modules/nonblocking-socket-tests: New file.
11964         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11965
11966 2011-04-17  Bruno Haible  <bruno@clisp.org>
11967
11968         nonblocking: Add tests for pipes.
11969         * tests/test-nonblocking-pipe.sh: New file.
11970         * tests/test-nonblocking-pipe-main.c: New file.
11971         * tests/test-nonblocking-pipe-child.c: New file.
11972         * tests/test-nonblocking-pipe.h: New file.
11973         * tests/test-nonblocking-writer.h: New file.
11974         * tests/test-nonblocking-reader.h: New file.
11975         * tests/test-nonblocking-misc.h: New file.
11976         * modules/nonblocking-pipe-tests: New file.
11977         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11978
11979 2011-04-16  Bruno Haible  <bruno@clisp.org>
11980
11981         gettext: Clarify the needed programmer actions.
11982         * modules/gettext (Notice): New field.
11983         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11984
11985 2011-04-16  Bruno Haible  <bruno@clisp.org>
11986
11987         strchrnul: Tweak last commit.
11988         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11989         bug.
11990         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11991         as in _GL_FUNCDECL_SYS.
11992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11993         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11994
11995 2011-04-15  Eric Blake  <eblake@redhat.com>
11996
11997         strchrnul: work around cygwin bug
11998         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11999         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12001         * modules/string (Makefile.am): Substitute it.
12002         * lib/string.in.h (strchrnul): Use it.
12003
12004 2011-04-15  Bruno Haible  <bruno@clisp.org>
12005
12006         Don't require lib/stdio-write.c when only module 'stdio' is used.
12007         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12008         invocation.
12009         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12010
12011 2011-04-14  Bruno Haible  <bruno@clisp.org>
12012
12013         Support non-blocking pipe I/O in read() on native Windows.
12014         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12015         (read): New declaration.
12016         * lib/read.c: New file.
12017         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12018         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12019         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12020         vscanf): New declarations.
12021         * lib/stdio-read.c: New file.
12022         * m4/read.m4: New file.
12023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12024         REPLACE_READ.
12025         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12026         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12027         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12028         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12030         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12031         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12032         * modules/read: New file.
12033         * modules/nonblocking (Files): Add lib/stdio-read.c.
12034         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12035         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12036         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12037         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12038         * modules/pread (Depends-on): Add read.
12039         * modules/safe-read (Depends-on): Likewise.
12040         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12041         gets, scanf, vfscanf, vscanf): Verify signatures.
12042         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12043         problem with non-blocking pipes.
12044         * doc/posix-functions/fgetc.texi: Likewise.
12045         * doc/posix-functions/fgets.texi: Likewise.
12046         * doc/posix-functions/fread.texi: Likewise.
12047         * doc/posix-functions/fscanf.texi: Likewise.
12048         * doc/posix-functions/getc.texi: Likewise.
12049         * doc/posix-functions/getchar.texi: Likewise.
12050         * doc/posix-functions/gets.texi: Likewise.
12051         * doc/posix-functions/scanf.texi: Likewise.
12052         * doc/posix-functions/vfscanf.texi: Likewise.
12053         * doc/posix-functions/vscanf.texi: Likewise.
12054
12055 2011-04-14  Bruno Haible  <bruno@clisp.org>
12056
12057         Support non-blocking pipe I/O in write() on native Windows.
12058         * lib/write.c (rpl_write): Split a write request that failed merely
12059         because the byte count was larger than the pipe buffer's size.
12060         * doc/posix-functions/write.texi: Mention the problem with large byte
12061         counts.
12062
12063 2011-04-14  Bruno Haible  <bruno@clisp.org>
12064
12065         wchar: Ensure that wchar_t gets defined on uClibc.
12066         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12067         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12068
12069 2011-04-13  Bruno Haible  <bruno@clisp.org>
12070
12071         safe-write, full-read: Avoid unnecessary compilation units.
12072         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12073         (Depends-on): Remove safe-read. Add ssize_t.
12074         * modules/full-read (Files): Add lib/full-write.c.
12075         (Depends-on): Add full-write.
12076
12077 2011-04-13  Bruno Haible  <bruno@clisp.org>
12078
12079         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12080         * modules/pwrite (Depends-on): Add 'write'.
12081
12082 2011-04-13  Bruno Haible  <bruno@clisp.org>
12083
12084         Support non-blocking pipe I/O in write() on native Windows.
12085         * lib/unistd.in.h (write): Enable replacement also if
12086         GNULIB_UNISTD_H_NONBLOCKING is 1.
12087         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12088         (rpl_write): When failing to write on a non-blocking pipe, change
12089         errno from ENOSPC to EAGAIN.
12090         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12091         putchar, puts, vfprintf, vprintf): Enable replacement also if
12092         GNULIB_STDIO_H_NONBLOCKING is 1.
12093         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12094         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12095         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12096         CALL_WITH_SIGPIPE_EMULATION.
12097         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12098         * m4/nonblocking.m4: New file.
12099         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12100         for non-blocking I/O support.
12101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12102         GNULIB_UNISTD_H_NONBLOCKING.
12103         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12104         required for non-blocking I/O support.
12105         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12106         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12107         lib/stdio-write.c, m4/asm-underscore.m4.
12108         (Depends-on): Add stdio, unistd.
12109         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12110         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12111         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12112         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12113         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12114         problem with non-blocking pipes.
12115         * doc/posix-functions/fputc.texi: Likewise.
12116         * doc/posix-functions/fputs.texi: Likewise.
12117         * doc/posix-functions/fwrite.texi: Likewise.
12118         * doc/posix-functions/printf.texi: Likewise.
12119         * doc/posix-functions/putc.texi: Likewise.
12120         * doc/posix-functions/putchar.texi: Likewise.
12121         * doc/posix-functions/puts.texi: Likewise.
12122         * doc/posix-functions/vfprintf.texi: Likewise.
12123         * doc/posix-functions/vprintf.texi: Likewise.
12124         * doc/posix-functions/write.texi: Likewise.
12125
12126 2011-04-10  Jim Meyering  <meyering@redhat.com>
12127
12128         maint.mk: prohibit doubled words
12129         Detect them also when they're separated by a newline.
12130         There are 3 ways to customize it:
12131           - disable the test on a per file basis, as usual with rules using
12132             $(VC_LIST_EXCEPT)
12133           - replace the default doubled-word-selecting regexp (affects all files)
12134           - ignore a particular file-vs-doubled-word match
12135         I nearly used that last one to ignore the "is is" match in
12136         coreutils' NEWS file, since the text was "ls -is is ..."
12137         To do that, I would have added this line to cfg.mk:
12138           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12139         but it would have ignored any "is is" match in NEWS.
12140         Low probability, but still...
12141         Instead, I changed the text, slightly:
12142           -  ls -is is now consistent with ls -lis in ignoring values returned
12143           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12144         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12145         (prohibit_doubled_word_): Define.
12146         (sc_prohibit_doubled_word): New rule.
12147         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12148
12149 2011-04-10  Jim Meyering  <meyering@redhat.com>
12150
12151         maint: fix doubled-word typo in comment
12152         * m4/gethostname.m4: s/is is/it is/
12153         * m4/getdomainname.m4: Likewise.
12154
12155 2011-04-10  Jim Meyering  <meyering@redhat.com>
12156
12157         maint: remove doubled word: s/it it/it/
12158         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12159
12160 2011-04-10  Jim Meyering  <meyering@redhat.com>
12161
12162         maint.mk: remove useless semicolon and backslash
12163         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12164         semicolon and backslash.
12165
12166 2011-04-10  Bruno Haible  <bruno@clisp.org>
12167
12168         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12169         * modules/stdint-tests (Depends-on): Add wchar.
12170
12171 2011-04-10  Jim Meyering  <meyering@redhat.com>
12172
12173         maint: remove doubled words in comments, e.g., s/a a/a/
12174         * lib/strptime.c (day_of_the_week): s/the the/the/
12175         * tests/test-chown.h (test_chown): s/a a/a/
12176
12177         test-chown.h: correct a cast
12178         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12179         when the destination is a stat.st_gid.
12180
12181 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12182
12183         getaddrinfo: Fix test for sa_len member.
12184         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12185         include <sys/types.h> before <sys/socket.h>.
12186
12187 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12188
12189         maint: change "can not" to "cannot"
12190         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12191         boundaries.
12192
12193 2011-04-09  Jim Meyering  <meyering@redhat.com>
12194
12195         maint: change "a a" to "a"
12196         * tests/test-lchown.h (test_lchown): s/a a/a/
12197
12198         maint.mk: prohibit \<the the\>
12199         * top/maint.mk (sc_prohibit_the_the): New rule.
12200
12201         maint: fix "the the" in comment
12202         * lib/count-one-bits.h: s/the the/the/
12203
12204         maint: change "can not" to "cannot"
12205         But do not change the occurrences in maintain.texi or in
12206         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12207         * doc/gnulib-tool.texi: s/can not/cannot/
12208         * doc/posix-functions/accept.texi (accept): Likewise.
12209         * doc/posix-functions/socket.texi (socket): Likewise.
12210         * lib/mbrtowc.c: Likewise.
12211
12212         maint.mk: prohibit use of "can not"
12213         * top/maint.mk (sc_prohibit_can_not): New rule.
12214         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12215
12216 2011-04-09  Bruno Haible  <bruno@clisp.org>
12217
12218         careadlinkat: Guard against misuse of careadlinkatcwd.
12219         * lib/careadlinkat.c: Include <stdlib.h>.
12220         (careadlinkatcwd): Check that the fd argument is as expected.
12221
12222 2011-04-09  Bruno Haible  <bruno@clisp.org>
12223
12224         careadlinkat: Use common coding style.
12225         * lib/careadlinkat.c: Move gnulib includes after system includes.
12226
12227 2011-04-09  Bruno Haible  <bruno@clisp.org>
12228
12229         careadlinkat: Clarify specification.
12230         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12231         (careadlinkatcwd): Add comment.
12232         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12233
12234 2011-04-09  Bruno Haible  <bruno@clisp.org>
12235
12236         areadlinkat: Avoid link error on many platforms.
12237         * modules/areadlinkat (Depends-on): Add areadlink.
12238
12239 2011-04-09  Bruno Haible  <bruno@clisp.org>
12240
12241         allocator, careadlinkat: Fix double-inclusion guard.
12242         * lib/allocator.h: Fix double-inclusion guard.
12243         * lib/careadlinkat.h: Likewise.
12244
12245 2011-04-09  Bruno Haible  <bruno@clisp.org>
12246
12247         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12248         * lib/relocwrapper.c: Update dependencies hierarchy.
12249         * build-aux/install-reloc: Update list of files to be compiled.
12250         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12251         lib/allocator.[hc].
12252
12253 2011-04-08  Eric Blake  <eblake@redhat.com>
12254
12255         strftime: silence gnulib-tool warning
12256         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12257
12258 2011-04-08  Bruno Haible  <bruno@clisp.org>
12259
12260         verify: Fix syntax error with GCC 4.6 in C++ mode.
12261         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12262         (HAVE_STATIC_ASSERT): New macro.
12263         (verify_true, verify): Use 'static_assert' if it is supported and
12264         '_Static_assert' is not supported.
12265
12266 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12267
12268         allocator: New module.
12269         * modules/allocator, lib/allocator.c: New files.
12270         * lib/allocator.h (stdlib_allocator): New decl.
12271         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12272         Remove.  Do not include <stdlib.h>.
12273         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12274         * modules/careadlinkat (Files): Remove lib/allocator.h.
12275         (Depends-on): Add allocator.
12276
12277         stdlib: let modules use system malloc, realloc
12278         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12279         if !_GL_USE_STDLIB_ALLOC.
12280         (malloc, realloc): Limit this change to a smaller scope.
12281
12282         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12283         (malloc, realloc): Don't #undef; no longer needed.
12284         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12285         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12286         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12287         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12288         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12289         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12290         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12291         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12292
12293         careadlinkat: rename members to avoid problem
12294         * lib/allocator.h (struct allocator): Rename members from
12295         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12296         and realloc are #define'd.  Reported by Eric Blake in
12297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12298         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12299
12300 2011-04-08  Eric Blake  <eblake@redhat.com>
12301
12302         nonblocking: reduce dependency
12303         * tests/test-nonblocking.c: Only test sockets when in use.
12304         * modules/nonblocking-tests (Depends-on): Drop socket.
12305         (Makefile.am): Link even if sockets are not present.
12306         * modules/pipe2-tests (Makefile.am): Likewise.
12307         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12308
12309         pipe2: fix O_NONBLOCK support on mingw
12310         * modules/pipe2 (Depends-on): Add nonblocking.
12311         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12312         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12313         * tests/test-nonblocking.c (main): Likewise.
12314         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12315
12316         fcntl-h: fix O_ACCMODE on cygwin
12317         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12318         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12319
12320         pipe-filter: drop O_NONBLOCK workarounds
12321         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12322         * modules/pipe-filter-ii (Depends-on): Likewise.
12323         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12324
12325         nonblocking: provide O_NONBLOCK for mingw
12326         * modules/nonblocking (Depends-on): Add open.
12327         (configure.ac): Set new witness macro.
12328         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12329         * modules/fcntl-h (Makefile.am): Substitute it.
12330         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12331         nonblocking module is in use.
12332         * lib/nonblocking.c: Adjust portability test.
12333         * lib/open.c (open): Don't let native open see gnulib flag.
12334         * tests/test-fcntl-h.c (main): Enhance test.
12335         * tests/test-open.h (test_open): Likewise.
12336         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12337
12338         careadlinkat: fix compilation error on mingw
12339         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12340         within struct allocator.
12341
12342 2011-04-06  Eric Blake  <eblake@redhat.com>
12343
12344         binary-io: relicense under LGPLv2+
12345         * modules/binary-io (License): Relax to LGPLv2+.
12346         Requested for libvirt, and required by pipe2.
12347
12348 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12349
12350         verify: use _Static_assert if available
12351         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12352         (verify_true, verify): Use it if available.  This generates better
12353         diagnostics with GCC 4.6.0 and later.
12354
12355 2011-04-05  Bruno Haible  <bruno@clisp.org>
12356
12357         Remove leftover generated .h files after config.status changed.
12358
12359         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12360         GL_GENERATE_ALLOCA_H.
12361         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12362         GL_GENERATE_ALLOCA_H evaluates to false.
12363
12364         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12365         GL_GENERATE_ARGZ_H.
12366         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12367         evaluates to false.
12368
12369         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12370         GL_GENERATE_BYTESWAP_H.
12371         * modules/byteswap (Makefile.am): Remove byteswap.h if
12372         GL_GENERATE_BYTESWAP_H evaluates to false.
12373
12374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12375         GL_GENERATE_ERRNO_H.
12376         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12377         evaluates to false.
12378
12379         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12380         GL_GENERATE_FLOAT_H.
12381         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12382         evaluates to false.
12383
12384         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12385         GL_GENERATE_FNMATCH_H.
12386         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12387         GL_GENERATE_FNMATCH_H evaluates to false.
12388
12389         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12390         GL_GENERATE_GLOB_H.
12391         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12392         evaluates to false.
12393
12394         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12395         automake conditional GL_GENERATE_ICONV_H.
12396         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12397         evaluates to false.
12398
12399         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12400         GL_GENERATE_NETINET_IN_H.
12401         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12402         GL_GENERATE_NETINET_IN_H evaluates to false.
12403
12404         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12405         conditional GL_GENERATE_PTHREAD_H.
12406         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12407         * modules/pthread (Makefile.am): Remove pthread.h if
12408         GL_GENERATE_PTHREAD_H evaluates to false.
12409
12410         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12411         GL_GENERATE_SCHED_H.
12412         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12413         evaluates to false.
12414
12415         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12416         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12417         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12418         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12419
12420         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12421         GL_GENERATE_STDARG_H.
12422         * modules/stdarg (Makefile.am): Remove stdarg.h if
12423         GL_GENERATE_STDARG_H evaluates to false.
12424
12425         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12426         GL_GENERATE_STDBOOL_H.
12427         * modules/stdbool (Makefile.am): Remove stdbool.h if
12428         GL_GENERATE_STDBOOL_H evaluates to false.
12429
12430         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12431         conditional GL_GENERATE_STDDEF_H.
12432         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12433         * modules/stddef (Makefile.am): Remove stddef.h if
12434         GL_GENERATE_STDDEF_H evaluates to false.
12435
12436         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12437         GL_GENERATE_STDINT_H.
12438         * modules/stdint (Makefile.am): Remove stdint.h if
12439         GL_GENERATE_STDINT_H evaluates to false.
12440
12441         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12442         GL_GENERATE_SYSEXITS_H.
12443         * modules/sysexits (Makefile.am): Remove sysexits.h if
12444         GL_GENERATE_SYSEXITS_H evaluates to false.
12445
12446         Reported by Karl Berry and Ralf Wildenhues.
12447
12448 2011-04-05  Bruno Haible  <bruno@clisp.org>
12449
12450         Ensure to rebuild generated .h files when config.status has changed.
12451         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12452         config.status.
12453         * modules/ctype (Makefile.am): Likewise.
12454         * modules/dirent (Makefile.am): Likewise.
12455         * modules/errno (Makefile.am): Likewise.
12456         * modules/fcntl-h (Makefile.am): Likewise.
12457         * modules/float (Makefile.am): Likewise.
12458         * modules/getopt-posix (Makefile.am): Likewise.
12459         * modules/glob (Makefile.am): Likewise.
12460         * modules/iconv-h (Makefile.am): Likewise.
12461         * modules/inttypes (Makefile.am): Likewise.
12462         * modules/langinfo (Makefile.am): Likewise.
12463         * modules/locale (Makefile.am): Likewise.
12464         * modules/math (Makefile.am): Likewise.
12465         * modules/netdb (Makefile.am): Likewise.
12466         * modules/netinet_in (Makefile.am): Likewise.
12467         * modules/poll-h (Makefile.am): Likewise.
12468         * modules/pthread (Makefile.am): Likewise.
12469         * modules/pty (Makefile.am): Likewise.
12470         * modules/sched (Makefile.am): Likewise.
12471         * modules/search (Makefile.am): Likewise.
12472         * modules/selinux-h (Makefile.am): Likewise.
12473         * modules/signal (Makefile.am): Likewise.
12474         * modules/spawn (Makefile.am): Likewise.
12475         * modules/stdarg (Makefile.am): Likewise.
12476         * modules/stdbool (Makefile.am): Likewise.
12477         * modules/stddef (Makefile.am): Likewise.
12478         * modules/stdint (Makefile.am): Likewise.
12479         * modules/stdio (Makefile.am): Likewise.
12480         * modules/stdlib (Makefile.am): Likewise.
12481         * modules/string (Makefile.am): Likewise.
12482         * modules/strings (Makefile.am): Likewise.
12483         * modules/sys_file (Makefile.am): Likewise.
12484         * modules/sys_ioctl (Makefile.am): Likewise.
12485         * modules/sys_select (Makefile.am): Likewise.
12486         * modules/sys_socket (Makefile.am): Likewise.
12487         * modules/sys_stat (Makefile.am): Likewise.
12488         * modules/sys_time (Makefile.am): Likewise.
12489         * modules/sys_times (Makefile.am): Likewise.
12490         * modules/sys_utsname (Makefile.am): Likewise.
12491         * modules/sys_wait (Makefile.am): Likewise.
12492         * modules/sysexits (Makefile.am): Likewise.
12493         * modules/termios (Makefile.am): Likewise.
12494         * modules/time (Makefile.am): Likewise.
12495         * modules/unistd (Makefile.am): Likewise.
12496         * modules/wchar (Makefile.am): Likewise.
12497         * modules/wctype-h (Makefile.am): Likewise.
12498         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12499
12500 2011-04-05  Bruno Haible  <bruno@clisp.org>
12501
12502         pipe2: Relicense under LGPLv2+.
12503         * modules/pipe2 (License): Change to LGPLv2+.
12504         Requested by Eric Blake, for libvirt.
12505
12506 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12507
12508         bootstrap: compute gnulib_extra_files after updating build_aux
12509         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12510         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12511
12512 2011-04-05  Eric Blake  <eblake@redhat.com>
12513
12514         bootstrap: preserve git whitelist item sorting
12515         * build-aux/bootstrap (sort_patterns): New function.
12516         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12517
12518 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12519
12520         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12521         sc_space_tab check.
12522
12523 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         areadlink, areadlinkat: rewrite in terms of careadlinkat
12526         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12527         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12528         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12529         (malloc, realloc): Remove #undefs.
12530         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12531         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12532         readlink, ssize_t, stdint, unistd.
12533         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12534         areadlink, stdint.
12535
12536         careadlinkat: new module
12537         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12538         * modules/careadlinkat: New files, written by me with
12539         a review and feedback from Ben Pfaff in
12540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12541
12542 2011-04-01  Bruno Haible  <bruno@clisp.org>
12543
12544         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12545         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12546         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12547         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12548         Reported by Bruce Korb <bruce.korb@gmail.com>.
12549
12550 2011-04-01  Bruno Haible  <bruno@clisp.org>
12551
12552         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12553         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12554         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12555         * modules/wcpcpy (Depends-on): Add extensions.
12556         * modules/wcpncpy (Depends-on): Likewise.
12557         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12558         systems.
12559         * doc/posix-functions/wcpncpy.texi: Likewise.
12560         * doc/posix-functions/wcwidth.texi: Likewise.
12561
12562 2011-03-31  Eric Blake  <eblake@redhat.com>
12563
12564         nonblocking: fix mingw test failures
12565         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12566         non-blocking flag on regular file.
12567         (get_nonblocking_flag): Set errno on invalid fd.
12568         * tests/test-nonblocking.c (main): Avoid test failure on
12569         directories if fchdir is not active.
12570         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12571
12572 2011-03-31  Bruno Haible  <bruno@clisp.org>
12573
12574         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12575         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12576         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12577         Reported by Simon Josefsson <simon@josefsson.org>.
12578
12579 2011-03-31  Bruno Haible  <bruno@clisp.org>
12580         and Eric Blake  <eblake@redhat.com>
12581
12582         nonblocking: new module
12583         * modules/nonblocking: New module.
12584         * modules/nonblocking-tests: Likewise.
12585         * lib/nonblocking.h: New file.
12586         * lib/nonblocking.c: Likewise.
12587         * tests/test-nonblocking.c: New test.
12588         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12589
12590 2011-03-30  Bruno Haible  <bruno@clisp.org>
12591
12592         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12593         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12594         instead of 'printf' format for GCC >= 4.4.
12595         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12596         (fprintf, printf, vfprintf, vprintf): Declare with
12597         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12598         the system's vfprintf() function.
12599         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12600
12601 2011-03-30  Eric Blake  <eblake@redhat.com>
12602
12603         passfd: fix scoping bug
12604         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12605         before sendmsg/recvmsg.
12606
12607         passfd: standardize coding conventions
12608         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12609         can be learned at compile time.
12610         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12611         ifdefs.
12612         (sendfd, recvfd): Follow gnulib code conventions.
12613
12614         passfd: fix incorrect sendmsg arguments
12615         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12616         incorrect msg_controllen value.
12617         * modules/passfd-tests (Depends-on): Check for alarm.
12618         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12619         Reported by Bastien ROUCARIES.
12620
12621 2011-03-30  Bruno Haible  <bruno@clisp.org>
12622
12623         c-strcasestr: Relicense under LGPLv2+.
12624         * modules/c-strcasestr (License): Change to LGPLv2+.
12625         Requested by Eric Blake, for libvirt.
12626
12627 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12628
12629         * users.txt: Add libidn2.  Fix libtasn1 link.
12630
12631 2011-03-30  Jim Meyering  <meyering@redhat.com>
12632
12633         tests: readlink* ("",... fails with EINVAL on newer kernels
12634         readlink and readlinkat have typically failed with ENOENT for
12635         the invalid, empty file name,  "".  However, with the advent
12636         of linux-2.6.39, they fail with EINVAL.
12637         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12638         when operating on the empty file name.
12639         * tests/test-readlink.h (test_readlink): Likewise.
12640
12641 2011-03-29  Bruno Haible  <bruno@clisp.org>
12642
12643         Relicense some modules under LGPLv2+, for libidn2.
12644         * modules/array-mergesort (License): Change to LGPLv2+.
12645         * modules/c-strcaseeq (License): Likewise.
12646         * modules/striconveh (License): Likewise.
12647         * modules/striconveha (License): Likewise.
12648         * modules/uniconv/base (License): Likewise.
12649         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12650         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12651         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12652         * modules/unictype/base (License): Likewise.
12653         * modules/unictype/bidiclass-of (License): Likewise.
12654         * modules/unictype/category-M (License): Likewise.
12655         * modules/unictype/category-none (License): Likewise.
12656         * modules/unictype/category-of (License): Likewise.
12657         * modules/unictype/category-test (License): Likewise.
12658         * modules/unictype/category-test-withtable (License): Likewise.
12659         * modules/unictype/combining-class (License): Likewise.
12660         * modules/unictype/joiningtype-of (License): Likewise.
12661         * modules/unictype/scripts (License): Likewise.
12662         * modules/uninorm/base (License): Likewise.
12663         * modules/uninorm/canonical-decomposition (License): Likewise.
12664         * modules/uninorm/composition (License): Likewise.
12665         * modules/uninorm/decompose-internal (License): Likewise.
12666         * modules/uninorm/decomposition-table (License): Likewise.
12667         * modules/uninorm/nfc (License): Likewise.
12668         * modules/uninorm/nfd (License): Likewise.
12669         * modules/uninorm/u32-normalize (License): Likewise.
12670         * modules/unistr/base (License): Likewise.
12671         * modules/unistr/u32-cpy (License): Likewise.
12672         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12673         * modules/unistr/u32-to-u8 (License): Likewise.
12674         * modules/unistr/u32-uctomb (License): Likewise.
12675         * modules/unistr/u8-check (License): Likewise.
12676         * modules/unistr/u8-mblen (License): Likewise.
12677         * modules/unistr/u8-mbtouc (License): Likewise.
12678         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12679         * modules/unistr/u8-mbtoucr (License): Likewise.
12680         * modules/unistr/u8-prev (License): Likewise.
12681         * modules/unistr/u8-strlen (License): Likewise.
12682         * modules/unistr/u8-to-u32 (License): Likewise.
12683         * modules/unistr/u8-uctomb (License): Likewise.
12684         * modules/unitypes (License): Likewise.
12685         Requested by Simon Josefsson.
12686
12687 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12688
12689         lib-symbol-visibility: Add a notice.
12690         * modules/lib-symbol-visibility (Notice): New field.
12691
12692 2011-03-29  Bruno Haible  <bruno@clisp.org>
12693
12694         getaddrinfo: Doc fix.
12695         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12696         section "fixed in Gnulib".
12697
12698 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12699
12700         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12701         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12702
12703 2011-03-26  Bruno Haible  <bruno@clisp.org>
12704
12705         unictype/property-byname: Reduce the number of load-time relocations.
12706         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12707         (UC_PROPERTY_INDEX_*): New enumeration values.
12708         (uc_property_byname): Convert an index from the lookup table to an
12709         uc_property_t.
12710         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12711         values.
12712
12713 2011-03-26  Bruno Haible  <bruno@clisp.org>
12714
12715         unictype/property-byname: Allow omitted word separators and aliases.
12716         * lib/unictype/pr_byname.gperf: Add property names without word
12717         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12718         for 'space'.
12719
12720 2011-03-26  Bruno Haible  <bruno@clisp.org>
12721
12722         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12723         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12724         also hyphens to space.
12725         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12726         without spaces.
12727         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12728
12729 2011-03-26  Bruno Haible  <bruno@clisp.org>
12730
12731         unictype/joiningtype-byname: Recognize long names as well.
12732         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12733         a long name.
12734         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12735         unictype/joiningtype_byname.h.
12736         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12737         * lib/unictype/joiningtype_byname.gperf: New file.
12738         * modules/unictype/joiningtype-byname (Files): Add
12739         lib/unictype/joiningtype_byname.gperf.
12740         (Depends-on): Add gperf.
12741         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12742         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12743         long names.
12744
12745         Tests for module 'unictype/joiningtype-longname'.
12746         * modules/unictype/joiningtype-longname-tests: New file.
12747         * tests/unictype/test-joiningtype_longname.c: New file.
12748
12749         New module 'unictype/joiningtype-longname'.
12750         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12751         * lib/unictype/joiningtype_longname.c: New file.
12752         * modules/unictype/joiningtype-longname: New file.
12753         * modules/unictype/joiningtype-all (Depends-on): Add
12754         unictype/joiningtype-longname.
12755
12756 2011-03-26  Bruno Haible  <bruno@clisp.org>
12757
12758         unictype/bidiclass-byname: Recognize long names as well.
12759         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12760         name.
12761         * lib/unictype/bidi_byname.c: Include <string.h>,
12762         unictype/bidi_byname.h.
12763         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12764         * lib/unictype/bidi_byname.gperf: New file.
12765         * modules/unictype/bidiclass-byname (Files): Add
12766         lib/unictype/bidi_byname.gperf.
12767         (Depends-on): Add gperf.
12768         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12769         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12770         long names.
12771
12772         Tests for module 'unictype/bidiclass-longname'.
12773         * modules/unictype/bidiclass-longname-tests: New file.
12774         * tests/unictype/test-bidi_longname.c: New file.
12775
12776         New module 'unictype/bidiclass-longname'.
12777         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12778         * lib/unictype/bidi_longname.c: New file.
12779         * modules/unictype/bidiclass-longname: New file.
12780         * modules/unictype/bidiclass-all (Depends-on): Add
12781         unictype/bidiclass-longname.
12782
12783 2011-03-26  Bruno Haible  <bruno@clisp.org>
12784
12785         unictype/bidi*: Rename modules.
12786         * modules/unictype/bidiclass-all: Renamed from
12787         modules/unictype/bidicategory-all.
12788         * modules/unictype/bidiclass-name: Renamed from
12789         modules/unictype/bidiclass-name.
12790         (Description): Update.
12791         * modules/unictype/bidiclass-name-tests: Renamed from
12792         modules/unictype/bidicategory-name-tests.
12793         * modules/unictype/bidiclass-byname: Renamed from
12794         modules/unictype/bidicategory-byname.
12795         (Description): Update.
12796         * modules/unictype/bidiclass-byname-tests: Renamed from
12797         modules/unictype/bidicategory-byname-tests.
12798         * modules/unictype/bidiclass-of: Renamed from
12799         modules/unictype/bidicategory-of.
12800         (Description): Update.
12801         * modules/unictype/bidiclass-of-tests: Renamed from
12802         modules/unictype/bidicategory-of-tests.
12803         * modules/unictype/bidiclass-test: Renamed from
12804         modules/unictype/bidicategory-test.
12805         (Description): Update.
12806         * modules/unictype/bidiclass-test-tests: Renamed from
12807         modules/unictype/bidicategory-test-tests.
12808         * modules/unictype/bidicategory-all: New file, a simple redirection.
12809         * modules/unictype/bidicategory-name: Likewise.
12810         * modules/unictype/bidicategory-byname: Likewise.
12811         * modules/unictype/bidicategory-of: Likewise.
12812         * modules/unictype/bidicategory-test: Likewise.
12813         * modules/unictype/property-bidi-* (Dependencies): Update.
12814         * lib/unictype/bidi_*.c: Update comment.
12815
12816 2011-03-26  Bruno Haible  <bruno@clisp.org>
12817
12818         unictype/bidi*: Rename functions, part 2.
12819         * modules/unictype/bidicategory-name (configure.ac): Update required
12820         libunistring version.
12821         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12822
12823 2011-03-25  Bruno Haible  <bruno@clisp.org>
12824
12825         New module 'unictype/combining-class-all'.
12826         * modules/unictype/combining-class-all: New file.
12827
12828         Tests for module 'unictype/combining-class-byname'.
12829         * modules/unictype/combining-class-byname-tests: New file.
12830         * tests/unictype/test-combiningclass_byname.c: New file.
12831
12832         New module 'unictype/combining-class-byname'.
12833         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12834         * lib/unictype/combiningclass_byname.c: New file.
12835         * lib/unictype/combiningclass_byname.gperf: New file.
12836         * modules/unictype/combining-class-byname: New file.
12837
12838         Tests for module 'unictype/combining-class-longname'.
12839         * modules/unictype/combining-class-longname-tests: New file.
12840         * tests/unictype/test-combiningclass_longname.c: New file.
12841
12842         New module 'unictype/combining-class-longname'.
12843         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12844         * lib/unictype/combiningclass_longname.c: New file.
12845         * modules/unictype/combining-class-longname: New file.
12846
12847         Tests for module 'unictype/combining-class-name'.
12848         * modules/unictype/combining-class-name-tests: New file.
12849         * tests/unictype/test-combiningclass_name.c: New file.
12850
12851         New module 'unictype/combining-class-name'.
12852         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12853         * lib/unictype/combiningclass_name.c: New file.
12854         * modules/unictype/combining-class-name: New file.
12855
12856 2011-03-25  Bruno Haible  <bruno@clisp.org>
12857
12858         unictype/combining-class: Rename source files.
12859         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12860         of unictype/combining.h.
12861         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12862         Update.
12863         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12864         * modules/unictype/combining-class (Description): Fix.
12865         (Files, Makefile.am): Update.
12866         * tests/unictype/test-combiningclass.c: Renamed from
12867         tests/unictype/test-combining.c.
12868         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12869
12870 2011-03-25  Bruno Haible  <bruno@clisp.org>
12871
12872         unictype: Update list of canonical combining classes.
12873         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12874
12875 2011-03-25  Bruno Haible  <bruno@clisp.org>
12876
12877         unictype/category-byname: Recognize long names as well.
12878         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12879         a long name.
12880         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12881         unictype/categ_byname.h.
12882         (UC_CATEGORY_INDEX_*): New enumeration values.
12883         (uc_general_category_byname): Use uc_general_category_lookup and
12884         convert from index to value.
12885         * lib/unictype/categ_byname.gperf: New file.
12886         * modules/unictype/category-byname (Files): Add
12887         lib/unictype/categ_byname.gperf.
12888         (Depends-on): Add gperf.
12889         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12890         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12891         long names.
12892
12893         Tests for module 'unictype/category-longname'.
12894         * modules/unictype/category-longname-tests: New file.
12895         * tests/unictype/test-categ_longname.c: New file.
12896
12897         New module 'unictype/category-longname'.
12898         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12899         * lib/unictype/categ_longname.c: New file.
12900         * modules/unictype/category-longname: New file.
12901         * modules/unictype/category-all (Depends-on): Add it.
12902
12903 2011-03-25  Bruno Haible  <bruno@clisp.org>
12904
12905         Tests for module 'unictype/category-LC'.
12906         * modules/unictype/category-LC-tests: New file.
12907         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12908
12909         New module 'unictype/category-LC'.
12910         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12911         (UC_CATEGORY_LC): New declaration.
12912         (UC_CASED_LETTER): New macro.
12913         * lib/gen-uni-tables.c (is_category_LC): New function.
12914         (output_categories): Also handle category LC.
12915         (UC_CATEGORY_MASK_LC): New enumeration value.
12916         (general_category_byname): Also handle category LC.
12917         * lib/unictype/categ_LC.c: New file.
12918         * lib/unictype/categ_LC.h: New file, automatically generated.
12919         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12920         category LC.
12921         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12922         * modules/unictype/category-LC: New file.
12923         * modules/unictype/category-byname (Depends-on): Add
12924         unictype/category-LC.
12925         * modules/unictype/category-all (Depends-on): Likewise.
12926
12927 2011-03-25  Eric Blake  <eblake@redhat.com>
12928
12929         xmalloc: revert yesterday's regression
12930         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12931         realloc's underlying behavior (allowing allocation of zero-size
12932         objects, especially if malloc-gnu is also in use).
12933
12934 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12935
12936         maint.mk: add missing version to VC-tag
12937         * top/maint.mk: git tag was missing actual tag name; add it.
12938
12939         valgrind: do leak checking, and exit with code 1 on error (not 0)
12940         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12941         to VALGRIND.
12942
12943 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12944
12945         posix-modules: say what it does.
12946         * posix-modules: Add a line to the --help output saying what it does.
12947
12948 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12949
12950         xmalloc: Do not leak if underlying realloc is C99 compatible.
12951         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12952         This avoids a leak on C99-based systems.  See
12953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12954
12955 2011-03-24  Eric Blake  <eblake@redhat.com>
12956
12957         realloc: document portability problem
12958         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12959         passing 0 size to realloc.
12960
12961 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12962
12963         doc: update users.txt
12964         * users.txt: Add cvsps, tmpwatch
12965
12966 2011-03-23  Matt Rice  <ratmice@gmail.com>
12967
12968         doc: update users.txt
12969         * users.txt: Add gdb.
12970
12971 2011-03-23  Jim Meyering  <meyering@redhat.com>
12972
12973         doc: update users.txt
12974         Looking through matches up to the following URL (there are still
12975         several more pages), I found several projects that use gnulib:
12976         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12977         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12978         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12979
12980 2011-03-22  Bruno Haible  <bruno@clisp.org>
12981
12982         unictype/bidi*: Rename functions.
12983         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12984         uc_bidi_class, uc_is_bidi_class): New declarations.
12985         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12986         uc_bidi_category_byname.
12987         (uc_bidi_category_byname): New function.
12988         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12989         u_bidi_category_name.
12990         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12991         (uc_bidi_category_name): New function.
12992         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12993         uc_bidi_category.
12994         (uc_bidi_category): New function.
12995         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12996         uc_is_bidi_category. Invoke uc_bidi_class.
12997         (uc_is_bidi_category): New function.
12998         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12999         instead of uc_bidi_category_byname.
13000         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13001         instead of uc_bidi_category_name.
13002         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13003         uc_bidi_category.
13004         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13005         instead of uc_is_bidi_category.
13006
13007 2011-03-21  Bruno Haible  <bruno@clisp.org>
13008
13009         New module 'unictype/joininggroup-all'.
13010         * modules/unictype/joininggroup-all: New file.
13011
13012         Tests for module 'unictype/joininggroup-of'.
13013         * modules/unictype/joininggroup-of-tests: New file.
13014         * tests/unictype/test-joininggroup_of.c: New file.
13015         * tests/unictype/test-joininggroup_of.h: New file, automatically
13016         generated by gen-uni-tables.
13017
13018         New module 'unictype/joininggroup-of'.
13019         * modules/unictype/joininggroup-of: New file.
13020         * lib/unictype/joininggroup_of.c: New file.
13021         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13022         gen-uni-tables.
13023
13024         Tests for module 'unictype/joininggroup-byname'.
13025         * modules/unictype/joininggroup-byname-tests: New file.
13026         * tests/unictype/test-joininggroup_byname.c: New file.
13027
13028         New module 'unictype/joininggroup-byname'.
13029         * modules/unictype/joininggroup-byname: New file.
13030         * lib/unictype/joininggroup_byname.c: New file.
13031         * lib/unictype/joininggroup_byname.gperf: New file.
13032
13033         Tests for module 'unictype/joininggroup-name'.
13034         * modules/unictype/joininggroup-name-tests: New file.
13035         * tests/unictype/test-joininggroup_name.c: New file.
13036
13037         New module 'unictype/joininggroup-name'.
13038         * modules/unictype/joininggroup-name: New file.
13039         * lib/unictype/joininggroup_name.c: New file.
13040         * lib/unictype/joininggroup_name.h: New file.
13041
13042         New module 'unictype/joiningtype-all'.
13043         * modules/unictype/joiningtype-all: New file.
13044
13045         Tests for module 'unictype/joiningtype-of'.
13046         * modules/unictype/joiningtype-of-tests: New file.
13047         * tests/unictype/test-joiningtype_of.c: New file.
13048         * tests/unictype/test-joiningtype_of.h: New file, automatically
13049         generated by gen-uni-tables.
13050
13051         New module 'unictype/joiningtype-of'.
13052         * modules/unictype/joiningtype-of: New file.
13053         * lib/unictype/joiningtype_of.c: New file.
13054         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13055         gen-uni-tables.
13056
13057         Tests for module 'unictype/joiningtype-byname'.
13058         * modules/unictype/joiningtype-byname-tests: New file.
13059         * tests/unictype/test-joiningtype_byname.c: New file.
13060
13061         New module 'unictype/joiningtype-byname'.
13062         * modules/unictype/joiningtype-byname: New file.
13063         * lib/unictype/joiningtype_byname.c: New file.
13064
13065         Tests for module 'unictype/joiningtype-name'.
13066         * modules/unictype/joiningtype-name-tests: New file.
13067         * tests/unictype/test-joiningtype_name.c: New file.
13068
13069         New module 'unictype/joiningtype-name'.
13070         * modules/unictype/joiningtype-name: New file.
13071         * lib/unictype/joiningtype_name.c: New file.
13072
13073         unictype: Add support for Arabic shaping properties.
13074         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13075         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13076         declarations.
13077         (UC_JOINING_GROUP_*): New enumeration values.
13078         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13079         declarations.
13080         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13081         (unicode_joining_type): New variable.
13082         (UC_JOINING_GROUP_*): New enumeration values.
13083         (unicode_joining_group): New variable.
13084         (fill_arabicshaping, joining_type_as_c_identifier,
13085         output_joining_type_test, output_joining_type,
13086         joining_group_as_c_identifier, output_joining_group_test,
13087         output_joining_group): New functions.
13088         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13089         fill_arabicshaping and output_joining_type_test, output_joining_type,
13090         output_joining_group_test, output_joining_group.
13091         Reported by Simon Josefsson.
13092
13093 2011-03-21  Jim Meyering  <meyering@redhat.com>
13094
13095         strftime: fix a bug in yesterday's change
13096         * lib/strftime.c (add): Accommodate width's initial value of -1.
13097         Otherwise, nstrftime would copy uninitialized data into
13098         the result buffer.
13099
13100 2011-03-21  Jim Meyering  <meyering@redhat.com>
13101
13102         tests: add strftime-tests module
13103         * tests/test-strftime.c: New file.
13104         * modules/strftime-tests: New module.
13105
13106 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13107
13108         strftime: don't assume a byte count fits in 'int'
13109         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13110         found this problem by static analysis, using gcc -Wstrict-overflow
13111         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13112         on an integer overflow having undefined behavior, but it turns out
13113         that the argument is a size, which might not fit in 'int' anyway,
13114
13115 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13116
13117         stdio: don't require ignore_value around fwrite
13118
13119         This patch works around libc bug 11959
13120         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13121         Without this patch, applications must often write
13122         ignore_value (fwrite (...)) even though the ignore_value is
13123         not helpful here.  It's common to write many objects, using
13124         fwrite/printf/etc., and then use ferror to detect output error.
13125
13126         I considered making this patch optional, but decided against it,
13127         because libc is obviously being inconsistent here: there is no
13128         reason libc should insist that user code must inspect fwrite
13129         return's value without also insisting that it inspect printf's,
13130         putchar's, etc.  If user code wants to have a strict style where
13131         all these functions' values are checked (so that ferror need not
13132         be checked), we could add support for that style in a new gnulib
13133         module, but in the meantime it's better to be consistent and to
13134         support common usage.
13135
13136         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13137         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13138         that we are compiling in checking mode, and if not C++, and
13139         if not already wrapping fwrite for some other reason.
13140         (fwrite): #define to rpl_fwrite if the latter is defined.
13141
13142 2011-03-20  Bruno Haible  <bruno@clisp.org>
13143
13144         verror: Fix compilation error introduced on 2011-02-13.
13145         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13146         instead of __attribute__.
13147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13148
13149 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13150             Bruno Haible  <bruno@clisp.org>
13151
13152         socklen: do not depend on sys_socket
13153         While trying to modify Emacs to use gnulib's socklen module,
13154         I discovered a circular dependency: socklen depends on sys_socket
13155         and vice versa.  Emacs can use socklen, but it does not need
13156         sys_socket because it has its own substitute for sys/socket.h.
13157         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13158         gl_TYPE_SOCKLEN_T.
13159         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13160         gl_PREREQ_SYS_H_SOCKET.
13161         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13162         gl_PREREQ_SYS_H_SOCKET.
13163         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13164         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13165         * modules/socklen (Depends-on): Do not depend on sys_socket.
13166         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13167
13168 2011-03-20  Jim Meyering  <meyering@redhat.com>
13169
13170         maint.mk: sort file names *after* new transformation
13171         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13172         prefix would have led to an unwarranted failure in GNU parted.
13173         Sort after that transformation.
13174
13175 2011-03-19  Jim Meyering  <meyering@redhat.com>
13176
13177         maint.mk: fix po-file syntax-check rule
13178         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13179         Patch by Bruno Haible.
13180
13181 2011-03-19  Bruno Haible  <bruno@clisp.org>
13182
13183         socklen: Update comment.
13184         * m4/socklen.m4: Update comment about platforms.
13185
13186 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13187             Bruno Haible  <bruno@clisp.org>
13188
13189         inet_ntop, inet_pton: Simplify.
13190         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13191         documented to provide socklen_t and we already depend on sys_socket.
13192         * modules/inet_pton (Depends-on): Likewise.
13193         * lib/arpa_inet.in.h: Adjust comment.
13194
13195 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13196             Bruno Haible  <bruno@clisp.org>
13197
13198         netdb: Simplify.
13199         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13200         documented to provide socklen_t and we already depend on sys_socket.
13201         * lib/netdb.in.h: Adjust comment.
13202
13203 2011-03-19  Bruno Haible  <bruno@clisp.org>
13204
13205         sys_socket, netdb: Document problem with socklen_t.
13206         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13207         platforms.
13208         * doc/posix-headers/netdb.texi: Likewise.
13209
13210 2011-03-18  Eric Blake  <eblake@redhat.com>
13211
13212         maint.mk: let po check work in VPATH build
13213         * top/maint.mk (po_file): Allow cfg.mk override.
13214         (sc_po_check): Allow VPATH use.
13215         Reported by Jiri Denemark.
13216
13217 2011-03-16  Jim Meyering  <meyering@redhat.com>
13218
13219         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13220         Before, you would have had to create one .x-sc_ file per rule in order
13221         to exempt offending files.  Now, you may instead use a Make variable --
13222         usually defined in cfg.mk -- whose name identifies the affected rule.
13223         * top/maint.mk (_sc_excl): Define.
13224         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13225         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13226
13227 2011-03-13  Bruno Haible  <bruno@clisp.org>
13228
13229         ignore-value tests: Avoid warnings.
13230         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13231         empty for gcc < 3.4.
13232
13233 2011-03-13  Bruno Haible  <bruno@clisp.org>
13234
13235         passfd: Fix link error on Solaris.
13236         * modules/passfd (Description): Correct.
13237         (Depends-on): Add socketlib.
13238         (Link): New section.
13239         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13240
13241 2011-03-13  Bruno Haible  <bruno@clisp.org>
13242
13243         passfd: Fix link error on AIX 5.2.
13244         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13245
13246 2011-03-13  Bruno Haible  <bruno@clisp.org>
13247
13248         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13249         * lib/sys_socket.in.h: Include <stddef.h>.
13250         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13251         CMSG_FIRSTHDR. Remove unused variable.
13252
13253 2011-03-13  Bruno Haible  <bruno@clisp.org>
13254
13255         passfd: Fix compilation error on OpenBSD.
13256         * lib/passfd.c: Include <sys/uio.h>.
13257
13258 2011-03-13  Bruno Haible  <bruno@clisp.org>
13259
13260         passfd test: Fix warnings.
13261         * tests/test-passfd.c: Include <sys/wait.h>.
13262         (main): Fix typo.
13263
13264 2011-03-13  Bruno Haible  <bruno@clisp.org>
13265
13266         passfd module, part 4, tweaks.
13267         * tests/test-passfd.c: Reorder includes.
13268         (main): Fix perror and printf calls.
13269
13270 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13271
13272         passfd module, part 4.
13273         * modules/passfd-tests: New file.
13274         * tests/test-passfd.c: New file.
13275
13276 2011-03-13  Jim Meyering  <meyering@redhat.com>
13277
13278         Makefile: rely on GNU make; derive syntax-check rule names
13279         Rather than requiring that each sc_ rule be listed as a dependent
13280         of "check", use features of GNU make to derive the list.
13281         * Makefile (syntax-check-rules): Define.
13282         (check): Depend on the new variable, not the hard-coded list.
13283
13284 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13285             Bruno Haible  <bruno@clisp.org>
13286
13287         passfd module, part 3.
13288         * lib/passfd.h (recvfd): Add a flags argument.
13289         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13290         (recvfd): Add a flags argument.
13291         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13292         exists.
13293         * modules/passfd (Depends-on): Add cloexec.
13294         Suggested by Eric Blake.
13295
13296 2011-03-13  Bruno Haible  <bruno@clisp.org>
13297
13298         passfd module, part 2, tweaks.
13299         * modules/passfd (Files): Reorder.
13300         (Depends-on): Remove errno.
13301         (Include): Remove <sys/socket.h>, <sys/un.h>.
13302         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13303         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13304         specification header. Include <sys/socket.h> always. Don't include
13305         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13306         (sendfd): Clarify that it sets errno when it fails.
13307         (recvfd): Fix specification.
13308
13309 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13310
13311         passfd module, part 2.
13312         * modules/passfd: New file.
13313         * lib/passfd.h: New file.
13314         * lib/passfd.c: New file.
13315
13316 2011-03-12  Bruno Haible  <bruno@clisp.org>
13317
13318         wcswidth, mbswidth: Avoid integer overflow.
13319         * lib/wcswidth.c: Include <limits.h>.
13320         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13321         * lib/mbswidth.c: Include <limits.h>.
13322         (mbsnwidth): Avoid 'int' overflow.
13323         Reported by Jim Meyering.
13324
13325 2011-03-12  Bruno Haible  <bruno@clisp.org>
13326
13327         futimens, utimensat: Avoid endless recursion on Solaris 10.
13328         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13329         Solaris.
13330         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13331         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13332
13333 2011-03-11  Jim Meyering  <meyering@redhat.com>
13334
13335         maint.mk: relax a regexp to accommodate other formatting styles
13336         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13337         between "ngettext" and the following "(".
13338
13339 2011-03-11  Pádraig Brady <P@draigBrady.com>
13340
13341         maint.mk: suppress a false positive warning
13342         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13343         diagnostics are marked with ngettext.
13344
13345 2011-03-10  Eric Blake  <eblake@redhat.com>
13346
13347         wchar: add explicit dependencies, for Tru64
13348         * modules/mbmemcasecoll (Depends-on): Add wchar.
13349         * modules/mbtowc (Depends-on): Likewise.
13350         * modules/vasnprintf (Depends-on): Likewise.
13351         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13352         * modules/wctomb (Depends-on): Likewise.
13353         Reported by Peter O'Gorman.
13354
13355 2011-03-08  Bruno Haible  <bruno@clisp.org>
13356
13357         passfd module, part 1, tweaks.
13358         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13359         Improve indentation. Improve AC_MSG_CHECKING messages.
13360         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13361         gl_SOCKET_FAMILIES.
13362
13363 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13364
13365         passfd module, part 1.
13366         * m4/afunix.m4: New file.
13367         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13368         sockets.
13369
13370 2011-03-08  Bruno Haible  <bruno@clisp.org>
13371
13372         regex-quote: New API.
13373         * lib/regex-quote.h: Include <stdbool.h>.
13374         (struct regex_quote_spec): New type.
13375         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13376         New declarations.
13377         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13378         'const struct regex_quote_spec *' argument.
13379         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13380         (pcre_special): New constant.
13381         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13382         New functions.
13383         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13384         'const struct regex_quote_spec *' argument.
13385         * modules/regex-quote (Depends-on): Add stdbool.
13386         * tests/test-regex-quote.c (check): Update for new API. Add test for
13387         anchored results.
13388         * NEWS: Mention the API change.
13389         Reported by Reuben Thomas and Eric Blake.
13390
13391 2011-03-06  Bruno Haible  <bruno@clisp.org>
13392
13393         regex-quote: Fix creation of POSIX extended regular expressions.
13394         * lib/regex-quote.c (ere_special): Add grouping and alternation
13395         operators.
13396
13397 2011-03-05  Bruno Haible  <bruno@clisp.org>
13398
13399         doc: Improve doc regarding autopoint vs. gnulib.
13400         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13401         disable autopoint while running autoreconf.
13402         Suggested by Ralf Wildenhues.
13403
13404 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13405
13406         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13407         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13408
13409 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13410
13411         parse-duration: remove xalloc.h dependency
13412         * lib/parse-duration.c (parse_period): handle NULL return from
13413         strdup instead of calling xstrdup().
13414         * modules/parse-duration: remove "xalloc" dependency
13415
13416 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13417
13418         bootstrap: honor m4_base when running aclocal
13419         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13420
13421 2011-03-02  Jim Meyering  <meyering@redhat.com>
13422
13423         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13424         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13425         on request from Matt Booth.
13426
13427 2011-03-01  Eric Blake  <eblake@redhat.com>
13428
13429         test-link: work on Hurd
13430         * tests/test-link.h (test_link): Hurd rejects linking directories
13431         with EISDIR instead of the POSIX-mandated EPERM.
13432
13433 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13434
13435         stdio: simplify by moving files to printf-posix, sigpipe
13436         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13437         since this symbol is needed only if printf is replaced.
13438         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13439         Require gl_ASM_SYMBOL_PREFIX.
13440         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13441         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13442         (Depends-on): Add 'raise'.
13443         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13444         * modules/stdio (Files): Remove lib/stdio-write.c,
13445         m4/asm-underscore.m4.
13446         (Depends-on): Remove 'raise'.
13447
13448         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13449         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13450         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13451         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13452
13453 2011-02-28  Bruno Haible  <bruno@clisp.org>
13454
13455         localcharset: Assume ANSI C behaviour of free().
13456         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13457         calling free().
13458         Suggested by Simon Josefsson <simon@josefsson.org>.
13459
13460 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13461             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13462             Bruno Haible  <bruno@clisp.org>  (tiny change)
13463
13464         On Cygwin, use /proc file system instead of win32 API.
13465         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13466         Win32 file names.
13467         (DllMain): Simplify by removing Cygwin specific code.
13468         (find_shared_library_fullname): Use Linux specific implementation also
13469         for Cygwin.
13470         (get_shared_library_fullname): Update accordingly.
13471         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13472         Win32 file names.
13473         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13474         Cygwin specific code.
13475
13476 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13477             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13478
13479         Fix OpenMP flag detection for various Fortran compilers.
13480         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13481         OpenMP-conditional compilation construct, to force compile
13482         failure with missing OpenMP flag.
13483         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13484
13485 2011-02-25  Eric Blake  <eblake@redhat.com>
13486
13487         strstr: expand test coverage
13488         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13489         compilation.
13490         * tests/test-memmem.c (main): Duplicate tests.
13491         * tests/test-strcasestr.c (main): Likewise.
13492         * tests/test-c-strcasestr.c (main): Likewise.
13493
13494 2011-02-25  Jim Meyering  <meyering@redhat.com>
13495
13496         maint.mk: detect missing-NL-at-EOF, too
13497         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13498         it also detects when a file lacks a newline at EOF.
13499         (require_exactly_one_NL_at_EOF_): Renamed from
13500         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13501         since people may well have .x-sc_... file names tied to the
13502         existing name.  Suggested by Eric Blake.
13503
13504 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13505
13506         dirname: move m4/dos.m4 functionality into lib/dosname.h
13507
13508         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13509         extracts symbols from it, puts them into config.h; but it's much
13510         easier to use the symbols directly.  filename.h already does this,
13511         but it disagrees with dos.m4 in some respects.  This patch
13512         introduces a different include file dosname.h that packages up
13513         dos.m4, and then later we can work on merging filename.h and
13514         dosname.h.  Applications that need only the easy-to-configure
13515         symbols should consider including dosname.h rather than dirname.h.
13516         * NEWS: Mention incompatible changes.
13517         * m4/dos.m4: Remove.
13518         * lib/dosname.h, modules/dosname: New files.
13519         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13520         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13521         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13522         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13523         Include dosname.h, not dirname.h.
13524         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13525         Include dosname.h, for definitions of symbols like ISSLASH
13526         that used to be in config.h.
13527         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13528         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13529         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13530         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13531         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13532         * modules/rmdir (Files): Likewise.
13533         * modules/stat (Files): Likewise.
13534         * modules/unlink (Files): Likewise.
13535         * modules/dirname-lgpl (Depends-on): Add dosname.
13536         * modules/lstat (Depends-on): Likewise.
13537         * modules/openat (Depends-on): Likewise.
13538         * modules/rmdir (Depends-on): Likewise.
13539         * modules/savewd (Depends-on): Likewise.
13540         * modules/stat (Depends-on): Likewise.
13541         * modules/unlink (Depends-on): Likewise.
13542         * modules/openat (Depends-on): Remove dirname-lgpl.
13543         * modules/savewd (Depends-on): Likewise.
13544         * tests/test-dirname.c: Do not use removed symbols like
13545         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13546         the remaining symbols, e.g., ISSLASH ('\\').
13547
13548 2011-02-25  Eric Blake  <eblake@redhat.com>
13549
13550         strstr: revert patches that introduced bug and pessimization
13551         * lib/str-two-way.h: Add another reference.
13552         (two_way_short_needle, two_way_long_needle): Revert changes from
13553         2011-02-24; they pessimize search speed.
13554         (critical_factorization): Partially revert changes from
13555         2010-06-22; they violate the requirement that the left half of the
13556         needle be smaller than the period of the needle.
13557
13558 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13559
13560         filenamecat: remove unnecessary dependency on dirname-lgpl
13561         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13562         is no direct dependency, just an indirect one via filenamecat-lgpl.
13563
13564         remove: remove unnecessary use of m4/dos.m4
13565         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13566         * modules/remove (FILES): Remove m4/dos.m4.
13567
13568         * lib/openat-proc.c: Don't include dirname.h; not needed.
13569
13570         backupfile: remove unnecessary use of m4/dos.m4
13571         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13572         of its symbols are used by the backupfile code.  backupfile.c does
13573         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13574         for the rare case of programs that want all their backup file
13575         names to live within 8+3 limits, and dos.m4 doesn't address that.
13576         * modules/backupfile (Files): Remove m4/dos.m4.
13577
13578 2011-02-24  Jim Meyering  <meyering@redhat.com>
13579
13580         strstr: fix a bug whereby strstr would mistakenly return NULL
13581         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13582         in period calculation.
13583         (two_way_long_needle): Likewise.
13584         The original problem was reported by Mike Stump in
13585         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13586         Ralf Wildenhues provided the short needle and haystack.
13587         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13588         Add a more involved test to trigger the bug in two_way_long_needle.
13589
13590 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13591
13592         gnulib-tool: remove use of bold display in help screen
13593         * gnulib-tool (func_usage): Do not use bold display anymore in the
13594         help screen.  That was just meant to be a temporary emphasis for a
13595         backward-incompatible change.
13596
13597 2011-02-23  Bruno Haible  <bruno@clisp.org>
13598
13599         Fix misindentation of preprocessor directives.
13600         * lib/argp-namefrob.h: Reindent preprocessor directives.
13601         * lib/getopt_int.h (struct _getopt_data): Likewise.
13602         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13603         * lib/vasnprintf.c (decode_long_double): Likewise.
13604         * tests/test-argmatch.c: Insert blank lines, for clarity.
13605         * tests/test-exclude.c: Likewise.
13606
13607 2011-02-22  Bruno Haible  <bruno@clisp.org>
13608
13609         ioctl: Fix for MacOS X in 64-bit mode.
13610         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13611         value.
13612         Suggested by Eric Blake.
13613         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13614
13615 2011-02-22  Jim Meyering  <meyering@redhat.com>
13616
13617         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13618         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13619         in lib/.
13620
13621 2011-02-22  Eric Blake  <eblake@redhat.com>
13622
13623         maint: avoid any CDPATH issue
13624         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13625
13626         maint: adjust cpp indentation for my modules, as well
13627         * Makefile (sc_cpp_indent_check): Add my name.
13628         * lib/fbufmode.c: Filter through cppi.
13629         * lib/fpurge.c: Likewise.
13630         * lib/freadable.c: Likewise.
13631         * lib/freading.c: Likewise.
13632         * lib/fwritable.c: Likewise.
13633         * lib/fwriting.c: Likewise.
13634         * lib/sigaction.c: Likewise.
13635
13636 2011-02-22  Jim Meyering  <meyering@redhat.com>
13637
13638         maint: adjust cpp indentation to reflect nesting depth
13639         I.e., in a block of code that begins with an unnested "#if",
13640         put one space between the "#" in column 1 and following token.
13641         For example,
13642         -#include <sys/vfs.h>
13643         +# include <sys/vfs.h>
13644         Do this only in .c files that are part of a module I maintain.
13645         * lib/linkat.c: Filter through cppi.
13646         * lib/nanosleep.c: Likewise.
13647         * lib/openat.c: Likewise.
13648         * lib/openat-die.c: Likewise.
13649         * lib/dup3.c: Likewise.
13650         * lib/fchownat.c: Likewise.
13651         * lib/flock.c: Likewise.
13652         * lib/fsync.c: Likewise.
13653         * lib/fts.c: Likewise.
13654         * lib/getpass.c: Likewise.
13655         * lib/gettimeofday.c: Likewise.
13656         * lib/userspec.c: Likewise.
13657         * Makefile (sc_cpp_indent_check): New rule, to check this.
13658
13659 2011-02-22  Bruno Haible  <bruno@clisp.org>
13660
13661         New module 'wctomb'.
13662         * lib/stdlib.in.h (wctomb): New declaration.
13663         * lib/wctomb.c: New file.
13664         * lib/wctomb-impl.h: New file.
13665         * m4/wctomb.m4: New file.
13666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13667         REPLACE_WCTOMB.
13668         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13669         REPLACE_WCTOMB.
13670         * modules/wctomb: New file.
13671         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13672         * doc/posix-functions/wctomb.texi: Mention the new module.
13673         * modules/wctob (Depends-on): Add wctomb.
13674
13675 2011-02-22  Bruno Haible  <bruno@clisp.org>
13676
13677         New module 'mbtowc'.
13678         * lib/stdlib.in.h (mbtowc): New declaration.
13679         * lib/mbtowc.c: New file.
13680         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13681         * m4/mbtowc.m4: New file.
13682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13683         REPLACE_MBTOWC.
13684         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13685         REPLACE_MBTOWC.
13686         * modules/mbtowc: New file.
13687         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13688         * doc/posix-functions/mbtowc.texi: Mention the new module.
13689         * modules/btowc (Depends-on): Add mbtowc.
13690
13691 2011-02-22  Bruno Haible  <bruno@clisp.org>
13692
13693         wcrtomb: Add more tests for native Windows platforms.
13694         * tests/test-wcrtomb-w32-1.sh: New file.
13695         * tests/test-wcrtomb-w32-2.sh: New file.
13696         * tests/test-wcrtomb-w32-3.sh: New file.
13697         * tests/test-wcrtomb-w32-4.sh: New file.
13698         * tests/test-wcrtomb-w32-5.sh: New file.
13699         * tests/test-wcrtomb-w32.c: New file.
13700         * modules/wcrtomb-tests (Files): Add them.
13701         (Makefile.am): Arrange to run these tests.
13702         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13703         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13704
13705 2011-02-20  Bruno Haible  <bruno@clisp.org>
13706
13707         wcrtomb: Enhance test.
13708         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13709
13710 2011-02-20  Bruno Haible  <bruno@clisp.org>
13711
13712         mbrtowc: Tiny optimization.
13713         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13714
13715 2011-02-20  Jim Meyering  <meyering@redhat.com>
13716
13717         test-exclude.c: remove unmatched #endif
13718         * tests/test-exclude.c: Remove stray #endif, left over from
13719         the change of a week ago.
13720
13721 2011-02-19  Jim Meyering  <meyering@redhat.com>
13722
13723         git-version-gen: skip "-dirty" check when appropriate
13724         * build-aux/git-version-gen: Don't run any git commands when the
13725         version string comes from .tarball-version.  Prior to this, we
13726         would run git update-index --refresh even from a just-unpacked
13727         tarball directory, and that could affect a .git/ directory in a
13728         parent of the build directory.  Reported by Mike Frysinger.
13729
13730 2011-02-19  Bruno Haible  <bruno@clisp.org>
13731
13732         unictype/property-byname: Reduce the size of the 'data' segment.
13733         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13734
13735 2011-02-19  Bruno Haible  <bruno@clisp.org>
13736
13737         unictype/scripts: Reduce the size of the 'data' segment.
13738         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13739         '%pic'.
13740         * lib/unictype/scripts_byname.gperf: Regenerated.
13741
13742 2011-02-19  Bruno Haible  <bruno@clisp.org>
13743
13744         stdint: Update documentation.
13745         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13746
13747 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13748
13749         stdint: omit redundant check for wchar.h
13750         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13751         always tests whether wchar.h exists, so remove the now-redundant test.
13752
13753 2011-02-18  Bruno Haible  <bruno@clisp.org>
13754
13755         stdint: Cut dependency to module 'wchar'.
13756         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13757         include the necessary prerequisites.
13758         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13759         * modules/stdint (Depends-on): Remove wchar.
13760         (Makefile.am): Substitute HAVE_WCHAR_H.
13761         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13762
13763 2011-02-18  Eric Blake  <eblake@redhat.com>
13764
13765         longlong: skip, rather than fail, on cross-compilation
13766         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13767         when cross-compiling; regression from 2011-02-16.
13768
13769 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13770
13771         * NEWS: Mention 2011-02-08 change to stdlib.
13772
13773 2011-02-17  Bruno Haible  <bruno@clisp.org>
13774
13775         getloadavg: Add comments about platforms.
13776         * m4/getloadavg.m4: Add comment.
13777         * lib/getloadavg.c: Likewise.
13778
13779 2011-02-17  Bruno Haible  <bruno@clisp.org>
13780
13781         getloadavg: Fix link error on Solaris 2.6.
13782         * modules/getloadavg (Link): New section.
13783         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13784         linking test-getloadavg.
13785         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13786         getloadavg.
13787
13788 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13789
13790         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13791         It was 'int', but this doesn't match the IRIX 6.5 manual.
13792         Suggested by Bruno Haible in
13793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13794
13795 2011-02-17  Bruno Haible  <bruno@clisp.org>
13796
13797         havelib: Fix comments.
13798         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13799         change.
13800
13801 2011-02-17  Bruno Haible  <bruno@clisp.org>
13802
13803         havelib: Update config.rpath.
13804         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13805
13806 2011-02-17  Bruno Haible  <bruno@clisp.org>
13807
13808         getloadavg test: Add some plausibility checks.
13809         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13810         is improbable.
13811
13812 2011-02-16  Eric Blake  <eblake@redhat.com>
13813
13814         maintainer-makefile: make syntax-check a no-op from tarballs
13815         * top/maint.mk (no-vc-detected): New rule.
13816         (local-checks-available): Use it to avoid hanging if someone tries
13817         'make syntax-check' from a tarball.  Also append to any non-syntax
13818         checks already defined in cfg.mk.
13819
13820 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         longlong: tune, particularly for common case of c99
13823
13824         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13825         or running anything if c99, or if unsigned long long int does not
13826         work.  In either case, we know the answer without further tests.
13827         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13828         it at most once, and use its results for both long long int and
13829         unsigned long long int.  This is more likely to be efficient in
13830         the common case where the program wants to check for both long
13831         long int and unsigned long long int.
13832         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13833         since the answer is already known.
13834
13835 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13836
13837         getloadavg: set errno
13838         * lib/getloadavg.c: Set errno when returning -1.  If no other
13839         error number looks appropriate, set it to ENOSYS if the getloadavg
13840         looks like it can't possibly ever work, ENOTSUP otherwise.
13841         Suggested by Bruno Haible in
13842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13843
13844         getloadavg: trim unused parts and speed up 'configure'
13845         * NEWS: Document this.
13846         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13847         always compiled if getloadavg is absent.
13848         Move test code to ...
13849         * tests/test-getloadavg.c: New file, containing previous
13850         contents of test from lib/getloadavg.c.  It also contains
13851         suggestions by Bruno Haible in
13852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13853         * modules/getloadavg-tests: New file.
13854         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13855         Do tests in the same order as they're needed for getloadavg.c.
13856         Omit setgid-related tests that generate symbols KMEM_GROUP,
13857         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13858         Do only the tests that are needed to see whether the system has
13859         getloadavg, moving the other tests into ...
13860         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13861         NLIST_NAME_UNION; nobody should be using it.  Do not define
13862         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13863         relevant, as the user of this module shouldn't care how getloadavg
13864         is implemented.
13865
13866         getloadavg: omit unused var
13867         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13868
13869 2011-02-15  Jim Meyering  <meyering@redhat.com>
13870
13871         doc: update users.txt
13872         * users.txt: Update iwhd's URL.
13873
13874 2011-02-13  Bruno Haible  <bruno@clisp.org>
13875
13876         Consistent macro naming for macros that use GCC __attribute__.
13877         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13878         _ATTRIBUTE_NONNULL_.
13879         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13880         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13881         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13882         ATTRIBUTE_DEPRECATED.
13883         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13884         ATTRIBUTE_NORETURN.
13885         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13886         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13887         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13888         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13889         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13890         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13891         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13892         ATTRIBUTE_SENTINEL.
13893         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13894         ATTRIBUTE_RETURN_CHECK.
13895         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13896         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13897         ATTRIBUTE_NORETURN.
13898         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13899         Reported by Paul Eggert.
13900
13901 2011-02-13  Bruno Haible  <bruno@clisp.org>
13902
13903         Don't interfere with a program's definition of __attribute__.
13904         * lib/argp.h (__attribute__): Remove definition.
13905         (_GL_ATTRIBUTE_FORMAT): New macro.
13906         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13907         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13908         (_GL_ATTRIBUTE_FORMAT): New macro.
13909         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13910         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13911         GCC 3 or newer.
13912         * lib/error.h (__attribute__): Remove definition.
13913         (_GL_ATTRIBUTE_FORMAT): New macro.
13914         (error, error_at_line): Use it.
13915         * lib/hash.h (__attribute__): Remove definition.
13916         (ATTRIBUTE_WUR): Update definition. Define always.
13917         * lib/openat.h (__attribute__): Remove definition.
13918         (ATTRIBUTE_NORETURN): Update definition. Define always.
13919         * lib/sigpipe-die.h (__attribute__): Remove definition.
13920         (ATTRIBUTE_NORETURN): Update definition. Define always.
13921         * lib/vasnprintf.h (__attribute__): Remove definition.
13922         (_GL_ATTRIBUTE_FORMAT): New macro.
13923         (asnprintf, vasnprintf): Use it.
13924         * lib/xalloc.h (__attribute__): Remove definition.
13925         (ATTRIBUTE_NORETURN): Update definition. Define always.
13926         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13927         * lib/xmemdup0.h (__attribute__): Remove definition.
13928         (ATTRIBUTE_NORETURN): Update definition. Define always.
13929         * lib/xprintf.h (__attribute__): Remove definition.
13930         (_GL_ATTRIBUTE_FORMAT): New macro.
13931         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13932         * lib/xstrtol.h (__attribute__): Remove definition.
13933         (ATTRIBUTE_NORETURN): Update definition. Define always.
13934         * lib/xvasprintf.h (__attribute__): Remove definition.
13935         (_GL_ATTRIBUTE_FORMAT): New macro.
13936         (xasprintf, xvasprintf): Use it.
13937         * tests/test-argmatch.c (__attribute__): Remove definition.
13938         (ATTRIBUTE_NORETURN): Update definition. Define always.
13939         * tests/test-exclude.c (__attribute__): Remove definition.
13940         (ATTRIBUTE_NORETURN): Update definition. Define always.
13941         Reported by Paul Eggert.
13942
13943 2011-02-13  Bruno Haible  <bruno@clisp.org>
13944
13945         mbrtowc: Add more tests for native Windows platforms.
13946         * tests/test-mbrtowc-w32-1.sh: New file.
13947         * tests/test-mbrtowc-w32-2.sh: New file.
13948         * tests/test-mbrtowc-w32-3.sh: New file.
13949         * tests/test-mbrtowc-w32-4.sh: New file.
13950         * tests/test-mbrtowc-w32-5.sh: New file.
13951         * tests/test-mbrtowc-w32.c: New file.
13952         * modules/mbrtowc-tests (Files): Add them.
13953         (Makefile.am): Arrange to run these tests.
13954         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13955         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13956
13957 2011-02-13  Bruno Haible  <bruno@clisp.org>
13958
13959         mbrtowc: Work around native Windows bug.
13960         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13961         guess when no suitable locale for testing was found.
13962         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13963
13964 2011-02-13  Bruno Haible  <bruno@clisp.org>
13965
13966         mbsinit: Work around mingw bug.
13967         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13968         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13969         Windows.
13970         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13971
13972 2011-02-13  Bruno Haible  <bruno@clisp.org>
13973
13974         mbsinit: Don't crash for a NULL argument.
13975         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13976         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13977
13978 2011-02-13  Bruno Haible  <bruno@clisp.org>
13979
13980         Don't interfere with a program's definition of __attribute__.
13981         * lib/stdio.in.h (__attribute__): Remove definition.
13982         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13983         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13984         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13985         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13986         * lib/string.in.h (__attribute__): Remove definition.
13987         Reported by Paul Eggert.
13988
13989 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13990
13991         stdlib: don't get in the way of non-GCC __attribute__
13992         See thread starting at
13993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13994         Revert previous stdlib change, installing the following instead:
13995         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13996         to get in the way of a non-GCC compiler that supports __attribute__.
13997         (_GL_ATTRIBUTE_RETURN): New macro.
13998         (_Exit): Use it instead of __attribute__.
13999
14000 2011-02-12  Bruno Haible  <bruno@clisp.org>
14001
14002         quotearg test: Avoid test failure on mingw.
14003         * tests/test-quotearg.sh: Convert the locale identifier from native
14004         Windows syntax to Unix syntax.
14005
14006 2011-02-12  Bruno Haible  <bruno@clisp.org>
14007
14008         setlocale: Prefer gnulib's override over libintl's override.
14009         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14010         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14011         GNULIB_defined_setlocale is set.
14012
14013 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14014
14015         stdlib: support non-GCC __attribute__
14016
14017         Fix a serious and tricky problem encountered when attempting to
14018         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14019         5.5, but it crashed due to memory corruption on Solaris 10 with
14020         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14021         bits that are otherwise zero.  This tagging is optional inside
14022         Emacs but is preferred and is used when __attribute__ ((__aligned
14023         (8))) works, as it does with both recent-enough GCC and with Sun C
14024         5.11.  However, Sun C 5.11 is not GCC and does not #define
14025         __GNUC__ and __GNUC_MINOR__.
14026
14027         When I added the getloadavg module to Emacs, it brought in
14028         stdlib.in.h, which contained this fragment:
14029
14030            #ifndef __attribute__
14031            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14032            #  define __attribute__(Spec)   /* empty */
14033            # endif
14034            #endif
14035
14036         When files that include <stdlib.h> were compiled with Sun C 5.11,
14037         the above code disabled __attribute__ ((__aligned (8))), which
14038         caused variables to not be properly aligned, which eventually led
14039         to the pointer corruption mentioned above.  (This was a bit hard
14040         to diagnose, unfortunately.)
14041
14042         Several "#define __attribute__(X) /* empty */" code snippets need
14043         to be eradicated from Gnulib to work with non-GCC compilers that
14044         support __attribute__.  The Autoconf way to do this is to test for
14045         each kind of attribute that we want support for, and selectively
14046         enable that in source code.
14047
14048         Fix this problem just for stdlib.h, by adding a test for the
14049         __noreturn__ attribute, and change stdlib.in.h to use that test
14050         when needed.  This technique can be easily generalized to the
14051         other *.in.h files and attributes, and a similar technique can be
14052         used for *.h and *.c files.  This patch is enough to solve the
14053         problem for Emacs + getloadavg, and I thought I'd publish it for
14054         feedback before undertaking further, similar fixes in other
14055         modules.
14056
14057         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14058         because it's not needed for stdlib.h.  It merely substitutes the
14059         value directly into stdlib.h.  We may well need to #define it, or
14060         similar symbols, for other modules, but it's nice to also have an
14061         option to not #define it for applications like Emacs that do not
14062         need it.
14063
14064         * lib/stdlib.in.h (__attribute__): Do not #define.
14065         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14066         be defined only if the _Exit module is also used.
14067         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14069         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14070         platforms.
14071         * modules/_Exit (Files): Add m4/attribute.m4.
14072         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14073         * m4/attribute.m4: New file.
14074
14075 2011-02-12  Bruno Haible  <bruno@clisp.org>
14076
14077         wcsrtombs: Work around bug on native Windows.
14078         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14079         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14080         instead of len.
14081         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14082
14083 2011-02-12  Bruno Haible  <bruno@clisp.org>
14084
14085         mbsrtowcs: Work around bug on native Windows.
14086         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14087         against mingw bug.
14088         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14089
14090 2011-02-12  Bruno Haible  <bruno@clisp.org>
14091
14092         Avoid setlocale bugs in tests.
14093         * modules/btowc (Dependencies): Add setlocale.
14094         * modules/c-strcase (Dependencies): Likewise.
14095         * modules/mbmemcasecmp (Dependencies): Likewise.
14096         * modules/mbmemcasecoll (Dependencies): Likewise.
14097         * modules/mbrtowc (Dependencies): Likewise.
14098         * modules/mbscasecmp (Dependencies): Likewise.
14099         * modules/mbscasestr (Dependencies): Likewise.
14100         * modules/mbschr (Dependencies): Likewise.
14101         * modules/mbscspn (Dependencies): Likewise.
14102         * modules/mbsinit (Dependencies): Likewise.
14103         * modules/mbsncasecmp (Dependencies): Likewise.
14104         * modules/mbsnrtowcs (Dependencies): Likewise.
14105         * modules/mbspbrk (Dependencies): Likewise.
14106         * modules/mbspcasecmp (Dependencies): Likewise.
14107         * modules/mbsrchr (Dependencies): Likewise.
14108         * modules/mbsrtowcs (Dependencies): Likewise.
14109         * modules/mbsspn (Dependencies): Likewise.
14110         * modules/mbsstr (Dependencies): Likewise.
14111         * modules/nl_langinfo (Dependencies): Likewise.
14112         * modules/quotearg (Dependencies): Likewise.
14113         * modules/unicase/locale-language (Dependencies): Likewise.
14114         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14115         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14116         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14117         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14118         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14119         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14120         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14121         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14122         * modules/vasnprintf-posix (Dependencies): Likewise.
14123         * modules/wcrtomb (Dependencies): Likewise.
14124         * modules/wcsnrtombs (Dependencies): Likewise.
14125         * modules/wcsrtombs (Dependencies): Likewise.
14126
14127 2011-02-12  Bruno Haible  <bruno@clisp.org>
14128
14129         setlocale: Workaround native Windows bug.
14130         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14131         succeeds but sets LC_CTYPE to "C", report a failure.
14132         * tests/test-setlocale2.sh: New file.
14133         * tests/test-setlocale2.c: New file.
14134         * modules/setlocale-tests (Files): Add the new files.
14135         (Makefile.am): Enable test-setlocale2.sh test.
14136         * doc/posix-functions/setlocale.texi: Mention workaround.
14137
14138 2011-02-11  Bruno Haible  <bruno@clisp.org>
14139
14140         Tests for module 'setlocale'.
14141         * modules/setlocale-tests: New file.
14142         * tests/test-setlocale1.sh: New file.
14143         * tests/test-setlocale1.c: New file.
14144
14145         New module 'setlocale'.
14146         * lib/locale.in.h (setlocale): New declaration.
14147         * lib/setlocale.c: New file, based on
14148         gettext/gettext-runtime/intl/setlocale.c.
14149         * m4/setlocale.m4: New file.
14150         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14151         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14152         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14153         REPLACE_SETLOCALE.
14154         * modules/setlocale: New file.
14155         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14156         * doc/posix-functions/setlocale.texi: Mention the new module.
14157
14158 2011-02-11  Bruno Haible  <bruno@clisp.org>
14159
14160         Prepare for locale dependent tests on mingw.
14161         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14162         because it has the wrong locale encoding.
14163         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14164         French_France.1252 instead of "fr".
14165         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14166         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14167         because it has the wrong locale encoding.
14168         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14169         native Windows, try Turkish_Turkey.65001.
14170         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14171         Chinese_China.54936.
14172
14173         Prepare for locale dependent tests on mingw.
14174         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14175         differently.
14176         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14177         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14178         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14179         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14180
14181 2011-02-11  Eric Blake  <eblake@redhat.com>
14182
14183         strptime: avoid compiler warnings
14184         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14185         compiler warnings about dead code.
14186         Reported by Daniel P. Berrange.
14187
14188 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14189
14190         doc: update users.txt
14191         * users.txt: Add rcs.
14192
14193 2011-02-10  John W. Eaton  <jwe@gnu.org>
14194
14195         doc: update users.txt
14196         * users.txt: Add octave.
14197
14198 2011-02-10  Jim Meyering  <meyering@redhat.com>
14199
14200         doc: update users.txt
14201         * users.txt: Add iwhd.
14202
14203 2011-02-09  Bruno Haible  <bruno@clisp.org>
14204
14205         gnulib-tool: Make copyright notice adjustment more robust.
14206         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14207         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14208         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14209         License".
14210         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14211
14212 2011-02-06  Bruno Haible  <bruno@clisp.org>
14213
14214         New module 'towctrans'.
14215         * modules/towctrans: New file.
14216         * lib/wctype.in.h (towctrans): New declaration.
14217         * lib/towctrans.c: New file.
14218         * lib/towctrans-impl.h: New file.
14219         * m4/towctrans.m4: New file.
14220         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14221         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14222         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14223         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14224         * doc/posix-functions/towctrans.texi: Mention the new module.
14225
14226 2011-02-06  Bruno Haible  <bruno@clisp.org>
14227
14228         New module 'wctrans'.
14229         * modules/wctrans: New file.
14230         * lib/wctype.in.h (wctrans): New declaration.
14231         * lib/wctrans.c: New file.
14232         * lib/wctrans-impl.h: New file.
14233         * m4/wctrans.m4: New file.
14234         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14235         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14236         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14237         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14238         * doc/posix-functions/wctrans.texi: Mention the new module.
14239
14240 2011-02-06  Bruno Haible  <bruno@clisp.org>
14241
14242         New module 'iswctype'.
14243         * modules/iswctype: New file.
14244         * lib/wctype.in.h (iswctype): New declaration.
14245         * lib/iswctype.c: New file.
14246         * lib/iswctype-impl.h: New file.
14247         * m4/iswctype.m4: New file.
14248         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14249         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14250         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14251         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14252         * doc/posix-functions/iswctype.texi: Mention the new module and the
14253         HP-UX 11.00 problem.
14254
14255 2011-02-06  Bruno Haible  <bruno@clisp.org>
14256
14257         New module 'wctype'.
14258         * modules/wctype: Change to represent the wctype() substitute.
14259         * lib/wctype.in.h (wctype): New declaration.
14260         * lib/wctype.c: New file.
14261         * lib/wctype-impl.h: New file.
14262         * m4/wctype.m4: New file.
14263         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14264         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14265         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14266         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14267         * doc/posix-functions/wctype.texi: Mention the new module and the
14268         HP-UX 11.00 problem.
14269
14270 2011-02-06  Bruno Haible  <bruno@clisp.org>
14271
14272         wctype-h: Ensure wctype_t and wctrans_t are defined.
14273         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14274         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14275         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14276         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14277         HAVE_WCTRANS_T.
14278         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14279
14280 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14281
14282         flock: fix license typo
14283
14284         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14285         omitted.
14286
14287 2011-02-08  Bruno Haible  <bruno@clisp.org>
14288
14289         Split large sed scripts, for HP-UX sed.
14290         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14291         to avoid HP-UX limit of 99 commands, in the near future.
14292         * modules/stdlib (Makefile.am): Likewise.
14293         * modules/unistd (Makefile.am): Likewise.
14294         * modules/wchar (Makefile.am): Likewise.
14295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14296         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14298
14299 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14300             Bruno Haible  <bruno@clisp.org>
14301
14302         stdlib: improve random_r modularization
14303         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14304         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14305         you also need the random_r module to get this material right.
14306         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14307         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14308         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14309
14310 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14311
14312         stdlib: don't depend on stdint
14313         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14314         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14315         be independent of whether stdint.h is needed.
14316         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14317         here, instead of ...
14318         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14319         struct random_data should be using the random_r module, not just
14320         the stdlib module (which wouldn't make sense: what package needs
14321         just struct random_data without also needing random_r?).
14322         * modules/stdlib (Depends-on): Remove stdint.
14323
14324         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14325         See the thread rooted at
14326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14327         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14328         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14329         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14330         __VMS)); previously it was always included (via fcntl--.h).
14331         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14332         hand; this is good enough for load averages.  Also, do not use
14333         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14334         flags directly if available and don't bother otherwise.  (Packages
14335         that need the extra reliability should use the modules that define
14336         these flags on older platforms that lack them.)
14337         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14338         fcntl-safer.
14339
14340 2011-02-08  Jim Meyering  <meyering@redhat.com>
14341
14342         di-set.h, ino-map.h: add multiple-inclusion guard
14343         Technically, the guard is required only for ino-map.h, due to its
14344         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14345         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14346         * lib/ino-map.h: Likewise.
14347
14348 2011-02-06  Bruno Haible  <bruno@clisp.org>
14349
14350         iswblank: Ensure declaration on glibc systems.
14351         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14352         * modules/iswblank (Dependencies): Add 'extensions'.
14353         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14354
14355 2011-02-06  Bruno Haible  <bruno@clisp.org>
14356
14357         New module 'iswblank'.
14358         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14359         * modules/iswblank: New file.
14360         * modules/wctype-h (Files): Remove lib/iswblank.c.
14361         (Makefile.am): Substitute GNULIB_ISWBLANK.
14362         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14363         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14364         (gl_WCTYPE_H_DEFAULTS): New macro.
14365         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14366         * modules/iswblank-tests: New file.
14367         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14368         * tests/test-wctype-h.c (main): Remove iswblank tests.
14369         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14370         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14371         of 'wctype-h'.
14372         * NEWS: Mention the change.
14373         * modules/mbchar (Depends-on): Add iswblank.
14374
14375 2011-02-08  Bruno Haible  <bruno@clisp.org>
14376
14377         di-set tests: Refactor.
14378         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14379         unnecessary includes.
14380         (ASSERT): Remove macro.
14381         (main): Make C90 compliant by avoiding variable declaration after
14382         statement.
14383         * modules/di-set-tests (Files): Add tests/macros.h.
14384
14385 2011-02-08  Bruno Haible  <bruno@clisp.org>
14386
14387         ino-map tests: Refactor.
14388         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14389         unnecessary includes.
14390         (ASSERT): Remove macro.
14391         (main): Make C90 compliant by avoiding variable declaration after
14392         statement.
14393         * modules/ino-map-tests (Files): Add tests/macros.h.
14394
14395 2011-02-08  Jim Meyering  <meyering@redhat.com>
14396
14397         di-set: add "const" to a cast
14398         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14399         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14400
14401 2011-02-06  Bruno Haible  <bruno@clisp.org>
14402
14403         Rename module 'wctype' to 'wctype-h'.
14404         * modules/wctype-h: Renamed from modules/wctype.
14405         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14406         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14407         (Files, Depends-on, Makefile.am): Update.
14408         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14409         (Files, Makefile.am): Update.
14410         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14411         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14412         * doc/posix-headers/wctype.texi: Update.
14413         * doc/posix-functions/iswalnum.texi: Update.
14414         * doc/posix-functions/iswalpha.texi: Update.
14415         * doc/posix-functions/iswblank.texi: Update.
14416         * doc/posix-functions/iswcntrl.texi: Update.
14417         * doc/posix-functions/iswdigit.texi: Update.
14418         * doc/posix-functions/iswgraph.texi: Update.
14419         * doc/posix-functions/iswlower.texi: Update.
14420         * doc/posix-functions/iswprint.texi: Update.
14421         * doc/posix-functions/iswpunct.texi: Update.
14422         * doc/posix-functions/iswspace.texi: Update.
14423         * doc/posix-functions/iswupper.texi: Update.
14424         * doc/posix-functions/iswxdigit.texi: Update.
14425         * doc/posix-functions/towlower.texi: Update.
14426         * doc/posix-functions/towupper.texi: Update.
14427         * NEWS: Mention the change.
14428         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14429         * modules/mbchar (Dependencies): Likewise.
14430         * modules/mbswidth (Dependencies): Likewise.
14431         * modules/quotearg (Dependencies): Likewise.
14432         * modules/regex (Dependencies): Likewise.
14433         * modules/wcscasecmp (Dependencies): Likewise.
14434         * modules/wcsncasecmp (Dependencies): Likewise.
14435         * modules/wcwidth (Dependencies): Likewise.
14436
14437 2011-02-06  Bruno Haible  <bruno@clisp.org>
14438
14439         New module 'wcswidth'.
14440         * modules/wcswidth: New file.
14441         * lib/wchar.in.h (wcswidth): New declaration.
14442         * lib/wcswidth.c: New file.
14443         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14444         * m4/wcswidth.m4: New file.
14445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14447         REPLACE_WCSWIDTH.
14448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14449         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14450         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14451         * doc/posix-functions/wcswidth.texi: Mention the new module.
14452
14453 2011-02-06  Bruno Haible  <bruno@clisp.org>
14454
14455         New module 'wcstok'.
14456         * modules/wcstok: New file.
14457         * lib/wchar.in.h (wcstok): New declaration.
14458         * lib/wcstok.c: New file.
14459         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14460         * m4/wcstok.m4: New file.
14461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14464         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14465         * doc/posix-functions/wcstok.texi: Mention the new module.
14466
14467 2011-02-06  Bruno Haible  <bruno@clisp.org>
14468
14469         New module 'wcsstr'.
14470         * modules/wcsstr: New file.
14471         * lib/wchar.in.h (wcsstr): New declaration.
14472         * lib/wcsstr.c: New file.
14473         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14474         * m4/wcsstr.m4: New file.
14475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14478         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14479         * doc/posix-functions/wcsstr.texi: Mention the new module.
14480
14481 2011-02-06  Bruno Haible  <bruno@clisp.org>
14482
14483         New module 'wcspbrk'.
14484         * modules/wcspbrk: New file.
14485         * lib/wchar.in.h (wcspbrk): New declaration.
14486         * lib/wcspbrk.c: New file.
14487         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14488         * m4/wcspbrk.m4: New file.
14489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14492         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14493         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14494
14495 2011-02-06  Bruno Haible  <bruno@clisp.org>
14496
14497         New module 'wcsspn'.
14498         * modules/wcsspn: New file.
14499         * lib/wchar.in.h (wcsspn): New declaration.
14500         * lib/wcsspn.c: New file.
14501         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14502         * m4/wcsspn.m4: New file.
14503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14506         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14507         * doc/posix-functions/wcsspn.texi: Mention the new module.
14508
14509 2011-02-06  Bruno Haible  <bruno@clisp.org>
14510
14511         New module 'wcscspn'.
14512         * modules/wcscspn: New file.
14513         * lib/wchar.in.h (wcscspn): New declaration.
14514         * lib/wcscspn.c: New file.
14515         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14516         * m4/wcscspn.m4: New file.
14517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14519         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14520         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14521         * doc/posix-functions/wcscspn.texi: Mention the new module.
14522
14523 2011-02-06  Bruno Haible  <bruno@clisp.org>
14524
14525         New module 'wcsrchr'.
14526         * modules/wcsrchr: New file.
14527         * lib/wchar.in.h (wcsrchr): New declaration.
14528         * lib/wcsrchr.c: New file.
14529         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14530         * m4/wcsrchr.m4: New file.
14531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14534         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14535         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14536
14537 2011-02-06  Bruno Haible  <bruno@clisp.org>
14538
14539         New module 'wcschr'.
14540         * modules/wcschr: New file.
14541         * lib/wchar.in.h (wcschr): New declaration.
14542         * lib/wcschr.c: New file.
14543         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14544         * m4/wcschr.m4: New file.
14545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14548         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14549         * doc/posix-functions/wcschr.texi: Mention the new module.
14550
14551 2011-02-06  Bruno Haible  <bruno@clisp.org>
14552
14553         New module 'wcsdup'.
14554         * modules/wcsdup: New file.
14555         * lib/wchar.in.h (wcsdup): New declaration.
14556         * lib/wcsdup.c: New file.
14557         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14558         * m4/wcsdup.m4: New file.
14559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14562         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14563         * doc/posix-functions/wcsdup.texi: Mention the new module.
14564
14565 2011-02-06  Bruno Haible  <bruno@clisp.org>
14566
14567         New module 'wcsxfrm'.
14568         * modules/wcsxfrm: New file.
14569         * lib/wchar.in.h (wcsxfrm): New declaration.
14570         * lib/wcsxfrm.c: New file.
14571         * lib/wcsxfrm-impl.h: New file.
14572         * m4/wcsxfrm.m4: New file.
14573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14576         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14577         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14578
14579 2011-02-06  Bruno Haible  <bruno@clisp.org>
14580
14581         New module 'wcscoll'.
14582         * modules/wcscoll: New file.
14583         * lib/wchar.in.h (wcscoll): New declaration.
14584         * lib/wcscoll.c: New file.
14585         * lib/wcscoll-impl.h: New file.
14586         * m4/wcscoll.m4: New file.
14587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14590         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14591         * doc/posix-functions/wcscoll.texi: Mention the new module.
14592
14593 2011-02-06  Bruno Haible  <bruno@clisp.org>
14594
14595         New module 'wcsncasecmp'.
14596         * modules/wcsncasecmp: New file.
14597         * lib/wchar.in.h (wcsncasecmp): New declaration.
14598         * lib/wcsncasecmp.c: New file.
14599         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14600         * m4/wcsncasecmp.m4: New file.
14601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14604         HAVE_WCSNCASECMP.
14605         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14606         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14607
14608 2011-02-06  Bruno Haible  <bruno@clisp.org>
14609
14610         New module 'wcscasecmp'.
14611         * modules/wcscasecmp: New file.
14612         * lib/wchar.in.h (wcscasecmp): New declaration.
14613         * lib/wcscasecmp.c: New file.
14614         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14615         * m4/wcscasecmp.m4: New file.
14616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14618         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14619         HAVE_WCSCASECMP.
14620         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14621         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14622
14623 2011-02-05  Bruno Haible  <bruno@clisp.org>
14624
14625         New module 'wcsncmp'.
14626         * modules/wcsncmp: New file.
14627         * lib/wchar.in.h (wcsncmp): New declaration.
14628         * lib/wcsncmp.c: New file.
14629         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14630         * m4/wcsncmp.m4: New file.
14631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14634         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14635         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14636
14637 2011-02-05  Bruno Haible  <bruno@clisp.org>
14638
14639         New module 'wcscmp'.
14640         * modules/wcscmp: New file.
14641         * lib/wchar.in.h (wcscmp): New declaration.
14642         * lib/wcscmp.c: New file.
14643         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14644         * m4/wcscmp.m4: New file.
14645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14648         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14649         * doc/posix-functions/wcscmp.texi: Mention the new module.
14650
14651 2011-02-05  Bruno Haible  <bruno@clisp.org>
14652
14653         New module 'wcsncat'.
14654         * modules/wcsncat: New file.
14655         * lib/wchar.in.h (wcsncat): New declaration.
14656         * lib/wcsncat.c: New file.
14657         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14658         * m4/wcsncat.m4: New file.
14659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14662         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14663         * doc/posix-functions/wcsncat.texi: Mention the new module.
14664
14665 2011-02-05  Bruno Haible  <bruno@clisp.org>
14666
14667         New module 'wcscat'.
14668         * modules/wcscat: New file.
14669         * lib/wchar.in.h (wcscat): New declaration.
14670         * lib/wcscat.c: New file.
14671         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14672         * m4/wcscat.m4: New file.
14673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14676         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14677         * doc/posix-functions/wcscat.texi: Mention the new module.
14678
14679 2011-02-05  Bruno Haible  <bruno@clisp.org>
14680
14681         New module 'wcpncpy'.
14682         * modules/wcpncpy: New file.
14683         * lib/wchar.in.h (wcpncpy): New declaration.
14684         * lib/wcpncpy.c: New file.
14685         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14686         * m4/wcpncpy.m4: New file.
14687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14689         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14690         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14691         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14692
14693 2011-02-05  Bruno Haible  <bruno@clisp.org>
14694
14695         New module 'wcsncpy'.
14696         * modules/wcsncpy: New file.
14697         * lib/wchar.in.h (wcsncpy): New declaration.
14698         * lib/wcsncpy.c: New file.
14699         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14700         * m4/wcsncpy.m4: New file.
14701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14704         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14705         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14706
14707 2011-02-05  Bruno Haible  <bruno@clisp.org>
14708
14709         New module 'wcpcpy'.
14710         * modules/wcpcpy: New file.
14711         * lib/wchar.in.h (wcpcpy): New declaration.
14712         * lib/wcpcpy.c: New file.
14713         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14714         * m4/wcpcpy.m4: New file.
14715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14717         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14718         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14719         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14720
14721 2011-02-05  Bruno Haible  <bruno@clisp.org>
14722
14723         New module 'wcscpy'.
14724         * modules/wcscpy: New file.
14725         * lib/wchar.in.h (wcscpy): New declaration.
14726         * lib/wcscpy.c: New file.
14727         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14728         * m4/wcscpy.m4: New file.
14729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14732         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14733         * doc/posix-functions/wcscpy.texi: Mention the new module.
14734
14735 2011-02-05  Bruno Haible  <bruno@clisp.org>
14736
14737         New module 'wcsnlen'.
14738         * modules/wcsnlen: New file.
14739         * lib/wchar.in.h (wcsnlen): New declaration.
14740         * lib/wcsnlen.c: New file.
14741         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14742         * m4/wcsnlen.m4: New file.
14743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14746         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14747         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14748
14749 2011-02-05  Bruno Haible  <bruno@clisp.org>
14750
14751         New module 'wcslen'.
14752         * modules/wcslen: New file.
14753         * lib/wchar.in.h (wcslen): New declaration.
14754         * lib/wcslen.c: New file.
14755         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14756         * m4/wcslen.m4: New file.
14757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14760         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14761         * doc/posix-functions/wcslen.texi: Mention the new module.
14762
14763 2011-02-05  Bruno Haible  <bruno@clisp.org>
14764
14765         New module 'wmemset'.
14766         * modules/wmemset: New file.
14767         * lib/wchar.in.h (wmemset): New declaration.
14768         * lib/wmemset.c: New file.
14769         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14770         * m4/wmemset.m4: New file.
14771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14773         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14774         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14775         * doc/posix-functions/wmemset.texi: Mention the new module.
14776
14777 2011-02-05  Bruno Haible  <bruno@clisp.org>
14778
14779         New module 'wmemmove'.
14780         * modules/wmemmove: New file.
14781         * lib/wchar.in.h (wmemmove): New declaration.
14782         * lib/wmemmove.c: New file.
14783         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14784         * m4/wmemmove.m4: New file.
14785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14787         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14788         HAVE_WMEMMOVE.
14789         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14790         * doc/posix-functions/wmemmove.texi: Mention the new module.
14791
14792 2011-02-05  Bruno Haible  <bruno@clisp.org>
14793
14794         New module 'wmemcpy'.
14795         * modules/wmemcpy: New file.
14796         * lib/wchar.in.h (wmemcpy): New declaration.
14797         * lib/wmemcpy.c: New file.
14798         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14799         * m4/wmemcpy.m4: New file.
14800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14802         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14803         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14804         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14805
14806 2011-02-05  Bruno Haible  <bruno@clisp.org>
14807
14808         New module 'wmemcmp'.
14809         * modules/wmemcmp: New file.
14810         * lib/wchar.in.h (wmemcmp): New declaration.
14811         * lib/wmemcmp.c: New file.
14812         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14813         * m4/wmemcmp.m4: New file.
14814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14816         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14817         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14818         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14819
14820 2011-02-07  Jim Meyering  <meyering@redhat.com>
14821
14822         di-set, ino-map: new modules, from coreutils
14823         * lib/di-set.c: New file.
14824         * lib/di-set.h: Likewise.
14825         * lib/ino-map.c: Likewise.
14826         * lib/ino-map.h: Likewise.
14827         * modules/di-set: Likewise.
14828         * modules/di-set-tests: Likewise.
14829         * modules/ino-map: Likewise.
14830         * modules/ino-map-tests: Likewise.
14831         * tests/test-di-set.c: Likewise.
14832         * tests/test-ino-map.c: Likewise.
14833
14834 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14835
14836         getloadavg: merge minor changes from Emacs
14837
14838         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14839         (getloadavg): Use memset, not bzero.
14840
14841         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14842         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14843         clash (bug#86).
14844
14845 2010-11-14  Bruno Haible  <bruno@clisp.org>
14846
14847         Allow multiple gnulib generated replacements to coexist.
14848         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14849         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14850         * lib/langinfo.in.h (nl_item): Likewise.
14851         * lib/math.in.h (_NaN, NAN): Likewise.
14852         * lib/netdb.in.h (struct addrinfo): Likewise.
14853         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14854         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14855         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14856         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14857         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14858         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14859         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14860         pthread_mutexattr_init, pthread_mutexattr_settype,
14861         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14862         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14863         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14864         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14865         * lib/sched.in.h (struct sched_param): Likewise.
14866         * lib/se-selinux.in.h (security_class_t, security_context_t,
14867         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14868         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14869         lsetfilecon, fsetfilecon, security_check_context,
14870         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14871         Likewise.
14872         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14873         Likewise.
14874         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14875         _gl_function_taking_int_returning_void_t, union sigval,
14876         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14877         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14878         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14879         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14880         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14881         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14882         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14883         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14884         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14885         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14886         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14887         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14888         socklen_t, rpl_fd_isset): Likewise.
14889         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14890         * lib/sys_time.in.h (struct timeval): Likewise.
14891         * lib/sys_times.in.h (struct tms): Likewise.
14892         * lib/sys_utsname.in.h (struct utsname):
14893         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14894         * lib/unistd.in.h (getpagesize): Likewise.
14895         * lib/wchar.in.h (mbstate_t): Likewise.
14896         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14897         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14898         towlower, towupper): Likewise.
14899         Reported by Sam Steingold <sds@gnu.org>.
14900
14901 2011-02-05  Eric Blake  <eblake@redhat.com>
14902
14903         unsetenv: work around Haiku issues
14904         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14905         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14906
14907 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14908
14909         libposix: avoid calling error() within libposix
14910         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14911         is defined.
14912
14913 2011-02-05  Eric Blake  <eblake@redhat.com>
14914
14915         strerror_r-posix: port to cygwin
14916         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14917         implementation.
14918         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14919         * tests/test-strerror_r.c (main): Fix test.
14920         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14921         issue.
14922
14923 2011-02-05  Bruno Haible  <bruno@clisp.org>
14924
14925         New module 'wmemchr'.
14926         * modules/wmemchr: New file.
14927         * lib/wchar.in.h (wmemchr): New declaration.
14928         * lib/wmemchr.c: New file.
14929         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14930         * m4/wmemchr.m4: New file.
14931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14933         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14934         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14935         * doc/posix-functions/wmemchr.texi: Mention the new module.
14936
14937 2011-02-04  Eric Blake  <eblake@redhat.com>
14938
14939         fdopendir: detect FreeBSD bug
14940         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14941         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14942
14943 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14944
14945         stdbool: do not define HAVE_STDBOOL_H
14946         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14947         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14948         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14949         imported from the latest Autoconf git.  It was motivated by Emacs,
14950         which uses gnulib but does not need HAVE_STDBOOL_H.
14951
14952 2011-02-04  Bruno Haible  <bruno@clisp.org>
14953
14954         wcsnrtombs: Prepare for new module wwcsnrtombs.
14955         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14956         * lib/wcsnrtombs.c: Include it.
14957         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14958
14959         wcsrtombs: Prepare for new module wwcsrtombs.
14960         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14961         * lib/wcsrtombs.c: Include it.
14962         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14963
14964         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14965         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14966         * lib/mbsnrtowcs.c: Include it.
14967         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14968
14969         mbsrtowcs: Prepare for new module mbsrtowwcs.
14970         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14971         * lib/mbsrtowcs.c: Include it.
14972         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14973
14974 2011-02-04  Bruno Haible  <bruno@clisp.org>
14975
14976         vasnprintf: Reduce use of malloc for small format strings.
14977         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14978         (arguments): Add room for the first 7 arguments.
14979         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14980         (char_directives, u8_directives, u16_directives, u32_directives): Add
14981         room for the first 7 directives.
14982         * lib/printf-parse.c: Include <string.h>.
14983         (PRINTF_PARSE): Change memory handling code so that it uses the first
14984         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14985         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14986         Reported by Pádraig Brady <P@draigbrady.com>.
14987
14988 2011-01-31  Eric Blake  <eblake@redhat.com>
14989
14990         dup2: work around Haiku bug
14991         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14992         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14993         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14994         * tests/test-dup2.c (main): Enhance test.
14995
14996 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14997
14998         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14999         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15000         declared by eglibc 2.11.2.
15001         * lib/stdio.in.h: Likewise.
15002
15003 2011-01-31  Eric Blake  <eblake@redhat.com>
15004
15005         ignore-value: add missing test dependency
15006         * tests/test-ignore-value.c: Revert previous change; stdio.h
15007         provides off_t.
15008         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15009
15010 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15011
15012         mktime: clarify long_int width checking
15013         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15014         the top level, to make it clearer that the assumption about
15015         long_int width is being checked.  See
15016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15017
15018 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15019
15020         ignore-value: Fix self-test.
15021         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15022
15023 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15024
15025         TYPE_MAXIMUM: avoid theoretically undefined behavior
15026         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15027         negative number, which the C Standard says has undefined behavior.
15028         In practice this is not a problem, but might as well do it by the book.
15029         Reported by Rich Felker and Eric Blake; see
15030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15031         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15032         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15034         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15035         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15036         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15037
15038         mktime: #undef mktime before #defining it
15039         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15040
15041         mktime: systematically normalize tm_isdst comparisons
15042         * lib/mktime.c (isdst_differ): New function.
15043         (__mktime_internal): Use it systematically for all isdst comparisons.
15044         This completes the fix for libc BZ #6723, and removes the need for
15045         normalizing tm_isdst.  See
15046         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15047         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15048
15049         mktime: fix some integer overflow issues and sidestep the rest
15050
15051         This was prompted by a bug report by Benjamin Lindner for MinGW
15052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15053         His bug is due to signed integer overflow (0 - INT_MIN), and I
15054         I scanned through mktime.c looking for other integer overflow
15055         problems, fixing all the bugs I found.
15056
15057         Although the C Standard says the resulting code is still not safe
15058         in the presence of integer overflow, in practice it should be good
15059         enough for all real-world two's-complement implementations, except
15060         for debugging environments that deliberately trap on integer
15061         overflow (e.g., gcc -ftrapv).
15062
15063         * lib/mktime.c (WRAPV): New macro.
15064         (SHR): Also check that long_int and time_t shift right in the
15065         usual way, before using the fast-but-unportable method.
15066         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15067         used.  The code already assumed two's complement, so there's
15068         no need to test for alternatives.  All uses removed.
15069         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15070         the C standard.  Problem reported by Rich Felker in
15071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15072         (twos_complement_arithmetic): Also check long_int and time_t.
15073         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15074         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15075         (__mktime_internal): Avoid integer overflow with unary subtraction
15076         in two instances where -1 - X is an adequate replacement for -X,
15077         since the calculations are approximate.
15078
15079 2011-01-29  Eric Blake  <eblake@redhat.com>
15080
15081         mktime: avoid infinite loop
15082         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15083         type; behavior is still undefined but portable to all known targets.
15084         Reported by Rich Felker.
15085
15086 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15087
15088         rename, unlink, same-inode: Relicense.
15089         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15090         * modules/unlink (License): Likewise.
15091         * modules/same-inode (License): Likewise.
15092
15093 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15094
15095         mktime: avoid problems on NetBSD 5 / i386
15096         * lib/mktime.c (long_int): New type.  This works around a problem
15097         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15098         but time_t is 64 bits, and where I expect the existing code is
15099         wrong in some cases.
15100         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15101         (ydhms_diff): Bring back the compile-time check for wide-enough
15102         year and yday.
15103
15104         mktime: fix misspelling in comment
15105         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15106         This merges all recent glibc changes of importance.
15107
15108 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15109
15110         move-if-change: cope with concurrent mv of identical file.
15111         * build-aux/move-if-change (CMPPROG): Accept environment
15112         variable as an override for `cmp'.
15113         (usage): Document CMPPROG.
15114         Adjust comparison to drop stdout.  Cope with failure of mv if
15115         the target file exists and is identical to the source, for
15116         parallel builds.
15117         Report from H.J. Lu against binutils in PR binutils/12283.
15118
15119 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15120
15121         * users.txt: Mention sharutils.
15122
15123 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15124
15125         * users.txt: Mention OATH Toolkit.
15126
15127 2011-01-27  Bruno Haible  <bruno@clisp.org>
15128
15129         Prepare for supporting FreeBSD 10.
15130         * build-aux/config.libpath: Remove handling of freebsd1*.
15131
15132 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15133
15134         Prepare for supporting FreeBSD 10.
15135         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15136         match FreeBSD 10.0.
15137
15138 2011-01-27  Bruno Haible  <bruno@clisp.org>
15139
15140         vma-iter, get-rusage-as: Add OpenBSD support.
15141         * modules/vma-iter (configure.ac): Test for mquery.
15142         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15143         * lib/vma-iter.c: Include <sys/mman.h>.
15144         (vma_iterate): Add an implementation based on mquery().
15145         * lib/resource-ext.h (get_rusage_as): Update comments.
15146         * lib/get-rusage-as.c: Likewise.
15147         * lib/get-rusage-data.c: Likewise.
15148
15149 2011-01-26  Karl Berry  <karl@gnu.org>
15150
15151         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15152         variables to make it easier to override the makeinfo program used.
15153
15154 2011-01-26  Eric Blake  <eblake@redhat.com>
15155
15156         fcntl: work around Haiku F_DUPFD bugs
15157         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15158         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15159         cloexec bit on duplication.
15160         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15161
15162 2011-01-26  Bruno Haible  <bruno@clisp.org>
15163
15164         Enable memory leak tests on AIX.
15165         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15166         * tests/test-fprintf-posix3.c (main): Likewise.
15167
15168 2011-01-26  Bruno Haible  <bruno@clisp.org>
15169
15170         Tests for module 'get-rusage-data'.
15171         * modules/get-rusage-data-tests: New file.
15172         * tests/test-get-rusage-data.c: New file.
15173
15174         New module 'get-rusage-data'.
15175         * lib/resource-ext.h (get_rusage_data): New declaration.
15176         * lib/get-rusage-data.c: New file.
15177         * modules/get-rusage-data: New file.
15178
15179 2011-01-25  Bruno Haible  <bruno@clisp.org>
15180
15181         get-rusage-as: Allow for easier testing.
15182         * lib/resource-ext.h (get_rusage_as): Add comment.
15183         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15184         (main): New function for interactive testing.
15185
15186 2011-01-25  Bruno Haible  <bruno@clisp.org>
15187
15188         vma-iter: Treat Haiku like BeOS.
15189         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15190         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15191
15192 2011-01-25  Eric Blake  <eblake@redhat.com>
15193
15194         c-stack: fix regression on cygwin when libsigsegv is present
15195         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15196
15197 2011-01-24  Bruno Haible  <bruno@clisp.org>
15198
15199         vma-iter: Avoid empty intervals.
15200         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15201         on an empty interval.
15202
15203 2011-01-24  Jim Meyering  <meyering@redhat.com>
15204
15205         u64: remove unnecessary #include
15206         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15207
15208 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15209
15210         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15211         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15212
15213 2011-01-23  Bruno Haible  <bruno@clisp.org>
15214
15215         New module 'vma-iter'.
15216         * lib/vma-iter.h: New file.
15217         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15218         * modules/vma-iter: New file.
15219         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15220         for get_rusage_as_via_iterator.
15221         (vma_iterate_callback): New function.
15222         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15223         * modules/get-rusage-as (Depends-on): Add vma-iter.
15224
15225 2011-01-23  Bruno Haible  <bruno@clisp.org>
15226
15227         uninorm: Tweak includes.
15228         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15229         Reported by Jim Meyering.
15230
15231 2011-01-23  Bruno Haible  <bruno@clisp.org>
15232
15233         get-rusage-as: Improve on NetBSD.
15234         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15235         /proc, like on FreeBSD.
15236
15237 2011-01-23  Jim Meyering  <meyering@redhat.com>
15238
15239         xreadlink.h: remove unnecessary #include
15240         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15241
15242         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15243         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15244
15245 2011-01-23  Bruno Haible  <bruno@clisp.org>
15246
15247         get-rusage-as: Fix bug.
15248         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15249         original limit when aborting the first loop.
15250
15251 2011-01-23  Bruno Haible  <bruno@clisp.org>
15252
15253         wctype: Ensure valid C syntax.
15254         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15255         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15256
15257 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15258
15259         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15261         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15262         as they are needed only for configure's test case.
15263         This removes two unnecessary symbols from config.h.
15264
15265         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15266         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15268         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15269         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15270         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15271         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15272         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15273         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15274         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15275         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15276         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15277         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15278         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15279         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15280         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15281         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15282         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15283
15284 2011-01-21  Eric Blake  <eblake@redhat.com>
15285
15286         maintainer-makefile: work with older git for submodule check
15287         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15288         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15289         Reported by Matthias Bolte.
15290
15291         bootstrap: minor portability fixes
15292         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15293         (usage): Omit leading capital and trailing . on help phrases, per
15294         GNU Coding Standards.
15295         (check_versions, top level): Prefix messages with script name.
15296
15297 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15298
15299         bootstrap: support --no-git option
15300         * build-aux/bootstrap: Add --no-git option, to be used when
15301         --gnulib-srcdir points to the exact desired checkout.
15302
15303 2011-01-21  Eric Blake  <eblake@redhat.com>
15304
15305         strerror_r-posix: work with glibc 2.13
15306         * lib/strerror_r.c (strerror_r): Fix return type.
15307
15308 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15309             Bruno Haible  <bruno@clisp.org>
15310
15311         uN_strstr: New unit tests.
15312         * modules/unistr/u8-strstr-tests: New file.
15313         * modules/unistr/u16-strstr-tests: New file.
15314         * modules/unistr/u32-strstr-tests: New file.
15315         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15316         * tests/unistr/test-u8-strstr.c: New file.
15317         * tests/unistr/test-u16-strstr.c: New file.
15318         * tests/unistr/test-u32-strstr.c: New file.
15319
15320 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15321             Bruno Haible  <bruno@clisp.org>
15322
15323         Make uN_strstr functions O(n) worst-case.
15324         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15325         16-bit and 32-bit unit cases, use the unibyte algorithm from
15326         lib/mbsstr.c.
15327         * lib/unistr/u8-strstr.c: Include <string.h>.
15328         (UNIT_IS_UINT8_T): New macro.
15329         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15330         (U_STRLEN, U_STRNLEN): New macros.
15331         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15332         (U_STRLEN, U_STRNLEN): New macros.
15333         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15334         (configure.ac): Update required libunistring version.
15335         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15336         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15337         malloca.
15338         (configure.ac): Update required libunistring version.
15339         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15340         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15341         malloca.
15342         (configure.ac): Update required libunistring version.
15343
15344 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15345             Bruno Haible  <bruno@clisp.org>
15346
15347         Prepare for faster uN_strstr functions.
15348         * lib/str-kmp.h: Support definable UNITs.
15349         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15350         needle_len argument.
15351         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15352         * lib/mbscasestr.c (mbscasestr): Likewise.
15353
15354 2011-01-21  Pádraig Brady <P@draigBrady.com>
15355
15356         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15357         * tests/test-malloca.c (main): Unset the environment variable
15358         to greatly speed up the test.
15359         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15360         * modules/malloca-tests: Depend on unsetenv.
15361
15362 2011-01-21  Pádraig Brady <P@draigBrady.com>
15363
15364         ignore-value: remove stdint dependency
15365         * lib/ignore-value.h: Remove <stdint.h>
15366         * modules/ignore-value: Remove stdint dependency.
15367
15368 2011-01-21  Jim Meyering  <meyering@redhat.com>
15369
15370         maint.mk: adjust variable name to be consistent with other gl_ vars
15371         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15372         to be lower case.
15373
15374 2011-01-20  Jim Meyering  <meyering@redhat.com>
15375
15376         maint.mk: make "check" depend on public-submodule-commit by default
15377         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15378
15379 2011-01-20  Bruno Haible  <bruno@clisp.org>
15380
15381         mbfile, mbiter: Complete change from 2008-12-21.
15382         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15383         * m4/mbiter.m4 (gl_MBITER): Likewise.
15384
15385 2011-01-20  Jim Meyering  <meyering@redhat.com>
15386
15387         init.sh: insert space between each function name and "()"
15388         * tests/init.sh: Make it a little easier to see that a function's
15389         name is "warn_", and not "warn" when looking at the first part of
15390         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15391
15392 2011-01-20  Jim Meyering  <meyering@redhat.com>
15393
15394         mountlist: clean up code formatting
15395         * lib/mountlist.c (read_file_system_list): Split a long line,
15396         correct bracing style, use NULL in place of "(struct statfs *)0",
15397         don't parenthesize return value, add spaces around "=" and after
15398         ";-in-for-stmt".
15399
15400 2011-01-14  Markus Duft <mduft@gentoo.org>
15401
15402         mountlist: add support for Interix
15403         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15404         Apply statvfs to all entries of /dev/fs.
15405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15406         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15407
15408 2011-01-20  Jim Meyering  <meyering@redhat.com>
15409
15410         maint.mk: improve the public-submodule-commit rule
15411         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15412         to suppress printing of its commands... unless V=1.
15413         Add git submodule's --quiet option to suppress printing of e.g.,
15414         "Entering gnulib" output.
15415         "cd" into $(srcdir) before running git submodule.
15416
15417 2011-01-20  Bruno Haible  <bruno@clisp.org>
15418
15419         include_next: Fix bug introduced on 2011-01-18.
15420         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15421         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15422         ac_cv_header_... variable if the second argument is not 'check'.
15423         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15424         gl_NEXT_HEADERS_INTERNAL.
15425
15426 2011-01-20  Bruno Haible  <bruno@clisp.org>
15427
15428         Allow the user to avoid the GNULIB_TEST_* macros.
15429         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15430         Suggested by Paul Eggert.
15431
15432 2011-01-14  Jim Meyering  <meyering@redhat.com>
15433
15434         bootstrap: avoid failure when there is no .gitmodules file
15435         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15436         has been assigned to, even when its value is the empty string.
15437         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15438         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15439         Reported by John W. Eaton <jwe@gnu.org>.
15440
15441 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15442
15443         assume <ctype.h>, ..., <time.h> exist
15444         For years gnulib has been assuming the existence of the headers
15445         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15446         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15447         them, since they don't appear to be needed.
15448         * README (Portability guidelines): Document this.
15449         * lib/flock.c: Assume <fcntl.h> exists.
15450         * lib/regex_internal.h: Assume <locale.h> exists.
15451         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15452         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15453         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15454         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15455         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15456         * m4/regex.m4 (gl_REGEX): Likewise.
15457         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15458         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15459         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15460         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15461         * tests/test-argp.c: Likewise.
15462         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15463
15464         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15465         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15466         AA_APPLE_UNIVERSAL_BUILD.  See
15467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15468         * NEWS: Document this.
15469
15470 2011-01-19  Eric Blake  <eblake@redhat.com>
15471
15472         c-stack: assume stack overflow if SA_SIGINFO unsupported
15473         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15474         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15475         sigaction will work.
15476         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15477         behavior match Linux.
15478         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15479
15480         stdbool-tests: accomodate Haiku
15481         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15482
15483         binary-io: fix O_TEXT on Haiku
15484         * modules/binary-io (Depends-on): Add fcntl-h.
15485         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15486         than blindly undefining O_TEXT.
15487         Reported by Scott McCreary.
15488
15489 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15490
15491         include_next: do not check for standard headers like stddef.h
15492
15493         I found this problem when modifying Emacs to use gnulib.
15494         I noticed that it added HAVE_STDDEF_H to config.h, even though
15495         gnulib always assumes <stddef.h> exists as per README and this
15496         symbol is unnecessary.
15497         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15498         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15499         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15500         faster for headers like stddef.h that are known to exist.
15501         (gl_CHECK_NEXT_HEADERS): Use it.
15502         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15503         rather than gl_CHECK_NEXT_HEADERS.
15504         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15505         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15506
15507 2011-01-18  Eric Blake  <eblake@redhat.com>
15508
15509         ansi-c++-opt: skip C++ dependency style if C++ is unused
15510         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15511         tests when we know C++ compilation is not desired.
15512         Reported by Scott McCreary.
15513
15514 2011-01-18  Bruno Haible  <bruno@clisp.org>
15515
15516         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15517         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15518         (main): Perform test also when getrlimit and setrlimit don't exist or
15519         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15520         limiting the address space size using setrlimit, compare the address
15521         space size before and after the the test.
15522         * tests/test-dprintf-posix2.c: Likewise.
15523         * tests/test-fprintf-posix3.sh: Update skip messages.
15524         * tests/test-dprintf-posix2.sh: Likewise.
15525         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15526         * modules/dprintf-posix-tests (Depends-on): Likewise.
15527         Reported by Bruce Korb <bkorb@gnu.org> and
15528         Gary V. Vaughan <gary@gnu.org>.
15529
15530 2011-01-18  Bruno Haible  <bruno@clisp.org>
15531
15532         get-rusage-as: Improvement for Cygwin.
15533         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15534         areas that are merely reserved.
15535
15536 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15537
15538         strftime: remove dependencies on multibyte modules
15539
15540         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15541         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15542         only if __osf__ is defined, and I suspect OSF doesn't need these
15543         other modules.  If my guess is wrong, we'll need to come up with a
15544         variant of strftime that doesn't need the multibyte modules.
15545
15546         I discovered this problem when attempting modify Emacs to use the
15547         strftime module.  With the previous gnulib, this caused Emacs to
15548         need 31 new files, ranging from lib/config.charset to
15549         m4/wint_t.m4.  This was overkill and I expect would be offputting
15550         to the Emacs maintainers.  After this change, only 6 new files are
15551         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15552         stdbool.m4, and tm_gmtoff.m4.
15553
15554         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15555         Suggested by Bruno Haible in
15556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15557         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15558         and do not check for wchar.h.
15559         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15560         (Depends-on): Remove mbrlen, mbsinit, wchar.
15561
15562 2011-01-18  Bruno Haible  <bruno@clisp.org>
15563
15564         Tests for module 'get-rusage-as'.
15565         * modules/get-rusage-as-tests: New file.
15566         * tests/test-get-rusage-as.c: New file.
15567
15568         New module 'get-rusage-as'.
15569         * modules/get-rusage-as: New file.
15570         * lib/resource-ext.h: New file.
15571         * lib/get-rusage-as.c: New file.
15572
15573 2011-01-17  Eric Blake  <eblake@redhat.com>
15574
15575         sigaction: relax license from LGPLv3+ to LGPLv2+
15576         * modules/sigaction (License): Relax to LGPLv2+.
15577
15578 2011-01-14  Bruno Haible  <bruno@clisp.org>
15579
15580         filemode: Make function declarations usable in C++ mode.
15581         * lib/filemode.h: Enclose function declarations in extern "C" block.
15582         Reported by John W. Eaton <jwe@gnu.org>.
15583
15584 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15585
15586         save-cwd: no longer include "xgetcwd.h"
15587         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15588         This avoids a compilation failure in projects that use save-cwd
15589         without also using the xgetcwd module.
15590
15591 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15592
15593         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15594         This is so that a program like Emacs, which needs only dtoastr,
15595         does not have to bother with distributing and compiling ftoastr
15596         and ldtoastr.
15597         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15598         * modules/dtoastr, modules/ldtoastr: New files.
15599         * modules/ftoastr: Now works just for 'float'.
15600         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15601         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15602         dtoastr.c, ldtoastr.c.
15603
15604 2011-01-11  Jim Meyering  <meyering@redhat.com>
15605
15606         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15607         There is no need to work around the lack of the fchdir function,
15608         since gnulib can now provide a replacement when required.
15609         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15610         * modules/save-cwd (Depends-on): Add fchdir.
15611
15612 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15613
15614         openat, save-cwd: avoid xmalloc
15615
15616         This removes a direct (but undocumented) dependency of openat on
15617         xalloc, along with an indirect dependency via save-cwd.  It also
15618         removes a dependency of save-cwd on xgetcwd, and thereby
15619         indirectly on xalloc.  This change causes the openat substitute
15620         to fall back on save_cwd when memory is tight, and for save_cwd to
15621         fail instead of dying when memory is tight, but that's good enough.
15622         Problem and initial idea for fix reported by Bastien Roucaries in
15623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15624
15625         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15626         xalloc.h (for xmalloc).
15627         (openat_proc_name): Use malloc, not xmalloc.
15628         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15629         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15630
15631         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15632         This avoids heap allocation for file names whose lengths are in
15633         the range 512..1023, with the upper bound increasing to at most
15634         4031 depending on the platform's PATH_MAX.  (We do not want
15635         pathmax.h here as it might supply a non-constant PATH_MAX.)
15636         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15637         Perhaps they should be moved to malloca.h?
15638         (OPENAT_BUFFER_SIZE): Use them.
15639
15640 2011-01-10  Bruno Haible  <bruno@clisp.org>
15641
15642         doc: Update users.txt.
15643         * users.txt: Add recutils.
15644
15645 2011-01-09  Karl Berry  <karl@gnu.org>
15646
15647         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15648
15649         * doc/configmake.texi: New file.
15650         * doc/gnulib.texi: Include it.
15651         * modules/configmake: Move documentation from here.
15652
15653 2011-01-09  Bruno Haible  <bruno@clisp.org>
15654
15655         Update to Unicode 6.0.0.
15656         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15657         (get_lbp): Update for Unicode 6.0.0.
15658         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15659         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15660         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15661         U+11001, U+11038..U+11046. Remove U+06DE.
15662         (uc_width): Fix bounds of planes.
15663         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15664         lib/uniwidth/width.c.
15665         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15666         trailing whitespace removed.
15667         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15668         without comments, but with the original copyright notice.
15669         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15670         * lib/unicase/ignorable.h: Likewise.
15671         * lib/unicase/tocasefold.h: Likewise.
15672         * lib/unicase/tolower.h: Likewise.
15673         * lib/unicase/totitle.h: Likewise.
15674         * lib/unicase/toupper.h: Likewise.
15675         * lib/unictype/bidi_of.h: Likewise.
15676         * lib/unictype/blocks.h: Likewise.
15677         * lib/unictype/categ_C.h: Likewise.
15678         * lib/unictype/categ_Cn.h: Likewise.
15679         * lib/unictype/categ_L.h: Likewise.
15680         * lib/unictype/categ_Ll.h: Likewise.
15681         * lib/unictype/categ_Lm.h: Likewise.
15682         * lib/unictype/categ_Lo.h: Likewise.
15683         * lib/unictype/categ_Lu.h: Likewise.
15684         * lib/unictype/categ_M.h: Likewise.
15685         * lib/unictype/categ_Mc.h: Likewise.
15686         * lib/unictype/categ_Me.h: Likewise.
15687         * lib/unictype/categ_Mn.h: Likewise.
15688         * lib/unictype/categ_N.h: Likewise.
15689         * lib/unictype/categ_Nd.h: Likewise.
15690         * lib/unictype/categ_No.h: Likewise.
15691         * lib/unictype/categ_P.h: Likewise.
15692         * lib/unictype/categ_Po.h: Likewise.
15693         * lib/unictype/categ_S.h: Likewise.
15694         * lib/unictype/categ_Sc.h: Likewise.
15695         * lib/unictype/categ_Sk.h: Likewise.
15696         * lib/unictype/categ_Sm.h: Likewise.
15697         * lib/unictype/categ_So.h: Likewise.
15698         * lib/unictype/categ_of.h: Likewise.
15699         * lib/unictype/combining.h: Likewise.
15700         * lib/unictype/ctype_alnum.h: Likewise.
15701         * lib/unictype/ctype_alpha.h: Likewise.
15702         * lib/unictype/ctype_graph.h: Likewise.
15703         * lib/unictype/ctype_lower.h: Likewise.
15704         * lib/unictype/ctype_print.h: Likewise.
15705         * lib/unictype/ctype_punct.h: Likewise.
15706         * lib/unictype/ctype_upper.h: Likewise.
15707         * lib/unictype/decdigit.h: Likewise.
15708         * lib/unictype/digit.h: Likewise.
15709         * lib/unictype/numeric.h: Likewise.
15710         * lib/unictype/pr_alphabetic.h: Likewise.
15711         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15712         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15713         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15714         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15715         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15716         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15717         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15718         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15719         * lib/unictype/pr_case_ignorable.h: Likewise.
15720         * lib/unictype/pr_cased.h: Likewise.
15721         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15722         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15723         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15724         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15725         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15726         * lib/unictype/pr_combining.h: Likewise.
15727         * lib/unictype/pr_composite.h: Likewise.
15728         * lib/unictype/pr_currency_symbol.h: Likewise.
15729         * lib/unictype/pr_decimal_digit.h: Likewise.
15730         * lib/unictype/pr_deprecated.h: Likewise.
15731         * lib/unictype/pr_format_control.h: Likewise.
15732         * lib/unictype/pr_grapheme_base.h: Likewise.
15733         * lib/unictype/pr_grapheme_extend.h: Likewise.
15734         * lib/unictype/pr_grapheme_link.h: Likewise.
15735         * lib/unictype/pr_id_continue.h: Likewise.
15736         * lib/unictype/pr_id_start.h: Likewise.
15737         * lib/unictype/pr_ideographic.h: Likewise.
15738         * lib/unictype/pr_lowercase.h: Likewise.
15739         * lib/unictype/pr_math.h: Likewise.
15740         * lib/unictype/pr_numeric.h: Likewise.
15741         * lib/unictype/pr_other_alphabetic.h: Likewise.
15742         * lib/unictype/pr_other_id_continue.h: Likewise.
15743         * lib/unictype/pr_other_math.h: Likewise.
15744         * lib/unictype/pr_punctuation.h: Likewise.
15745         * lib/unictype/pr_sentence_terminal.h: Likewise.
15746         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15747         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15748         * lib/unictype/pr_unified_ideograph.h: Likewise.
15749         * lib/unictype/pr_uppercase.h: Likewise.
15750         * lib/unictype/pr_xid_continue.h: Likewise.
15751         * lib/unictype/pr_xid_start.h: Likewise.
15752         * lib/unictype/scripts.h: Likewise.
15753         * lib/unictype/scripts_byname.gperf: Likewise.
15754         * lib/unictype/sy_java_ident.h: Likewise.
15755         * lib/unigbrk/gbrkprop.h: Likewise.
15756         * lib/unilbrk/lbrkprop1.h: Likewise.
15757         * lib/unilbrk/lbrkprop2.h: Likewise.
15758         * lib/uninorm/decomposition-table2.h: Likewise.
15759         * lib/uniwbrk/wbrkprop.h: Likewise.
15760         * tests/unicase/test-cased.c: Likewise.
15761         * tests/unicase/test-ignorable.c: Likewise.
15762         * tests/unicase/test-uc_tolower.c: Likewise.
15763         * tests/unicase/test-uc_totitle.c: Likewise.
15764         * tests/unicase/test-uc_toupper.c: Likewise.
15765         * tests/unictype/test-categ_C.c: Likewise.
15766         * tests/unictype/test-categ_Cn.c: Likewise.
15767         * tests/unictype/test-categ_L.c: Likewise.
15768         * tests/unictype/test-categ_Ll.c: Likewise.
15769         * tests/unictype/test-categ_Lm.c: Likewise.
15770         * tests/unictype/test-categ_Lo.c: Likewise.
15771         * tests/unictype/test-categ_Lu.c: Likewise.
15772         * tests/unictype/test-categ_M.c: Likewise.
15773         * tests/unictype/test-categ_Mc.c: Likewise.
15774         * tests/unictype/test-categ_Me.c: Likewise.
15775         * tests/unictype/test-categ_Mn.c: Likewise.
15776         * tests/unictype/test-categ_N.c: Likewise.
15777         * tests/unictype/test-categ_Nd.c: Likewise.
15778         * tests/unictype/test-categ_No.c: Likewise.
15779         * tests/unictype/test-categ_P.c: Likewise.
15780         * tests/unictype/test-categ_Po.c: Likewise.
15781         * tests/unictype/test-categ_S.c: Likewise.
15782         * tests/unictype/test-categ_Sc.c: Likewise.
15783         * tests/unictype/test-categ_Sk.c: Likewise.
15784         * tests/unictype/test-categ_Sm.c: Likewise.
15785         * tests/unictype/test-categ_So.c: Likewise.
15786         * tests/unictype/test-ctype_alnum.c: Likewise.
15787         * tests/unictype/test-ctype_alpha.c: Likewise.
15788         * tests/unictype/test-ctype_graph.c: Likewise.
15789         * tests/unictype/test-ctype_lower.c: Likewise.
15790         * tests/unictype/test-ctype_print.c: Likewise.
15791         * tests/unictype/test-ctype_punct.c: Likewise.
15792         * tests/unictype/test-ctype_upper.c: Likewise.
15793         * tests/unictype/test-decdigit.h: Likewise.
15794         * tests/unictype/test-digit.h: Likewise.
15795         * tests/unictype/test-numeric.h: Likewise.
15796         * tests/unictype/test-pr_alphabetic.c: Likewise.
15797         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15798         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15799         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15800         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15801         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15802         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15803         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15804         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15805         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15806         * tests/unictype/test-pr_cased.c: Likewise.
15807         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15808         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15809         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15810         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15811         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15812         * tests/unictype/test-pr_combining.c: Likewise.
15813         * tests/unictype/test-pr_composite.c: Likewise.
15814         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15815         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15816         * tests/unictype/test-pr_deprecated.c: Likewise.
15817         * tests/unictype/test-pr_format_control.c: Likewise.
15818         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15819         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15820         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15821         * tests/unictype/test-pr_id_continue.c: Likewise.
15822         * tests/unictype/test-pr_id_start.c: Likewise.
15823         * tests/unictype/test-pr_ideographic.c: Likewise.
15824         * tests/unictype/test-pr_lowercase.c: Likewise.
15825         * tests/unictype/test-pr_math.c: Likewise.
15826         * tests/unictype/test-pr_numeric.c: Likewise.
15827         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15828         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15829         * tests/unictype/test-pr_other_math.c: Likewise.
15830         * tests/unictype/test-pr_punctuation.c: Likewise.
15831         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15832         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15833         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15834         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15835         * tests/unictype/test-pr_uppercase.c: Likewise.
15836         * tests/unictype/test-pr_xid_continue.c: Likewise.
15837         * tests/unictype/test-pr_xid_start.c: Likewise.
15838         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15839         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15840         changes.
15841         * lib/unictype/categ_Cc.h: Likewise.
15842         * lib/unictype/categ_Cf.h: Likewise.
15843         * lib/unictype/categ_Co.h: Likewise.
15844         * lib/unictype/categ_Cs.h: Likewise.
15845         * lib/unictype/categ_Lt.h: Likewise.
15846         * lib/unictype/categ_Nl.h: Likewise.
15847         * lib/unictype/categ_Pc.h: Likewise.
15848         * lib/unictype/categ_Pd.h: Likewise.
15849         * lib/unictype/categ_Pe.h: Likewise.
15850         * lib/unictype/categ_Pf.h: Likewise.
15851         * lib/unictype/categ_Pi.h: Likewise.
15852         * lib/unictype/categ_Ps.h: Likewise.
15853         * lib/unictype/categ_Z.h: Likewise.
15854         * lib/unictype/categ_Zl.h: Likewise.
15855         * lib/unictype/categ_Zp.h: Likewise.
15856         * lib/unictype/categ_Zs.h: Likewise.
15857         * lib/unictype/ctype_blank.h: Likewise.
15858         * lib/unictype/ctype_cntrl.h: Likewise.
15859         * lib/unictype/ctype_digit.h: Likewise.
15860         * lib/unictype/ctype_space.h: Likewise.
15861         * lib/unictype/ctype_xdigit.h: Likewise.
15862         * lib/unictype/mirror.h: Likewise.
15863         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15864         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15865         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15866         * lib/unictype/pr_bidi_control.h: Likewise.
15867         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15868         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15869         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15870         * lib/unictype/pr_bidi_pdf.h: Likewise.
15871         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15872         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15873         * lib/unictype/pr_dash.h: Likewise.
15874         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15875         * lib/unictype/pr_diacritic.h: Likewise.
15876         * lib/unictype/pr_extender.h: Likewise.
15877         * lib/unictype/pr_hex_digit.h: Likewise.
15878         * lib/unictype/pr_hyphen.h: Likewise.
15879         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15880         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15881         * lib/unictype/pr_ignorable_control.h: Likewise.
15882         * lib/unictype/pr_iso_control.h: Likewise.
15883         * lib/unictype/pr_join_control.h: Likewise.
15884         * lib/unictype/pr_left_of_pair.h: Likewise.
15885         * lib/unictype/pr_line_separator.h: Likewise.
15886         * lib/unictype/pr_logical_order_exception.h: Likewise.
15887         * lib/unictype/pr_non_break.h: Likewise.
15888         * lib/unictype/pr_not_a_character.h: Likewise.
15889         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15890         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15891         * lib/unictype/pr_other_id_start.h: Likewise.
15892         * lib/unictype/pr_other_lowercase.h: Likewise.
15893         * lib/unictype/pr_other_uppercase.h: Likewise.
15894         * lib/unictype/pr_paired_punctuation.h: Likewise.
15895         * lib/unictype/pr_paragraph_separator.h: Likewise.
15896         * lib/unictype/pr_pattern_syntax.h: Likewise.
15897         * lib/unictype/pr_pattern_white_space.h: Likewise.
15898         * lib/unictype/pr_private_use.h: Likewise.
15899         * lib/unictype/pr_quotation_mark.h: Likewise.
15900         * lib/unictype/pr_radical.h: Likewise.
15901         * lib/unictype/pr_soft_dotted.h: Likewise.
15902         * lib/unictype/pr_space.h: Likewise.
15903         * lib/unictype/pr_titlecase.h: Likewise.
15904         * lib/unictype/pr_variation_selector.h: Likewise.
15905         * lib/unictype/pr_white_space.h: Likewise.
15906         * lib/unictype/pr_zero_width.h: Likewise.
15907         * lib/unictype/sy_c_ident.h: Likewise.
15908         * lib/unictype/sy_c_whitespace.h: Likewise.
15909         * lib/unictype/sy_java_whitespace.h: Likewise.
15910         * lib/uninorm/composition-table.gperf: Likewise.
15911         * lib/uninorm/decomposition-table1.h: Likewise.
15912         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15913         LB8.
15914         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15915         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15916         * modules/unictype/*: Bump version number of expected libunistring
15917         version.
15918
15919 2011-01-09  Bruno Haible  <bruno@clisp.org>
15920
15921         Update to Unicode 5.2.0.
15922         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15923         trailing whitespace removed.
15924
15925 2011-01-09  Bruno Haible  <bruno@clisp.org>
15926
15927         New Unicode character properties, from Unicode 5.2.0.
15928         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15929         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15930         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15931         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15932         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15933         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15934         uc_is_property_cased, uc_is_property_case_ignorable,
15935         uc_is_property_changes_when_lowercased,
15936         uc_is_property_changes_when_uppercased,
15937         uc_is_property_changes_when_titlecased,
15938         uc_is_property_changes_when_casefolded,
15939         uc_is_property_changes_when_casemapped): New declarations.
15940         * lib/unictype/pr_byname.gperf: Add the new properties.
15941         * modules/unictype/property-byname (Depends-on): Depend on the new
15942         properties modules.
15943         * modules/unictype/property-all (Depends-on): Likewise.
15944         * MODULES.html.sh (Unicode string functions): Add
15945         unictype/property-case-ignorable, unictype/property-cased,
15946         unictype/property-changes-when-casefolded,
15947         unictype/property-changes-when-casemapped,
15948         unictype/property-changes-when-lowercased,
15949         unictype/property-changes-when-titlecased,
15950         unictype/property-changes-when-uppercased.
15951
15952         New module 'unictype/property-changes-when-casemapped'.
15953         * modules/unictype/property-changes-when-casemapped: New file.
15954         * lib/unictype/pr_changes_when_casemapped.c: New file.
15955         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15956         generated by gen-uni-tables.
15957         * modules/unictype/property-changes-when-casemapped-tests: New file.
15958         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15959         automatically generated by gen-uni-tables.
15960
15961         New module 'unictype/property-changes-when-casefolded'.
15962         * modules/unictype/property-changes-when-casefolded: New file.
15963         * lib/unictype/pr_changes_when_casefolded.c: New file.
15964         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15965         generated by gen-uni-tables.
15966         * modules/unictype/property-changes-when-casefolded-tests: New file.
15967         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15968         automatically generated by gen-uni-tables.
15969
15970         New module 'unictype/property-changes-when-titlecased'.
15971         * modules/unictype/property-changes-when-titlecased: New file.
15972         * lib/unictype/pr_changes_when_titlecased.c: New file.
15973         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15974         generated by gen-uni-tables.
15975         * modules/unictype/property-changes-when-titlecased-tests: New file.
15976         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15977         automatically generated by gen-uni-tables.
15978
15979         New module 'unictype/property-changes-when-uppercased'.
15980         * modules/unictype/property-changes-when-uppercased: New file.
15981         * lib/unictype/pr_changes_when_uppercased.c: New file.
15982         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15983         generated by gen-uni-tables.
15984         * modules/unictype/property-changes-when-uppercased-tests: New file.
15985         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15986         automatically generated by gen-uni-tables.
15987
15988         New module 'unictype/property-changes-when-lowercased'.
15989         * modules/unictype/property-changes-when-lowercased: New file.
15990         * lib/unictype/pr_changes_when_lowercased.c: New file.
15991         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15992         generated by gen-uni-tables.
15993         * modules/unictype/property-changes-when-lowercased-tests: New file.
15994         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15995         automatically generated by gen-uni-tables.
15996
15997         New module 'unictype/property-case-ignorable'.
15998         * modules/unictype/property-case-ignorable: New file.
15999         * lib/unictype/pr_case_ignorable.c: New file.
16000         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16001         by gen-uni-tables.
16002         * modules/unictype/property-case-ignorable-tests: New file.
16003         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16004         generated by gen-uni-tables.
16005
16006         New module 'unictype/property-cased'.
16007         * modules/unictype/property-cased: New file.
16008         * lib/unictype/pr_cased.c: New file.
16009         * lib/unictype/pr_cased.h: New file, automatically generated by
16010         gen-uni-tables.
16011         * modules/unictype/property-cased-tests: New file.
16012         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16013         gen-uni-tables.
16014
16015 2011-01-09  Bruno Haible  <bruno@clisp.org>
16016
16017         Update to Unicode 5.2.0.
16018         * lib/gen-uni-tables.c (output_predicate, output_category,
16019         output_combclass, output_bidi_category, output_decimal_digit_test,
16020         output_decimal_digit, output_digit_test, output_digit,
16021         output_numeric_test, output_numeric, output_mirror, output_scripts,
16022         output_scripts_byname, output_blocks, output_ident_category): Fix
16023         comment header.
16024         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16025         get_wbp.
16026         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16027         items.
16028         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16029         Changes_When_Lowercased, Changes_When_Uppercased,
16030         Changes_When_Titlecased, Changes_When_Casefolded,
16031         Changes_When_Casemapped.
16032         (is_property_alphabetic, is_property_default_ignorable_code_point):
16033         Update for Unicode 5.2.0.
16034         (is_property_cased, is_property_case_ignorable,
16035         is_property_changes_when_lowercased,
16036         is_property_changes_when_uppercased,
16037         is_property_changes_when_titlecased,
16038         is_property_changes_when_casefolded,
16039         is_property_changes_when_casemapped): New functions.
16040         (output_properties): Output also the properties cased, case_ignorable,
16041         changes_when_lowercased, changes_when_uppercased,
16042         changes_when_titlecased, changes_when_casefolded,
16043         changes_when_casemapped.
16044         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16045         Unicode TR#11 revision 17 -> 19.
16046         (LBP_CP): New enumeration value.
16047         (LBP_*): Adjust values accordingly.
16048         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16049         TR#14 revision 22 -> 24.
16050         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16051         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16052         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16053         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16054         is_WBP_MIDLETTER.
16055         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16056         the code1 and code2 of each composition rule.
16057         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16058         * lib/unicase/ignorable.h: Likewise.
16059         * lib/unicase/tocasefold.h: Likewise.
16060         * lib/unicase/tolower.h: Likewise.
16061         * lib/unicase/totitle.h: Likewise.
16062         * lib/unicase/toupper.h: Likewise.
16063         * lib/unictype/bidi_of.h: Likewise.
16064         * lib/unictype/blocks.h: Likewise.
16065         * lib/unictype/categ_C.h: Likewise.
16066         * lib/unictype/categ_Cf.h: Likewise.
16067         * lib/unictype/categ_Cn.h: Likewise.
16068         * lib/unictype/categ_L.h: Likewise.
16069         * lib/unictype/categ_Ll.h: Likewise.
16070         * lib/unictype/categ_Lm.h: Likewise.
16071         * lib/unictype/categ_Lo.h: Likewise.
16072         * lib/unictype/categ_Lu.h: Likewise.
16073         * lib/unictype/categ_M.h: Likewise.
16074         * lib/unictype/categ_Mc.h: Likewise.
16075         * lib/unictype/categ_Mn.h: Likewise.
16076         * lib/unictype/categ_N.h: Likewise.
16077         * lib/unictype/categ_Nd.h: Likewise.
16078         * lib/unictype/categ_Nl.h: Likewise.
16079         * lib/unictype/categ_No.h: Likewise.
16080         * lib/unictype/categ_P.h: Likewise.
16081         * lib/unictype/categ_Pd.h: Likewise.
16082         * lib/unictype/categ_Po.h: Likewise.
16083         * lib/unictype/categ_S.h: Likewise.
16084         * lib/unictype/categ_Sc.h: Likewise.
16085         * lib/unictype/categ_So.h: Likewise.
16086         * lib/unictype/categ_of.h: Likewise.
16087         * lib/unictype/combining.h: Likewise.
16088         * lib/unictype/ctype_alnum.h: Likewise.
16089         * lib/unictype/ctype_alpha.h: Likewise.
16090         * lib/unictype/ctype_graph.h: Likewise.
16091         * lib/unictype/ctype_lower.h: Likewise.
16092         * lib/unictype/ctype_print.h: Likewise.
16093         * lib/unictype/ctype_punct.h: Likewise.
16094         * lib/unictype/ctype_upper.h: Likewise.
16095         * lib/unictype/decdigit.h: Likewise.
16096         * lib/unictype/digit.h: Likewise.
16097         * lib/unictype/numeric.h: Likewise.
16098         * lib/unictype/pr_alphabetic.h: Likewise.
16099         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16100         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16101         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16102         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16103         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16104         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16105         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16106         * lib/unictype/pr_combining.h: Likewise.
16107         * lib/unictype/pr_composite.h: Likewise.
16108         * lib/unictype/pr_currency_symbol.h: Likewise.
16109         * lib/unictype/pr_dash.h: Likewise.
16110         * lib/unictype/pr_decimal_digit.h: Likewise.
16111         * lib/unictype/pr_deprecated.h: Likewise.
16112         * lib/unictype/pr_diacritic.h: Likewise.
16113         * lib/unictype/pr_extender.h: Likewise.
16114         * lib/unictype/pr_grapheme_base.h: Likewise.
16115         * lib/unictype/pr_grapheme_extend.h: Likewise.
16116         * lib/unictype/pr_grapheme_link.h: Likewise.
16117         * lib/unictype/pr_id_continue.h: Likewise.
16118         * lib/unictype/pr_id_start.h: Likewise.
16119         * lib/unictype/pr_ideographic.h: Likewise.
16120         * lib/unictype/pr_ignorable_control.h: Likewise.
16121         * lib/unictype/pr_logical_order_exception.h: Likewise.
16122         * lib/unictype/pr_lowercase.h: Likewise.
16123         * lib/unictype/pr_numeric.h: Likewise.
16124         * lib/unictype/pr_other_alphabetic.h: Likewise.
16125         * lib/unictype/pr_punctuation.h: Likewise.
16126         * lib/unictype/pr_sentence_terminal.h: Likewise.
16127         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16128         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16129         * lib/unictype/pr_unified_ideograph.h: Likewise.
16130         * lib/unictype/pr_uppercase.h: Likewise.
16131         * lib/unictype/pr_xid_continue.h: Likewise.
16132         * lib/unictype/pr_xid_start.h: Likewise.
16133         * lib/unictype/pr_zero_width.h: Likewise.
16134         * lib/unictype/scripts.h: Likewise.
16135         * lib/unictype/scripts_byname.gperf: Likewise.
16136         * lib/unictype/sy_java_ident.h: Likewise.
16137         * lib/unigbrk/gbrkprop.h: Likewise.
16138         * lib/unilbrk/lbrkprop1.h: Likewise.
16139         * lib/unilbrk/lbrkprop2.h: Likewise.
16140         * lib/unilbrk/lbrktables.h: Likewise.
16141         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16142         LBP_CP. Implement rule LB30.
16143         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16144         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16145         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16146         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16147         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16148         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16149         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16150         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16151         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16152         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16153         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16154         bits instead of 16 bits in the code1 and code2 of each composition
16155         rule.
16156         (uc_composition): Update for Unicode 5.2.0.
16157         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16158         * lib/uninorm/decomposition-table2.h: Likewise.
16159         * lib/uniwbrk/wbrkprop.h: Likewise.
16160         * tests/unicase/test-cased.c: Likewise.
16161         * tests/unicase/test-ignorable.c: Likewise.
16162         * tests/unicase/test-uc_tolower.c: Likewise.
16163         * tests/unicase/test-uc_totitle.c: Likewise.
16164         * tests/unicase/test-uc_toupper.c: Likewise.
16165         * tests/unictype/test-categ_C.c: Likewise.
16166         * tests/unictype/test-categ_Cf.c: Likewise.
16167         * tests/unictype/test-categ_Cn.c: Likewise.
16168         * tests/unictype/test-categ_L.c: Likewise.
16169         * tests/unictype/test-categ_Ll.c: Likewise.
16170         * tests/unictype/test-categ_Lm.c: Likewise.
16171         * tests/unictype/test-categ_Lo.c: Likewise.
16172         * tests/unictype/test-categ_Lu.c: Likewise.
16173         * tests/unictype/test-categ_M.c: Likewise.
16174         * tests/unictype/test-categ_Mc.c: Likewise.
16175         * tests/unictype/test-categ_Mn.c: Likewise.
16176         * tests/unictype/test-categ_N.c: Likewise.
16177         * tests/unictype/test-categ_Nd.c: Likewise.
16178         * tests/unictype/test-categ_Nl.c: Likewise.
16179         * tests/unictype/test-categ_No.c: Likewise.
16180         * tests/unictype/test-categ_P.c: Likewise.
16181         * tests/unictype/test-categ_Pd.c: Likewise.
16182         * tests/unictype/test-categ_Po.c: Likewise.
16183         * tests/unictype/test-categ_S.c: Likewise.
16184         * tests/unictype/test-categ_Sc.c: Likewise.
16185         * tests/unictype/test-categ_So.c: Likewise.
16186         * tests/unictype/test-ctype_alnum.c: Likewise.
16187         * tests/unictype/test-ctype_alpha.c: Likewise.
16188         * tests/unictype/test-ctype_graph.c: Likewise.
16189         * tests/unictype/test-ctype_lower.c: Likewise.
16190         * tests/unictype/test-ctype_print.c: Likewise.
16191         * tests/unictype/test-ctype_punct.c: Likewise.
16192         * tests/unictype/test-ctype_upper.c: Likewise.
16193         * tests/unictype/test-decdigit.h: Likewise.
16194         * tests/unictype/test-digit.h: Likewise.
16195         * tests/unictype/test-numeric.h: Likewise.
16196         * tests/unictype/test-pr_alphabetic.c: Likewise.
16197         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16198         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16199         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16200         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16201         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16202         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16203         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16204         * tests/unictype/test-pr_combining.c: Likewise.
16205         * tests/unictype/test-pr_composite.c: Likewise.
16206         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16207         * tests/unictype/test-pr_dash.c: Likewise.
16208         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16209         * tests/unictype/test-pr_deprecated.c: Likewise.
16210         * tests/unictype/test-pr_diacritic.c: Likewise.
16211         * tests/unictype/test-pr_extender.c: Likewise.
16212         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16213         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16214         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16215         * tests/unictype/test-pr_id_continue.c: Likewise.
16216         * tests/unictype/test-pr_id_start.c: Likewise.
16217         * tests/unictype/test-pr_ideographic.c: Likewise.
16218         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16219         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16220         * tests/unictype/test-pr_lowercase.c: Likewise.
16221         * tests/unictype/test-pr_numeric.c: Likewise.
16222         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16223         * tests/unictype/test-pr_punctuation.c: Likewise.
16224         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16225         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16226         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16227         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16228         * tests/unictype/test-pr_uppercase.c: Likewise.
16229         * tests/unictype/test-pr_xid_continue.c: Likewise.
16230         * tests/unictype/test-pr_xid_start.c: Likewise.
16231         * tests/unictype/test-pr_zero_width.c: Likewise.
16232         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16233         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16234         changed behaviour: line breaking is now disallowed between a letter
16235         or '=' and '('.
16236         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16237         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16238         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16239         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16240         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16241         lib/uniwidth/width.c.
16242         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16243         without comments, but with the original copyright notice.
16244         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16245         changes.
16246         * lib/unictype/categ_Cc.h: Likewise.
16247         * lib/unictype/categ_Co.h: Likewise.
16248         * lib/unictype/categ_Cs.h: Likewise.
16249         * lib/unictype/categ_Lt.h: Likewise.
16250         * lib/unictype/categ_Me.h: Likewise.
16251         * lib/unictype/categ_Pc.h: Likewise.
16252         * lib/unictype/categ_Pe.h: Likewise.
16253         * lib/unictype/categ_Pf.h: Likewise.
16254         * lib/unictype/categ_Pi.h: Likewise.
16255         * lib/unictype/categ_Ps.h: Likewise.
16256         * lib/unictype/categ_Sk.h: Likewise.
16257         * lib/unictype/categ_Sm.h: Likewise.
16258         * lib/unictype/categ_Z.h: Likewise.
16259         * lib/unictype/categ_Zl.h: Likewise.
16260         * lib/unictype/categ_Zp.h: Likewise.
16261         * lib/unictype/categ_Zs.h: Likewise.
16262         * lib/unictype/ctype_blank.h: Likewise.
16263         * lib/unictype/ctype_cntrl.h: Likewise.
16264         * lib/unictype/ctype_digit.h: Likewise.
16265         * lib/unictype/ctype_space.h: Likewise.
16266         * lib/unictype/ctype_xdigit.h: Likewise.
16267         * lib/unictype/mirror.h: Likewise.
16268         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16269         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16270         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16271         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16272         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16273         * lib/unictype/pr_bidi_control.h: Likewise.
16274         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16275         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16276         * lib/unictype/pr_bidi_pdf.h: Likewise.
16277         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16278         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16279         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16280         * lib/unictype/pr_format_control.h: Likewise.
16281         * lib/unictype/pr_hex_digit.h: Likewise.
16282         * lib/unictype/pr_hyphen.h: Likewise.
16283         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16284         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16285         * lib/unictype/pr_iso_control.h: Likewise.
16286         * lib/unictype/pr_join_control.h: Likewise.
16287         * lib/unictype/pr_left_of_pair.h: Likewise.
16288         * lib/unictype/pr_line_separator.h: Likewise.
16289         * lib/unictype/pr_math.h: Likewise.
16290         * lib/unictype/pr_non_break.h: Likewise.
16291         * lib/unictype/pr_not_a_character.h: Likewise.
16292         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16293         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16294         * lib/unictype/pr_other_id_continue.h: Likewise.
16295         * lib/unictype/pr_other_id_start.h: Likewise.
16296         * lib/unictype/pr_other_lowercase.h: Likewise.
16297         * lib/unictype/pr_other_math.h: Likewise.
16298         * lib/unictype/pr_other_uppercase.h: Likewise.
16299         * lib/unictype/pr_paired_punctuation.h: Likewise.
16300         * lib/unictype/pr_paragraph_separator.h: Likewise.
16301         * lib/unictype/pr_pattern_syntax.h: Likewise.
16302         * lib/unictype/pr_pattern_white_space.h: Likewise.
16303         * lib/unictype/pr_private_use.h: Likewise.
16304         * lib/unictype/pr_quotation_mark.h: Likewise.
16305         * lib/unictype/pr_radical.h: Likewise.
16306         * lib/unictype/pr_soft_dotted.h: Likewise.
16307         * lib/unictype/pr_space.h: Likewise.
16308         * lib/unictype/pr_titlecase.h: Likewise.
16309         * lib/unictype/pr_variation_selector.h: Likewise.
16310         * lib/unictype/pr_white_space.h: Likewise.
16311         * lib/unictype/sy_c_ident.h: Likewise.
16312         * lib/unictype/sy_c_whitespace.h: Likewise.
16313         * lib/unictype/sy_java_whitespace.h: Likewise.
16314         * modules/uni*/*: Bump version number of expected libunistring version.
16315         Reported by Simon Josefsson.
16316
16317 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16318
16319         useless-if-before-free: fix typo in --help and make the internal,
16320         automatic version date update process work once again.
16321         --help output contained a NUL character instead of the
16322         backslash-zero that was intended.  Also, the "must lie within
16323         the first 8 lines" line is on line 9, and hence not getting
16324         automatically updated.
16325         * build-aux/useless-if-before-free: Fix the former by adding a
16326         backslash, and the latter by condensing the three lines of what-it-does
16327         to a single line, leaving one line of slack for the future.
16328
16329 2011-01-09  Bruno Haible  <bruno@clisp.org>
16330
16331         uniwidth/width: Fix width of U+1D173..U+1D17A.
16332         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16333         symbolic_width, output_width_property_test): New functions.
16334         (main): Invoke output_nonspacing_property, output_width_property_test.
16335         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16336         U+1D173..U+1D17A.
16337         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16338         1.
16339         * modules/uniwidth/*: Bump version number of expected libunistring
16340         version.
16341         * modules/unilbrk/*: Likewise.
16342
16343 2011-01-08  Bruno Haible  <bruno@clisp.org>
16344
16345         uninorm tests: Preserve copyright of Unicode data file.
16346         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16347         Mention modifications.
16348
16349 2011-01-08  Bruno Haible  <bruno@clisp.org>
16350
16351         gen-uni-tables: Prepare for Unicode 5.2.0.
16352         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16353         (debug_output_lbp, output_lbp): Update.
16354
16355 2011-01-08  Bruno Haible  <bruno@clisp.org>
16356
16357         unilbrk: Clarify gen-uni-tables.c code.
16358         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16359         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16360         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16361
16362 2011-01-07  Bruno Haible  <bruno@clisp.org>
16363
16364         strtod: Restore errno when successfully parsing Infinity or NaN.
16365         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16366         restore the original errno.
16367
16368 2011-01-07  Bruno Haible  <bruno@clisp.org>
16369
16370         remove test: Avoid failure on HP-UX 11.
16371         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16372
16373 2011-01-07  Bruno Haible  <bruno@clisp.org>
16374
16375         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16376         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16377         error code.
16378
16379 2011-01-07  Pádraig Brady <P@draigBrady.com>
16380
16381         ignore-value: fixup comments, and add Eric Blake
16382         as an author since he rewrote the macros.
16383         * lib/ignore-value.h (ignore_value):  State that
16384         we now support aggregates.  Also specify exactly
16385         when the GCC warn_unused_result feature was added.
16386
16387 2011-01-06  Eric Blake  <eblake@redhat.com>
16388
16389         ignore-value: support aggregate types
16390         * lib/ignore-value.h (ignore_value): Provide separate gcc
16391         definition.
16392         * modules/ignore-value-tests: New test module.
16393         * tests/test-ignore-value.c: New test.
16394
16395         maint.mk: improve sc_prohibit_strcmp regex
16396         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16397         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16398         definition of STRNEQ.
16399
16400         signal: work around Haiku issue with SIGBUS
16401         * lib/siglist.h: Add comment.
16402         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16403         strsignal's favoring of SIGSEGV.
16404         * tests/test-signal.c (main): Avoid test failure.
16405         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16406         Reported by Scott McCreary.
16407
16408         maint.mk: add pre-release check to ensure submodule commits are public
16409         * top/maint.mk (public-submodule-commit): New rule.
16410         (submodule-checks): New variable.
16411         (alpha beta stable): Depend on the variable.
16412
16413 2011-01-05  Pádraig Brady <P@draigBrady.com>
16414         and Jim Meyering  <meyering@redhat.com>
16415
16416         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16417         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16418         (ATTRIBUTE_DEPRECATED): Define.
16419         (_ignore_case): New function.
16420         (ignore_value): New macro, to replace the old function.
16421         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16422         * modules/ignore-value (Depends-on): Add stdint.
16423
16424 2011-01-04  Eric Blake  <eblake@redhat.com>
16425
16426         doc: regenerate INSTALL
16427         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16428         @firstparagraphindent support, now that autoconf dropped it.
16429         (INSTALL_PRELUDE): Reinstate old macro.
16430         * doc/install.texi: Resync from autoconf.
16431         * doc/INSTALL: Reflect recent autoconf update.
16432         * doc/INSTALL.ISO: Likewise.
16433         * doc/INSTALL.UTF-8: Likewise.
16434         Reported by Karl Berry.
16435
16436 2011-01-04  Bruce Korb  <address@hidden>
16437
16438         git-version-gen: avoid a sub-shell
16439         * build-aux/git-version-gen: Redirect stderr in `...` via
16440         "exec 2>...", rather than via an added sub-shell.
16441
16442 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16443
16444         git-version-gen: use (...) rather than sh -c '...'
16445         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16446         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16447
16448 2011-01-03  Jim Meyering  <meyering@redhat.com>
16449
16450         git-version-gen: convert leading TABs to spaces
16451         * build-aux/git-version-gen: Expand leading TABs.
16452
16453         git-version-gen: handle failed "git rev-list"
16454         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16455         from git and proceeding as if it had succeeded but printed no SHA1
16456         checksums, suppress the diagnostic and handle the failure.
16457         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16458
16459         git-version-gen: include command name in one more diagnostic
16460         * build-aux/git-version-gen: When the required .tarball-version file
16461         was missing or unreadable, you might see the diagnostic from "cat",
16462         but no trace of the name of the invoking script.  Now, you still see
16463         the diagnostic from cat, but also get one from "git-version-gen: ".
16464         Inspired by a patch from Bruce Korb.
16465
16466         update-copyright: adjust test to match changed code
16467         * tests/test-update-copyright.sh: Change test's expected output
16468         to match new actual output.
16469
16470 2011-01-02  Bruno Haible  <bruno@clisp.org>
16471
16472         getlogin_r: Avoid test failure on HP-UX 11.
16473         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16474         ERANGE when the second argument is zero.
16475         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16476         portability problem.
16477
16478 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16479
16480         * build-aux/update-copyright: doc Simon's changes
16481
16482 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16483
16484         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16485         environment variable.
16486
16487 2011-01-02  Bruno Haible  <bruno@clisp.org>
16488
16489         unigbrk: Avoid gcc warnings.
16490         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16491         unused variable.
16492         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16493         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16494         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16495         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16496         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16497         Change type of first argument to 'const char *'.
16498         (main): Remove unused variable.
16499         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16500         type of first argument to 'const char *'.
16501         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16502         Likewise.
16503         (main): Change type of variable 's'.
16504         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16505         to 'int'.
16506
16507 2011-01-02  Bruno Haible  <bruno@clisp.org>
16508
16509         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16510         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16511         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16512         bug.
16513         * lib/pwrite.c: Undo 2010-12-31 patch.
16514         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16515
16516 2011-01-02  Bruno Haible  <bruno@clisp.org>
16517
16518         pread: Fix test whether it works.
16519         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16520
16521 2011-01-02  Bruno Haible  <bruno@clisp.org>
16522
16523         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16524         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16525         ends in "6". Don't require a specific month name. Try also the locale
16526         names found on HP-UX 11 and Solaris 7.
16527
16528 2011-01-02  Bruno Haible  <bruno@clisp.org>
16529
16530         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16531         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16532         C linkage.
16533         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16534
16535 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16536
16537         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16538         for consistency, since the "cluster" term is not used elsewhere.
16539         * lib/unigbrk.in.h: Update name.
16540         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16541         * lib/unigbrk/u16-grapheme-next.c: Update name.
16542         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16543         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16544         * lib/unigbrk/u32-grapheme-next.c: Update name.
16545         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16546         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16547         * lib/unigbrk/u8-grapheme-next.c: Update name.
16548         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16549         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16550         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16551         Suggested by Bruno Haible.
16552
16553 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16554
16555         Remove module 'u8-grapheme-len' as too redundant with
16556         'u8-grapheme-next'.
16557         * modules/unigbrk/u8-grapheme-len: Delete file.
16558         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16559         * lib/unigbrk.in.h: Remove prototype for deleted function.
16560         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16561         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16562
16563         Remove module 'u16-grapheme-len' as too redundant with
16564         'u16-grapheme-next'.
16565         * modules/unigbrk/u16-grapheme-len: Delete file.
16566         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16567         * lib/unigbrk.in.h: Remove prototype for deleted function.
16568         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16569         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16570
16571         Remove module 'u32-grapheme-len' as too redundant with
16572         'u32-grapheme-next'.
16573         * modules/unigbrk/u32-grapheme-len: Delete file.
16574         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16575         * lib/unigbrk.in.h: Remove prototype for deleted function.
16576         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16577         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16578
16579         Suggested by Bruno Haible.
16580
16581 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16582
16583         * unigbrk.in.h: Fix typo: "ben" => "been".
16584         Reported by Bruno Haible.
16585
16586 2011-01-01  Jim Meyering  <meyering@redhat.com>
16587
16588         maint: update almost all copyright ranges to include 2011
16589         Run the new "make update-copyright" rule.
16590
16591 2011-01-01  Jim Meyering  <meyering@redhat.com>
16592
16593         maint: update-copyright: exempt doc/INSTALL*
16594         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16595         since they are generated.  Suggested by Bruno Haible.
16596
16597 2011-01-01  Jim Meyering  <meyering@redhat.com>
16598
16599         maint: refine the update-copyright rule
16600         * Makefile (update-copyright): Also exclude any file that includes
16601         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16602         code that merely generates the comment.
16603
16604 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16605
16606         New module 'u8-grapheme-len'.
16607         * modules/unigbrk/u8-grapheme-len: New file.
16608         * modules/unigbrk/u8-grapheme-len-tests: New file.
16609         * lib/unigbrk.in.h: Add prototype for new function.
16610         * lib/unigbrk/u8-grapheme-len.c: New file.
16611         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16612
16613         New module 'u16-grapheme-len'.
16614         * modules/unigbrk/u16-grapheme-len: New file.
16615         * modules/unigbrk/u16-grapheme-len-tests: New file.
16616         * lib/unigbrk.in.h: Add prototype for new function.
16617         * lib/unigbrk/u16-grapheme-len.c: New file.
16618         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16619
16620         New module 'u32-grapheme-len'.
16621         * modules/unigbrk/u32-grapheme-len: New file.
16622         * modules/unigbrk/u32-grapheme-len-tests: New file.
16623         * lib/unigbrk.in.h: Add prototype for new function.
16624         * lib/unigbrk/u32-grapheme-len.c: New file.
16625         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16626
16627         New module 'u8-grapheme-next'.
16628         * modules/unigbrk/u8-grapheme-next: New file.
16629         * modules/unigbrk/u8-grapheme-next-tests: New file.
16630         * lib/unigbrk.in.h: Add prototype for new function.
16631         * lib/unigbrk/u8-grapheme-next.c: New file.
16632         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16633
16634         New module 'u16-grapheme-next'.
16635         * modules/unigbrk/u16-grapheme-next: New file.
16636         * modules/unigbrk/u16-grapheme-next-tests: New file.
16637         * lib/unigbrk.in.h: Add prototype for new function.
16638         * lib/unigbrk/u16-grapheme-next.c: New file.
16639         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16640
16641         New module 'u32-grapheme-next'.
16642         * modules/unigbrk/u32-grapheme-next: New file.
16643         * modules/unigbrk/u32-grapheme-next-tests: New file.
16644         * lib/unigbrk.in.h: Add prototype for new function.
16645         * lib/unigbrk/u32-grapheme-next.c: New file.
16646         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16647
16648         New module 'u8-grapheme-prev'.
16649         * modules/unigbrk/u8-grapheme-prev: New file.
16650         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16651         * lib/unigbrk.in.h: Add prototype for new function.
16652         * lib/unigbrk/u8-grapheme-prev.c: New file.
16653         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16654
16655         New module 'u16-grapheme-prev'.
16656         * modules/unigbrk/u16-grapheme-prev: New file.
16657         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16658         * lib/unigbrk.in.h: Add prototype for new function.
16659         * lib/unigbrk/u16-grapheme-prev.c: New file.
16660         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16661
16662         New module 'u32-grapheme-prev'.
16663         * modules/unigbrk/u32-grapheme-prev: New file.
16664         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16665         * lib/unigbrk.in.h: Add prototype for new function.
16666         * lib/unigbrk/u32-grapheme-prev.c: New file.
16667         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16668
16669         New module 'u8-grapheme-breaks'.
16670         * modules/unigbrk/u8-grapheme-breaks: New file.
16671         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16672         * lib/unigbrk.in.h: Add prototype for new function.
16673         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16674         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16675
16676         New module 'u16-grapheme-breaks'.
16677         * modules/unigbrk/u16-grapheme-breaks: New file.
16678         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16679         * lib/unigbrk.in.h: Add prototype for new function.
16680         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16681         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16682
16683         New module 'u32-grapheme-breaks'.
16684         * modules/unigbrk/u32-grapheme-breaks: New file.
16685         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16686         * lib/unigbrk.in.h: Add prototype for new function.
16687         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16688         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16689
16690         New module 'ulc-grapheme-breaks'.
16691         * modules/unigbrk/ulc-grapheme-breaks: New file.
16692         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16693         * m4/locale-ar.m4: New file.
16694         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16695         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16696         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16697
16698 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16699
16700         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16701         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16702         modified how this file was generated before I initially submitted
16703         the module, but failed to regenerate it.  This meant that several
16704         of the level2 entries were wrong.
16705         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16706         Remove the division-by-2 that is folded into the table now that
16707         gbrkprop.h has been regenerated properly.  Now -1 entries are
16708         handled correctly.
16709
16710         New module 'unigbrk/uc-gbrk-prop-tests'.
16711         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16712         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16713         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16714         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16715
16716 2011-01-01  Bruno Haible  <bruno@clisp.org>
16717
16718         Avoid use of hexadecimal escapes.
16719         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16720         instead of hexadecimal escapes.
16721
16722 2011-01-01  Jim Meyering  <meyering@redhat.com>
16723
16724         maint: new rule to update copyright year ranges
16725         * Makefile (update-copyright): New rule.
16726
16727         maint: indent with TABs in Makefile
16728         * Makefile: Expand leading sequences of spaces to TABs
16729
16730         version-etc: update the copyright year it reports
16731         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16732
16733 2010-12-31  Bruno Haible  <bruno@clisp.org>
16734
16735         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16736         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16737         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16738         zero.
16739
16740 2010-12-31  Bruno Haible  <bruno@clisp.org>
16741
16742         pwrite: Work around HP-UX 11.11 bug.
16743         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16744         works and set REPLACE_PWRITE if not.
16745         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16746         function.
16747         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16748
16749 2010-12-31  Bruno Haible  <bruno@clisp.org>
16750
16751         pread: Work around HP-UX 11 bugs.
16752         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16753         and set REPLACE_PREAD if not.
16754         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16755
16756 2010-12-31  Eric Blake  <eblake@redhat.com>
16757
16758         nl_langinfo: fix YESEXPR on Irix 6.5
16759         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16760         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16761         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16762         it.
16763
16764 2010-12-31  Bruno Haible  <bruno@clisp.org>
16765
16766         iconv: Document HP-UX 11 bug.
16767         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16768
16769 2010-12-31  Bruno Haible  <bruno@clisp.org>
16770
16771         ldexpl: Fix link error on HP-UX 11.
16772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16773         LDEXPL_LIBM, using $ISNANL_LIBM.
16774
16775 2010-12-31  Eric Blake  <eblake@redhat.com>
16776
16777         ftello: avoid compilation failure with SunStudio c89
16778         * lib/ftello.c (ftello): Use lseek, not llseek.
16779
16780         tests: avoid failing coreutils tests on cygwin
16781         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16782         (create_exe_shims_): Return 0 when skipping.
16783
16784 2010-12-31  Bruno Haible  <bruno@clisp.org>
16785
16786         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16787         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16788
16789 2010-12-31  Bruno Haible  <bruno@clisp.org>
16790
16791         waitpid: Fix link error in C++ mode.
16792         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16793
16794 2010-12-31  Bruno Haible  <bruno@clisp.org>
16795
16796         isnan: Use GCC built-ins when possible.
16797         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16798         __builtin_isnan.
16799         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16800         (isnan): Define using GCC built-ins for GCC >= 4.0.
16801
16802 2010-12-31  Bruno Haible  <bruno@clisp.org>
16803
16804         isnand: Fix mistake.
16805         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16806         __builtin_isnand.
16807
16808 2010-12-31  Bruno Haible  <bruno@clisp.org>
16809
16810         open: Avoid C++ error on HP-UX 11.
16811         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16812
16813 2010-12-31  Bruno Haible  <bruno@clisp.org>
16814
16815         time_r: Add missing declarations on HP-UX 11.
16816         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16817         instead of HAVE_LOCALTIME_R.
16818         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16819         HAVE_LOCALTIME_R always.
16820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16821         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16822         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16823         HAVE_LOCALTIME_R.
16824         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16825         * doc/posix-functions/localtime_r.texi: Likewise.
16826
16827 2010-12-29  Eric Blake  <eblake@redhat.com>
16828
16829         mountlist: tweak previous commit
16830         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16831         Reported by Paul Eggert.
16832
16833         mountlist: fix local drive detection on cygwin
16834         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16835         that works for cygwin.
16836
16837 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16838
16839         ftoastr, snprintf: ftoastr + snprintf module
16840         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16841         since the snprintf module now should be good enough here.
16842         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16843         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16844         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16845         GNULIB_SNPRINTF only for the test directory, and the latter
16846         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16847         seems to suffice by itself.
16848
16849 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16850
16851         alloca: one step towards thread-safety
16852         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16853         need for a static variable.  All callers changed.  This does not
16854         make the alloca replacement thread-safe, but it's one step.
16855
16856         tests: minor indenting change
16857         * tests/init.sh: Sync from coreutils housekeeping patch
16858         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16859         to keep lines within 80 columns.
16860
16861 2010-12-28  Jim Meyering  <meyering@redhat.com>
16862
16863         regex: don't infloop on persistent failing calloc
16864         * lib/regexec.c (build_trtable): Return failure indication upon
16865         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16866         In glibc, this was fixed for version 2.13:
16867         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16868
16869 2010-12-28  Bruno Haible  <bruno@clisp.org>
16870             Paul Eggert <eggert@cs.ucla.edu>
16871
16872         linkat: Make implementation robust against system behaviour variations.
16873         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16874         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16875         way, and to -2 if it needs a generic runtime test.
16876         * lib/linkat.c (solaris_optimized_link_immediate,
16877         solaris_optimized_link_follow): New functions.
16878         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16879         (check_same_link): Use it.
16880
16881 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16882
16883         New module 'unigbrk/base'.
16884         * modules/unigbrk/base: New file.
16885         * lib/unigbrk.in.h: New file.
16886
16887         New module 'unigbrk/uc-gbrk-prop'.
16888         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16889         * modules/unigbrk/uc-gbrk-prop: New file.
16890         * lib/unigbrk/gbrkprop.h: New file.
16891         * lib/unigbrk/uc-gbrk-prop.c: New file.
16892
16893         New module 'unigbrk/uc-is-grapheme-break'.
16894         * modules/unigbrk/uc-is-grapheme-break: New file.
16895         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16896         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16897         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16898         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16899         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16900
16901         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16902
16903 2010-12-27  Bruno Haible  <bruno@clisp.org>
16904
16905         linkat test: Avoid failure on Solaris 11 2010-11.
16906         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16907
16908 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16909
16910         utimens: work around glibc rounding bug on more platforms
16911         * lib/utimens.c (fdutimens): Work around rounding bug even if
16912         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16914
16915 2010-12-27  Bruno Haible  <bruno@clisp.org>
16916
16917         select tests: Improve comments.
16918         * tests/test-select.c (do_select): Add comments.
16919
16920 2010-12-27  Bruno Haible  <bruno@clisp.org>
16921
16922         select tests: Safer way of handling timeout.
16923         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16924         at every invocation.
16925
16926 2010-12-27  Bruno Haible  <bruno@clisp.org>
16927
16928         select tests: Use 'bool' where appropriate.
16929         * tests/test-select.c (connect_to_socket): Change argument type to
16930         'bool'.
16931
16932 2010-12-27  Bruno Haible  <bruno@clisp.org>
16933
16934         select tests: Use existing modules.
16935         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16936         (configure.ac): Don't test for unistd.h.
16937         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16938         declared in <unistd.h>.
16939
16940 2010-12-27  Bruno Haible  <bruno@clisp.org>
16941
16942         mbrtowc: Work around a Solaris 7 bug.
16943         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16944         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16945         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16946         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16947         MBRTOWC_NULL_ARG1_BUG.
16948         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16949         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16950         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16951         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16952
16953 2010-12-27  Jim Meyering  <meyering@redhat.com>
16954
16955         read-file.c: tweak syntax
16956         * lib/read-file.c (fread_file): Remove space after "*" in function
16957         definitions.
16958
16959 2010-12-27  Bruno Haible  <bruno@clisp.org>
16960
16961         times test: Avoid gcc warnings on OSF/1.
16962         * tests/test-times.c (main): Cast printf arguments from clock_t to
16963         'long int'.
16964
16965 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16966
16967         utimens: work around glibc rounding bug on older Linux kernels
16968         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16969         on Linux with a glibc whose utimes might not work, then work
16970         around a longstanding glibc bug involving rounding rather than
16971         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16972         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16973
16974 2010-12-26  Bruno Haible  <bruno@clisp.org>
16975
16976         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16977         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16978         _GL_CXXALIAS_SYS.
16979         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16980
16981 2010-12-26  Bruno Haible  <bruno@clisp.org>
16982
16983         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16984         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16985         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16986         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16987         looking for the declaration.
16988         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16989         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16990         problem.
16991         * doc/posix-functions/inet_pton.texi: Likewise.
16992
16993 2010-12-26  Bruno Haible  <bruno@clisp.org>
16994
16995         arpa_inet: Use the common idioms with C++ support.
16996         * lib/arpa_inet.in.h: Include c++defs.h.
16997         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16998         support.
16999         * modules/arpa_inet (Depends-on): Add c++defs.
17000         (Makefile.am): Substitute the contents of c++defs.h.
17001         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17002         * modules/arpa_inet-c++-tests: New file.
17003         * tests/test-arpa_inet-c++.cc: New file.
17004
17005 2010-12-25  Bruno Haible  <bruno@clisp.org>
17006
17007         Fix more C++ link errors on Solaris 8.
17008         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17009         $(LIB_EACCESS).
17010         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17011         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17012         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17013         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17014         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17015
17016 2010-12-25  Bruno Haible  <bruno@clisp.org>
17017
17018         printf-posix: Fix link error when a non-GCC compiler is used.
17019         * lib/stdio.in.h (printf): When not using GCC, override printf
17020         correctly.
17021         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17022
17023 2010-12-25  Bruno Haible  <bruno@clisp.org>
17024
17025         strerror_r-posix: Update doc.
17026         * doc/posix-functions/strerror_r.texi: Update doc about the return
17027         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17028
17029 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17030
17031         utimens: simplify the logic of the previous change
17032         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17033         This should not affect whether the test succeeds or fails.
17034
17035         utimens: configure better on hosts with NFS clock skew
17036         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17037         uses the clock of the local host.  It might use the clock of the
17038         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17040
17041 2010-12-25  Bruno Haible  <bruno@clisp.org>
17042
17043         ptsname test: Avoid failure on Solaris.
17044         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17045         open a pseudo-terminal; don't use BSD-style ptys.
17046         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17047
17048 2010-12-25  Bruno Haible  <bruno@clisp.org>
17049
17050         ptsname: Avoid ERANGE failure on some systems.
17051         * lib/ptsname.c (buffer): Increase size.
17052
17053 2010-12-25  Bruno Haible  <bruno@clisp.org>
17054
17055         rename, renameat: Avoid test failures at NFS mounted locations.
17056         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17057         so that subsequent mkdir calls succeed.
17058
17059 2010-12-25  Bruno Haible  <bruno@clisp.org>
17060
17061         iswblank: Fix C++ link error on Solaris 8.
17062         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17063         _GL_FUNCDECL_SYS.
17064
17065 2010-12-25  Bruno Haible  <bruno@clisp.org>
17066
17067         unistd: Fix C++ link error on Solaris 8.
17068         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17069
17070 2010-12-25  Bruno Haible  <bruno@clisp.org>
17071
17072         readlink doc: Mention an old glibc bug.
17073         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17074
17075 2010-12-25  Bruno Haible  <bruno@clisp.org>
17076
17077         fcntl-h: Fix for use of C++ on glibc systems.
17078         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17079         also on glibc systems in C++ mode.
17080         Reported by Gary V. Vaughan <gary@gnu.org>.
17081
17082 2010-12-25  Bruno Haible  <bruno@clisp.org>
17083
17084         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17085         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17086
17087 2010-12-25  Bruno Haible  <bruno@clisp.org>
17088
17089         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17090         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17091         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17092         test whether truncl works according to ISO C 99 with IEC 60559.
17093         * m4/truncl-ieee.m4: New file.
17094         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17095         m4/signbit.m4.
17096         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17097
17098 2010-12-25  Bruno Haible  <bruno@clisp.org>
17099
17100         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17101         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17102         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17103         test whether ceill works according to ISO C 99 with IEC 60559.
17104         * m4/ceill-ieee.m4: New file.
17105         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17106         m4/signbit.m4.
17107         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17108
17109 2010-12-25  Bruno Haible  <bruno@clisp.org>
17110
17111         Ensure all prerequisites of <wchar.h> are included.
17112         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17113         before <wchar.h>.
17114         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17115         gl_MBRLEN_NUL_RETVAL): Likewise.
17116         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17117         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17118         AC_FUNC_MBRTOWC): Likewise.
17119         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17120         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17122         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17123         Likewise.
17124         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17125         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17126         (gl_WCHAR_H): Improve comments.
17127         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17128
17129 2010-12-25  Bruno Haible  <bruno@clisp.org>
17130
17131         strtok_r: Fix C syntax error in autoconf macro.
17132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17133         characters in test program.
17134
17135 2010-12-24  Bruno Haible  <bruno@clisp.org>
17136
17137         ceil, trunc, round: Fix gcc warnings.
17138         * lib/ceil.c (MIN): Undefine before redefining.
17139         * lib/trunc.c (MIN): Likewise.
17140         * lib/round.c (MIN): Likewise.
17141         Include <math.h> first.
17142
17143 2010-12-24  Bruno Haible  <bruno@clisp.org>
17144
17145         select tests: Avoid failures on OSF/1 5.1.
17146         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17147         failure of closing the last socket; it may fail with ECONNRESET.
17148
17149 2010-12-24  Eric Blake  <eblake@redhat.com>
17150
17151         stdint: avoid HP-UX 10.20 preprocessor bug
17152         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17153         than #if.
17154         * tests/test-floor2.c (main): Likewise.
17155         Reported by Peter O'Gorman.
17156
17157         pipe: make obsoletion transition easier
17158         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17159         * modules/pipe (Files): Include revived file.
17160         (Include): Drop reference, to mirror getdate's behavior.
17161
17162 2010-12-24  Bruno Haible  <bruno@clisp.org>
17163
17164         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17165         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17166         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17167         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17168
17169 2010-12-24  Bruno Haible  <bruno@clisp.org>
17170
17171         gethostname: Ensure declaration on NonStop Kernel.
17172         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17173         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17174
17175 2010-12-24  Bruno Haible  <bruno@clisp.org>
17176
17177         sys_select: Ensure all necessary types on NonStop Kernel.
17178         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17179         include <sys/time.h>.
17180         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17181         NonStop Kernel.
17182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17183
17184 2010-12-24  Bruno Haible  <bruno@clisp.org>
17185
17186         sys_select: Remove unneeded include.
17187         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17188         have <sys/select.h>.
17189
17190 2010-12-24  Bruno Haible  <bruno@clisp.org>
17191
17192         gethostname: Provide a fallback for HOST_NAME_MAX.
17193         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17194         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17195         instead.
17196         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17197
17198 2010-12-24  Bruno Haible  <bruno@clisp.org>
17199
17200         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17201         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17202         (SA_RESTART): Likewise.
17203         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17204
17205 2010-12-24  Bruno Haible  <bruno@clisp.org>
17206
17207         signal: Define NSIG.
17208         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17209         * tests/test-signal.c (nsig): New variable.
17210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17211
17212 2010-12-24  Bruno Haible  <bruno@clisp.org>
17213
17214         rename, renameat: Avoid test failures on OSF/1 5.1.
17215         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17216         alternative error codes.
17217         * tests/test-renameat.c (main): Likewise.
17218
17219 2010-12-24  Bruno Haible  <bruno@clisp.org>
17220
17221         *printf: Detect large precisions bug on Solaris 10/SPARC.
17222         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17223         by Paul Eggert.
17224         * tests/test-snprintf-posix.h (test_function): Add this test code here
17225         too.
17226         * tests/test-sprintf-posix.h (test_function): Likewise.
17227         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17228         * tests/test-vasprintf-posix.c (test_function): Likewise.
17229         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17230         around by gnulib.
17231         * doc/posix-functions/printf.texi: Likewise.
17232         * doc/posix-functions/snprintf.texi: Likewise.
17233         * doc/posix-functions/sprintf.texi: Likewise.
17234         * doc/posix-functions/vfprintf.texi: Likewise.
17235         * doc/posix-functions/vprintf.texi: Likewise.
17236         * doc/posix-functions/vsnprintf.texi: Likewise.
17237         * doc/posix-functions/vsprintf.texi: Likewise.
17238         * doc/posix-functions/dprintf.texi: Undo last commit.
17239         * doc/posix-functions/vdprintf.texi: Likewise.
17240
17241 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17242
17243         tests: port test-fdutimensat.c to Solaris 8
17244         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17245         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17246         On Solaris 8, it fails with errno == ENOSYS, because there is no
17247         futimens (so it can't use the fd), and there is no lutimens (so it
17248         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17249
17250         vsnprintf: make more consistent with snprintf; doc fixes
17251
17252         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17253         the byte count return problem was promoted from the snprintf-posix
17254         to the snprintf module.
17255         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17256         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17257         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17258         * tests/test-snprintf.c (main): Check the byte count returned.
17259         * tests/test-vsnprintf.c (main): Likewise.
17260
17261 2010-12-23  Eric Blake  <eblake@redhat.com>
17262
17263         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17264         * modules/sigpipe (License): Relax license.
17265
17266 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17267
17268         doc: document Solaris printf bug with large float precisions
17269         * doc/posix-functions/dprintf.texi (dprintf):
17270         * doc/posix-functions/fprintf.texi (fprintf):
17271         * doc/posix-functions/printf.texi (printf):
17272         * doc/posix-functions/snprintf.texi (snprintf):
17273         * doc/posix-functions/sprintf.texi (sprintf):
17274         * doc/posix-functions/vdprintf.texi (vdprintf):
17275         * doc/posix-functions/vfprintf.texi (vfprintf):
17276         * doc/posix-functions/vprintf.texi (vprintf):
17277         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17278         * doc/posix-functions/vsprintf.texi (vsprintf):
17279         Mention that these functions mishandle large floating point
17280         precisions on Solaris 10.  The same bug is also present in Solaris
17281         8, and I assume earlier.  This causes "cd gnulib-tests; make
17282         check" to fail on Solaris 8 (and I assume, later) when building
17283         the latest coreutils, in test-vasprintf-posix's call to
17284         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17285         the wide flavors (e.g., wprintf) so this patch just updates the
17286         documentation for the narrow ones.
17287
17288         test-posixtm.c: add two tests
17289         * tests/test-posixtm.c: Add two tests, to highlight the
17290         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17291         around this bug; this is merely to document it.
17292
17293 2010-12-22  Bruno Haible  <bruno@clisp.org>
17294
17295         getlogin_r: Work around portability problem on OSF/1.
17296         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17297         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17298         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17299         test for a truncated result.
17300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17301         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17302         * modules/getlogin_r (Depends-on): Add memchr.
17303         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17304
17305 2010-12-22  Bruno Haible  <bruno@clisp.org>
17306
17307         ptsname: Avoid test failure on OSF/1 5.1.
17308         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17309         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17310         (same_slave): New function.
17311         (main): Use it to compare ptsname's result with the expected file name.
17312
17313 2010-12-22  Bruno Haible  <bruno@clisp.org>
17314
17315         Port extended stdio modules to HP NonStop Kernel.
17316         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17317         macros.
17318         * lib/fbufmode.c: Update comments.
17319         * lib/fflush.c: Likewise.
17320         * lib/fpurge.c: Likewise.
17321         * lib/freadable.c: Likewise.
17322         * lib/freadahead.c: Likewise.
17323         * lib/freading.c: Likewise.
17324         * lib/freadptr.c: Likewise.
17325         * lib/freadseek.c: Likewise.
17326         * lib/fseeko.c: Likewise.
17327         * lib/fseterr.c: Likewise.
17328         * lib/fwritable.c: Likewise.
17329         * lib/fwriting.c: Likewise.
17330         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17331
17332 2010-12-22  Bruno Haible  <bruno@clisp.org>
17333
17334         ttyname_r: Work around bug on OSF/1 5.1.
17335         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17336         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17337         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17338         present.
17339         * lib/ttyname_r.c (ttyname_r): Update comments.
17340
17341 2010-12-22  Bruno Haible  <bruno@clisp.org>
17342
17343         round: Implement result sign according to IEEE 754.
17344         * lib/round.c (MIN, MINUS_ZERO): New macros.
17345         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17346         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17347         * tests/test-round-ieee.c (main): Likewise.
17348         * tests/test-roundl-ieee.c (main): Likewise.
17349
17350         trunc: Implement result sign according to IEEE 754.
17351         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17352         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17353         * tests/test-trunc2.c: Include minus-zero.h.
17354         (MINUS_ZERO): New macro.
17355         (trunc_reference): Keep in sync with lib/trunc.c.
17356         * tests/test-truncf2.c: Include minus-zero.h.
17357         (MINUS_ZERO): New macro.
17358         (truncf_reference): Keep in sync with lib/trunc.c.
17359         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17360         * tests/test-trunc-ieee.c (main): Likewise.
17361         * tests/test-truncl-ieee.c (main): Likewise.
17362
17363         ceil: Implement result sign according to IEEE 754.
17364         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17365         (FUNC): Return -0.0 for -1 < x < 0.
17366         * tests/test-ceil2.c: Include minus-zero.h.
17367         (MINUS_ZERO): New macro.
17368         (ceil_reference): Keep in sync with lib/ceil.c.
17369         * tests/test-ceilf2.c: Include minus-zero.h.
17370         (MINUS_ZERO): New macro.
17371         (ceilf_reference): Keep in sync with lib/ceil.c.
17372         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17373         * tests/test-ceil-ieee.c (main): Likewise.
17374         * tests/test-ceill-ieee.c (main): Likewise.
17375
17376         floor: Implement result sign according to IEEE 754.
17377         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17378         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17379         * tests/test-floorf2.c (floorf_reference): Likewise.
17380         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17381         * tests/test-floor-ieee.c (main): Likewise.
17382         * tests/test-floorl-ieee.c (main): Likewise.
17383
17384 2010-12-22  Bruno Haible  <bruno@clisp.org>
17385
17386         getaddrinfo: Update doc.
17387         * doc/posix-functions/gai_strerror.texi: Return type is also different
17388         on AIX and HP-UX.
17389
17390 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17391
17392         getaddrinfo, inet_ntop: Update doc for Solaris.
17393         * doc/posix-functions/gai_strerror.texi: Return type is also an
17394         issue on Solaris 9 and earlier.
17395         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17396         on Solaris 10 and earlier.
17397
17398 2010-12-21  Bruno Haible  <bruno@clisp.org>
17399
17400         New module 'roundl-ieee'.
17401         * modules/roundl-ieee: New file.
17402         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17403         test whether roundl works according to ISO C 99 with IEC 60559.
17404         * m4/roundl-ieee.m4: New file.
17405         * modules/roundl-ieee-tests: New file.
17406         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17407         * tests/test-roundl.c (main): Remove signbit tests.
17408         * modules/roundl-tests (Depends-on): Remove signbit.
17409         * doc/posix-functions/roundl.texi: Mention the new module.
17410
17411 2010-12-21  Bruno Haible  <bruno@clisp.org>
17412
17413         New module 'truncl-ieee'.
17414         * modules/truncl-ieee: New file.
17415         * modules/truncl-ieee-tests: New file.
17416         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17417         * tests/test-truncl.c (main): Remove signbit tests.
17418         * modules/truncl-tests (Depends-on): Remove signbit.
17419         * doc/posix-functions/truncl.texi: Mention the new module.
17420
17421 2010-12-21  Bruno Haible  <bruno@clisp.org>
17422
17423         New module 'ceill-ieee'.
17424         * modules/ceill-ieee: New file.
17425         * modules/ceill-ieee-tests: New file.
17426         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17427         * tests/test-ceill.c (main): Remove signbit tests.
17428         * modules/ceill-tests (Depends-on): Remove signbit.
17429         * doc/posix-functions/ceill.texi: Mention the new module.
17430
17431 2010-12-21  Bruno Haible  <bruno@clisp.org>
17432
17433         New module 'floorl-ieee'.
17434         * modules/floorl-ieee: New file.
17435         * modules/floorl-ieee-tests: New file.
17436         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17437         * tests/test-floorl.c (main): Remove signbit tests.
17438         * modules/floorl-tests (Depends-on): Remove signbit.
17439         * doc/posix-functions/floorl.texi: Mention the new module.
17440
17441 2010-12-21  Bruno Haible  <bruno@clisp.org>
17442
17443         New module 'round-ieee'.
17444         * modules/round-ieee: New file.
17445         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17446         whether round works according to ISO C 99 with IEC 60559.
17447         * m4/round-ieee.m4: New file.
17448         * modules/round-ieee-tests: New file.
17449         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17450         * tests/test-round1.c (main): Remove signbit tests.
17451         * modules/round-tests (Depends-on): Remove 'signbit'.
17452         * doc/posix-functions/round.texi: Mention the new module.
17453
17454 2010-12-21  Bruno Haible  <bruno@clisp.org>
17455
17456         New module 'trunc-ieee'.
17457         * modules/trunc-ieee: New file.
17458         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17459         whether trunc works according to ISO C 99 with IEC 60559.
17460         * m4/trunc-ieee.m4: New file.
17461         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17463         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17464         * modules/trunc-ieee-tests: New file.
17465         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17466         * tests/test-trunc1.c (main): Remove signbit tests.
17467         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17468         * doc/posix-functions/trunc.texi: Mention the new module.
17469
17470 2010-12-21  Bruno Haible  <bruno@clisp.org>
17471
17472         New module 'ceil-ieee'.
17473         * modules/ceil-ieee: New file.
17474         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17475         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17476         ISO C 99 with IEC 60559.
17477         * m4/ceil-ieee.m4: New file.
17478         * modules/ceil (Files): Add lib/ceil.c.
17479         (Depends-on): Add 'float'.
17480         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17481         * lib/math.in.h (ceil): New declaration.
17482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17483         REPLACE_CEIL.
17484         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17485         * modules/ceil-ieee-tests: New file.
17486         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17487         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17488         * doc/posix-functions/ceil.texi: Mention the new module.
17489
17490 2010-12-21  Bruno Haible  <bruno@clisp.org>
17491
17492         New module 'floor-ieee'.
17493         * modules/floor-ieee: New file.
17494         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17495         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17496         ISO C 99 with IEC 60559.
17497         * m4/floor-ieee.m4: New file.
17498         * modules/floor (Files): Add lib/floor.c.
17499         (Depends-on): Add 'float'.
17500         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17501         * lib/math.in.h (floor): New declaration.
17502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17503         REPLACE_FLOOR.
17504         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17505         * modules/floor-ieee-tests: New file.
17506         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17507         * tests/test-math-c++.cc: Check the signature of 'floor'.
17508         * doc/posix-functions/floor.texi: Mention the new module.
17509
17510 2010-12-21  Bruno Haible  <bruno@clisp.org>
17511
17512         New module 'roundf-ieee'.
17513         * modules/roundf-ieee: New file.
17514         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17515         test whether roundf works according to ISO C 99 with IEC 60559.
17516         * m4/roundf-ieee.m4: New file.
17517         * modules/roundf-ieee-tests: New file.
17518         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17519         * tests/test-roundf1.c (main): Remove signbit tests.
17520         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17521         * doc/posix-functions/roundf.texi: Mention the new module.
17522
17523 2010-12-21  Bruno Haible  <bruno@clisp.org>
17524
17525         New module 'truncf-ieee'.
17526         * modules/truncf-ieee: New file.
17527         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17528         test whether truncf works according to ISO C 99 with IEC 60559.
17529         * m4/truncf-ieee.m4: New file.
17530         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17532         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17533         * modules/truncf-ieee-tests: New file.
17534         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17535         * tests/test-truncf1.c (main): Remove signbit tests.
17536         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17537         * doc/posix-functions/truncf.texi: Mention the new module.
17538
17539 2010-12-21  Bruno Haible  <bruno@clisp.org>
17540
17541         New module 'ceilf-ieee'.
17542         * modules/ceilf-ieee: New file.
17543         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17544         test whether ceilf works according to ISO C 99 with IEC 60559.
17545         * m4/ceilf-ieee.m4: New file.
17546         * modules/ceilf-ieee-tests: New file.
17547         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17548         * tests/test-ceilf1.c (main): Remove signbit tests.
17549         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17550         * doc/posix-functions/ceilf.texi: Mention the new module.
17551
17552 2010-12-21  Bruno Haible  <bruno@clisp.org>
17553
17554         New module 'floorf-ieee'.
17555         * modules/floorf-ieee: New file.
17556         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17557         test whether floorf works according to ISO C 99 with IEC 60559.
17558         * m4/floorf-ieee.m4: New file.
17559         * modules/floorf-ieee-tests: New file.
17560         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17561         * tests/test-floorf1.c (main): Remove signbit tests.
17562         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17563         * doc/posix-functions/floorf.texi: Mention the new module.
17564
17565 2010-12-21  Bruno Haible  <bruno@clisp.org>
17566
17567         Support for minus zero in autoconf macros.
17568         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17569         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17570         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17571         * tests/minus-zero.h: Update comments.
17572
17573 2010-12-21  Bruno Haible  <bruno@clisp.org>
17574
17575         Tests for module 'ceil'.
17576         * modules/ceil-tests: New file.
17577         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17578         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17579
17580 2010-12-21  Bruno Haible  <bruno@clisp.org>
17581
17582         Tests for module 'floor'.
17583         * modules/floor-tests: New file.
17584         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17585         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17586
17587 2010-12-21  Bruno Haible  <bruno@clisp.org>
17588
17589         math: Fix indentation.
17590         * lib/math.in.h (floorf): Fix indentation.
17591
17592 2010-12-21  Bruno Haible  <bruno@clisp.org>
17593
17594         Fix cross-compilation guesses on Solaris.
17595         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17596         not match "solaris2.10".
17597         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17598         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17599         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17600
17601 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17602
17603         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17604         This fixes a problem observed with the latest coreutils snapshot
17605         that caused a test to fail on Solaris 8.  src/csplit.c's call
17606         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17607         earlier, instead of returning the number of bytes that would have
17608         been generated; this causes csplit to incorrectly report memory
17609         exhaustion.
17610         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17611         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17612         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17613         comments to match.
17614         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17615         Fix typo in matching older versions of Solaris: "solaris2.10"
17616         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17617         only for guessing while cross-compiling.
17618         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17619
17620 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17621
17622         ftoastr: fix comment again
17623         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17624         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17625         Also, simplify example a bit by using flags = 0.
17626
17627 2010-12-20  Bruno Haible  <bruno@clisp.org>
17628
17629         round*, trunc*: Update documentation regarding glibc.
17630         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17631         * doc/posix-functions/round.texi: Likewise.
17632         * doc/posix-functions/roundl.texi: Likewise.
17633         * doc/posix-functions/truncf.texi: Likewise.
17634         * doc/posix-functions/trunc.texi: Likewise.
17635         * doc/posix-functions/truncl.texi: Likewise.
17636
17637 2010-12-20  Bruno Haible  <bruno@clisp.org>
17638
17639         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17640         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17641         * doc/posix-functions/round.texi: Likewise.
17642         * doc/posix-functions/roundl.texi: Likewise.
17643
17644 2010-12-20  Bruno Haible  <bruno@clisp.org>
17645
17646         ttyname_r: Add missing declaration on HP-UX 11.
17647         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17648         HAVE_TTYNAME_R.
17649         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17650         declared. Set HAVE_TTYNAME_R always.
17651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17652         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17653         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17654         HAVE_TTYNAME_R.
17655         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17656
17657 2010-12-20  Bruno Haible  <bruno@clisp.org>
17658
17659         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17660         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17661         * doc/posix-functions/getlogin_r.texi: Likewise.
17662         * tests/test-getlogin.c: Include <errno.h>.
17663         (main): Avoid test failure on HP-UX 11.11.
17664         * tests/test-getlogin_r.c (main): Likewise.
17665
17666 2010-12-20  Bruno Haible  <bruno@clisp.org>
17667
17668         getlogin_r: Add missing declaration on HP-UX 11.
17669         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17670         declared also when it exists as a function.
17671         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17672
17673 2010-12-20  Bruno Haible  <bruno@clisp.org>
17674
17675         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17676         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17677         through wcrtomb.
17678
17679 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17680
17681         ftoastr: fix comment
17682         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17684
17685 2010-12-19  Bruno Haible  <bruno@clisp.org>
17686
17687         isnan: Ensure it is a macro.
17688         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17689         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17690         Solaris.
17691
17692 2010-12-19  Bruno Haible  <bruno@clisp.org>
17693
17694         ldexpl test: Fix link error on OSF/1 5.1.
17695         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17696
17697 2010-12-19  Bruno Haible  <bruno@clisp.org>
17698
17699         wctype: Make it work in C++ mode on OSF/1 5.1.
17700         * lib/wctype.in.h (iswblank): Declare but not define here.
17701         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17702         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17703         * modules/wctype (Files): Add lib/iswblank.c.
17704
17705 2010-12-19  Bruno Haible  <bruno@clisp.org>
17706
17707         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17708         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17709         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17710
17711 2010-12-19  Bruno Haible  <bruno@clisp.org>
17712
17713         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17714         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17715         _POSIX_PII_SOCKET.
17716         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17717         * doc/posix-functions/recvfrom.texi: Likewise.
17718         * doc/posix-functions/send.texi: Likewise.
17719         * doc/posix-functions/sendto.texi: Likewise.
17720
17721 2010-12-19  Bruno Haible  <bruno@clisp.org>
17722
17723         tcgetsid: Add missing declaration on OSF/1 5.1.
17724         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17725         HAVE_TCGETSID.
17726         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17727         Don't set HAVE_TCGETSID.
17728         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17729         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17730         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17731         HAVE_TCGETSID.
17732         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17733
17734 2010-12-19  Bruno Haible  <bruno@clisp.org>
17735
17736         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17737         * lib/stdio.in.h: During the include_next statement, let recursive
17738         includes of this file include only the system header file.
17739
17740 2010-12-19  Bruno Haible  <bruno@clisp.org>
17741
17742         iconv_open: Fix regression from 2010-12-04.
17743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17744         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17745
17746 2010-12-19  Bruno Haible  <bruno@clisp.org>
17747
17748         stdbool test: Avoid a gcc warning.
17749         * tests/test-stdbool.c (main): Fail if e1 is false.
17750         Reported by Jim Meyering.
17751
17752 2010-12-19  Jim Meyering  <meyering@redhat.com>
17753
17754         setenv: restore to working order
17755         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17756         mistakenly removed.
17757         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17758         HAVE_SETENV.
17759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17760         HAVE_SETENV.
17761
17762 2010-12-19  Bruno Haible  <bruno@clisp.org>
17763
17764         Document some different function declarations on OSF/1 5.1.
17765         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17766         * doc/posix-functions/inet_ntop.texi: Likewise.
17767         * doc/posix-functions/gethostname.texi: Likewise.
17768         * lib/unistd.in.h (gethostname): Update comment.
17769
17770 2010-12-19  Bruno Haible  <bruno@clisp.org>
17771
17772         doc: Mention vasprintf-posix module.
17773         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17774         the 'vasprintf-posix' module.
17775         * doc/glibc-functions/vasprintf.texi: Likewise.
17776
17777 2010-12-19  Bruno Haible  <bruno@clisp.org>
17778
17779         unsetenv: Add missing declaration on OSF/1 5.1.
17780         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17781         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17782         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17784         not HAVE_UNSETENV.
17785         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17786         HAVE_UNSETENV.
17787         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17788
17789 2010-12-19  Bruno Haible  <bruno@clisp.org>
17790
17791         setenv: Add missing declaration on OSF/1 5.1.
17792         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17793         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17794         declared. Don't set HAVE_SETENV.
17795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17796         not HAVE_SETENV.
17797         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17798         HAVE_SETENV.
17799         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17800
17801 2010-12-19  Bruno Haible  <bruno@clisp.org>
17802
17803         nl_langinfo tests: Avoid gcc warning.
17804         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17805
17806 2010-12-19  Bruno Haible  <bruno@clisp.org>
17807
17808         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17809         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17810         _GL_CXXALIAS_SYS.
17811
17812 2010-12-19  Bruno Haible  <bruno@clisp.org>
17813
17814         stdbool: Relax test.
17815         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17816         address to 'bool' work in static initializer, for compilers other than
17817         GCC.
17818
17819 2010-12-19  Bruno Haible  <bruno@clisp.org>
17820
17821         ftello: Add missing declaration on OSF/1 5.1.
17822         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17823         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17825         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17826         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17827
17828 2010-12-19  Bruno Haible  <bruno@clisp.org>
17829
17830         fseeko: Add missing declaration on OSF/1 5.1.
17831         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17832         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17834         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17835         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17836
17837 2010-12-19  Bruno Haible  <bruno@clisp.org>
17838
17839         fchdir: Add missing declaration on OSF/1 5.1.
17840         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17843         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17844         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17845
17846 2010-12-19  Bruno Haible  <bruno@clisp.org>
17847
17848         relocatable-prog-wrapper: Separate from relocatable-prog.
17849         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17850         uninstall-relocwrapper rule here.
17851         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17852         Reported by Ian Beckwith <ianb@erislabs.net>.
17853
17854 2010-12-19  Bruno Haible  <bruno@clisp.org>
17855
17856         unistr/u8-mbsnlen: Add missing dependency.
17857         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17858         Reported by Ian Beckwith <ianb@erislabs.net>.
17859
17860 2010-12-19  Bruno Haible  <bruno@clisp.org>
17861
17862         iconv: Make it possible again to use this module without 'iconv-h'.
17863         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17864         if it is not defined.
17865         Reported by Ian Beckwith <ianb@erislabs.net>.
17866
17867 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17868
17869         acl: port to Solaris 8 when copying from tmpfs to ufs
17870         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17871         error number.  Problem observed on Solaris 8 with latest
17872         coreutils, with "mv A B", where A is on a tmpfs file system and B
17873         is on a ufs file system.  This caused coreutils' mv/part-symlink
17874         test to fail.
17875
17876         tests: set fail=0 at start
17877         * tests/init.sh (setup_): Move fail=0 initialization here ...
17878         (mktempd_): ... from here, so that tests can rely on fail being
17879         set to 0 initially.  This fixes a problem in coreutils; see:
17880         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17881
17882 2010-12-18  Bruno Haible  <bruno@clisp.org>
17883
17884         memmem-simple: Stylistic changes.
17885         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17886         Fix preprocessor directive indentation.
17887
17888 2010-12-15  Pádraig Brady <P@draigBrady.com>
17889
17890         memmem, memmem-simple: reorganize and expand empty needle check
17891         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17892         functional checks to memmem-simple so that one has a fully functional
17893         memmem by using just this module.
17894         Restrict the performance only check to the memmem module.
17895         Also expand the empty needle check to ensure the correct
17896         pointer is returned, not just a non NULL pointer.
17897         * doc/glibc-functions/memmem.texi: Rearrange the portability
17898         documentation to correlate with the rearranged checks.
17899         Clarify exactly how the memmem and memmem-simple modules
17900         relate to each other.
17901
17902 2010-12-15  Pádraig Brady <P@draigBrady.com>
17903             Bruno Haible  <bruno@clisp.org>
17904
17905         Improve cross-compilation guesses for uClibc.
17906         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17907         that uClibc does not have the glibc bug.
17908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17909         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17910
17911 2010-12-14  Eric Blake  <eblake@redhat.com>
17912
17913         configmake: provide fallbacks for oldest supported autotools
17914         * m4/configmake.m4: New file.
17915         * modules/configmake (Files): Ship it.
17916         (configure.ac): Use it to guarantee fallbacks.
17917
17918 2010-12-13  Pádraig Brady <P@draigBrady.com>
17919
17920         read-file: Improve handling of large files
17921         * lib/read-file.c (fread_file): Minimize realloc()s
17922         for regular files, and better manage sizes around SIZE_MAX.
17923
17924 2010-12-13  Eric Blake  <eblake@redhat.com>
17925
17926         cloexec, fcntl: relax license
17927         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17928         consent from all contributors.
17929         * modules/fcntl (License): Likewise.
17930
17931 2010-12-10  Bruno Haible  <bruno@clisp.org>
17932
17933         Tests for module 'pipe-posix'.
17934         * modules/pipe-posix-tests: New file.
17935         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17936
17937 2010-12-10  Bruno Haible  <bruno@clisp.org>
17938
17939         pipe-posix: Make it work in C++ mode.
17940         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17941         (pipe): Use common idiom, not a macro definition.
17942         * lib/pipe.c: New file.
17943         * m4/pipe.m4: New file.
17944         * modules/pipe-posix (Description): Enhance.
17945         (Files): Add lib/pipe.c, m4/pipe.m4.
17946         (configure.ac): Invoke gl_FUNC_PIPE.
17947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17948         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17949         * tests/test-unistd-c++.cc: Check the signature of pipe.
17950
17951 2010-12-10  Bruno Haible  <bruno@clisp.org>
17952
17953         Rename module 'pipe' to 'spawn-pipe'.
17954         * modules/spawn-pipe: New file, renamed from modules/pipe.
17955         (Files, configure.ac, Makefile.am): Update.
17956         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17957         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17958         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17959         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17960         "spawn-pipe.h" instead of "pipe.h".
17961         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17962         to gl_SPAWN_PIPE.
17963         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17964         (Files, Makefile.am): Update.
17965         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17966         Update.
17967         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17968         Include "spawn-pipe.h" instead of "pipe.h".
17969         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17970         * lib/javacomp.c: Likewise.
17971         * lib/javaversion.c: Likewise.
17972         * lib/pipe-filter-gi.c: Likewise.
17973         * lib/pipe-filter-ii.c: Likewise.
17974         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17975         * modules/javacomp (Depends-on): Likewise.
17976         * modules/javaversion (Depends-on): Likewise.
17977         * modules/pipe-filter-gi (Depends-on): Likewise.
17978         * modules/pipe-filter-ii (Depends-on): Likewise.
17979         * MODULES.html.sh (Executing programs): Update.
17980         * NEWS: Mention the change.
17981
17982 2010-12-10  Eric Blake  <eblake@redhat.com>
17983
17984         pipe-posix: new module
17985         * modules/pipe-posix: New file.
17986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17987         (gl_UNISTD_H): Check for declaration.
17988         * modules/unistd (Makefile.am): Substitute it.
17989         * lib/unistd.in.h (pipe): Provide it for mingw.
17990         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17991         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17992
17993 2010-12-07  Bruno Haible  <bruno@clisp.org>
17994
17995         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17996         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17997         u8_strcmp_gnu.
17998         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17999
18000 2010-12-06  Bruno Haible  <bruno@clisp.org>
18001
18002         Update internal documentation.
18003         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18004
18005 2010-12-04  Bruno Haible  <bruno@clisp.org>
18006
18007         Put more information about failed tests into the test return codes.
18008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18009         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18010         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18012         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18013         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18014         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18015         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18016         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18018         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18019         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18020         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18021         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18022         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18023         returns a bit mask.
18024         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18025         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18026         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18027         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18028         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18032         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18034         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18035         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18036         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18037         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18038         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18039         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18040         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18041         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18042         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18043         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18044         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18045         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18047         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18048         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18049         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18050         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18051         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18052         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18053         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18054         gl_PRINTF_PRECISION): Likewise.
18055         * m4/regex.m4 (gl_REGEX): Likewise.
18056         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18057         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18058         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18059         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18060         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18063         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18064         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18065         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18066         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18067         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18068         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18069         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18070         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18071         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18072         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18076         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18077         enumerated value.
18078         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18079
18080 2010-12-04  Bruno Haible  <bruno@clisp.org>
18081
18082         Update for Solaris 11 2010-11.
18083         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18084         Express, released in November 2010.
18085
18086 2010-12-04  Bruno Haible  <bruno@clisp.org>
18087
18088         nproc: Relax license.
18089         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18090         and Paul Eggert.
18091         Requested by Ludovic Courtès <ludo@gnu.org>.
18092
18093 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18094
18095         utimecmp: fine-grained src to nearby coarse-grained dest
18096
18097         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18098         and the source is on a file system with higher-resolution time
18099         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18100         not work, and the time stamps are close together, the algorithm to
18101         determine the exact resolution from the read-back mtime was buggy:
18102         it had a "!=" where it should have had an "==".  This bug has been
18103         in the code ever since it was introduced to gnulib.
18104         Problem reported by Dan Jacobson in
18105         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18106
18107 2010-11-30  Bruno Haible  <bruno@clisp.org>
18108
18109         strerror_r-posix: Fix autoconf test.
18110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18111
18112 2010-11-28  Bruno Haible  <bruno@clisp.org>
18113             Paul Eggert  <eggert@cs.ucla.edu>
18114
18115         Tests for module 'getdomainname'.
18116         * modules/getdomainname-tests: New file.
18117         * tests/test-getdomainname.c: New file, based on
18118         tests/test-gethostname.c.
18119
18120 2010-11-28  Bruno Haible  <bruno@clisp.org>
18121             Paul Eggert  <eggert@cs.ucla.edu>
18122
18123         getdomainname: Use the system function when possible.
18124         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18125         (getdomainname): Replace if needed. Provide the declaration if it is
18126         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18127         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18128         (getdomainname): When the system has getdomainname, call the system
18129         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18130         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18131         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18132         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18133         the function if its second argument is of type 'int' or if it is found
18134         in libnsl.
18135         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18136         <sys/systeminfo.h> and sysinfo().
18137         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18139         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18140         HAVE_GETDOMAINNAME.
18141         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18142         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18143         * doc/glibc-functions/getdomainname.texi: Document the problems with
18144         the getdomainname declaration.
18145
18146 2010-11-28  Bruno Haible  <bruno@clisp.org>
18147
18148         sys_socket: Ensure ss_family field on AIX.
18149         * lib/sys_socket.in.h (ss_family): New macro definition.
18150         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18151         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18152         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18153         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18154         * modules/sys_socket (Makefile.am): Substitute
18155         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18156         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18157
18158 2010-11-27  Bruno Haible  <bruno@clisp.org>
18159
18160         readline: Improve configure output.
18161         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18162         "checking for readline..." result understandable.
18163
18164 2010-11-27  Bruno Haible  <bruno@clisp.org>
18165
18166         *printf-posix: Detect a bug on Solaris 10/x86.
18167         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18168         for floating-point output.
18169         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18170         directive.
18171         * tests/test-snprintf-posix.h (test_function): Likewise.
18172         * tests/test-sprintf-posix.h (test_function): Likewise.
18173         * tests/test-vasprintf-posix.c (test_function): Likewise.
18174         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18175         * doc/posix-functions/printf.texi: Likewise.
18176         * doc/posix-functions/snprintf.texi: Likewise.
18177         * doc/posix-functions/sprintf.texi: Likewise.
18178         * doc/posix-functions/vfprintf.texi: Likewise.
18179         * doc/posix-functions/vprintf.texi: Likewise.
18180         * doc/posix-functions/vsnprintf.texi: Likewise.
18181         * doc/posix-functions/vsprintf.texi: Likewise.
18182         * doc/glibc-functions/obstack_printf.texi: Likewise.
18183         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18184
18185 2010-11-27  Bruno Haible  <bruno@clisp.org>
18186
18187         Fix link error when module libunistring-optional is in use.
18188         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18189         * modules/striconveha-tests (Makefile.am): Likewise.
18190
18191 2010-11-27  Bruno Haible  <bruno@clisp.org>
18192
18193         regex: Mention link dependencies.
18194         * modules/regex (Link): New section.
18195         * modules/rpmatch (Link): Likewise.
18196         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18197
18198 2010-11-27  Bruno Haible  <bruno@clisp.org>
18199
18200         ftoastr: Fix compilation error on Solaris.
18201         * lib/ftoastr.c: Include <config.h>.
18202
18203 2010-11-27  Bruno Haible  <bruno@clisp.org>
18204
18205         getloadavg: Update documentation.
18206         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18207
18208 2010-11-27  Bruno Haible  <bruno@clisp.org>
18209
18210         sys_socket: Fix test whether the functions are declared.
18211         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18212         not <sys/select.h>.
18213
18214 2010-11-27  Bruno Haible  <bruno@clisp.org>
18215
18216         getpass: Make sure to get system declaration on some platforms.
18217         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18218         gl_USE_SYSTEM_EXTENSIONS.
18219         * modules/getpass (Depends-on): Add extensions.
18220
18221 2010-11-26  Bruno Haible  <bruno@clisp.org>
18222
18223         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18224         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18225         'iconv' module is present.
18226         (ICONV_CONST): New macro.
18227         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18228         ICONV_CONST.
18229         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18230         set ICONV_CONST.
18231         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18232         here.
18233         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18234         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18235         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18236         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18237         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18238         present.
18239
18240 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18241
18242         ftoastr: comment fix
18243         * lib/ftoastr.c: "little" -> "little or no" in comment
18244
18245 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18246
18247         stdint: port to GCC 4.3 + OSX + Octave
18248         On this platform, stdint.h is buggy and defines int64_t to long
18249         long int.  The replacement defined it to long int, causing
18250         problems with C++ style name mangling.  Instead, trust the system
18251         definition if INT64_MAX is defined, and likewise for the unsigned
18252         variant.   Problem reported by Jarno Rajahalme in
18253         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18254         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18255         and don't mess with int64_t and INT64_MAX in this case.
18256         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18257
18258 2010-11-24  Bruno Haible  <bruno@clisp.org>
18259
18260         doc: Corrections regarding MacOS X 10.4 and 10.5.
18261         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18262         MacOS X.
18263         Reported by Simon Josefsson.
18264
18265 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18266
18267         Uninstall ".bin" files installed by relocwrapper.
18268         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18269         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18270         unless it is already there.
18271
18272 2010-11-21  Bruno Haible  <bruno@clisp.org>
18273
18274         Update for NetBSD 5.0.
18275         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18276         NetBSD; the test fails on NetBSD 5.0.
18277         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18278         about NetBSD.
18279
18280 2010-11-21  Bruno Haible  <bruno@clisp.org>
18281
18282         Update for HP-UX 11.23 and HP-UX 11.31.
18283         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18284         HP-UX.
18285
18286 2010-11-21  Bruno Haible  <bruno@clisp.org>
18287
18288         Update for MacOS X 10.5.
18289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18290         MacOS X; the test fails on MacOS X 10.5.8.
18291         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18292         about MacOS X.
18293
18294 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18295
18296         bootstrap: add bootstrap_sync option.
18297         See discussion at
18298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18299         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18300         * build-aux/bootstrap: Accept --bootstrap-sync to update
18301         bootstrap if it is not identical to the local gnulib's
18302         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18303         enable this by default.  Accept --no-bootstrap-sync to disable
18304         it.
18305
18306 2010-11-20  Bruno Haible  <bruno@clisp.org>
18307
18308         Ensure that <features.h> is included before __GLIBC__ is tested.
18309         * lib/printf-parse.h: Include <features.h>.
18310         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18311         Reported by Mike Frysinger <vapier@gentoo.org>.
18312
18313         Ensure that <features.h> is included before __GLIBC__ is tested.
18314         * lib/wchar.in.h: Include <features.h>.
18315         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18316         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18317         Reported by Mike Frysinger <vapier@gentoo.org>.
18318
18319         Ensure that <features.h> is included before __GLIBC__ is tested.
18320         * lib/arpa_inet.in.h: Include <features.h>.
18321         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18322         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18323         Reported by Mike Frysinger <vapier@gentoo.org>.
18324
18325         Ensure that <features.h> is included before __GLIBC__ is tested.
18326         * build-aux/link-warning.h: Include <features.h>.
18327         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18328         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18329         Reported by Mike Frysinger <vapier@gentoo.org>.
18330
18331         Ensure that <features.h> is included before __GLIBC__ is tested.
18332         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18333         Reported by Mike Frysinger <vapier@gentoo.org>.
18334
18335 2010-11-20  Bruno Haible  <bruno@clisp.org>
18336
18337         memmem: Fix autoconf test.
18338         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18339
18340 2010-11-20  Bruno Haible  <bruno@clisp.org>
18341
18342         Port to uClibc.
18343         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18344         * lib/fcntl.in.h: Likewise.
18345         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18346         * lib/mbrtowc.c (mbrtowc): Likewise.
18347         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18348         * lib/strerror_r.c: Likewise.
18349         * lib/unistr/u8-strnlen.c: Likewise.
18350         * lib/vasnprintf.c (decimal_point_char): Likewise.
18351         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18352         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18353         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18354         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18355         * tests/test-sigaction.c (handler, main): Likewise.
18356         * lib/freading.h: Treat uClibc like a non-glibc platform.
18357         * lib/freading.c: Likewise.
18358         * lib/gettext.h: Likewise.
18359         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18360         Likewise.
18361         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18362         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18363         * lib/propername.c (proper_name_utf8): Likewise.
18364         * lib/spawn.in.h: Likewise.
18365         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18366         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18367         mem_cd_iconveh_internal): Likewise.
18368         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18369         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18370         strstr, strcasestr): Likewise.
18371         * lib/unicodeio.c (unicode_to_mb): Likewise.
18372         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18373         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18374         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18375         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18376         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18377         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18378         * lib/unistr/u8-stpncpy.c: Likewise.
18379         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18380         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18381         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18382         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18383         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18384         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18385         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18388         Likewise.
18389         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18390         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18391         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18392         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18393         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18394         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18395         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18396         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18397         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18398         * tests/test-striconveha.c (main): Likewise.
18399         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18400         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18401         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18402         * doc/posix-functions/getline.texi: Likewise.
18403         Reported by Mike Frysinger <vapier@gentoo.org>.
18404
18405 2010-11-20  Bruno Haible  <bruno@clisp.org>
18406
18407         nproc: Fix condition.
18408         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18409         HAVE_PTHREAD_AFFINITY_NP.
18410
18411 2010-11-20  Bruno Haible  <bruno@clisp.org>
18412
18413         Fix a comment.
18414         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18415
18416 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18417
18418         ftoastr: don't assume snprintf
18419         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18420         Implement a subset of snprintf here, by using sprintf safely.
18421         * modules/ftoastr (Depends-on): Remove snprintf.
18422
18423 2010-11-19  Jim Meyering  <meyering@redhat.com>
18424
18425         test-rename.h: fix compilation failure
18426         * tests/test-rename.h (test_rename): Add omitted "}".
18427
18428 2010-11-17  Jim Meyering  <meyering@redhat.com>
18429
18430         maint.mk: add a URL discussing the no-@acronym policy
18431         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18432
18433 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18434
18435         ftoastr: depend on snprintf, improve comments
18436         * lib/ftoastr.c: Also mention Loitsch's draft.
18437         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18438         needed in the current implementation, but it might simplify
18439         speeding up the code later.
18440         * modules/ftoastr: Depend on snprintf; this improves portability.
18441         Suggested by Bruno Haible in the same email.
18442
18443         ftoastr: port to hosts lacking strtof and strtold
18444         Problem reported by Bruno Haible in
18445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18446         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18447         environment and strtold (and presumably strtof) are not available.
18448         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18449         (configure.ac): Require gl_C99_STRTOLD.
18450
18451 2010-11-18  Bruno Haible  <bruno@clisp.org>
18452
18453         c-strtold: Avoid link error on AIX 7.
18454         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18455         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18456         (gl_C_STRTOLD): Test whether strtold_l exists.
18457         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18458
18459 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18460
18461         intprops: new macro INT_BITS_STRLEN_BOUND
18462         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18463         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18464         not exposed.  Also, it uses a slightly tighter bound than before;
18465         though this makes no practical difference, we might as well be as
18466         tight as we easily can.
18467
18468         ftoastr: new module, for lossless conversion of floats to short strings
18469         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18470         * modules/ftoastr: New files.
18471
18472 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18473
18474         bootstrap: port to Solaris sed
18475         * build-aux/bootstrap (get_version): Port to Solaris sed.
18476         See Ralf Wildenhues's note in
18477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18478
18479 2010-11-14  Jim Meyering  <meyering@redhat.com>
18480
18481         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18482         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18483         and move definition closer to sole use.
18484
18485 2010-11-13  Jim Meyering  <meyering@redhat.com>
18486
18487         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18488         Now we require at least autoconf-2.59, which means the work-around
18489         is no longer needed.
18490         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18492         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18493         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18494         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18495
18496 2010-11-13  Bruno Haible  <bruno@clisp.org>
18497
18498         rename, renameat: Avoid test failures at NFS mounted locations.
18499         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18500         functions.
18501         (test_rename): Use assert_nonexistent.
18502         * tests/test-rename.c: Include <dirent.h>.
18503         * tests/test-renameat.c: Likewise.
18504         Reported by Gary V. Vaughan <gary@gnu.org>.
18505
18506         rename, renameat: Document Linux bug with NFS
18507         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18508         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18509         * doc/posix-functions/renameat.texi: Likewise.
18510         Suggested by Eric Blake.
18511
18512 2010-11-13  Bruno Haible  <bruno@clisp.org>
18513
18514         rename test: Add comments.
18515         * tests/test-rename.h (test_rename): Add structure and comments.
18516
18517 2010-11-13  Eric Blake  <eblake@redhat.com>
18518
18519         maintainer-makefile: cover a few more files
18520         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18521         scripts generated within C files, for libvirt.
18522
18523 2010-11-13  Bruno Haible  <bruno@clisp.org>
18524
18525         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18526         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18527         character, return the number of bytes that belong together, not always
18528         1.
18529         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18530         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18531         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18532         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18533         number of bytes of an invalid character.
18534         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18535         (main): Invoke it.
18536         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18537         results.
18538         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18539         malformed byte sequences.
18540         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18541         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18542         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18543         Reported by Ben Pfaff and Paolo Bonzini.
18544
18545 2010-11-13  Bruno Haible  <bruno@clisp.org>
18546
18547         openat: Work around glibc bug with fchownat() and empty file names.
18548         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18549         (gl_FUNC_FCHOWNAT): Invoke it.
18550         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18551         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18552         Reported by Gary V. Vaughan <gary@gnu.org>.
18553
18554 2010-11-13  Bruno Haible  <bruno@clisp.org>
18555
18556         openat: Ensure autoconf macro ordering.
18557         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18558         gl_USE_SYSTEM_EXTENSIONS.
18559         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18560
18561 2010-11-13  Bruno Haible  <bruno@clisp.org>
18562
18563         Update comments.
18564         * lib/unistr/u8-check.c: Update file name in comments.
18565         * lib/unistr/u8-mblen.c: Likewise.
18566         * lib/unistr/u8-prev.c: Likewise.
18567         * lib/unistr/u8-strmblen.c: Likewise.
18568         * lib/unistr/u8-strmbtouc.c: Likewise.
18569
18570 2010-11-13  Jim Meyering  <meyering@redhat.com>
18571
18572         tests: avoid test failure on Solaris 10 due to lack of PATH export
18573         * tests/test-update-copyright.sh: Don't forget to export PATH.
18574
18575         init.sh: ensure that IFS is defined, just in case...
18576         * tests/init.sh (setup_): Ensure that IFS is defined,
18577         so that saving and restoring it works as expected.  This
18578         appears to be useful at least for an old version of dash
18579         from a long time ago (RH 6).  See here for details:
18580         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18581
18582         maint.mk: tighten "test a == b" check
18583         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18584         test to files that contain something like #!/bin/sh.
18585         Without this, coreutils would get two false positives in
18586         the comments of C source files.
18587
18588 2010-11-12  Eric Blake  <eblake@redhat.com>
18589
18590         bootstrap: fix typo in previous attempt
18591         * build-aux/bootstrap (buildreq): Correct the grouping.
18592         Reported by Paul Eggert.
18593
18594         maintainer-makefile: prohibit test x == x
18595         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18596         Based on a report by Matthias Bolte.
18597
18598         bootstrap: allow FreeBSD gzip
18599         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18600         which has no '.' and goes to stderr.
18601         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18602         Reported by Matthias Bolte.
18603
18604         maintainer-makefile: check for i18n setup
18605         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18606         will likely work.
18607
18608 2010-11-12  Bruno Haible  <bruno@clisp.org>
18609
18610         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18611         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18612         * lib/nanosleep.c (nanosleep): Likewise.
18613
18614 2010-11-11  Bruno Haible  <bruno@clisp.org>
18615
18616         fcntl-h: Fix for use of C++ on glibc systems.
18617         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18618         also on glibc systems in C++ mode.
18619         Reported by Gary V. Vaughan <gary@gnu.org>.
18620
18621 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18622
18623         mknod: avoid false failure with dash
18624         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18625
18626 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18627
18628         unlink: Fix "is it should" typo in diagnostic.
18629         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18631
18632 2010-11-11  Bruno Haible  <bruno@clisp.org>
18633
18634         Tests for module 'strerror_r-posix'.
18635         * modules/strerror_r-posix-tests: New file.
18636         * tests/test-strerror_r.c: New file.
18637         * tests/test-string-c++.cc: Check the signature of strerror_r.
18638
18639         New module 'strerror_r-posix'.
18640         * lib/string.in.h (strerror_r): New declaration.
18641         * lib/strerror_r.c: New file.
18642         * m4/strerror_r.m4: New file.
18643         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18644         of strerror_r.
18645         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18646         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18647         * modules/strerror_r-posix: New file.
18648         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18649         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18650         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18651         portability problems.
18652
18653 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18654
18655         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18656         line is also considered for output. Quoted function name in shell
18657         command, so temporary files for functions like MyClass::operator()
18658         are removed correctly without errors.
18659
18660 2010-11-09  Bruno Haible  <bruno@clisp.org>
18661
18662         * doc/posix-functions/strerror.texi: List more failing platforms.
18663
18664         * doc/posix-functions/strerror.texi: Add a comment.
18665
18666 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18667
18668         fdopendir: fix bug on MacOS X when low on file descriptors
18669
18670         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18671         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18672         All callers changed.
18673         (fdopendir): Invoke save_cwd at the top level, not after using
18674         multiple dup() calls to use up file descriptors.  Then retry
18675         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18676         less than the maximum number of open file descriptors, because
18677         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18678         on Mac OS X 10.6.4 for tar 1.24
18679         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18680         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18681         and for tar 1.25
18682         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18683
18684 2010-11-07  Bruno Haible  <bruno@clisp.org>
18685
18686         vasnprintf: Support I flag on glibc systems.
18687         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18688         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18689         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18690         snprintf function.
18691         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18692         glibc systems.
18693         * tests/test-vasnprintf-posix3.c: New file.
18694         * modules/vasnprintf-posix-tests (Files): Add it.
18695         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18696
18697 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18698
18699         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18700         * MODULES.html.sh: For compiler warnings, use name
18701         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18702
18703 2010-11-05  Eric Blake  <eblake@redhat.com>
18704
18705         ceil, floor: avoid spurious failure with icc
18706         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18707         [denormals-as-zero] when optimizing without -mieee-fp option.
18708         * tests/test-floorf2.c (floorf_reference): Likewise.
18709         * tests/test-ceilf1.c (dummy): New function.
18710         (main): Use it to outsmart icc's optimization.
18711         * tests/test-floorf1.c (dummy, main): Likewise.
18712
18713         tests: require working signbit
18714         * modules/ceilf-tests (Depends-on): Add signbit.
18715         * modules/ceill-tests (Depends-on): Likewise.
18716         * modules/floorf-tests (Depends-on): Likewise.
18717         * modules/floorl-tests (Depends-on): Likewise.
18718         * modules/round-tests (Depends-on): Likewise.
18719         * modules/roundf-tests (Depends-on): Likewise.
18720         * modules/roundl-tests (Depends-on): Likewise.
18721         * modules/trunc-tests (Depends-on): Likewise.
18722         * modules/truncf-tests (Depends-on): Likewise.
18723         * modules/truncl-tests (Depends-on): Likewise.
18724
18725         strtod: work around icc bug
18726         * lib/strtod.c (minus_zero): Define to working value.
18727         (strtod): Use it to avoid icc bug.
18728
18729         copysign: enhance tests
18730         * modules/copysign-tests (Files): Add minus-zero.h.
18731         * tests/test-copysign.c (main): Also test zeros.
18732
18733 2010-11-04  Eric Blake  <eblake@redhat.com>
18734
18735         ceil, floor, round, trunc: enhance tests of -0
18736         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18737         * tests/test-ceill.c (main): Likewise.
18738         * tests/test-floorf1.c (main): Likewise.
18739         * tests/test-floorl.c (main): Likewise.
18740         * tests/test-round1.c (main): Likewise.
18741         * tests/test-roundf1.c (main): Likewise.
18742         * tests/test-roundl.c (main): Likewise.
18743         * tests/test-trunc1.c (main): Likewise.
18744         * tests/test-truncf1.c (main): Likewise.
18745         * tests/test-truncl.c (main): Likewise.
18746
18747 2010-11-04  Eric Blake  <eblake@redhat.com>
18748
18749         frexp, tests: work around ICC bug with -zero
18750         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18751         works with more compilers.
18752         * tests/minus-zero.h: New file.
18753         * modules/ceilf-tests (Files): Include it.
18754         * modules/ceill-tests (Files): Likewise.
18755         * modules/floorf-tests (Files): Likewise.
18756         * modules/floorl-tests (Files): Likewise.
18757         * modules/frexp-nolibm-tests (Files): Likewise.
18758         * modules/frexp-tests (Files): Likewise.
18759         * modules/frexpl-nolibm-tests (Files): Likewise.
18760         * modules/frexpl-tests (Files): Likewise.
18761         * modules/isnan-tests (Files): Likewise.
18762         * modules/isnand-nolibm-tests (Files): Likewise.
18763         * modules/isnand-tests (Files): Likewise.
18764         * modules/isnanf-nolibm-tests (Files): Likewise.
18765         * modules/isnanf-tests (Files): Likewise.
18766         * modules/isnanl-nolibm-tests (Files): Likewise.
18767         * modules/isnanl-tests (Files): Likewise.
18768         * modules/round-tests (Files): Likewise.
18769         * modules/roundf-tests (Files): Likewise.
18770         * modules/roundl-tests (Files): Likewise.
18771         * modules/ldexpl-tests (Files): Likewise.
18772         * modules/signbit-tests (Files): Likewise.
18773         * modules/snprintf-posix-tests (Files): Likewise.
18774         * modules/sprintf-posix-tests (Files): Likewise.
18775         * modules/strtod-tests (Files): Likewise.
18776         * modules/trunc-tests (Files): Likewise.
18777         * modules/truncf-tests (Files): Likewise.
18778         * modules/truncl-tests (Files): Likewise.
18779         * modules/vsnprintf-posix-tests (Files): Likewise.
18780         * modules/vsprintf-posix-tests (Files): Likewise.
18781         * modules/vasnprintf-posix-tests (Files): Likewise.
18782         * modules/vasprintf-posix-tests (Files): Likewise.
18783         * tests/test-ceilf1.c (main): Use it.
18784         * tests/test-ceill.c (main): Likewise.
18785         * tests/test-floorf1.c (main): Likewise.
18786         * tests/test-floorl.c (main): Likewise.
18787         * tests/test-frexp.c (main): Likewise.
18788         * tests/test-frexpl.c (main): Likewise.
18789         * tests/test-isnan.c (main): Likewise.
18790         * tests/test-isnand.h (main): Likewise.
18791         * tests/test-isnanf.h (main): Likewise.
18792         * tests/test-isnanl.h (main): Likewise.
18793         * tests/test-ldexpl.c (main): Likewise.
18794         * tests/test-round.c (main): Likewise.
18795         * tests/test-roundf.c (main): Likewise.
18796         * tests/test-roundl.c (main): Likewise.
18797         * tests/test-signbit.c (test_signbitf, test_signbitd)
18798         (test_signbitl): Likewise.
18799         * tests/test-snprintf-posix.h (test_function): Likewise.
18800         * tests/test-sprintf-posix.h (test_function): Likewise.
18801         * tests/test-strtod.c (main): Likewise.
18802         * tests/test-trunc1.c (main): Likewise.
18803         * tests/test-truncf1.c (main): Likewise.
18804         * tests/test-truncl.c (main): Likewise.
18805
18806         isnanl: work around icc bug
18807         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18808
18809 2010-11-03  Eric Blake  <eblake@redhat.com>
18810
18811         tests: fix compiler warnings
18812         * tests/test-getopt.h (test_getopt): Fix condition.
18813         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18814         * tests/test-pipe2.c (main): Likewise.
18815         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18816
18817         utimens: fix broken m4 test
18818         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18819
18820 2010-10-28  Bruno Haible  <bruno@clisp.org>
18821
18822         posix_spawn*, getdtablesize: Relax license.
18823         * modules/posix_spawn (License): Change to LGPLv2+.
18824         * modules/posix_spawnp (License): Likewise.
18825         * modules/posix_spawn-internal (License): Likewise.
18826         * modules/posix_spawnattr_init (License): Likewise.
18827         * modules/posix_spawnattr_getflags (License): Likewise.
18828         * modules/posix_spawnattr_setflags (License): Likewise.
18829         * modules/posix_spawnattr_getpgroup (License): Likewise.
18830         * modules/posix_spawnattr_setpgroup (License): Likewise.
18831         * modules/posix_spawnattr_getschedparam (License): Likewise.
18832         * modules/posix_spawnattr_setschedparam (License): Likewise.
18833         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18834         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18835         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18836         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18837         * modules/posix_spawnattr_getsigmask (License): Likewise.
18838         * modules/posix_spawnattr_setsigmask (License): Likewise.
18839         * modules/posix_spawnattr_destroy (License): Likewise.
18840         * modules/posix_spawn_file_actions_init (License): Likewise.
18841         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18842         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18843         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18844         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18845         * modules/getdtablesize (License): Likewise.
18846         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18847
18848 2010-10-26  Bruno Haible  <bruno@clisp.org>
18849
18850         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18851         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18852         Cygwin and mingw.
18853         Suggested by Eric Blake.
18854
18855 2010-10-26  Bruno Haible  <bruno@clisp.org>
18856
18857         stdio: Work around compilation error due to renameat() on Solaris 10.
18858         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18859         * lib/renameat.c: Don't include <unistd.h> here.
18860         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18861         Reported by Paul Eggert and Eric Blake.
18862
18863 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18864
18865         renameat: port to Solaris 10, which declares renameat in unistd.h
18866
18867         * lib/renameat.c: Include unistd.h before stdio.h, because
18868         Solaris 10 declares renameat in unistd.h.  Problem encountered
18869         when building GNU tar 1.24 on Solaris 10.
18870
18871 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18872
18873         fdopendir: fix C89 compilation
18874         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18875         compilers.
18876
18877 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18878
18879         inttostr: simplify by removing unnecessary redundancy
18880         * lib/anytostr.c: Don't include verify.h.
18881         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18882         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18883         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18884         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18885         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18886         Likewise.
18887         * modules/inttostr (Depends-on): Remove 'verify'.
18888
18889 2010-10-23  Bruno Haible  <bruno@clisp.org>
18890
18891         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18892         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18893         Reported by Eric Blake.
18894
18895 2010-10-23  Bruno Haible  <bruno@clisp.org>
18896
18897         Tests: Fix LOCALE_JA on MirBSD 10.
18898         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18899         to an UTF-8 locale.
18900         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18901         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18902         Reported by Eric Blake.
18903
18904 2010-10-21  Bruno Haible  <bruno@clisp.org>
18905
18906         nl_langinfo test: Avoid test failure on NetBSD 5.
18907         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18908         Reported by Eric Blake.
18909
18910 2010-10-21  Eric Blake  <eblake@redhat.com>
18911
18912         c-stack: work around libsigsegv 2.8 bug
18913         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18914         overflow on at least PowerPC64.
18915
18916 2010-10-17  Bruno Haible  <bruno@clisp.org>
18917
18918         userspec: Drop redundant file.
18919         * modules/userspec (Files): Remove lib/inttostr.h.
18920
18921 2010-10-17  Bruno Haible  <bruno@clisp.org>
18922
18923         nl_langinfo tests: Silence some warnings.
18924         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18925         Reported by Jim Meyering.
18926
18927 2010-10-17  Bruno Haible  <bruno@clisp.org>
18928
18929         Make use of GCC's attribute __alloc_size__.
18930         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18931         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18932         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18933         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18934         __alloc_size__.
18935         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18936         Suggested by Jim Meyering.
18937
18938 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18939
18940         bootstrap: anchor .gitignore entries.
18941         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18942         with...
18943         (insert_vc_ignore): ... this new function, which prepends `/' to
18944         all .gitignore entries before passing them to
18945         insert_sorted_if_absent.
18946
18947 2010-10-16  Bruno Haible  <bruno@clisp.org>
18948
18949         nextafter: Fix configure check.
18950         * modules/nextafter (configure.ac): Correct expected prototype.
18951
18952 2010-10-16  Bruno Haible  <bruno@clisp.org>
18953
18954         termios: Update documentation.
18955         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18956
18957 2010-10-16  Bruno Haible  <bruno@clisp.org>
18958
18959         tests: Make them compile with TinyCC.
18960         * tests/test-strstr.c (main): Remove parentheses around array
18961         initializer.
18962
18963 2010-10-15  Eric Blake  <eblake@redhat.com>
18964
18965         ignore-value: make header idempotent
18966         * lib/ignore-value.h: Add double-inclusion guards.
18967         Reported by Stefan Berger.
18968
18969 2010-10-15  Jim Meyering  <meyering@redhat.com>
18970
18971         GNUmakefile: handle "stable" target, not "major"
18972         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18973         lists in maint.mk and announce-gen.  Without this, "make stable"
18974         would fail to ensure that $(VERSION) is up to date.
18975
18976 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18977
18978         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18979         & co.
18980
18981 2010-10-14  Bruno Haible  <bruno@clisp.org>
18982
18983         vasnprintf: Don't set errno to 0.
18984         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18985         block that sets it to 0.
18986         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18987
18988 2010-10-14  Bruno Haible  <bruno@clisp.org>
18989
18990         socketlib: Fix.
18991         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18992         gl_PREREQ_SYS_H_WINSOCK2.
18993         Reported by Ian Beckwith <ianb@erislabs.net>.
18994
18995 2010-10-13  Jim Meyering  <meyering@redhat.com>
18996
18997         test-select-stdin.c: avoid warn_unused_result warnings
18998         * tests/test-select-stdin.c: Include "macros.h".
18999         ASSERT that read and fflush succeed.
19000
19001 2010-10-13  Jim Meyering  <meyering@redhat.com>
19002
19003         git-version-gen: do require git-VC'd files in cwd
19004         * build-aux/git-version-gen: Reject a git version string
19005         if there are no commits associated with the current directory.
19006         This avoids an unlikely false-positive (unrelated dir whose parent
19007         repository also contains a tag matching v*), as pointed out
19008         by Giuseppe Scrivano in
19009         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19010
19011 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19012
19013         argv-iter: omit nonconforming declaration
19014         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19015         enum arg_iter_err declaration, which doesn't conform to C99.
19016         Solaris 10 cc warns about this.
19017
19018 2010-10-13  Eric Blake  <eblake@redhat.com>
19019
19020         termios: fix compilation on mingw
19021         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19022         (gl_TERMIOS_H): Adjust it on mingw.
19023         * modules/termios (Makefile.am): Substitute new key.
19024         * lib/termios.in.h (includes): Make include_next conditional.
19025         * doc/posix-headers/termios.texi (termios.h): Update
19026         documentation.
19027         Reported by Daniel P. Berrange.
19028
19029 2010-10-13  Jim Meyering  <meyering@redhat.com>
19030
19031         git-version-gen: don't require that .git/ be in the current dir
19032         * build-aux/git-version-gen: Adjust this script so that it works
19033         when run from any working directory beneath the top-level .git/-
19034         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19036
19037         test-select: avoid warn_unused_result warnings
19038         * tests/test-select.c: Include "macros.h".
19039         ASSERT that each call to read, write, and pipe succeeds.
19040         While not technically required, also check each "close".
19041         * modules/select-tests (Files): Add tests/macros.h.
19042
19043         test-symlinkat: remove declaration of unused local
19044         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19045
19046         test-inttostr: avoid shadowing warnings
19047         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19048         and use malloc rather than the stack for the same reason as
19049         mentioned in the comment justifying the other allocation.
19050
19051 2010-10-11  Bruno Haible  <bruno@clisp.org>
19052
19053         stdlib: Allow multiple gnulib generated replacements to coexist.
19054         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19055         Reported by Sam Steingold <sds@gnu.org>.
19056
19057 2010-10-11  Jim Meyering  <meyering@redhat.com>
19058
19059         fix a documentation typo
19060         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19061
19062 2010-10-11  Eric Blake  <eblake@redhat.com>
19063
19064         futimens: work around Solaris 11 bug
19065         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19066         * tests/test-futimens.h (test_futimens): Enhance, rather than
19067         weaken test.
19068         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19069
19070 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19071
19072         Indentation.
19073         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19074         higher-level operators more to the left.
19075
19076 2010-10-11  Jim Meyering  <meyering@redhat.com>
19077
19078         test-futimens: avoid unwarranted test failure on Solaris 5.11
19079         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19080         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19081         because it tries to dereference the NULL name argument.
19082
19083 2010-10-11  Bruno Haible  <bruno@clisp.org>
19084
19085         Indentation.
19086         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19087         indentation.
19088
19089 2010-10-11  Jim Meyering  <meyering@redhat.com>
19090
19091         spawn.in.h: make indentation consistent with parentheses
19092         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19093         Make indentation consistent with parentheses.
19094
19095 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19096
19097         Fix mismatched parens in previous commit
19098         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19099         parens.
19100
19101 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19102
19103         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19104
19105         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19106         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19107         * lib/malloca.c: Include "verify.h".
19108         (verify1): Remove, replacing with a verify call.
19109         * lib/relocwrapper.c (verify1): Likewise.
19110         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19111         Likewise.
19112         * modules/malloca (Depends-on): Add 'verify'.
19113         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19114         * modules/vasnprintf (Depends-on): Add 'verify'.
19115         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19116         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19117         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19118         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19119         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19120         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19121         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19122
19123         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19124
19125         Formerly the style was sometimes 2*X - 1, because the C standard
19126         was wrongly thought to disallow ?: in integral constant expressions.
19127         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19128         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19130         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19131         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19132         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19133         verify that time_t cannot be floating.
19134
19135 2010-10-08  Eric Blake  <eblake@redhat.com>
19136
19137         time: enforce recent POSIX ruling that time_t is integral
19138         * lib/time.in.h (__time_t_must_be_integral): Detect any
19139         problematic systems, allowing the rest of gnulib to assume POSIX.
19140
19141 2010-10-08  Jim Meyering  <meyering@redhat.com>
19142
19143         fdopendir: fix a bug on systems lacking openat and /proc support
19144         OpenBSD 4.7 is one such system.  The most noticeable effect was
19145         failure of any application making nontrivial use of fts: rm, du,
19146         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19147           ./rm: traversal failed: `a': Bad file descriptor
19148         Debugging that, you see that even though FD 6 was closed just
19149         prior to the opendir call in fd_clone_opendir, its resulting
19150         dir->dd_fd was 8, rather than the expected value of 6:
19151
19152         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19153         93                close (fd);
19154         (gdb) n
19155         94                dir = fd_clone_opendir (dupfd);
19156         (gdb) n
19157         95                saved_errno = errno;
19158         (gdb) p dir->dd_fd
19159         $11 = 8
19160
19161         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19162         The problem is that on OpenBSD, fd_clone_opendir has to resort
19163         to using the old-style save/restore CWD mechanism, due to its
19164         lack of openat/proc support, and *that* would steal the FD (6)
19165         that opendir was supposed to use.
19166
19167         The fix is to squirrel away the desired FD so that save_cwd uses a
19168         different one, and then free the dest FD right before calling opendir.
19169         That guarantees opendir will use the required file descriptor.
19170
19171         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19172
19173 2010-10-08  Bruno Haible  <bruno@clisp.org>
19174
19175         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19176         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19177
19178 2010-10-08  Bruno Haible  <bruno@clisp.org>
19179
19180         nanosleep: Make replacement POSIX compliant.
19181         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19182         is out of range.
19183         Reported by Jim Meyering.
19184
19185 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19186
19187         bootstrap: add hook for altering gnulib.mk, for Bison
19188         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19189         the Bison bootstrapping process can rewrite file names and variables
19190         in this file before later parts of 'bootstrap' use the file.
19191         Bison wants to include lib/gnulib.mk from the top-level makefile,
19192         so it needs the file names in this file to be relative to the top
19193         level, not relative to lib; plus it needs variable names to be
19194         rewritten.
19195         (slurp): Use the new function.
19196
19197         bootstrap: reformat for readability
19198         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19199
19200 2010-10-08  Eric Blake  <eblake@redhat.com>
19201
19202         docs: update cygwin progress
19203         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19204         1.7.7.
19205         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19206         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19207         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19208         * doc/posix-functions/carg.texi (carg): Likewise.
19209         * doc/posix-functions/cargf.texi (cargf): Likewise.
19210         * doc/posix-functions/casin.texi (casin): Likewise.
19211         * doc/posix-functions/casinf.texi (casinf): Likewise.
19212         * doc/posix-functions/casinh.texi (casinh): Likewise.
19213         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19214         * doc/posix-functions/catan.texi (catan): Likewise.
19215         * doc/posix-functions/catanf.texi (catanf): Likewise.
19216         * doc/posix-functions/catanh.texi (catanh): Likewise.
19217         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19218         * doc/posix-functions/ccos.texi (ccos): Likewise.
19219         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19220         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19221         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19222         * doc/posix-functions/cexp.texi (cexp): Likewise.
19223         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19224         * doc/posix-functions/cimag.texi (cimag): Likewise.
19225         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19226         * doc/posix-functions/clog.texi (clog): Likewise.
19227         * doc/posix-functions/clogf.texi (clogf): Likewise.
19228         * doc/posix-functions/conj.texi (conj): Likewise.
19229         * doc/posix-functions/conjf.texi (conjf): Likewise.
19230         * doc/posix-functions/cpow.texi (cpow): Likewise.
19231         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19232         * doc/posix-functions/cproj.texi (cproj): Likewise.
19233         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19234         * doc/posix-functions/creal.texi (creal): Likewise.
19235         * doc/posix-functions/crealf.texi (crealf): Likewise.
19236         * doc/posix-functions/csin.texi (csin): Likewise.
19237         * doc/posix-functions/csinf.texi (csinf): Likewise.
19238         * doc/posix-functions/csinh.texi (csinh): Likewise.
19239         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19240         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19241         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19242         * doc/posix-functions/ctan.texi (ctan): Likewise.
19243         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19244         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19245         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19246         * doc/posix-headers/complex.texi (complex.h): Likewise.
19247
19248 2010-10-07  Jim Meyering  <meyering@redhat.com>
19249
19250         parse-datetime: avoid compilation failure on OpenBSD 4.7
19251         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19252         This works around a compilation failure on OpenBSD 4.7:
19253         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19254
19255 2010-10-07  Eric Blake  <eblake@redhat.com>
19256
19257         docs: update cygwin progress
19258         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19259         1.7.6.
19260         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19261         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19262         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19263         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19264         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19265         Likewise.
19266         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19267         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19268         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19269         Likewise.
19270         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19271         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19272         Likewise.
19273         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19274         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19275         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19276         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19277         Likewise.
19278         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19279         Likewise.
19280         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19281
19282         docs: update parse-datetime history
19283         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19284         documentation of this function's history and alternatives.
19285
19286         cygwin: use more robust version check
19287         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19288         exclude an eventual cygwin 1.9.1.
19289         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19291         (gl_FUNC_STRCASESTR): Likewise.
19292         Reported by Bruno Haible.
19293
19294 2010-10-06  Bruno Haible  <bruno@clisp.org>
19295
19296         string, sys_select: Avoid #including large headers unless necessary.
19297         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19298         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19299         OSF/1, BeOS, Haiku.
19300         Reported by Jim Meyering.
19301
19302 2010-10-05  Eric Blake  <eblake@redhat.com>
19303
19304         memmem, strstr, strcasestr: fix bug with long periodic needle
19305         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19306         periodic needle having false positive.
19307         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19308         and cygwin 1.7.7.
19309         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19311         (gl_FUNC_STRCASESTR): Likewise.
19312         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19313         * tests/test-memmem.c (main): Expose the bug.
19314         * tests/test-strcasestr.c (main): Likewise.
19315         * tests/test-strstr.c (main): Likewise.
19316         * tests/test-c-strcasestr.c (main): Likewise.
19317         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19318         * doc/posix-functions/strstr.texi (strstr): Likewise.
19319         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19320         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19321
19322 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19323
19324         parse-datetime: do some more renaming
19325         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19326         parse_datetime, not get_date.  Mention the renaming.
19327         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19328         in comments.
19329         * m4/bison.m4: Likewise.
19330
19331 2010-10-05  Eric Blake  <eblake@redhat.com>
19332
19333         parse-datetime: better name than get_date
19334         * NEWS: Reword the deprecation notice.
19335         * modules/get_date: Rename to modules/parse-datetime.
19336         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19337         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19338         * lib/get_date.y: Rename to lib/parse-datetime.y.
19339         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19340         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19341         * doc/getdate.texi: Provide fallback wrapper.
19342         * lib/getdate.h: Move guts, and wrap...
19343         * lib/parse-datetime.h: ...new file.
19344         * lib/parse-datetime.y (get_date): Rename...
19345         (parse_datetime): ...to this.
19346         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19347         (gl_PARSE_DATETIME): ...to this.
19348         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19349         documentation.
19350         * modules/getdate (Files): Provide fallback docs and header.
19351         (Notice, Depends-on): Update references.
19352         * tests/test-parse-datetime.c: Likewise.
19353         * DEPENDENCIES: Likewise.
19354         * MODULES.html.sh (Date and time <time.h>): Likewise.
19355         * doc/parse-datetime.texi (Date input formats)
19356         (Authors of parse_datetime): Likewise.
19357         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19358         (Include): Likewise.
19359         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19360         * gnulib-tool: Likewise.
19361         * m4/bison.m4 (gl_BISON): Likewise.
19362         Suggested by Bruno Haible.
19363
19364 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19365
19366         more ports to Solaris tr, which needs [] around ranges
19367         * gnulib-tool: Solaris tr needs [] around ranges.
19368         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19369         * tests/test-pipe-filter-gi1.c (main): Likewise.
19370         * tests/test-pipe-filter-ii1.c (main): Likewise.
19371
19372 2010-10-05  Eric Blake  <eblake@redhat.com>
19373
19374         bootstrap: fix Solaris regression
19375         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19376         around ranges.
19377         Reported by Pádraig Brady.
19378
19379         bootstrap: work with pkg-config
19380         * build-aux/bootstrap (check_versions): Also transliterate - in
19381         prerequisite name.
19382         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19383         prerequisites that were already found, to avoid confusion.
19384         Reported by Justin Clift.
19385
19386         faccessat: remove unused wrappers
19387         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19388         presence of these wrappers dragged in -lgen on Solaris.
19389         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19390
19391 2010-10-05  Jim Meyering  <meyering@redhat.com>
19392
19393         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19394         * Makefile (sc_pragma_columns): New syntax-check rule.
19395
19396 2010-10-04  Bruno Haible  <bruno@clisp.org>
19397
19398         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19399         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19400         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19401         Reported by Bruce Korb and Eric Blake.
19402
19403 2010-10-04  Bruno Haible  <bruno@clisp.org>
19404
19405         threadlib: Make option --with-libpth-prefix work.
19406         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19407         use $LIBPTH, not just -lpth.
19408
19409 2010-10-04  Bruno Haible  <bruno@clisp.org>
19410
19411         Avoid line length limitation from HP NonStop system header files.
19412         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19413         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19414         * lib/ctype.in.h: Likewise.
19415         * lib/dirent.in.h: Likewise.
19416         * lib/errno.in.h: Likewise.
19417         * lib/fcntl.in.h: Likewise.
19418         * lib/float.in.h: Likewise.
19419         * lib/getopt.in.h: Likewise.
19420         * lib/iconv.in.h: Likewise.
19421         * lib/inttypes.in.h: Likewise.
19422         * lib/langinfo.in.h: Likewise.
19423         * lib/locale.in.h: Likewise.
19424         * lib/math.in.h: Likewise.
19425         * lib/netdb.in.h: Likewise.
19426         * lib/netinet_in.in.h: Likewise.
19427         * lib/poll.in.h: Likewise.
19428         * lib/pthread.in.h: Likewise.
19429         * lib/pty.in.h: Likewise.
19430         * lib/sched.in.h: Likewise.
19431         * lib/se-selinux.in.h: Likewise.
19432         * lib/search.in.h: Likewise.
19433         * lib/signal.in.h: Likewise.
19434         * lib/spawn.in.h: Likewise.
19435         * lib/stdarg.in.h: Likewise.
19436         * lib/stddef.in.h: Likewise.
19437         * lib/stdint.in.h: Likewise.
19438         * lib/stdio.in.h: Likewise.
19439         * lib/stdlib.in.h: Likewise.
19440         * lib/string.in.h: Likewise.
19441         * lib/strings.in.h: Likewise.
19442         * lib/sys_file.in.h: Likewise.
19443         * lib/sys_ioctl.in.h: Likewise.
19444         * lib/sys_select.in.h: Likewise.
19445         * lib/sys_socket.in.h: Likewise.
19446         * lib/sys_stat.in.h: Likewise.
19447         * lib/sys_time.in.h: Likewise.
19448         * lib/sys_times.in.h: Likewise.
19449         * lib/sys_utsname.in.h: Likewise.
19450         * lib/sys_wait.in.h: Likewise.
19451         * lib/sysexits.in.h: Likewise.
19452         * lib/termios.in.h: Likewise.
19453         * lib/time.in.h: Likewise.
19454         * lib/unistd.in.h: Likewise.
19455         * lib/wchar.in.h: Likewise.
19456         * lib/wctype.in.h: Likewise.
19457         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19458         * modules/ctype (Makefile.am): Likewise.
19459         * modules/dirent (Makefile.am): Likewise.
19460         * modules/errno (Makefile.am): Likewise.
19461         * modules/fcntl-h (Makefile.am): Likewise.
19462         * modules/float (Makefile.am): Likewise.
19463         * modules/getopt-posix (Makefile.am): Likewise.
19464         * modules/iconv-h (Makefile.am): Likewise.
19465         * modules/inttypes (Makefile.am): Likewise.
19466         * modules/langinfo (Makefile.am): Likewise.
19467         * modules/locale (Makefile.am): Likewise.
19468         * modules/math (Makefile.am): Likewise.
19469         * modules/netdb (Makefile.am): Likewise.
19470         * modules/netinet_in (Makefile.am): Likewise.
19471         * modules/poll-h (Makefile.am): Likewise.
19472         * modules/pthread (Makefile.am): Likewise.
19473         * modules/pty (Makefile.am): Likewise.
19474         * modules/sched (Makefile.am): Likewise.
19475         * modules/search (Makefile.am): Likewise.
19476         * modules/selinux-h (Makefile.am): Likewise.
19477         * modules/signal (Makefile.am): Likewise.
19478         * modules/spawn (Makefile.am): Likewise.
19479         * modules/stdarg (Makefile.am): Likewise.
19480         * modules/stddef (Makefile.am): Likewise.
19481         * modules/stdint (Makefile.am): Likewise.
19482         * modules/stdio (Makefile.am): Likewise.
19483         * modules/stdlib (Makefile.am): Likewise.
19484         * modules/string (Makefile.am): Likewise.
19485         * modules/strings (Makefile.am): Likewise.
19486         * modules/sys_file (Makefile.am): Likewise.
19487         * modules/sys_ioctl (Makefile.am): Likewise.
19488         * modules/sys_select (Makefile.am): Likewise.
19489         * modules/sys_socket (Makefile.am): Likewise.
19490         * modules/sys_stat (Makefile.am): Likewise.
19491         * modules/sys_time (Makefile.am): Likewise.
19492         * modules/sys_times (Makefile.am): Likewise.
19493         * modules/sys_utsname (Makefile.am): Likewise.
19494         * modules/sys_wait (Makefile.am): Likewise.
19495         * modules/sysexits (Makefile.am): Likewise.
19496         * modules/termios (Makefile.am): Likewise.
19497         * modules/time (Makefile.am): Likewise.
19498         * modules/unistd (Makefile.am): Likewise.
19499         * modules/wchar (Makefile.am): Likewise.
19500         * modules/wctype (Makefile.am): Likewise.
19501
19502 2010-10-04  Bruno Haible  <bruno@clisp.org>
19503
19504         read-file tests: Avoid a test failure on NonStop Kernel.
19505         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19506         a regular file.
19507         Reported by Joachim Schmitz <schmitz@hp.com>.
19508
19509 2010-10-03  Bruno Haible  <bruno@clisp.org>
19510
19511         gnulib-tool: Fixes for --create-testdir with --libtool.
19512         * gnulib-tool (func_get_automake_snippet): Don't augment
19513         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19514         an executable.
19515         (func_create_testdir): Handle module 'alloca' like func_import.
19516         Reported by Bruce Korb <bruce.korb@gmail.com>.
19517
19518 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19519
19520         Avoid some lines longer than 80 characters.
19521         * lib/stdint.in.h: Break long comment lines.
19522         * lib/math.in.h: Likewise.
19523         (_GL_NUM_UINT_WORDS): New macro, for readability.
19524         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19525         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19526         * lib/stdlib.in.h: Likewise.
19527         * lib/spawn.in.h: Likewise.
19528         * lib/sys_socket.in.h: Update an URL.
19529         * lib/sys_stat.in.h: Break long line.
19530
19531 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19532
19533         Improve pmccabe2html.
19534         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19535         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19536         when the sources change. Remove the line in the HTML about "Used
19537         ranges" (which implied that there might be other unused ranges),
19538         rename "Resume" to "Summary" (easier to understand for more users).
19539         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19540         styles, and some unnecessary blank lines.
19541
19542 2010-10-03  Bruno Haible  <bruno@clisp.org>
19543             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19544
19545         acl: Add support for ACLs on NonStop Kernel.
19546         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19547         Check whether the function aclsort() exists.
19548         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19549         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19550         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19551         (acl_nontrivial [HAVE_ACLSORT]: New function.
19552         (file_has_acl): Implement for NonStop Kernel.
19553         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19554         (qset_acl): Implement for NonStop Kernel.
19555         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19556         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19557         (main): Implement for NonStop Kernel.
19558         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19559         Kernel. Handle this flavor.
19560         * tests/test-set-mode-acl.sh: Likewise.
19561         * tests/test-copy-acl.sh: Likewise.
19562         * tests/test-copy-file.sh: Likewise.
19563
19564 2010-10-03  Bruno Haible  <bruno@clisp.org>
19565
19566         Info about ACLs on NonStop Kernel.
19567         * doc/acl-resources.txt: Add info about NonStop Kernel.
19568         References by Joachim Schmitz <schmitz@hp.com>.
19569
19570 2010-10-02  Bruno Haible  <bruno@clisp.org>
19571
19572         Define missing EDQUOT on NonStop Kernel.
19573         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19574         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19575         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19576         missing.
19577         * doc/posix-headers/errno.texi: Mention the NSK bug.
19578         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19579         Reported by Joachim Schmitz <schmitz@hp.com>.
19580
19581 2010-10-02  Bruno Haible  <bruno@clisp.org>
19582
19583         Update doc for POSIX:2008.
19584         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19585         Update URL of POSIX specification.
19586
19587 2010-10-02  Bruno Haible  <bruno@clisp.org>
19588
19589         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19590         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19591         from gnulib, not from Automake.
19592
19593 2010-10-02  Bruno Haible  <bruno@clisp.org>
19594
19595         New module 'system-posix'.
19596         * modules/system-posix: New file.
19597         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19598         module is present.
19599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19600         GNULIB_SYSTEM_POSIX.
19601         * modules/stdlib (Depends-on): Remove sys_wait.
19602         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19603         * doc/posix-functions/system.texi: Mention the new module.
19604         * doc/posix-headers/stdlib.texi: Likewise.
19605         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19606         define test_sys_wait_macros to a no-op.
19607         Reported by Sam Steingold <sds@gnu.org>.
19608
19609 2010-09-30  Bruno Haible  <bruno@clisp.org>
19610
19611         More renaming from 'getdate' to 'get_date'.
19612         * doc/get_date.texi: Renamed from doc/getdate.texi.
19613         * modules/get_date (Files): Update.
19614         * MODULES.html.sh (Date and time <time.h>): Update.
19615         * DEPENDENCIES: Update.
19616         * gnulib-tool: Update comment.
19617         * m4/bison.m4 (gl_BISON): Likewise.
19618         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19619
19620 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19621
19622         bootstrap: support ACLOCAL_FLAGS during aclocal
19623         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19624         can add additional -I dir for third-party .m4 files.
19625
19626 2010-09-30  Eric Blake  <eblake@redhat.com>
19627
19628         bootstrap: use glibtoolize on MacOS
19629         * build-aux/bootstrap (check_versions): Convert libtool into
19630         libtoolize.
19631         (tool search): Move libtool check earlier, and look for
19632         glibtoolize for MacOS.
19633         (gnulib_tool_options): Auto-add --libtool when appropriate.
19634         Reported by Justin Clift.
19635
19636         poll: fix typo that broke test on MacOS
19637         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19638         Reported by Justin Clift.
19639
19640         getdate: rename to get_date
19641         Note: getdate.h is not renamed, to minimize client impact.
19642         * modules/getdate: Mark obsolete.  Move old contents...
19643         * modules/get_date: ...to new module name.
19644         * modules/getdate-tests: Move...
19645         * modules/get_date-tests: ...here.
19646         * m4/getdate.m4: Move...
19647         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19648         * lib/getdate.y: Move...
19649         * lib/get_date.y: ...here.
19650         * tests/test-getdate.c: Move...
19651         * tests/test-get_date.c: ...here.
19652         * doc/posix-functions/getdate.texi (getdate): Update name.
19653         * NEWS: Mention the change.
19654
19655 2010-09-29  Bruno Haible  <bruno@clisp.org>
19656
19657         Separate the module 'waitpid' from the module 'sys_wait'.
19658         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19659         present.
19660         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19661         gl_MODULE_INDICATOR_FOR_TESTS.
19662         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19663         * modules/sys_wait (Depends-on): Remove waitpid.
19664         (Makefile.am): Substitute GNULIB_WAITPID.
19665         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19666         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19667         signature only if the 'waitpid' module is present.
19668         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19669         * NEWS: Mention the change.
19670         * modules/grantpt (Depends-on): Add waitpid.
19671         * modules/wait-process (Depends-on): Likewise.
19672
19673 2010-09-29  Bruno Haible  <bruno@clisp.org>
19674
19675         More tests for module 'sys_wait'.
19676         * modules/sys_wait-c++-tests: New file.
19677         * tests/test-sys_wait-c++.cc: New file.
19678         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19679         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19680
19681 2010-09-29  Bruno Haible  <bruno@clisp.org>
19682
19683         New module 'waitpid'.
19684         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19685         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19686         Don't include <process.h>.
19687         (waitpid): Declare only, using modern idiom.
19688         * m4/waitpid.m4: New file.
19689         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19690         * modules/waitpid: New file.
19691         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19692         (Makefile.am): Update.
19693         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19694
19695 2010-09-28  Bruno Haible  <bruno@clisp.org>
19696
19697         poll: Assume ANSI C.
19698         * lib/poll.c (poll): Use an ANSI C declaration.
19699
19700 2010-09-28  Bruno Haible  <bruno@clisp.org>
19701
19702         poll-h: Create poll.h on all platforms.
19703         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19704         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19705         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19706         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19707         (gl_REPLACE_POLL_H): Don't set POLL_H.
19708         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19709         * modules/poll-h (Depends-on): Add include_next.
19710         (Makefile.am): Create poll.h unconditionally. Substitute also
19711         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19712
19713 2010-09-28  Bruno Haible  <bruno@clisp.org>
19714
19715         Tests for module 'poll-h'.
19716         * modules/poll-h-c++-tests: New file.
19717         * tests/test-poll-h-c++.cc: New file.
19718
19719         Tests for module 'poll-h'.
19720         * modules/poll-h-tests: New file.
19721         * tests/test-poll-h.c: New file.
19722
19723 2010-09-28  Bruno Haible  <bruno@clisp.org>
19724
19725         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19726         * modules/poll-h (Depends-on): Add 'extensions'.
19727
19728 2010-09-28  Bruno Haible  <bruno@clisp.org>
19729
19730         New module 'poll-h'.
19731         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19732         (poll): Use modern idiom.
19733         * modules/poll-h: New file.
19734         * modules/poll (Files): Remove lib/poll.in.h.
19735         (Depends-on): Add poll-h.
19736         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19737         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19738         * m4/poll_h.m4: New file.
19739         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19740         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19741         and invoke gl_REPLACE_POLL_H.
19742         * lib/poll.c: Use common idiom.
19743         * tests/test-poll.c: Likewise.
19744         * doc/posix-headers/poll.texi: Mention the poll-h module.
19745         Suggested by Eric Blake.
19746
19747 2010-09-26  Bruno Haible  <bruno@clisp.org>
19748
19749         sys_wait: Implement WSTOPSIG.
19750         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19751         Reported by Simon Josefsson.
19752
19753 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19754
19755         stdlib, sys_wait: Avoid compilation error on mingw.
19756         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19757
19758 2010-09-26  Bruno Haible  <bruno@clisp.org>
19759
19760         stdlib tests: Avoid code duplication.
19761         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19762         * modules/sys_wait-tests (Files): Likewise.
19763         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19764         * tests/test-stdlib.c: Include test-sys_wait.h.
19765         (main): Invoke test_sys_wait_macros.
19766         * tests/test-sys_wait.c: Include test-sys_wait.h.
19767         (main): Invoke test_sys_wait_macros.
19768
19769 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19770
19771         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19772         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19773         sure Windows sockets are working before calling getaddrinfo.
19774         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19775         * doc/gnulib.texi (Windows sockets): Fix typo.
19776
19777 2010-09-25  Bruno Haible  <bruno@clisp.org>
19778
19779         Tests for module 'regex-quote'.
19780         * modules/regex-quote-tests: New file.
19781         * tests/test-regex-quote.c: New file.
19782
19783         New module 'regex-quote'.
19784         * lib/regex-quote.h: New file.
19785         * lib/regex-quote.c: New file.
19786         * modules/regex-quote: New file.
19787         Suggested by Reuben Thomas <rrt@sc3d.org>.
19788
19789 2010-09-24  Bruno Haible  <bruno@clisp.org>
19790
19791         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19792         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19793
19794 2010-09-23  Bruno Haible  <bruno@clisp.org>
19795
19796         setenv: Relax license.
19797         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19798         Blake.
19799         Requested by Eric Blake.
19800
19801 2010-09-22  Bruno Haible  <bruno@clisp.org>
19802
19803         termios: Relax license.
19804         * modules/termios (License): Change to LGPLv2+.
19805         Requested by Eric Blake.
19806
19807 2010-09-22  Bruno Haible  <bruno@clisp.org>
19808
19809         threadlib: Allow the package to change the default to 'no'.
19810         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19811         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19812         Reported by Paul Eggert.
19813
19814 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19815             Bruno Haible  <bruno@clisp.org>
19816
19817         Fix endless loop in mbmemcasecoll.
19818         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19819         byte.
19820         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19821
19822 2010-09-22  Bruno Haible  <bruno@clisp.org>
19823
19824         Tests for module 'memcoll'.
19825         * modules/memcoll-tests: New file.
19826         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19827
19828         memcoll, xmemcoll: Clarify size vs. length.
19829         * modules/memcoll.c (memcoll0): Clarify specification.
19830         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19831         passed to collate_error.
19832
19833 2010-09-22  Bruno Haible  <bruno@clisp.org>
19834
19835         Tests for module 'memcasecmp'.
19836         * modules/memcasecmp-tests: New file.
19837         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19838
19839 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19840
19841         * lib/pthread.in.h: Add split double-inclusion guard, and include
19842         system <pthread.h> if there is one.  Use @@-style as in other
19843         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19844         pthread.h doesn't.
19845         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19846         (pthread_mutexattr_settype, pthread_mutex_trylock):
19847         New static inline functions, if there's no system <pthread.h>.
19848         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19849         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19850         Approximate with mutexes if the system lacks spinlocks, as in
19851         MacOS.
19852         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19853         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19854         @@-style.  Check for spinlocks separately.
19855         (gl_PTHREAD_DEFAULTS): New macro.
19856         * modules/pthread: Redo to use a more typical style for in.h files.
19857
19858 2010-09-21  Eric Blake  <eblake@redhat.com>
19859
19860         net_if: enhance tests
19861         * tests/test-net_if.c (main): Move signature checks earlier.
19862         Print failures to stderr.
19863         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19864         Document the bug that we do not yet fix.
19865
19866 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19867
19868         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19869         about gnulib, not GSS.
19870
19871 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19872
19873         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19874         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19875         for Emacs.
19876         * build-aux/pmccabe2html: Make Makefile.am example code more
19877         cut-and-paste friendly.
19878
19879 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19880
19881         * tests/test-net_if.c: New file.
19882         * modules/net_if-tests: New file.
19883
19884 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19885
19886         pthread: add pthread_spin_destroy
19887         * lib/pthread.in.h (pthread_spin_destroy): New function.
19888
19889 2010-09-19  Bruno Haible  <bruno@clisp.org>
19890
19891         gnulib-tool: Fix --help output.
19892         * gnulib-tool (func_usage): Fix help message.
19893         Reported by Reuben Thomas <rrt@sc3d.org>.
19894
19895 2010-09-18  Jim Meyering  <meyering@redhat.com>
19896
19897         maint.mk: avoid unexpanded \n in two diagnostics
19898         * top/maint.mk (sc_prohibit_always_true_header_tests):
19899         Don't use a literal \n in a halt=... assignment.  It would not be
19900         expanded, and the two \n bytes would appear in the diagnostic output
19901         rather than the desired newline.  Use halt=$$(printf ... instead.
19902         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19903
19904 2010-09-18  Bruno Haible  <bruno@clisp.org>
19905
19906         netinet_in: Doc tweak.
19907         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19908         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19909
19910 2010-09-18  Jim Meyering  <meyering@redhat.com>
19911
19912         init.sh: correct an outdated comment
19913         * tests/init.sh (create_exe_shims_):  s/function/alias/
19914
19915         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19916         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19917         a file named "*.exe" is removed between the glob expansion and the
19918         processing of that oddly named file.
19919
19920 2010-09-17  Eric Blake  <eblake@redhat.com>
19921
19922         mirbsd: add some more support
19923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19924         in BSD family.
19925         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19926         devices as OpenBSD.
19927         * m4/host-os.m4 (mirbsd): Add MirBSD.
19928
19929         tests: fix unportable assumption on sys/wait.h
19930         * tests/test-sys_wait.c (main): Relax test.
19931         * tests/test-stdlib.c (main): Likewise.
19932
19933         init.sh: accomodate directory with no .exes
19934         * tests/init.sh: Accomodate directory containing only scripts.
19935
19936         tests: avoid compiler warning
19937         * tests/test-stdlib.c (main): Use the variable.
19938
19939         fdutimens, fdutimensat: update signature, again
19940         * lib/utimens.h (gl_futimens): Delete, and move signature...
19941         (fdutimens): ...here.
19942         (fdutimensat): Rearrange signature.
19943         (lutimensat): Rename variable for clarity.
19944         * lib/fdutimensat.c (fdutimensat): Update signature.
19945         * lib/utimens.c (fdutimens): Likewise.
19946         (gl_futimens): Delete.
19947         (utimens, lutimens): Update callers.
19948         * lib/futimens.c (futimens): Likewise.
19949         * tests/test-fdutimensat.c: Likewise.
19950         * tests/test-utimens.c: Likewise.
19951         * tests/test-futimens.h: Update comment.
19952         * NEWS: Mention this.
19953         Suggested by Paul Eggert.
19954
19955 2010-09-17  Bruno Haible  <bruno@clisp.org>
19956
19957         Take over the maintenance of some older macros from Autoconf.
19958         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19959         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19960         GNU Autoconf.
19961         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19962         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19963
19964 2010-09-17  Eric Blake  <eblake@redhat.com>
19965
19966         fdutimensat: drop atflag validation
19967         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19968         with valid fd, to close a race scenario where futimens is
19969         unsupported and FILE was replaced by a symlink.
19970         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19971         accordingly.
19972         Suggested by Paul Eggert.
19973
19974 2010-09-16  Bruno Haible  <bruno@clisp.org>
19975
19976         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19977         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19978
19979 2010-09-16  Bruno Haible  <bruno@clisp.org>
19980
19981         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19982         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19983         login_tty exists.
19984         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19985
19986 2010-09-16  Bruno Haible  <bruno@clisp.org>
19987
19988         login_tty: Make the replacement code work on BSD systems.
19989         * lib/login_tty.c: Include <sys/ioctl.h>.
19990         (login_tty): Use ioctl TIOCSCTTY when available.
19991         * modules/login_tty (Depends-on): Add sys_ioctl.
19992         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19993
19994 2010-09-16  Bruno Haible  <bruno@clisp.org>
19995
19996         login_tty: Stricter unit test.
19997         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19998         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19999         and tcgetsid() after login_tty.
20000         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20001
20002 2010-09-16  Bruno Haible  <bruno@clisp.org>
20003
20004         New module 'tcgetsid'.
20005         * lib/tcgetsid.c: New file.
20006         * m4/tcgetsid.m4: New file.
20007         * modules/tcgetsid: New file.
20008         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20009         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20010         GNULIB_TCGETSID, HAVE_TCGETSID.
20011         * lib/termios.in.h: Include <sys/types.h>.
20012         (tcgetsid): New declaration.
20013         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20014         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20015         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20016         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20017
20018 2010-09-16  Bruno Haible  <bruno@clisp.org>
20019
20020         Tests for module 'termios'.
20021         * modules/termios-c++-tests: New file.
20022         * modules/termios-tests: New file.
20023         * tests/test-termios-c++.cc: New file.
20024         * tests/test-termios.c: New file.
20025
20026         New module 'termios'.
20027         * modules/termios: New file.
20028         * lib/termios.in.h: New file.
20029         * m4/termios_h.m4: New file.
20030         * doc/posix-headers/termios.texi: Mention the new module.
20031
20032 2010-09-16  Eric Blake  <eblake@redhat.com>
20033
20034         fdutimensat: add an atflag parameter
20035         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20036         * lib/utimens.h (fdutimensat): Update prototype.
20037         * tests/test-fdutimensat.c: Adjust test to match.
20038         * NEWS: Document the change.
20039         Suggested by Paul Eggert.
20040
20041 2010-09-16  Bruno Haible  <bruno@clisp.org>
20042
20043         Fix typos in comments.
20044         * lib/striconveh.h: Fix typo in comment.
20045         * lib/login_tty.c (login_tty): Likewise.
20046
20047 2010-09-15  Bruno Haible  <bruno@clisp.org>
20048
20049         stdlib: clarify MirBSD WEXITSTATUS bug
20050         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20051         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20052
20053 2010-09-15  Eric Blake  <eblake@redhat.com>
20054
20055         stdlib: work around MirBSD WEXITSTATUS bug
20056         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20057         * modules/stdlib (Depends-on): Add sys_wait.
20058         * tests/test-sys_wait.c (main): Enhance test.
20059         * tests/test-stdlib.c (main): Likewise.
20060         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20061
20062         docs: mention MacOS issue with WEXITSTATUS(constant)
20063         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20064         issue.
20065         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20066
20067         strnlen: add tests
20068         * modules/strnlen-tests: New file.
20069         * tests/test-strnlen.c: Likewise.
20070
20071 2010-09-14  Bruno Haible  <bruno@clisp.org>
20072
20073         unistr/base: Avoid link errors when module 'libunistring' is also used.
20074         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20075         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20076         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20077         Declare also when HAVE_LIBUNISTRING is set.
20078         Reported by Pádraig Brady <P@draigbrady.com>.
20079
20080 2010-09-14  Eric Blake  <eblake@redhat.com>
20081
20082         test-rawmemchr: make more robust
20083         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20084         (Depends-on, configure.ac): Add needed prerequisites to use it.
20085         * modules/memchr-tests (Files, Depends-on, configure.ac):
20086         Likewise, to avoid implicit reliance on memchr module prereqs.
20087         * tests/test-memchr.c (main): Ensure proper masking.
20088         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20089         reads.
20090
20091         memchr: detect glibc Alpha bug
20092         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20093         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20094         Alpha.
20095         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20096         * tests/test-memchr.c (main): Enhance test.
20097         Reported by Nelson H. F. Beebe.
20098
20099 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20100
20101         fts, getcwd, glob: audit for dirfd returning -1
20102         * lib/fts.c (opendir): Remove #define; no longer used.
20103         (opendirat): New arg PDIR_FD.  All callers changed.
20104         (fts_build, _opendir2): Use new opendirat to avoid the need for
20105         dirfd, or for checking whether dirfd returns a negative value.
20106         Don't use opendir; always use openat followed by fdopendir.
20107         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20108         it.
20109         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20110         returns -1 here.
20111         * modules/fts (Depends-on): Remove dirfd.
20112         * modules/getcwd (Depends-on): Likewise.
20113
20114 2010-09-13  Eric Blake  <eblake@redhat.com>
20115
20116         float: fix broken MirBSD header
20117         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20118         * doc/posix-headers/float.texi (float.h): Document it.
20119
20120 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20121
20122         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20123         * lib/fts.c (opendirat): New arg extra_flags.
20124         (__opendir2): Use it to avoid following symlinks when opening
20125         a directory, if symlinks are not supposed to be followed.  See
20126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20127
20128         fdopendir: preserve argument fd before returning
20129         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20130         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20131         (fdopendir): Use them, arranging for FD to be open to the same
20132         directory that it was when it started.  (It might be temporarily
20133         closed while fdopendir is running, so this not thread- or
20134         signal-safe.)  Be careful to do the right thing even when file
20135         descriptors are scarce and dup fails with errno == EMFILE.  See
20136         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20137
20138 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20139
20140         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20141         * NEWS: Document change.
20142         * m4/regex.m4: Disable test for regoff_t size.
20143
20144 2010-09-13  Jim Meyering  <meyering@redhat.com>
20145
20146         fts: don't operate on an invalid file descriptor after failed dup
20147         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20148         negative file descriptor.
20149
20150 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20151
20152         savedir: add streamsavedir, deprecate fdsavedir
20153         * NEWS: Mention deprecation of fdsavedir.
20154         * lib/savedir.c (streamsavedir): New extern function, whose name
20155         ends in "savedir" to be consistent with the others.  This differs
20156         from savedirstream in that it doesn't close its argument.  The
20157         next version of GNU tar will use this instead of fdsavedir, to
20158         avoid some race conditions and conserve file descriptors.
20159         (savedirstream): Reimplement as a wrapper around streamsavedir.
20160         (fdsavedir): Add a comment deprecating this function.  As far as
20161         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20162         * lib/savedir.h (streamsavedir): New decl.
20163         (fdsavedir): Add a comment deprecating this.
20164
20165 2010-09-10  Bruno Haible  <bruno@clisp.org>
20166
20167         langinfo: Fix last commit.
20168         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20169         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20171
20172 2010-09-10  Bruno Haible  <bruno@clisp.org>
20173
20174         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20175         * lib/progreloc.c (O_EXEC): Define fallback.
20176
20177 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20178
20179         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20180         * NEWS: Document recent changes to fcntl-h.
20181         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20182         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20183         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20184         Similarly for O_SEARCH; this last was already true, but not documented.
20185         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20186         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20187         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20188         Likewise.
20189         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20190         is zero, not whether it is defined.
20191         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20192         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20193         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20194
20195 2010-09-10  Bruno Haible  <bruno@clisp.org>
20196
20197         langinfo, nl_langinfo: Fix for IRIX 5.3.
20198         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20199         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20200         HAVE_LANGINFO_YESEXPR.
20201         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20202         HAVE_LANGINFO_YESEXPR.
20203         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20204         HAVE_LANGINFO_T_FMT_AMPM is 0.
20205         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20206         HAVE_LANGINFO_YESEXPR is 0.
20207         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20208         NOEXPR.
20209         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20210         * doc/posix-functions/nl_langinfo.texi: Likewise.
20211         Reported by Eric Blake.
20212
20213 2010-09-10  Bruno Haible  <bruno@clisp.org>
20214
20215         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20216         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20217         on FreeBSD 8.0 and OpenBSD 4.6.
20218         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20219         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20220         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20221         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20222         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20223         ac_includes_default.
20224         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20225
20226 2010-09-09  Eric Blake  <eblake@redhat.com>
20227
20228         strsignal: work around NetBSD bug
20229         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20230         * lib/string.in.h (includes): Likewise.
20231         * doc/posix-functions/strsignal.texi (strsignal): Document the
20232         bug.
20233         Reported by Nelson H. F. Beebe.
20234
20235         gnulib-tool: work with NetBSD /bin/sh
20236         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20237         (func_get_description, func_get_comment, func_get_status)
20238         (func_get_notice, func_get_applicability, func_get_filelist)
20239         (func_get_dependencies, func_get_autoconf_early_snippet)
20240         (func_get_autoconf_snippet, func_get_automake_snippet)
20241         (func_get_include_directive, func_get_link_directive)
20242         (func_get_license, func_get_maintainer, func_import): Avoid
20243         shell syntax errors from parsing syntax extensions.
20244
20245 2010-09-09  Bruno Haible  <bruno@clisp.org>
20246
20247         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20248         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20249         a reliable way to determine whether the 'alias' command works.
20250
20251 2010-09-08  Jim Meyering  <meyering@redhat.com>
20252
20253         init.sh: penalize a set-x-impaired shell; don't disqualify it
20254         * tests/init.sh: Too many shells corrupt application stderr when
20255         you set -x, so we can't afford to disqualify them, since at least
20256         on Irix-6.5, that would disqualify all bourne shells.
20257         Instead, use a two-pass approach.
20258         On the first pass, try to find a shell that meets the stricter
20259         condition that set -x does not corrupt stderr.
20260         If no shell meets the stricter condition, retest each candidate
20261         shell, but without that extra condition.  Finally, when
20262         VERBOSE=yes is requested and set -x might cause trouble, simply
20263         issue a warning and refrain from enabling debug output.
20264
20265 2010-09-08  Eric Blake  <eblake@redhat.com>
20266
20267         unsetenv: fix OpenBSD bug
20268         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20269         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20270         documentation.
20271         Reported by Jim Meyering.
20272
20273         strtod: work around IRIX 6.5 bug
20274         * lib/strtod.c (strtod): Reparse number on shorter string if
20275         exponent parse was invalid.
20276         * tests/test-strtod.c (main): Add check for "0x1p 2".
20277         Reported by Tom G. Christensen.
20278
20279         getopt: optimize previous patch
20280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20281         empty variable.  Speed up awk script.
20282         Reported by Paolo Bonzini.
20283
20284 2010-09-08  Jim Meyering  <meyering@redhat.com>
20285
20286         test.sh: disqualify shells for which set -x corrupts stderr
20287         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20288         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20289         appear in stderr output.  For example, this command:
20290             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20291         prints "P=1" on those two systems:
20292
20293 2010-09-08  Bruno Haible  <bruno@clisp.org>
20294
20295         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20296         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20297         commands, because some shells ignore redirections when there is an
20298         error in the command lookup.
20299         Reported by Eric Blake.
20300
20301 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20302
20303         * lib/regex.h: Fix a mention of `regex_compile' (should be
20304         `re_compile_pattern').
20305         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20306         (re_set_registers): Correct name of parameter in comment.
20307
20308         * doc/regex.texi: Add documentation for missing syntax flags.
20309         Remove commented-out documentation of defunct syntax option
20310         RE_NO_EMPTY_ALTS.
20311         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20312         Add documentation of re_set_registers.
20313         Document trick to re-use a pattern buffer by setting fastmap manually.
20314         Update documentation of struct re_pattern_buffer per public members.
20315         Uncomment documentation of equivalence class operators and
20316         collating symbol operators, since they are now implemented,
20317         Explain leftmost-longest matching in relation to alternatives.
20318         Tidy documentation of substring matching.
20319         Remove POSIX documentation, which is done better in
20320         glibc, and refer the reader there. Keep BSD API documentation, as
20321         that is not readily available elsewhere.
20322
20323 2010-09-07  Eric Blake  <eblake@redhat.com>
20324
20325         getopt: handle POSIXLY_CORRECT set but not exported
20326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20327         export state of POSIXLY_CORRECT, due to bash set -o posix.
20328         Reported by Dustin J. Mitchell.
20329
20330 2010-09-05  Bruno Haible  <bruno@clisp.org>
20331
20332         gnulib-tool: Highlight the changed options.
20333         * gnulib-tool (func_usage): Display the --import, --add-import,
20334         --remove-import explanations in bold font.
20335
20336 2010-09-06  Karl Berry  <karl@gnu.org>
20337
20338         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20339
20340 2010-09-05  Bruno Haible  <bruno@clisp.org>
20341
20342         uniwidth/width: Update comment.
20343         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20344         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20345
20346 2010-09-05  Bruno Haible  <bruno@clisp.org>
20347
20348         isinf, isnan: Relax license.
20349         * modules/isinf (License): Change from GPL to LGPL, with consent from
20350         Ben Pfaff.
20351         * modules/isnan (License): Likewise.
20352         Requested by Ludovic Courtès.
20353
20354 2010-09-04  Bruno Haible  <bruno@clisp.org>
20355
20356         gnulib-tool: Help migration from --import to --add-import or --update.
20357         * gnulib-tool: Emit a verbose error message when --import is used
20358         without any module name.
20359
20360 2010-09-04  Bruno Haible  <bruno@clisp.org>
20361
20362         Update doc about gnulib-tool.
20363         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20364         'gnulib-tool --update' in more detail.
20365         Reported by Eric Blake.
20366
20367 2010-09-04  Bruno Haible  <bruno@clisp.org>
20368
20369         gnulib-tool: Change --import. New options --add/remove-import.
20370         * gnulib-tool: New options --add-import, --remove-import.
20371         (func_usage): Document them.
20372         (have_associative): Define always.
20373         (func_import): In import mode, don't merge the specified settings with
20374         the cached settings. Implement remove-import mode.
20375         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20376         Explain when to use them versus --import.
20377         (Simple update): Use --add-import instead of --import.
20378         * NEWS: Mention the change.
20379
20380 2010-09-04  Bruno Haible  <bruno@clisp.org>
20381
20382         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20383         separate gnulib.mk.
20384
20385 2010-09-04  Bruno Haible  <bruno@clisp.org>
20386
20387         gnulib-tool: Don't talk about CVS any more.
20388         * gnulib-tool (func_usage, func_import): Write "version control"
20389         instead of CVS.
20390
20391 2010-09-04  Jim Meyering  <meyering@redhat.com>
20392
20393         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20394         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20395         false positives (whose names may be ill-chosen) when searching
20396         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20397         would cause a false-positive.
20398
20399         avoid coreutils "make distcheck" failure
20400         Coreutils tests with an absolute build directory name that contains
20401         a space.  Not quoting this directory name caused a failure.
20402         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20403         * tests/test-vc-list-files-cvs.sh: Likewise.
20404
20405 2010-09-04  Bruno Haible  <bruno@clisp.org>
20406
20407         gnulib-tool: Avoid error when run in a package without Makefile.am.
20408         * gnulib-tool: When collecting the m4dirs in a package that does not
20409         have a Makefile.am, eliminate those directories that contain no
20410         gnulib-cache.m4. Fix expression that counts these directories.
20411
20412 2010-09-04  Bruno Haible  <bruno@clisp.org>
20413
20414         update-copyright test: Improve output when perl is missing or too old.
20415         * tests/test-update-copyright.sh: Move test of Perl version down after
20416         the test whether Perl exists. Provide an explanation relating Perl's
20417         error message to Automake's SKIP: message.
20418
20419 2010-09-04  Bruno Haible  <bruno@clisp.org>
20420
20421         Don't augment PATH in TESTS_ENVIRONMENT.
20422         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20423         set abs_aux_dir instead of augmenting PATH.
20424         * modules/vc-list-files-tests (Makefile.am): Likewise.
20425         * tests/test-update-copyright.sh: Augment PATH here.
20426         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20427         path_prepend_.
20428         * tests/test-vc-list-files-git.sh: Likewise.
20429
20430 2010-09-04  Jim Meyering  <meyering@redhat.com>
20431
20432         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20433         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20434
20435 2010-09-04  Bruno Haible  <bruno@clisp.org>
20436
20437         strdup: Fix compilation error in C++ mode.
20438         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20439         the macro.
20440
20441 2010-09-04  Bruno Haible  <bruno@clisp.org>
20442
20443         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20444         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20445         macro into a function.
20446         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20447
20448 2010-09-04  Bruno Haible  <bruno@clisp.org>
20449
20450         Set PATH_SEPARATOR the same way autoconf does.
20451         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20452         the value of PATH_SEPARATOR the same way autoconf-generated configure
20453         scripts do.
20454         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20455         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20456
20457 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20458
20459         Set PATH_SEPARATOR the same way autoconf does.
20460         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20461         the same way autoconf-generated configure scripts do.
20462         * posix-modules: Likewise.
20463
20464 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         hash: fix safe_hasher const typo
20467         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20468         const; otherwise, there is a type error later.
20469
20470 2010-09-02  Jim Meyering  <meyering@redhat.com>
20471
20472         test-update-copyright.sh: require perl 5.8.0
20473         * tests/test-update-copyright.sh: Require 5.8.0,
20474         which Tom G. Christensen has confirmed is adequate,
20475         while 5.6.1 is not.
20476
20477 2010-09-02  Eric Blake  <eblake@redhat.com>
20478
20479         tests: init.sh improvements for re-exec'ing with zsh
20480         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20481         -vx through shell re-exec.
20482         Reported by Tom G. Christensen.
20483
20484         wctype: fix typo in previous commit
20485         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20486         Reported by Ludovic Courtès.
20487
20488 2010-09-02  Jim Meyering  <meyering@redhat.com>
20489
20490         test-update-copyright.sh: skip test if Perl is too old
20491         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20492         Reported by Tom G. Christensen.
20493
20494 2010-09-02  Bruno Haible  <bruno@clisp.org>
20495
20496         wctype: Avoid compilation error on IRIX 6.5.30.
20497         * lib/wctype.in.h (iswblank): Declare with a replacement if
20498         REPLACE_ISWBLANK is set.
20499         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20500         declared. Set REPLACE_ISWBLANK.
20501         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20502         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20503         * doc/posix-headers/wctype.texi: Likewise.
20504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20505
20506 2010-09-01  Bruno Haible  <bruno@clisp.org>
20507
20508         New module 'socketlib'.
20509         * modules/socketlib: New file.
20510         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20511         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20512         * modules/sockets (Depends-on): Add socketlib.
20513         Suggested by Sam Steingold <sds@gnu.org>.
20514
20515 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20516
20517         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20518
20519         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20520         when one needs search access to a directory but not read access.
20521         On systems where it is available, it works in some cases where
20522         O_RDONLY does not, namely on directories that are searchable but
20523         not readable, and which need only to be searchable.  If O_SEARCH
20524         is not available, fall back to the traditional method of using
20525         O_RDONLY.
20526
20527         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20528         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20529         when opening a directory that needs only to be searchable.
20530         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20531         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20532         * lib/openat-proc.c (openat_proc_name): Likewise.
20533         * lib/openat.c (openat_needs_fchdir): Likewise.
20534         * lib/save-cwd.c (save_cwd): Likewise.
20535         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20536
20537 2010-08-28  Bruno Haible  <bruno@clisp.org>
20538
20539         New module 'host-cpu-c-abi'.
20540         * modules/host-cpu-c-abi: New file.
20541         * m4/host-cpu-c-abi.m4: New file, based on part of
20542         clisp/src/m4/general.m4.
20543         Requested by Sam Steingold <sds@gnu.org>.
20544
20545 2010-08-31  Eric Blake  <eblake@redhat.com>
20546         and Jim Meyering  <meyering@redhat.com>
20547
20548         hash: factor, and guard against misbehaving hasher function
20549         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20550         of table->hasher's return value.  Also protect against a hash value
20551         so large that adding it to table->bucket results in a NULL pointer.
20552         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20553         Use it in place of open-coded check-and-abort.
20554
20555 2010-08-30  Bruno Haible  <bruno@clisp.org>
20556
20557         hash: silence spurious clang warning
20558         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20559         Reported by Eric Blake.
20560
20561 2010-08-30  Eric Blake  <eblake@redhat.com>
20562
20563         strstr, memmem, strcasestr: avoid leaked shell message
20564         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20565         FreeBSD.
20566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20568
20569         tests: silence clang warning
20570         * tests/test-malloca.c (do_allocation): Avoid dead store.
20571
20572 2010-08-29  Bruno Haible  <bruno@clisp.org>
20573
20574         gettext: Fix recent mistake.
20575         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20576
20577 2010-08-29  Bruno Haible  <bruno@clisp.org>
20578
20579         selinux-h: Offer a --without-selinux option.
20580         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20581         --without-selinux was specified, skip all tests and define
20582         HAVE_SELINUX_SELINUX_H to 0.
20583         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20584         set LIB_SELINUX to empty.
20585         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20586         gl_LIBSELINUX. If --without-selinux was specified, replace
20587         selinux/context.h.
20588         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20589
20590 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20591             Bruno Haible  <bruno@clisp.org>
20592
20593         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20594         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20595         of HAVE_REALLOC.
20596         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20597         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20598         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20599         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20600
20601 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20602             Bruno Haible  <bruno@clisp.org>
20603
20604         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20605         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20606         HAVE_CALLOC.
20607         * lib/xmalloc.c: Update accordingly.
20608         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20609         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20610         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20611
20612 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20613             Bruno Haible  <bruno@clisp.org>
20614
20615         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20616         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20617         HAVE_MALLOC.
20618         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20619         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20620         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20621
20622 2010-08-29  Bruno Haible  <bruno@clisp.org>
20623
20624         Update modules list.
20625         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20626         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20627         (String handling <string.h>): Add astrxfrm.
20628         (File system functions): Add readlinkat.
20629
20630 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20631
20632         Tests for module 'realloc-gnu'.
20633         * modules/realloc-gnu-tests: New file.
20634         * tests/test-realloc-gnu.c: New file.
20635
20636         Tests for module 'calloc-gnu'.
20637         * modules/calloc-gnu-tests: New file.
20638         * tests/test-calloc-gnu.c: New file.
20639
20640         Tests for module 'malloc-gnu'.
20641         * modules/malloc-gnu-tests: New file.
20642         * tests/test-malloc-gnu.c: New file.
20643
20644 2010-08-28  Bruno Haible  <bruno@clisp.org>
20645
20646         Rename module 'realloc' -> 'realloc-gnu'.
20647         * modules/realloc-gnu: New file, copied from modules/realloc.
20648         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20649         obsolete.
20650         * modules/mgetgroups (Depends-on): Update.
20651         * doc/posix-functions/realloc.texi: Update.
20652         * NEWS: Mention the change.
20653
20654         Rename module 'calloc' -> 'calloc-gnu'.
20655         * modules/calloc-gnu: New file, copied from modules/calloc.
20656         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20657         obsolete.
20658         * doc/posix-functions/calloc.texi: Update.
20659         * NEWS: Mention the change.
20660
20661         Rename module 'malloc' -> 'malloc-gnu'.
20662         * modules/malloc-gnu: New file, copied from modules/malloc.
20663         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20664         obsolete.
20665         * modules/argp (Depends-on): Update.
20666         * modules/regex (Depends-on): Update.
20667         * doc/posix-functions/malloc.texi: Update.
20668         * NEWS: Mention the change.
20669
20670 2010-08-28  Eric Blake  <eblake@redhat.com>
20671
20672         pread, pwrite: add missing dependency
20673         * modules/pread (Depends-on): Add extensions.
20674         * modules/pwrite (Depends-on): Likewise.
20675
20676 2010-08-28  Bruno Haible  <bruno@clisp.org>
20677
20678         unistr/u*-strchr: Fix tests dependencies.
20679         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20680         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20681         Reported by Ian Beckwith <ianb@erislabs.net>.
20682
20683 2010-08-28  Bruno Haible  <bruno@clisp.org>
20684
20685         read-file: Don't occupy too much unused memory.
20686         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20687
20688 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20689             Eric Blake  <eblake@redhat.com>
20690             Bruno Haible  <bruno@clisp.org>
20691
20692         read-file: Avoid memory reallocations with regular files.
20693         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20694         (fread_file): With regular files, use the remaining length as the
20695         initial buffer size.  Check against overflow.
20696         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20697         sys_stat.
20698
20699 2010-08-28  Bruno Haible  <bruno@clisp.org>
20700
20701         ftello: Relax license.
20702         * modules/ftello (License): Relax to LGPLv2+.
20703         Reported by Eric Blake.
20704
20705 2010-08-28  Bruno Haible  <bruno@clisp.org>
20706
20707         Avoid relocwrapper link errors due to gnulib replacement functions.
20708         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20709         function.
20710         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20711
20712 2010-08-28  Bruno Haible  <bruno@clisp.org>
20713
20714         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20715         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20716         defined.
20717         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20718         Suggested by Eric Blake.
20719
20720 2010-08-28  Bruno Haible  <bruno@clisp.org>
20721
20722         sys_socket, netdb: Ensure socklen_t gets defined.
20723         * modules/sys_socket (Depends-on): Add socklen.
20724         * modules/netdb (Depends-on): Likewise.
20725         * modules/getaddrinfo (Depends-on): Remove socklen.
20726         * modules/getsockopt (Depends-on): Likewise.
20727         * modules/setsockopt (Depends-on): Likewise.
20728         * tests/test-sys_socket.c: Check that socklen_t is defined.
20729         * tests/test-netdb.c: Likewise.
20730         * m4/socklen.m4: Update comments.
20731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20732
20733 2010-08-27  Eric Blake  <eblake@redhat.com>
20734
20735         login_tty: add missing dependency
20736         * modules/login_tty (Depends-on): Add pty.
20737
20738 2010-08-26  Eric Blake  <eblake@redhat.com>
20739
20740         lib-symbol-versions: fix m4 quoting
20741         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20742         format for AC_LINK_IFELSE.
20743
20744         glob: fix compile test
20745         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20746
20747         btowc: fix missing file
20748         * modules/btowc (Files): Also ship locale-fr.m4.
20749
20750         lseek: fix link test
20751         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20752         AC_LINK_IFELSE.
20753
20754         include_next: silence autoconf 2.68 warning
20755         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20756         AC_COMPILE_IFELSE as special.
20757         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20758         autoconf < 2.68.
20759
20760         acl: fix compilation test
20761         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20762         AC_COMPILE_IFELSE.
20763
20764 2010-08-26  Bruno Haible  <bruno@clisp.org>
20765
20766         Modernize AC_TRY_RUN invocations.
20767         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20768         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20769         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20770         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20771         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20772         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20773         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20775         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20776         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20777         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20778         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20779         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20780         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20781         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20782         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20783         gl_MBRLEN_NUL_RETVAL): Likewise.
20784         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20785         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20786         Likewise.
20787         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20788         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20789         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20790         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20791         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20792         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20793         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20794         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20795         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20796         Likewise.
20797         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20798         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20799         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20800         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20802         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20803         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20804         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20805         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20807
20808 2010-08-26  Bruno Haible  <bruno@clisp.org>
20809
20810         Modernize AC_TRY_LINK invocations.
20811         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20812         AC_TRY_LINK.
20813         * m4/argp.m4 (gl_ARGP): Likewise.
20814         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20815         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20816         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20817         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20818         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20819         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20820         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20821         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20822         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20823         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20824         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20825         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20826         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20827         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20828         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20829         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20830         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20831         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20832         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20833         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20834         Likewise.
20835         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20836         Likewise.
20837         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20838         Likewise.
20839         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20840         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20841         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20842         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20843         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20844         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20845         * m4/servent.m4 (gl_SERVENT): Likewise.
20846         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20847         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20849         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20850         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20851         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20852         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20853         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20854         * modules/tsearch-tests (configure.ac): Likewise.
20855
20856 2010-08-26  Bruno Haible  <bruno@clisp.org>
20857
20858         Modernize AC_TRY_COMPILE invocations.
20859         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20860         AC_TRY_COMPILE.
20861         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20862         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20863         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20864         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20865         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20866         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20867         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20868         * m4/lock.m4 (gl_LOCK): Likewise.
20869         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20870         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20871         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20872         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20873         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20874         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20875         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20876         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20877         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20878         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20879         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20880         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20881         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20882         extraneous semicolon.
20883
20884 2010-08-26  Jim Meyering  <meyering@redhat.com>
20885
20886         stat-time: relax license LGPL
20887         * modules/stat-time (License): Change from GPL to LGPL,
20888         with consent from all contributors, for use in libguile.
20889         Requested by Ludovic Courtès.
20890
20891 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20892
20893         poll: return immediately on POLLHUP.
20894         * lib/poll.c (poll): Always set timeout before wait_timeout is
20895         computed.
20896
20897 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20898
20899         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20900         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20901         rmdir ("dir/.//"), unlinkat.
20902
20903 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20904
20905         stdbool: avoid spurious failure with modern xlc
20906         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20907
20908 2010-08-24  Bruno Haible  <bruno@clisp.org>
20909
20910         getloadavg: simplify code
20911         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20912         gl_have_func. Update comments.
20913
20914 2010-08-24  Eric Blake  <eblake@redhat.com>
20915
20916         getloadavg: don't define SVR4 on cygwin
20917         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20918         only define SVR4 when -lkvm is required.
20919         Reported by Yaakov Selkowitz.
20920
20921 2010-08-24  Bruno Haible  <bruno@clisp.org>
20922
20923         priv-set: fix comment
20924         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20925
20926 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20927
20928         priv-set: fix comments
20929         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20930         to match code, as suggested by David Bartley in:
20931         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20932
20933 2010-08-23  Eric Blake  <eblake@redhat.com>
20934
20935         stdbool: avoid rejecting clang
20936         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20937         * tests/test-stdbool.c: Enable more tests if using the system
20938         <stdbool.h> instead of the gnulib replacement.
20939         (main): Move xlc bug test to a runtime test for all compilers.
20940         Reported by Anders Kaseorg.
20941
20942         argz: fix shell quoting issue
20943         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20944         Reported by Charles Wilson.
20945
20946 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20947             Erik Faye-Lund <kusmabite@gmail.com>
20948
20949         poll, select: handle ERROR_BROKEN_PIPE.
20950         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20951         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20952         * lib/select.c (win32_compute_revents): Do not mark a pipe
20953         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20954
20955 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20956
20957         fts: allow compilation with C++
20958         * lib/fts_.h: Specify extern "C" linkage with C++.
20959
20960 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20961
20962         Fix gnulib-tool sed script de-commentation for AIX sed.
20963         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20964         sed.
20965
20966 2010-08-17  Eric Blake  <eblake@redhat.com>
20967
20968         test-stddef: test for (some) offsetof bugs
20969         * tests/test-stddef.c: Enhance test to ensure correct type of
20970         offsetof.
20971         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20972         that we are not fixing at this time.
20973
20974 2010-08-15  Bruno Haible  <bruno@clisp.org>
20975
20976         stpncpy: Allow stpncpy to be defined as a macro.
20977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20978         if it's already correctly declared.
20979         * lib/string.in.h (stpncpy): Undefine before redefining.
20980         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20981
20982 2010-08-14  Bruno Haible  <bruno@clisp.org>
20983
20984         Rename module 'memxfrm' to 'amemxfrm'.
20985         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20986         (amemxfrm): Renamed from memxfrm.
20987         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20988         (amemxfrm): Renamed from memxfrm.
20989         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20990         * NEWS: Mention the change.
20991         * MODULES.html.sh (String handling <string.h>): Update.
20992         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20993         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20994         * lib/unicase/u16-casexfrm.c: Likewise.
20995         * lib/unicase/u32-casexfrm.c: Likewise.
20996         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20997         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20998         * lib/uninorm/u16-normxfrm.c: Likewise.
20999         * lib/uninorm/u32-normxfrm.c: Likewise.
21000         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21001         memxfrm.
21002         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21003         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21004         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21005         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21006         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21007         Suggested by Paul Eggert.
21008
21009 2010-08-14  Bruno Haible  <bruno@clisp.org>
21010
21011         Tests for module 'astrxfrm'.
21012         * modules/astrxfrm-tests: New file.
21013         * tests/test-astrxfrm.c: New file.
21014
21015         New module 'astrxfrm'.
21016         * lib/astrxfrm.h: New file.
21017         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21018         * modules/astrxfrm: New file.
21019
21020 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21021
21022         regex: Tweak doc.
21023         * doc/regex.texi (Overview): Don't mention regex.c.
21024         (GNU Regular Expression Compiling): Likewise.
21025         (Match-end-of-line Operator): Mention 'not_eol'.
21026
21027 2010-08-14  Brian Gough  <bjg@gnu.org>
21028             Bruno Haible  <bruno@clisp.org>
21029
21030         git-merge-changelog: add doc relating to use with bzr and hg.
21031         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21032
21033 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21034
21035         pthread: fix pthread.h creation for srcdir != builddir
21036         * modules/pthread (Makefile.am): Fix the rule to work also in a
21037         non-srcdir build.
21038
21039 2010-08-13  Karl Berry  <karl@gnu.org>
21040
21041         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21042         * doc/posix-*/*: force line break before @url of POSIX
21043         specifications.
21044         Suggested by Werner Lemberg.
21045
21046 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21047
21048         strtod: fix const diagnostic
21049         * lib/strtod.c (strtod): Don't assign const char * to char *,
21050         as this elicits a warning from GCC when warnings are enabled.
21051
21052 2010-08-10  Pádraig Brady <P@draigbrady.com>
21053         and Eric Blake  <eblake@redhat.com>
21054
21055         copy-acl: ignore ENOTSUP on HP-UX
21056         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21057         so that it is available for HP-UX.
21058         * lib/copy-acl.c (qcopy_acl): Use it.
21059         Reported by Patrick M. Callahan.
21060
21061 2010-08-10  Eric Blake  <eblake@redhat.com>
21062
21063         open, chown: relax license
21064         * modules/open (License): Change to LGPLv2+, with consent by all
21065         authors, for use in augeas.
21066         * modules/chown (License): Likewise.
21067         * modules/lchown (Likewise): Likewise.
21068         Requested by Adam Stokes.
21069
21070 2010-08-09  Karl Berry  <karl@gnu.org>
21071
21072         * build-aux/ar-lib: new file, import from Automake.
21073         * config/srclist.txt: autocheck for updates.
21074
21075 2010-08-09  Eric Blake  <eblake@redhat.com>
21076
21077         readlinkat: adjust client modules
21078         * modules/areadlinkat (Depends-on): Use readlinkat, not
21079         symlinkat.
21080         * modules/areadlinkat-with-size (Depends-on): Likewise.
21081
21082         mknod: be more vocal about danger of running tests as root
21083         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21084         root, since that is just asking for problems.
21085         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21086
21087         readlinkat: split into its own module
21088         * modules/symlinkat: Split readlinkat...
21089         * modules/readlinkat: ...into separate module.
21090         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21091         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21092         * lib/symlinkat.c (readlinkat): Move...
21093         * lib/readlinkat.c: ...into new file.
21094         * modules/symlinkat-tests: Split readlinkat test...
21095         * modules/readlinkat-tests: ...into separate module.
21096         * tests/test-symlinkat.c: Split...
21097         * tests/test-readlinkat.c: ...into new file.
21098         * NEWS: Document the split.
21099         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21100         * lib/unistd.in.h (readlinkat): Likewise.
21101         Suggested by Bruno Haible.
21102
21103 2010-08-08  Bruno Haible  <bruno@clisp.org>
21104
21105         memxfrm: Speed up.
21106         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21107         that usually only one call to strxfrm is necessary for each string
21108         part.
21109         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21110
21111 2010-08-07  Karl Berry  <karl@gnu.org>
21112
21113         * doc/posix-headers/limits.texi,
21114         * doc/posix-functions/malloc.texi,
21115         * doc/posix-functions/strsignal.texi: missing @item.
21116         * doc/ld-version-script.texi: spurious leading i.
21117         * doc/regex.texi (Interval Operators): no commas inside @var.
21118
21119 2010-08-01  Bruno Haible  <bruno@clisp.org>
21120
21121         Integrate the regex documentation.
21122         * doc/gnulib.texi: Define 'cn' index.
21123         (Regular expressions): New a chapter that includes regex.texi and
21124         regexprops-generic.texi.
21125         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21126         syntax.
21127
21128         Whitespace cleanup.
21129         * doc/regex.texi: Remove trailing spaces.
21130
21131         Add regex documentation.
21132         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21133         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21134         Written by Kathy A. Hargreaves and Karl Berry.
21135
21136 2010-08-01  Bruno Haible  <bruno@clisp.org>
21137
21138         link: Update documentation.
21139         * doc/posix-functions/link.texi: Update regarding Solaris.
21140
21141 2010-07-31  Bruno Haible  <bruno@clisp.org>
21142
21143         Update modules list.
21144         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21145         (String handling <string.h>): Add memcmp2, memxfrm.
21146         (Container data structures): Add xlist, xsublist, xoset.
21147         (Core language properties): Add alignof, unused-parameter.
21148         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21149         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21150         (Unibyte characters <ctype.h>): New section.
21151         (String handling <string.h>): New section.
21152         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21153         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21154         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21155         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21156         tan, tanh, tanl, y0, y1, yn.
21157         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21158         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21159         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21160         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21161         unlockpt, vdprintf, vdprintf-posix.
21162         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21163         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21164         xconcat-filename.
21165         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21166         getdtablesize, pipe2, pipe2-safer.
21167         (Security): New section.
21168         (Networking functions): Add accept4.
21169         (Signal handling): Add sigpipe.
21170         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21171         mbmemcasecoll.
21172         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21173         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21174         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21175         pipe-filter-ii.
21176         (Misc): Add argp-version-etc, login_tty, parse-duration.
21177
21178 2010-07-31  Bruno Haible  <bruno@clisp.org>
21179
21180         Improve doc in MODULES.html.
21181         * modules/linkat (Description): Add the word "function".
21182         * modules/mkfifo (Description): Likewise.
21183         * modules/mknod (Description): Likewise.
21184         * modules/remove (Description): Likewise.
21185         * modules/renameat (Description): Likewise.
21186         * modules/stat (Description): Likewise.
21187         * modules/symlink (Description): Likewise.
21188         * modules/unlink (Description): Likewise.
21189
21190 2010-07-31  Bruno Haible  <bruno@clisp.org>
21191
21192         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21193         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21194         option --enable/disable-c++ instead of --enable/disable-cxx.
21195         * NEWS: Mention the change.
21196
21197 2010-07-31  Bruno Haible  <bruno@clisp.org>
21198
21199         readlink, areadlink: Relax test a bit.
21200         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21201         alternative to ENOTDIR.
21202         * tests/test-areadlink.h (test_areadlink): Likewise.
21203         Reported by Rainer Tammer.
21204
21205 2010-07-31  Bruno Haible  <bruno@clisp.org>
21206
21207         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21208         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21209         character, perform the search using U_STRCHR.
21210         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21211         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21212         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21213         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21214         Suggested by Paolo Bonzini.
21215
21216 2010-07-31  Bruno Haible  <bruno@clisp.org>
21217
21218         unistr/u*-strstr: Fix dependencies.
21219         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21220         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21221         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21222
21223 2010-07-31  Bruno Haible  <bruno@clisp.org>
21224
21225         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21226         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21227         the beginning of the loop.
21228         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21229         cases in 'switch' statement.
21230
21231         unistr/u8-strchr: Fix several bugs.
21232         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21233         the string. When not found, return NULL, not a pointer near the end.
21234
21235         More tests for unistr/u8-strchr.
21236         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21237         that the function does not read past the first occurrence of the byte
21238         being searched.
21239         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21240         * tests/unistr/test-u16-strchr.c (main): New function.
21241         * tests/unistr/test-u32-strchr.c (main): New function.
21242
21243 2010-07-31  Bruno Haible  <bruno@clisp.org>
21244
21245         posix-modules: Ignore backup files of documentation files.
21246         * posix-modules: grep only through files named *.texi.
21247
21248 2010-07-31  Bruno Haible  <bruno@clisp.org>
21249
21250         symlinkat: Fix documentation.
21251         * doc/posix-functions/readlinkat.texi: Fix module name.
21252
21253 2010-07-31  Bruno Haible  <bruno@clisp.org>
21254
21255         fchownat: Replace also when chown has the trailing slash bug.
21256         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21257         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21258         introduced on 2010-04-10.
21259         Reported by Rainer Tammer.
21260
21261 2010-07-31  Bruno Haible  <bruno@clisp.org>
21262
21263         linkat: Work around AIX 7.1 bug.
21264         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21265         whether linkat handles trailing slash correctly. If not, replace linkat
21266         and define LINKAT_TRAILING_SLASH_BUG.
21267         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21268         check whether (fd1,file1) points to a directory if file1 or file2 ends
21269         in a slash. Code taken from lib/link.c.
21270         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21271         Reported by Rainer Tammer.
21272
21273 2010-07-31  Bruno Haible  <bruno@clisp.org>
21274
21275         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21276         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21277         This disables an xlc optimization that was causing wrong test results.
21278         Reported by Rainer Tammer.
21279
21280 2010-07-31  Bruno Haible  <bruno@clisp.org>
21281
21282         iconv: Work around AIX 6.1..7.1 bug.
21283         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21284         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21285         cross-compiling, guess no on all versions of AIX.
21286         Reported by Rainer Tammer.
21287
21288 2010-07-31  Bruno Haible  <bruno@clisp.org>
21289
21290         readlink: Relax test a bit.
21291         * tests/test-readlink.h (test_readlink): Allow different errno value
21292         when readlink is called with a file name that ends in / and refers to
21293         a file.
21294         Suggested by Eric Blake.
21295         Reported by Rainer Tammer.
21296
21297 2010-07-31  Bruno Haible  <bruno@clisp.org>
21298
21299         copysign: Does not require -lm on glibc systems.
21300         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21301         gl_COMMON_DOUBLE_MATHFUNC.
21302         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21303
21304 2010-07-31  Bruno Haible  <bruno@clisp.org>
21305
21306         duplocale: Work around AIX 7.1 bug.
21307         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21308         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21309         * lib/duplocale.c (rpl_duplocale): Update comment.
21310         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21311         Reported by Rainer Tammer.
21312
21313 2010-07-30  Bruno Haible  <bruno@clisp.org>
21314
21315         dirfd: Avoid link error on AIX 7.1.
21316         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21317         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21318         exist, set REPLACE_DIRFD.
21319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21320         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21321         * doc/posix-functions/dirfd.texi: Update.
21322         Reported by Rainer Tammer.
21323
21324 2010-07-30  Eric Blake  <eblake@redhat.com>
21325
21326         strtod: next round of AIX fixes
21327         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21328         exponent.
21329         * tests/test-strtod.c (main): Enhance tests.
21330         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21331         Reported by Rainer Tammer.
21332
21333         futimens: fix configure check
21334         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21335         Reported by Bruno Haible.
21336
21337 2010-07-30  Bruno Haible  <bruno@clisp.org>
21338
21339         getline: Update regarding AIX.
21340         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21341         Reported by Rainer Tammer.
21342
21343 2010-07-30  Bruno Haible  <bruno@clisp.org>
21344
21345         wcwidth: Drop replacement on AIX 7.
21346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21347         AIX 7.
21348         Reported by Rainer Tammer.
21349
21350 2010-07-30  Bruno Haible  <bruno@clisp.org>
21351
21352         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21353         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21354         a 'char *'.
21355         Reported by Rainer Tammer.
21356
21357 2010-07-30  Bruno Haible  <bruno@clisp.org>
21358
21359         unlink: Update regarding AIX.
21360         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21361         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21362         Reported by Rainer Tammer.
21363
21364 2010-07-30  Bruno Haible  <bruno@clisp.org>
21365
21366         symlink: Update regarding AIX.
21367         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21368         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21369         Reported by Rainer Tammer.
21370
21371 2010-07-30  Bruno Haible  <bruno@clisp.org>
21372
21373         strndup: Update regarding AIX.
21374         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21375         AIX 7.
21376         Reported by Rainer Tammer.
21377
21378 2010-07-30  Bruno Haible  <bruno@clisp.org>
21379
21380         stat: Update regarding AIX.
21381         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21382         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21383         Reported by Rainer Tammer.
21384
21385 2010-07-30  Bruno Haible  <bruno@clisp.org>
21386
21387         truncl: Fix autoconf test.
21388         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21389         whether truncl works.
21390         Reported by Rainer Tammer.
21391
21392 2010-07-30  Bruno Haible  <bruno@clisp.org>
21393
21394         round: Update regarding AIX.
21395         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21396         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21397         Reported by Rainer Tammer.
21398
21399 2010-07-30  Bruno Haible  <bruno@clisp.org>
21400
21401         rename: Update regarding AIX.
21402         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21403         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21404         Reported by Rainer Tammer.
21405
21406 2010-07-30  Bruno Haible  <bruno@clisp.org>
21407
21408         printf.m4: Update regarding AIX.
21409         * m4/printf.m4: Update comments regarding AIX.
21410         Reported by Rainer Tammer.
21411
21412 2010-07-30  Bruno Haible  <bruno@clisp.org>
21413
21414         iconv: Update regarding AIX.
21415         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21416         AIX 7.
21417         Reported by Rainer Tammer.
21418
21419 2010-07-30  Bruno Haible  <bruno@clisp.org>
21420
21421         getopt: Update regarding AIX.
21422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21423         no on AIX.
21424         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21425         Reported by Rainer Tammer.
21426
21427 2010-07-30  Bruno Haible  <bruno@clisp.org>
21428
21429         ldexpl; Update regarding AIX.
21430         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21431         on AIX 7.
21432         Reported by Rainer Tammer.
21433
21434 2010-07-30  Bruno Haible  <bruno@clisp.org>
21435
21436         frexpl: Update regarding AIX.
21437         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21438         on AIX 7.
21439         Reported by Rainer Tammer.
21440
21441 2010-07-30  Bruno Haible  <bruno@clisp.org>
21442
21443         open, fopen: Update regarding AIX.
21444         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21445         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21446         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21447         * doc/posix-functions/fopen.texi: Likewise.
21448         Reported by Rainer Tammer.
21449
21450 2010-07-30  Bruno Haible  <bruno@clisp.org>
21451
21452         chown: Update doc regarding AIX.
21453         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21454         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21455         Reported by Rainer Tammer.
21456
21457 2010-07-30  Eric Blake  <eblake@redhat.com>
21458
21459         strtod: fix bug in replacement function on AIX
21460         * lib/strtod.c (strtod): Special case broken "0x" parse in
21461         underlying strtod.
21462         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21463         * doc/posix-functions/strtod.texi (strtod): Likewise.
21464         Reported by Rainer Tammer.
21465
21466 2010-07-30  Bruno Haible  <bruno@clisp.org>
21467
21468         mbrlen: Fix cross-compilation guess for AIX.
21469         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21470         guess. Leftover from 2008-12-22.
21471
21472 2010-07-30  Bruno Haible  <bruno@clisp.org>
21473
21474         mbrtowc: Fix cross-compilation guess for AIX.
21475         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21476         guess. Leftover from 2008-12-21.
21477
21478 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21479
21480         init.sh: work around trap limitation of some shells
21481         * tests/init.sh (setup_): Move exit trap outside of shell function.
21482
21483 2010-07-29  Eric Blake  <eblake@redhat.com>
21484
21485         strtod: aid debugging
21486         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21487         understanding why strtod is rejected.
21488
21489 2010-07-28  Bruno Haible  <bruno@clisp.org>
21490
21491         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21492         * lib/unistr/u8-chr.c: Include <string.h>.
21493         * tests/unistr/test-u8-chr.c: Likewise.
21494         * tests/unistr/test-u16-chr.c: Likewise.
21495         * tests/unistr/test-u32-chr.c: Likewise.
21496         * tests/unistr/test-u8-strchr.c: Likewise.
21497         * tests/unistr/test-u16-strchr.c: Likewise.
21498         * tests/unistr/test-u32-strchr.c: Likewise.
21499         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21500         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21501         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21502         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21503
21504 2010-07-28  Bruno Haible  <bruno@clisp.org>
21505
21506         Use spaces for indentation, not tabs.
21507         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21508
21509 2010-07-27  Bruno Haible  <bruno@clisp.org>
21510
21511         mbspcasecmp: Fix function specification.
21512         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21513         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21514         Reported by Eric Blake <eblake@redhat.com>.
21515
21516 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21517
21518         timespec: use cast and not conditional, as truncation isn't possible
21519         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21520         instead of a conditional.  Comment about the situation in more detail.
21521         This undoes most of the 2009-10-29 patch.
21522
21523 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21524
21525         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21526         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21527         * lib/unistr/u8-strchr.c: Likewise.
21528         * modules/unistr/u8-chr: Depend on memchr.
21529
21530         unistr/u*-strchr: add tests
21531         * modules/unistr/u8-strchr-tests: New file.
21532         * modules/unistr/u16-strchr-tests: New file.
21533         * modules/unistr/u32-strchr-tests: New file.
21534         * tests/unistr/test-strchr.h: New file.
21535         * tests/unistr/test-u8-strchr.c: New file.
21536         * tests/unistr/test-u16-strchr.c: New file.
21537         * tests/unistr/test-u32-strchr.c: New file.
21538
21539         unistr/u*-chr: test multibyte sequences more
21540         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21541         test vector.
21542         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21543         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21544         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21545
21546         unistr/u*-chr: test multibyte sequences
21547         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21548
21549         unistr/u*-chr: prepare for multibyte tests
21550         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21551         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21552         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21553         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21554         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21555         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21556
21557 2010-07-18  Bruno Haible  <bruno@clisp.org>
21558
21559         unistr/u8-strchr: Optimize non-ASCII argument case.
21560         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21561         because the first byte often matches anyway.
21562         Reported by Pádraig Brady <P@draigbrady.com>.
21563
21564 2010-07-15  Karl Berry  <karl@gnu.org>
21565
21566         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21567
21568 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21569
21570         getcwd: on Solaris, work better if ancestors are inaccessible
21571         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21572         buffer and size, try again with a large buffer.  This works better
21573         on Solaris, since its getcwd succeeds even if the path to the root
21574         is inaccessible, and this is helpful in common cases such as .zfs
21575         hidden directories.  Problem reported by J Chapman Flack in
21576         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21577         Use system getcwd if it's declared, not merely if it's partly
21578         working; use the partly-working test only to avoid needless effort
21579         if the system getcwd fails.
21580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21581         comment that was already obsolete and is now even more obsolete.
21582         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21583         now might call strdup.
21584
21585 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21586
21587         pthread: Add enough so that coreutils/src/sort.c compiles.
21588         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21589         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21590         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21591         Include <sys/types.h>, in case it defines pthread_t.
21592         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21593         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21594         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21595         (pthread_rwlockattr_t, pthread_spinlock_t):
21596         New typedefs, if HAVE_PTHREAD_T is not defined.
21597         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21598         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21599         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21600         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21601         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21602         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21603         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21604         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21605         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21606         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21607         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21608         New macros.
21609         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21610         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21611         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21612         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21613         (pthread_spin_unlock): New dummy functions.
21614         (pthread_create): Return EAGAIN; don't set errno.
21615         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21616         require AC_C_INLINE.
21617         * modules/pthread (Depends-on): Add sched, time.
21618         (pthread.h): Use AM_V_GEN.
21619
21620 2010-07-13  Bruno Haible  <bruno@clisp.org>
21621
21622         striconveh: Don't malloc memory if the result buffer is sufficient.
21623         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21624         buffer if its size is sufficient.
21625         Reported by Ludovic Courtès <ludo@gnu.org>.
21626
21627 2010-07-13  Bruno Haible  <bruno@clisp.org>
21628
21629         strtod: Add safety check.
21630         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21631
21632 2010-07-12  Bruno Haible  <bruno@clisp.org>
21633
21634         Unify tests that set gl_cv_func_ldexpl_no_libm.
21635         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21636         gl_FUNC_LDEXPL.
21637         (gl_FUNC_LDEXPL): Invoke it.
21638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21639
21640 2010-07-12  Bruno Haible  <bruno@clisp.org>
21641
21642         Unify tests that set gl_cv_func_ldexp_no_libm.
21643         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21644         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21645         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21646         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21647         * modules/strtod (Files): Add m4/ldexp.m4.
21648
21649 2010-07-12  Bruno Haible  <bruno@clisp.org>
21650
21651         Unify tests that set gl_cv_func_frexpl_no_libm.
21652         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21653         gl_FUNC_FREXPL_NO_LIBM.
21654         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21655         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21656
21657 2010-07-12  Bruno Haible  <bruno@clisp.org>
21658
21659         Unify tests that set gl_cv_func_frexp_no_libm.
21660         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21661         gl_FUNC_FREXP_NO_LIBM.
21662         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21663         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21664
21665 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21666
21667         memcoll: clarify sizes versus lengths, document better, and tweak perf
21668         * lib/memcoll.c (strcoll_loop, memcoll0):
21669         Improve quality of descriptive comments.  Name variables
21670         consistently as to whether they are lengths (which do not include
21671         terminating null) versus sizes (which do).
21672         * lib/xmemcoll.c (xmemcoll0): Likewise.
21673         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21674         returned when s1size == 0; this is easier to compile and saves
21675         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21676
21677 2010-07-12  Bruno Haible  <bruno@clisp.org>
21678
21679         Tests for module '_Exit'.
21680         * modules/_Exit-tests: New file.
21681         * tests/test-_Exit.sh: New file.
21682         * tests/test-_Exit.c: New file.
21683
21684         New module '_Exit'.
21685         * lib/stdlib.in.h (__attribute__): New macro.
21686         (_Exit): New declaration.
21687         * lib/_Exit.c: New file.
21688         * m4/_Exit.m4: New file.
21689         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21690         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21691         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21692         * modules/_Exit: New file.
21693         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21694         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21695
21696 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21697
21698         strtod: make it more-accurate typically, and don't require libm
21699         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21700         Include limits.h.  Don't include string.h.
21701         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21702         (locale_isspace): New function, so that no casts are needed to
21703         check whether *s is a space.
21704         (ldexp): Provide an unused dummy if not available.
21705         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21706         (strtod): Use them.  This implementation prefers to use the
21707         underlying strtod if available, falling back on our own code
21708         only to fix known bugs.  This is more likely to produce an
21709         accurate result.  Also, it avoids the use of libm functions.
21710         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21711         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21712         was absent, but it caused a test failure with coreutils.
21713         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21714         with libm.
21715         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21716         * modules/strtod-tests (Makefile.am): Likewise.
21717
21718 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21719             Bruno Haible  <bruno@clisp.org>
21720
21721         unistr/u8-strchr: Optimize ASCII argument case.
21722         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21723
21724 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21725
21726         (x)memcoll: minor tweaks
21727         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21728         is after the type that it qualifies.
21729         (memcoll0): Likewise.
21730         * lib/memcoll.h (memcoll0): Likewise.
21731         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21732         * lib/xmemcoll.h (xmemcoll0): Likewise.
21733         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21734         differs from memcoll in that the NUL byte is part of the argument.
21735         Omit the abort-checks, as performance is a real issue here.  Plus,
21736         the checks were wrong anyway (an off-by-one error).  Omit local
21737         variable 'diff', as it's a bit clearer that way.
21738         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21739         no longer needed.
21740
21741 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21742
21743         (x)memcoll: speedup when input is known to be NUL delimited
21744         * lib/memcoll.c: Include stdlib.
21745         (memcoll0): New function.
21746         (strcoll_loop): New function, refactored for use in both memcoll
21747         and memcoll0.
21748         * lib/memcoll.h (memcoll0): Add prototype.
21749         * lib/xmemcoll.c (xmemcoll0): New function.
21750         (collate_error): New function, refactored for use in both xmemcoll
21751         and xmemcoll0.
21752         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21753         * m4/memcoll.m4: add inline invocation.
21754
21755 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21756
21757         * build-aux/bootstrap: Remove any local translations
21758         from the translation project synchronization directory,
21759         so that local only translations are not distributed.
21760
21761 2010-07-04  Bruno Haible  <bruno@clisp.org>
21762
21763         fsusage: Clarify which code applies to which platforms.
21764         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21765         platform.
21766         * lib/fsusage.c (get_fs_usage): Likewise.
21767
21768 2010-07-04  Bruno Haible  <bruno@clisp.org>
21769
21770         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21771         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21772         Reported by Martin Lambers <marlam@marlam.de>.
21773
21774 2010-07-04  Jim Meyering  <meyering@redhat.com>
21775
21776         hash: once again explicitly disallow insertion of NULL
21777         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21778         inserting a NULL pointer cannot work with these functions.
21779         Add a comment with details.
21780         This reverts part of the 2010-07-01 commit, 5bef1a35
21781         "hash: extend module to deal with non-pointer keys".
21782
21783 2010-07-01  Bruno Haible  <bruno@clisp.org>
21784
21785         stdbool: Update doc.
21786         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21787         Info from Christian Weisgerber <naddy@mips.inka.de>.
21788
21789 2010-07-01  Jim Meyering  <meyering@redhat.com>
21790
21791         hash: extend module to deal with non-pointer keys
21792         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21793         but that allows insertion of non-pointer entries.
21794         Do not disallow an ENTRY value of NULL.
21795         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21796         * lib/hash.h (hash_insert0): Declare.
21797
21798 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21799
21800         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21801         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21802         not present (i.e. with autoconf 2.59 and when using gettextize, not
21803         gnulib), require AC_GNU_SOURCE instead.
21804
21805 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21806
21807         idpriv-drop: Fix tests.
21808         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21809         not to the test-idpriv-droptemp program.
21810
21811 2010-06-29  Bruno Haible  <bruno@clisp.org>
21812
21813         string: Fix syntax error with g++ 2.96.
21814         * lib/string.in.h (__pure__): Remove definition.
21815         (_GL_ATTRIBUTE_PURE): New macro.
21816         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21817         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21818         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21819
21820 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21821
21822         unitypes: Fix bug introduced on 2010-05-18.
21823         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21824
21825 2010-06-22  Eric Blake  <eblake@redhat.com>
21826
21827         memmem: slight optimization
21828         * lib/str-two-way.h (critical_factorization): Update comments.
21829         Reduce work during factorization phase.
21830         Reported by Carlos Bueno <carlos@bueno.org>.
21831
21832 2010-06-21  Bruno Haible  <bruno@clisp.org>
21833
21834         Fix HAVE_CALLOC_POSIX misnomer.
21835         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21836         !HAVE_CALLOC_POSIX.
21837         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21838         HAVE_CALLOC_POSIX.
21839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21840         instead of HAVE_CALLOC_POSIX.
21841         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21842         HAVE_CALLOC_POSIX.
21843
21844         Use modern idiom for calloc() replacement.
21845         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21846         AC_FUNC_CALLOC.
21847         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21848         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21849         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21850         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21851         (gl_REPLACE_CALLOC): New macro.
21852
21853 2010-06-21  Bruno Haible  <bruno@clisp.org>
21854
21855         Fix HAVE_REALLOC_POSIX misnomer.
21856         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21857         !HAVE_REALLOC_POSIX.
21858         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21859         HAVE_REALLOC_POSIX.
21860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21861         instead of HAVE_REALLOC_POSIX.
21862         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21863         HAVE_REALLOC_POSIX.
21864
21865         Use modern idiom for realloc() replacement.
21866         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21867         AC_FUNC_REALLOC.
21868         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21869         Autoconf's AC_FUNC_REALLOC.
21870         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21871         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21872         (gl_REPLACE_REALLOC): New macro.
21873         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21874
21875 2010-06-21  Bruno Haible  <bruno@clisp.org>
21876
21877         Fix HAVE_MALLOC_POSIX misnomer.
21878         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21879         !HAVE_MALLOC_POSIX.
21880         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21881         HAVE_MALLOC_POSIX.
21882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21883         instead of HAVE_MALLOC_POSIX.
21884         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21885         HAVE_MALLOC_POSIX.
21886
21887         Use modern idiom for malloc() replacement.
21888         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21889         AC_FUNC_MALLOC.
21890         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21891         Autoconf's AC_FUNC_MALLOC.
21892         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21893         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21894         (gl_REPLACE_MALLOC): New macro.
21895         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21896
21897 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21898
21899         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21900         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21901         This macro takes 3 arguments, not 4.
21902
21903 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21904
21905         ipv6: fix detection under mingw
21906         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21907         in6_addr.
21908
21909 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21910
21911         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21912         that strtod() works when cross-compiling to a glibc version known
21913         to work.
21914
21915 2010-06-15  Bruno Haible  <bruno@clisp.org>
21916
21917         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21918
21919 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21920
21921         select: Correct timeout.
21922         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21923
21924 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21925
21926         git-version-gen: init shell var to avoid env var influence
21927         * build-aux/git-version-gen (v): Init shell var to empty.
21928
21929 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21930
21931         priv-set: Don't assume that priv.h exists merely because getppriv does.
21932         See Jan Andersen's bug report about AIX 5L in
21933         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21934         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21935         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21936         * lib/priv-set.h: Likewise.
21937         * tests/test-priv-set.c: Likewise.
21938
21939 2010-06-13  Bruno Haible  <bruno@clisp.org>
21940
21941         relocatable: Make it easier to test whether to install wrappers.
21942         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21943         RELOCATABLE_VIA_WRAPPER.
21944
21945 2010-06-13  Bruno Haible  <bruno@clisp.org>
21946
21947         gnulib-tool: Display specified modules and dependencies differently.
21948         * gnulib-tool (func_show_module_list): New function.
21949         (func_import, func_create_testdir): Invoke it.
21950         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21951
21952 2010-06-13  Bruno Haible  <bruno@clisp.org>
21953
21954         gnulib-tool: Align code of func_import and func_create_testdir.
21955         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21956         specified_modules.
21957
21958 2010-06-12  Jim Meyering  <meyering@redhat.com>
21959
21960         test-inttostr: avoid spurious failure on Solaris 9
21961         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21962         to accept "%ju".  Reported by Bruno Haible.
21963
21964 2010-06-11  Jim Meyering  <meyering@redhat.com>
21965
21966         test-sys_socket: mark variables as used more readably
21967         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21968         as "used" explicitly via (void) statement casts.  This is more
21969         readable than using them in an artificial return expression.
21970         Suggestion from Bruno Haible.
21971
21972 2010-06-11  Bruno Haible  <bruno@clisp.org>
21973
21974         Avoid some more warnings from "gcc -Wwrite-strings".
21975         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21976         to 'const char *'.
21977         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21978         * tests/test-c-strcasestr.c (main): Likewise.
21979         * tests/test-mbscasestr1.c (main): Likewise.
21980         * tests/test-mbscasestr2.c (main): Likewise.
21981         * tests/test-memmem.c (main): Likewise.
21982         * tests/test-strstr.c (main): Likewise.
21983         * tests/test-strcasestr.c (main): Likewise.
21984
21985 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21986
21987         init.sh: change framework_failure_ to fail with status 99, not 1
21988         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21989         automake's parallel-tests rule that this is an unexpected failure,
21990         even if the test is listed in XFAIL_TESTS.
21991
21992 2010-06-11  Jim Meyering  <meyering@redhat.com>
21993
21994         test-inttostr: avoid warnings about 4-6KB literal strings
21995         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21996         Include "macros.h", for its definition of ASSERT.
21997         (CK): s/assert/ASSERT/
21998         * modules/inttostr-tests (Files): Add macros.h.
21999
22000         init.sh: don't use $ME_ or skip_ before they are defined
22001         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22002         their first uses.  Also hoist their companions: warn_, fail_,
22003         framework_failure_, $stderr_fileno.  Prompted by a patch from
22004         Stefano Lattarini.
22005
22006         test-sys_socket: avoid set-but-not-used warnings from gcc
22007         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22008         avoid warning about set-but-not-used variables.
22009
22010         test-xvasprintf: avoid 'const' discard warnings
22011         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22012         "const" when assigning from literal strings.
22013         (test_xasprintf): Add "void" in function argument list to placate
22014         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22015
22016         tests: avoid compilation warnings in argmatch and exclude tests...
22017         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22018         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22019         Since it always exits, declare with the "noreturn" attribute.
22020         * tests/test-argmatch.c: Likewise.
22021
22022         tests: avoid 'const' discard warnings in mbsstr tests
22023         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22024         * tests/test-mbsstr2.c (main): Likewise.
22025
22026         test-verify: avoid warning from gcc's -Wmissing-declarations
22027         * tests/test-verify.c (function): Declare to be static.
22028
22029         test-inttostr.c: include <string.h> for use of strcmp
22030         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22031
22032         test-linkat: avoid failed assertion on "other" architectures
22033         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22034         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22035         sparc: https://bugs.launchpad.net/bugs/591968
22036
22037 2010-06-11  Jim Meyering  <meyering@redhat.com>
22038
22039         printf.m4: avoid autoconf's "Expanded Before Required" warning
22040         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22041         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22042         autoconf warning.
22043
22044 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22045
22046         Replacement header templates are now named with ".in", not "_".
22047         * doc/gnulib-intro.texi: Correct.
22048
22049 2010-06-10  Jim Meyering  <meyering@redhat.com>
22050
22051         inttostr-tests: depend on snprintf, not snprintf-posix
22052         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22053         snprintf-posix, to avoid this aclocal failure:
22054           missing file gnulib-tests/vasnprintf.c
22055           configure.ac:45: error: expected source file, required through \
22056           AC_LIBSOURCES, not found
22057
22058 2010-06-10  Jim Meyering  <meyering@redhat.com>
22059
22060         inttostr: add a new function, inttostr, and tests
22061         The namesake function was not available.  The existence of the
22062         template file, inttostr.c makes its addition nontrivial.
22063         * lib/anytostr.c: Rename from inttostr.c.
22064         (anytostr): Rename from inttostr.
22065         * lib/inttostr.c: New file.
22066         * modules/inttostr (Files): Add anytostr.c.
22067         (Makefile.am): Set lib_SOURCES instead of ...
22068         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22069         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22070         * lib/offtostr.c: Likewise.
22071         * lib/uinttostr.c: Likewise.
22072         * lib/umaxtostr.c: Likewise.
22073         * modules/inttostr-tests: New file.
22074         * tests/test-inttostr.c: New file.  Test these functions.
22075
22076 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22077             Bruno Haible  <bruno@clisp.org>
22078
22079         Add "Extending Gnulib" chapter to manual.
22080         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22081         chapter.
22082         (Extending Gnulib): New chapter.
22083         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22084         chapter.
22085
22086 2010-06-09  Bruno Haible  <bruno@clisp.org>
22087
22088         Avoid relocwrapper link errors due to gnulib replacement functions.
22089         * lib/areadlink.c: Use the system's malloc, realloc functions.
22090         (areadlink): Set errno to ENOMEM explicitly.
22091         * modules/areadlink (Depends-on): Remove malloc-posix.
22092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22093
22094 2010-06-09  Bruno Haible  <bruno@clisp.org>
22095
22096         Avoid relocwrapper link errors due to gnulib replacement functions.
22097         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22098         * lib/malloca.c: Likewise.
22099         * lib/relocatable.c: Likewise.
22100         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22101         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22102         * lib/setenv.c: Use the system's malloc, realloc functions.
22103         * lib/strerror.c: Use the system's sprintf function.
22104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22105
22106 2010-06-04  Bruno Haible  <bruno@clisp.org>
22107
22108         Prefer documented low-level autoconf macro names.
22109         * m4/lib-link.m4: Use m4_translit instead of translit.
22110         * m4/environ.m4: Likewise.
22111         * m4/mathfunc.m4: Likewise.
22112         * m4/onceonly.m4: Likewise.
22113         * m4/stdint.m4: Likewise.
22114         Suggested by Eric Blake.
22115
22116 2010-06-04  Martin Lambers  <marlam@marlam.de>
22117             Bruno Haible  <bruno@clisp.org>
22118
22119         havelib: Allow library names with '+' characters.
22120         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22121         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22122
22123 2010-06-09  Bruno Haible  <bruno@clisp.org>
22124
22125         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22126         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22127         realloc failed.
22128
22129 2010-06-08  Peter Simons  <simons@cryp.to>
22130
22131         maint.mk: make the news-check rule more configurable
22132         * top/maint.mk (news-check-lines-spec): New variable.
22133         (news-check): Use "sed -n 1,10p" in place of "head".
22134
22135 2010-06-07  Jim Meyering  <meyering@redhat.com>
22136
22137         do-release-commit-and-tag: fix typo in --help
22138         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22139
22140         regex: avoid new dead-code warning with gcc-4.6.0
22141         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22142         if-block containing a while-loop.  It's been unused for at least
22143         5 years.
22144
22145 2010-06-05  Bruno Haible  <bruno@clisp.org>
22146
22147         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22148         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22149
22150 2010-06-04  Bruno Haible  <bruno@clisp.org>
22151
22152         Update to GNU gettext 0.18.1.
22153         * modules/gettext (configure.ac): Require gettext infrastructure from
22154         version 0.18.1.
22155
22156 2010-06-03  Bruno Haible  <bruno@clisp.org>
22157
22158         Don't use AC_LIBOBJ with file names in subdirectories.
22159         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22160         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22161         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22162         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22163         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22164         gl_LIBUNISTRING_LIBSOURCE.
22165         (Makefile.am): Augment lib_SOURCES here, conditionally.
22166         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22167
22168 2010-06-03  Bruno Haible  <bruno@clisp.org>
22169
22170         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22171         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22172         expansion does not end with a newline.
22173         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22174         unnecessary newline.
22175
22176 2010-06-03  Bruno Haible  <bruno@clisp.org>
22177
22178         Reduce dependencies.
22179         * tests/test-quotearg.h: New file, extracted from
22180         tests/test-quotearg.c.
22181         * tests/test-quotearg-simple.c: New file, extracted from
22182         tests/test-quotearg.c.
22183         * tests/test-quotearg.c: Don't include <ctype.h>.
22184         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22185         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22186         use_quote_double_quotes, use_quotearg_colon): Moved to
22187         tests/test-quotearg.h.
22188         (results_g, flag_results, custom_quotes, custom_results): Moved
22189         to tests/test-quotearg-simple.c.
22190         (main): Moved the part that does not depend on gettext to
22191         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22192         performed.
22193         * modules/quotearg-simple: New file.
22194         * modules/quotearg-simple-tests: New file.
22195         * modules/quotearg (Depends-on): Add quotearg-simple.
22196         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22197         (Files): Add tests/test-quotearg.h.
22198         Reported by Paolo Bonzini.
22199
22200 2010-06-03  Bruno Haible  <bruno@clisp.org>
22201
22202         Reduce dependencies.
22203         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22204
22205 2010-06-03  Bruno Haible  <bruno@clisp.org>
22206
22207         time: Undefine more broken macros.
22208         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22209         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22210         Reported by Eric Blake.
22211
22212 2010-06-03  Bruno Haible  <bruno@clisp.org>
22213
22214         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22215         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22216         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22217         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22218         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22219         Reported by Ludovic Courtès <ludo@gnu.org>.
22220
22221 2010-06-02  Eric Blake  <eblake@redhat.com>
22222
22223         time: work with mingw + pthreads-win32 library
22224         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22225         if timespec is defined only in pthread.h.
22226         * modules/time (Makefile.am): Substitute it.
22227         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22228         <pthread.h>, when needed.
22229         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22230         from the library.
22231
22232 2010-05-31  Bruno Haible  <bruno@clisp.org>
22233
22234         Avoid expanding two macros in the wrong order.
22235         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22236         gl_LIBUNISTRING if it is defined.
22237         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22238         autoconf >= 2.64.
22239         Reported by Ludovic Courtès <ludo@gnu.org>.
22240
22241 2010-05-27  Jim Meyering  <meyering@redhat.com>
22242
22243         maint.mk: also prohibit "#undef" of always-defined symbols
22244         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22245         Allow more than one space before the symbol name.
22246         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22247         the regexp uses alternation.
22248
22249 2010-05-26  Eric Blake  <eblake@redhat.com>
22250
22251         maint.mk: avoid echo -e
22252         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22253         Convert all uses of echo -* to printf.
22254         Reported by Matthias Bolte.
22255
22256 2010-05-25  Bruno Haible  <bruno@clisp.org>
22257
22258         Update to GNU gettext 0.18, part 2.
22259         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22260         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22261
22262 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22263
22264         Add missing include in test-pwrite.c.
22265         * tests/test-pwrite.c: Include string.h, for strcmp.
22266
22267 2010-05-24  Bruno Haible  <bruno@clisp.org>
22268
22269         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22270
22271 2010-05-24  Bruno Haible  <bruno@clisp.org>
22272
22273         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22274         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22275         iconveh_error argument.
22276         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22277         U_STRCONV_TO_LOCALE.
22278         * lib/unistr/u16-strcoll.c: Likewise.
22279         * lib/unistr/u32-strcoll.c: Likewise.
22280         * modules/unistr/u8-strcoll (Depends-on): Add
22281         uniconv/u8-strconv-to-enc, localcharset. Remove
22282         uniconv/u8-strconv-to-locale.
22283         (configure.ac): Bump version number.
22284         * modules/unistr/u16-strcoll (Depends-on): Add
22285         uniconv/u16-strconv-to-enc, localcharset. Remove
22286         uniconv/u16-strconv-to-locale.
22287         (configure.ac): Bump version number.
22288         * modules/unistr/u32-strcoll (Depends-on): Add
22289         uniconv/u32-strconv-to-enc, localcharset. Remove
22290         uniconv/u32-strconv-to-locale.
22291         (configure.ac): Bump version number.
22292
22293 2010-05-24  Bruno Haible  <bruno@clisp.org>
22294
22295         Avoid a test failure on NetBSD 5.0.
22296         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22297         an iconv() bug.
22298
22299 2010-05-24  Bruno Haible  <bruno@clisp.org>
22300
22301         Adjust #include directive style.
22302         * modules/regex (Includes): Recommend to write <regex.h>.
22303
22304 2010-05-24  Bruno Haible  <bruno@clisp.org>
22305
22306         regex: Don't require alloca.
22307         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22308         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22309         only inside if (0).
22310
22311 2010-05-23  Jim Meyering  <meyering@redhat.com>
22312
22313         test-renameat.c: include <sys/stat.h>
22314         * tests/test-renameat.c: Include <sys/stat.h>; required for
22315         definition of S_IS* macros.
22316
22317 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22318
22319         Update maintainer documentation for 'relocatable-prog' module.
22320         * doc/relocatable-maint.texi: Update.
22321         Comments by Bruno Haible.
22322
22323 2010-05-23  Bruno Haible  <bruno@clisp.org>
22324
22325         git-merge-changelog: Enable --split-merged-entry by default.
22326         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22327         (usage): Don't mention this option any more.
22328         Reported by Ralf Wildenhues.
22329
22330 2010-05-23  Jim Meyering  <meyering@redhat.com>
22331
22332         test-pwrite: do not leave behind a test file named "out"
22333         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22334         The trivial-looking use of init.sh is really necessary.
22335         It ensures that the temporary file, "out", is created in
22336         a temporary directory, and removed upon termination.
22337         * tests/test-pwrite.sh: Re-add file.
22338         * modules/pwrite-tests: Reference it.
22339
22340 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22341
22342         Fix output redirection buglet in init.sh.
22343         * tests/init.sh: Fix redirection of stderr.
22344
22345 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22346
22347         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22348
22349 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22350
22351         * modules/valgrind-tests: New file.
22352         * m4/valgrind-tests.m4: New file.
22353         * doc/valgrind-tests.texi: New file.
22354         * doc/gnulib.texi (Running self-tests under valgrind): New
22355         section.
22356
22357 2010-05-19  Bruno Haible  <bruno@clisp.org>
22358
22359         Clean up dead code in recent commit.
22360         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22361         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22362         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22363         Suggested by Paolo Bonzini.
22364
22365 2010-05-19  Bruno Haible  <bruno@clisp.org>
22366
22367         Avoid valgrind error reports from libunistring.
22368         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22369         * modules/libunistring (Files): Add it.
22370         * modules/libunistring-optional (Files): Likewise.
22371
22372 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22373             Bruno Haible  <bruno@clisp.org>
22374
22375         New module 'libunistring-optional'.
22376         * modules/libunistring-optional: New file.
22377         * m4/libunistring-base.m4: New file.
22378         * m4/libunistring-optional.m4: New file.
22379         * lib/unicase.in.h: Renamed from lib/unicase.h.
22380         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22381         * lib/unictype.in.h: Renamed from lib/unictype.h.
22382         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22383         * lib/uniname.in.h: Renamed from lib/uniname.h.
22384         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22385         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22386         * lib/unistr.in.h: Renamed from lib/unistr.h.
22387         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22388         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22389         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22390         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22391         gl_LIBUNISTRING. If the library was found, determine the installed
22392         version and set LIBUNISTRING_VERSION.
22393         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22394         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22395         handle a configuration option --with-included-libunistring.
22396         * modules/libunistring (Files): Add m4/absolute-header.m4.
22397         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22398         Add m4/libunistring-base.m4.
22399         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22400         (Makefile.am): Build unicase.h from unicase.in.h.
22401         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22402         Add m4/libunistring-base.m4.
22403         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22404         (Makefile.am): Build uniconv.h from uniconv.in.h.
22405         * modules/unictype/base (Files): Use unictype.in.h instead of
22406         unictype.h. Add m4/libunistring-base.m4.
22407         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22408         (Makefile.am): Build unictype.h from unictype.in.h.
22409         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22410         Add m4/libunistring-base.m4.
22411         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22412         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22413         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22414         Add m4/libunistring-base.m4.
22415         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22416         (Makefile.am): Build uniname.h from uniname.in.h.
22417         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22418         Add m4/libunistring-base.m4.
22419         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22420         (Makefile.am): Build uninorm.h from uninorm.in.h.
22421         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22422         unistdio.h. Add m4/libunistring-base.m4.
22423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22424         (Makefile.am): Build unistdio.h from unistdio.in.h.
22425         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22426         Add m4/libunistring-base.m4.
22427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22428         (Makefile.am): Build unistr.h from unistr.in.h.
22429         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22430         Add m4/libunistring-base.m4.
22431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22432         (Makefile.am): Build unitypes.h from unitypes.in.h.
22433         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22434         Add m4/libunistring-base.m4.
22435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22436         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22437         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22438         uniwidth.h. Add m4/libunistring-base.m4.
22439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22440         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22441         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22442         instead of augmenting lib_SOURCES.
22443         * modules/unicase/empty-suffix-context: Likewise.
22444         * modules/unicase/locale-language: Likewise.
22445         * modules/unicase/tolower: Likewise.
22446         * modules/unicase/totitle: Likewise.
22447         * modules/unicase/toupper: Likewise.
22448         * modules/unicase/u8-casecmp: Likewise.
22449         * modules/unicase/u8-casecoll: Likewise.
22450         * modules/unicase/u8-casefold: Likewise.
22451         * modules/unicase/u8-casexfrm: Likewise.
22452         * modules/unicase/u8-ct-casefold: Likewise.
22453         * modules/unicase/u8-ct-tolower: Likewise.
22454         * modules/unicase/u8-ct-totitle: Likewise.
22455         * modules/unicase/u8-ct-toupper: Likewise.
22456         * modules/unicase/u8-is-cased: Likewise.
22457         * modules/unicase/u8-is-casefolded: Likewise.
22458         * modules/unicase/u8-is-lowercase: Likewise.
22459         * modules/unicase/u8-is-titlecase: Likewise.
22460         * modules/unicase/u8-is-uppercase: Likewise.
22461         * modules/unicase/u8-prefix-context: Likewise.
22462         * modules/unicase/u8-suffix-context: Likewise.
22463         * modules/unicase/u8-tolower: Likewise.
22464         * modules/unicase/u8-totitle: Likewise.
22465         * modules/unicase/u8-toupper: Likewise.
22466         * modules/unicase/u16-casecmp: Likewise.
22467         * modules/unicase/u16-casecoll: Likewise.
22468         * modules/unicase/u16-casefold: Likewise.
22469         * modules/unicase/u16-casexfrm: Likewise.
22470         * modules/unicase/u16-ct-casefold: Likewise.
22471         * modules/unicase/u16-ct-tolower: Likewise.
22472         * modules/unicase/u16-ct-totitle: Likewise.
22473         * modules/unicase/u16-ct-toupper: Likewise.
22474         * modules/unicase/u16-is-cased: Likewise.
22475         * modules/unicase/u16-is-casefolded: Likewise.
22476         * modules/unicase/u16-is-lowercase: Likewise.
22477         * modules/unicase/u16-is-titlecase: Likewise.
22478         * modules/unicase/u16-is-uppercase: Likewise.
22479         * modules/unicase/u16-prefix-context: Likewise.
22480         * modules/unicase/u16-suffix-context: Likewise.
22481         * modules/unicase/u16-tolower: Likewise.
22482         * modules/unicase/u16-totitle: Likewise.
22483         * modules/unicase/u16-toupper: Likewise.
22484         * modules/unicase/u32-casecmp: Likewise.
22485         * modules/unicase/u32-casecoll: Likewise.
22486         * modules/unicase/u32-casefold: Likewise.
22487         * modules/unicase/u32-casexfrm: Likewise.
22488         * modules/unicase/u32-ct-casefold: Likewise.
22489         * modules/unicase/u32-ct-tolower: Likewise.
22490         * modules/unicase/u32-ct-totitle: Likewise.
22491         * modules/unicase/u32-ct-toupper: Likewise.
22492         * modules/unicase/u32-is-cased: Likewise.
22493         * modules/unicase/u32-is-casefolded: Likewise.
22494         * modules/unicase/u32-is-lowercase: Likewise.
22495         * modules/unicase/u32-is-titlecase: Likewise.
22496         * modules/unicase/u32-is-uppercase: Likewise.
22497         * modules/unicase/u32-prefix-context: Likewise.
22498         * modules/unicase/u32-suffix-context: Likewise.
22499         * modules/unicase/u32-tolower: Likewise.
22500         * modules/unicase/u32-totitle: Likewise.
22501         * modules/unicase/u32-toupper: Likewise.
22502         * modules/unicase/ulc-casecmp: Likewise.
22503         * modules/unicase/ulc-casecoll: Likewise.
22504         * modules/unicase/ulc-casexfrm: Likewise.
22505         * modules/uniconv/u8-conv-from-enc: Likewise.
22506         * modules/uniconv/u8-conv-to-enc: Likewise.
22507         * modules/uniconv/u8-strconv-from-enc: Likewise.
22508         * modules/uniconv/u8-strconv-from-locale: Likewise.
22509         * modules/uniconv/u8-strconv-to-enc: Likewise.
22510         * modules/uniconv/u8-strconv-to-locale: Likewise.
22511         * modules/uniconv/u16-conv-from-enc: Likewise.
22512         * modules/uniconv/u16-conv-to-enc: Likewise.
22513         * modules/uniconv/u16-strconv-from-enc: Likewise.
22514         * modules/uniconv/u16-strconv-from-locale: Likewise.
22515         * modules/uniconv/u16-strconv-to-enc: Likewise.
22516         * modules/uniconv/u16-strconv-to-locale: Likewise.
22517         * modules/uniconv/u32-conv-from-enc: Likewise.
22518         * modules/uniconv/u32-conv-to-enc: Likewise.
22519         * modules/uniconv/u32-strconv-from-enc: Likewise.
22520         * modules/uniconv/u32-strconv-from-locale: Likewise.
22521         * modules/uniconv/u32-strconv-to-enc: Likewise.
22522         * modules/uniconv/u32-strconv-to-locale: Likewise.
22523         * modules/unictype/bidicategory-byname: Likewise.
22524         * modules/unictype/bidicategory-name: Likewise.
22525         * modules/unictype/bidicategory-of: Likewise.
22526         * modules/unictype/bidicategory-test: Likewise.
22527         * modules/unictype/block-list: Likewise.
22528         * modules/unictype/block-test: Likewise.
22529         * modules/unictype/category-C: Likewise.
22530         * modules/unictype/category-Cc: Likewise.
22531         * modules/unictype/category-Cf: Likewise.
22532         * modules/unictype/category-Cn: Likewise.
22533         * modules/unictype/category-Co: Likewise.
22534         * modules/unictype/category-Cs: Likewise.
22535         * modules/unictype/category-L: Likewise.
22536         * modules/unictype/category-Ll: Likewise.
22537         * modules/unictype/category-Lm: Likewise.
22538         * modules/unictype/category-Lo: Likewise.
22539         * modules/unictype/category-Lt: Likewise.
22540         * modules/unictype/category-Lu: Likewise.
22541         * modules/unictype/category-M: Likewise.
22542         * modules/unictype/category-Mc: Likewise.
22543         * modules/unictype/category-Me: Likewise.
22544         * modules/unictype/category-Mn: Likewise.
22545         * modules/unictype/category-N: Likewise.
22546         * modules/unictype/category-Nd: Likewise.
22547         * modules/unictype/category-Nl: Likewise.
22548         * modules/unictype/category-No: Likewise.
22549         * modules/unictype/category-P: Likewise.
22550         * modules/unictype/category-Pc: Likewise.
22551         * modules/unictype/category-Pd: Likewise.
22552         * modules/unictype/category-Pe: Likewise.
22553         * modules/unictype/category-Pf: Likewise.
22554         * modules/unictype/category-Pi: Likewise.
22555         * modules/unictype/category-Po: Likewise.
22556         * modules/unictype/category-Ps: Likewise.
22557         * modules/unictype/category-S: Likewise.
22558         * modules/unictype/category-Sc: Likewise.
22559         * modules/unictype/category-Sk: Likewise.
22560         * modules/unictype/category-Sm: Likewise.
22561         * modules/unictype/category-So: Likewise.
22562         * modules/unictype/category-Z: Likewise.
22563         * modules/unictype/category-Zl: Likewise.
22564         * modules/unictype/category-Zp: Likewise.
22565         * modules/unictype/category-Zs: Likewise.
22566         * modules/unictype/category-and: Likewise.
22567         * modules/unictype/category-and-not: Likewise.
22568         * modules/unictype/category-byname: Likewise.
22569         * modules/unictype/category-name: Likewise.
22570         * modules/unictype/category-none: Likewise.
22571         * modules/unictype/category-of: Likewise.
22572         * modules/unictype/category-or: Likewise.
22573         * modules/unictype/category-test: Likewise.
22574         * modules/unictype/combining-class: Likewise.
22575         * modules/unictype/ctype-alnum: Likewise.
22576         * modules/unictype/ctype-alpha: Likewise.
22577         * modules/unictype/ctype-blank: Likewise.
22578         * modules/unictype/ctype-cntrl: Likewise.
22579         * modules/unictype/ctype-digit: Likewise.
22580         * modules/unictype/ctype-graph: Likewise.
22581         * modules/unictype/ctype-lower: Likewise.
22582         * modules/unictype/ctype-print: Likewise.
22583         * modules/unictype/ctype-punct: Likewise.
22584         * modules/unictype/ctype-space: Likewise.
22585         * modules/unictype/ctype-upper: Likewise.
22586         * modules/unictype/ctype-xdigit: Likewise.
22587         * modules/unictype/decimal-digit: Likewise.
22588         * modules/unictype/digit: Likewise.
22589         * modules/unictype/mirror: Likewise.
22590         * modules/unictype/numeric: Likewise.
22591         * modules/unictype/property-alphabetic: Likewise.
22592         * modules/unictype/property-ascii-hex-digit: Likewise.
22593         * modules/unictype/property-bidi-arabic-digit: Likewise.
22594         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22595         * modules/unictype/property-bidi-block-separator: Likewise.
22596         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22597         * modules/unictype/property-bidi-common-separator: Likewise.
22598         * modules/unictype/property-bidi-control: Likewise.
22599         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22600         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22601         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22602         * modules/unictype/property-bidi-european-digit: Likewise.
22603         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22604         * modules/unictype/property-bidi-left-to-right: Likewise.
22605         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22606         * modules/unictype/property-bidi-other-neutral: Likewise.
22607         * modules/unictype/property-bidi-pdf: Likewise.
22608         * modules/unictype/property-bidi-segment-separator: Likewise.
22609         * modules/unictype/property-bidi-whitespace: Likewise.
22610         * modules/unictype/property-byname: Likewise.
22611         * modules/unictype/property-combining: Likewise.
22612         * modules/unictype/property-composite: Likewise.
22613         * modules/unictype/property-currency-symbol: Likewise.
22614         * modules/unictype/property-dash: Likewise.
22615         * modules/unictype/property-decimal-digit: Likewise.
22616         * modules/unictype/property-default-ignorable-code-point: Likewise.
22617         * modules/unictype/property-deprecated: Likewise.
22618         * modules/unictype/property-diacritic: Likewise.
22619         * modules/unictype/property-extender: Likewise.
22620         * modules/unictype/property-format-control: Likewise.
22621         * modules/unictype/property-grapheme-base: Likewise.
22622         * modules/unictype/property-grapheme-extend: Likewise.
22623         * modules/unictype/property-grapheme-link: Likewise.
22624         * modules/unictype/property-hex-digit: Likewise.
22625         * modules/unictype/property-hyphen: Likewise.
22626         * modules/unictype/property-id-continue: Likewise.
22627         * modules/unictype/property-id-start: Likewise.
22628         * modules/unictype/property-ideographic: Likewise.
22629         * modules/unictype/property-ids-binary-operator: Likewise.
22630         * modules/unictype/property-ids-trinary-operator: Likewise.
22631         * modules/unictype/property-ignorable-control: Likewise.
22632         * modules/unictype/property-iso-control: Likewise.
22633         * modules/unictype/property-join-control: Likewise.
22634         * modules/unictype/property-left-of-pair: Likewise.
22635         * modules/unictype/property-line-separator: Likewise.
22636         * modules/unictype/property-logical-order-exception: Likewise.
22637         * modules/unictype/property-lowercase: Likewise.
22638         * modules/unictype/property-math: Likewise.
22639         * modules/unictype/property-non-break: Likewise.
22640         * modules/unictype/property-not-a-character: Likewise.
22641         * modules/unictype/property-numeric: Likewise.
22642         * modules/unictype/property-other-alphabetic: Likewise.
22643         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22644         * modules/unictype/property-other-grapheme-extend: Likewise.
22645         * modules/unictype/property-other-id-continue: Likewise.
22646         * modules/unictype/property-other-id-start: Likewise.
22647         * modules/unictype/property-other-lowercase: Likewise.
22648         * modules/unictype/property-other-math: Likewise.
22649         * modules/unictype/property-other-uppercase: Likewise.
22650         * modules/unictype/property-paired-punctuation: Likewise.
22651         * modules/unictype/property-paragraph-separator: Likewise.
22652         * modules/unictype/property-pattern-syntax: Likewise.
22653         * modules/unictype/property-pattern-white-space: Likewise.
22654         * modules/unictype/property-private-use: Likewise.
22655         * modules/unictype/property-punctuation: Likewise.
22656         * modules/unictype/property-quotation-mark: Likewise.
22657         * modules/unictype/property-radical: Likewise.
22658         * modules/unictype/property-sentence-terminal: Likewise.
22659         * modules/unictype/property-soft-dotted: Likewise.
22660         * modules/unictype/property-space: Likewise.
22661         * modules/unictype/property-terminal-punctuation: Likewise.
22662         * modules/unictype/property-test: Likewise.
22663         * modules/unictype/property-titlecase: Likewise.
22664         * modules/unictype/property-unassigned-code-value: Likewise.
22665         * modules/unictype/property-unified-ideograph: Likewise.
22666         * modules/unictype/property-uppercase: Likewise.
22667         * modules/unictype/property-variation-selector: Likewise.
22668         * modules/unictype/property-white-space: Likewise.
22669         * modules/unictype/property-xid-continue: Likewise.
22670         * modules/unictype/property-xid-start: Likewise.
22671         * modules/unictype/property-zero-width: Likewise.
22672         * modules/unictype/scripts: Likewise.
22673         * modules/unictype/syntax-c-ident: Likewise.
22674         * modules/unictype/syntax-c-whitespace: Likewise.
22675         * modules/unictype/syntax-java-ident: Likewise.
22676         * modules/unictype/syntax-java-whitespace: Likewise.
22677         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22678         * modules/unilbrk/u8-width-linebreaks: Likewise.
22679         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22680         * modules/unilbrk/u16-width-linebreaks: Likewise.
22681         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22682         * modules/unilbrk/u32-width-linebreaks: Likewise.
22683         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22684         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22685         * modules/uniname/uniname: Likewise.
22686         * modules/uninorm/canonical-decomposition: Likewise.
22687         * modules/uninorm/composition: Likewise.
22688         * modules/uninorm/decomposing-form: Likewise.
22689         * modules/uninorm/decomposition: Likewise.
22690         * modules/uninorm/filter: Likewise.
22691         * modules/uninorm/nfc: Likewise.
22692         * modules/uninorm/nfd: Likewise.
22693         * modules/uninorm/nfkc: Likewise.
22694         * modules/uninorm/nfkd: Likewise.
22695         * modules/uninorm/u8-normalize: Likewise.
22696         * modules/uninorm/u8-normcmp: Likewise.
22697         * modules/uninorm/u8-normcoll: Likewise.
22698         * modules/uninorm/u8-normxfrm: Likewise.
22699         * modules/uninorm/u16-normalize: Likewise.
22700         * modules/uninorm/u16-normcmp: Likewise.
22701         * modules/uninorm/u16-normcoll: Likewise.
22702         * modules/uninorm/u16-normxfrm: Likewise.
22703         * modules/uninorm/u32-normalize: Likewise.
22704         * modules/uninorm/u32-normcmp: Likewise.
22705         * modules/uninorm/u32-normcoll: Likewise.
22706         * modules/uninorm/u32-normxfrm: Likewise.
22707         * modules/unistdio/u8-asnprintf: Likewise.
22708         * modules/unistdio/u8-asprintf: Likewise.
22709         * modules/unistdio/u8-snprintf: Likewise.
22710         * modules/unistdio/u8-sprintf: Likewise.
22711         * modules/unistdio/u8-u8-asnprintf: Likewise.
22712         * modules/unistdio/u8-u8-asprintf: Likewise.
22713         * modules/unistdio/u8-u8-snprintf: Likewise.
22714         * modules/unistdio/u8-u8-sprintf: Likewise.
22715         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22716         * modules/unistdio/u8-u8-vasprintf: Likewise.
22717         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22718         * modules/unistdio/u8-u8-vsprintf: Likewise.
22719         * modules/unistdio/u8-vasnprintf: Likewise.
22720         * modules/unistdio/u8-vasprintf: Likewise.
22721         * modules/unistdio/u8-vsnprintf: Likewise.
22722         * modules/unistdio/u8-vsprintf: Likewise.
22723         * modules/unistdio/u16-asnprintf: Likewise.
22724         * modules/unistdio/u16-asprintf: Likewise.
22725         * modules/unistdio/u16-snprintf: Likewise.
22726         * modules/unistdio/u16-sprintf: Likewise.
22727         * modules/unistdio/u16-u16-asnprintf: Likewise.
22728         * modules/unistdio/u16-u16-asprintf: Likewise.
22729         * modules/unistdio/u16-u16-snprintf: Likewise.
22730         * modules/unistdio/u16-u16-sprintf: Likewise.
22731         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22732         * modules/unistdio/u16-u16-vasprintf: Likewise.
22733         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22734         * modules/unistdio/u16-u16-vsprintf: Likewise.
22735         * modules/unistdio/u16-vasnprintf: Likewise.
22736         * modules/unistdio/u16-vasprintf: Likewise.
22737         * modules/unistdio/u16-vsnprintf: Likewise.
22738         * modules/unistdio/u16-vsprintf: Likewise.
22739         * modules/unistdio/u32-asnprintf: Likewise.
22740         * modules/unistdio/u32-asprintf: Likewise.
22741         * modules/unistdio/u32-snprintf: Likewise.
22742         * modules/unistdio/u32-sprintf: Likewise.
22743         * modules/unistdio/u32-u32-asnprintf: Likewise.
22744         * modules/unistdio/u32-u32-asprintf: Likewise.
22745         * modules/unistdio/u32-u32-snprintf: Likewise.
22746         * modules/unistdio/u32-u32-sprintf: Likewise.
22747         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22748         * modules/unistdio/u32-u32-vasprintf: Likewise.
22749         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22750         * modules/unistdio/u32-u32-vsprintf: Likewise.
22751         * modules/unistdio/u32-vasnprintf: Likewise.
22752         * modules/unistdio/u32-vasprintf: Likewise.
22753         * modules/unistdio/u32-vsnprintf: Likewise.
22754         * modules/unistdio/u32-vsprintf: Likewise.
22755         * modules/unistdio/ulc-asnprintf: Likewise.
22756         * modules/unistdio/ulc-asprintf: Likewise.
22757         * modules/unistdio/ulc-fprintf: Likewise.
22758         * modules/unistdio/ulc-snprintf: Likewise.
22759         * modules/unistdio/ulc-sprintf: Likewise.
22760         * modules/unistdio/ulc-vasnprintf: Likewise.
22761         * modules/unistdio/ulc-vasprintf: Likewise.
22762         * modules/unistdio/ulc-vfprintf: Likewise.
22763         * modules/unistdio/ulc-vsnprintf: Likewise.
22764         * modules/unistdio/ulc-vsprintf: Likewise.
22765         * modules/unistr/u8-check: Likewise.
22766         * modules/unistr/u8-chr: Likewise.
22767         * modules/unistr/u8-cmp: Likewise.
22768         * modules/unistr/u8-cmp2: Likewise.
22769         * modules/unistr/u8-cpy: Likewise.
22770         * modules/unistr/u8-cpy-alloc: Likewise.
22771         * modules/unistr/u8-endswith: Likewise.
22772         * modules/unistr/u8-mblen: Likewise.
22773         * modules/unistr/u8-mbsnlen: Likewise.
22774         * modules/unistr/u8-mbtouc: Likewise.
22775         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22776         * modules/unistr/u8-mbtoucr: Likewise.
22777         * modules/unistr/u8-move: Likewise.
22778         * modules/unistr/u8-next: Likewise.
22779         * modules/unistr/u8-prev: Likewise.
22780         * modules/unistr/u8-set: Likewise.
22781         * modules/unistr/u8-startswith: Likewise.
22782         * modules/unistr/u8-stpcpy: Likewise.
22783         * modules/unistr/u8-stpncpy: Likewise.
22784         * modules/unistr/u8-strcat: Likewise.
22785         * modules/unistr/u8-strchr: Likewise.
22786         * modules/unistr/u8-strcmp: Likewise.
22787         * modules/unistr/u8-strcoll: Likewise.
22788         * modules/unistr/u8-strcpy: Likewise.
22789         * modules/unistr/u8-strcspn: Likewise.
22790         * modules/unistr/u8-strdup: Likewise.
22791         * modules/unistr/u8-strlen: Likewise.
22792         * modules/unistr/u8-strmblen: Likewise.
22793         * modules/unistr/u8-strmbtouc: Likewise.
22794         * modules/unistr/u8-strncat: Likewise.
22795         * modules/unistr/u8-strncmp: Likewise.
22796         * modules/unistr/u8-strncpy: Likewise.
22797         * modules/unistr/u8-strnlen: Likewise.
22798         * modules/unistr/u8-strpbrk: Likewise.
22799         * modules/unistr/u8-strrchr: Likewise.
22800         * modules/unistr/u8-strspn: Likewise.
22801         * modules/unistr/u8-strstr: Likewise.
22802         * modules/unistr/u8-strtok: Likewise.
22803         * modules/unistr/u8-to-u16: Likewise.
22804         * modules/unistr/u8-to-u32: Likewise.
22805         * modules/unistr/u8-uctomb: Likewise.
22806         * modules/unistr/u16-check: Likewise.
22807         * modules/unistr/u16-chr: Likewise.
22808         * modules/unistr/u16-cmp: Likewise.
22809         * modules/unistr/u16-cmp2: Likewise.
22810         * modules/unistr/u16-cpy: Likewise.
22811         * modules/unistr/u16-cpy-alloc: Likewise.
22812         * modules/unistr/u16-endswith: Likewise.
22813         * modules/unistr/u16-mblen: Likewise.
22814         * modules/unistr/u16-mbsnlen: Likewise.
22815         * modules/unistr/u16-mbtouc: Likewise.
22816         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22817         * modules/unistr/u16-mbtoucr: Likewise.
22818         * modules/unistr/u16-move: Likewise.
22819         * modules/unistr/u16-next: Likewise.
22820         * modules/unistr/u16-prev: Likewise.
22821         * modules/unistr/u16-set: Likewise.
22822         * modules/unistr/u16-startswith: Likewise.
22823         * modules/unistr/u16-stpcpy: Likewise.
22824         * modules/unistr/u16-stpncpy: Likewise.
22825         * modules/unistr/u16-strcat: Likewise.
22826         * modules/unistr/u16-strchr: Likewise.
22827         * modules/unistr/u16-strcmp: Likewise.
22828         * modules/unistr/u16-strcoll: Likewise.
22829         * modules/unistr/u16-strcpy: Likewise.
22830         * modules/unistr/u16-strcspn: Likewise.
22831         * modules/unistr/u16-strdup: Likewise.
22832         * modules/unistr/u16-strlen: Likewise.
22833         * modules/unistr/u16-strmblen: Likewise.
22834         * modules/unistr/u16-strmbtouc: Likewise.
22835         * modules/unistr/u16-strncat: Likewise.
22836         * modules/unistr/u16-strncmp: Likewise.
22837         * modules/unistr/u16-strncpy: Likewise.
22838         * modules/unistr/u16-strnlen: Likewise.
22839         * modules/unistr/u16-strpbrk: Likewise.
22840         * modules/unistr/u16-strrchr: Likewise.
22841         * modules/unistr/u16-strspn: Likewise.
22842         * modules/unistr/u16-strstr: Likewise.
22843         * modules/unistr/u16-strtok: Likewise.
22844         * modules/unistr/u16-to-u32: Likewise.
22845         * modules/unistr/u16-to-u8: Likewise.
22846         * modules/unistr/u16-uctomb: Likewise.
22847         * modules/unistr/u32-check: Likewise.
22848         * modules/unistr/u32-chr: Likewise.
22849         * modules/unistr/u32-cmp: Likewise.
22850         * modules/unistr/u32-cmp2: Likewise.
22851         * modules/unistr/u32-cpy: Likewise.
22852         * modules/unistr/u32-cpy-alloc: Likewise.
22853         * modules/unistr/u32-endswith: Likewise.
22854         * modules/unistr/u32-mblen: Likewise.
22855         * modules/unistr/u32-mbsnlen: Likewise.
22856         * modules/unistr/u32-mbtouc: Likewise.
22857         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22858         * modules/unistr/u32-mbtoucr: Likewise.
22859         * modules/unistr/u32-move: Likewise.
22860         * modules/unistr/u32-next: Likewise.
22861         * modules/unistr/u32-prev: Likewise.
22862         * modules/unistr/u32-set: Likewise.
22863         * modules/unistr/u32-startswith: Likewise.
22864         * modules/unistr/u32-stpcpy: Likewise.
22865         * modules/unistr/u32-stpncpy: Likewise.
22866         * modules/unistr/u32-strcat: Likewise.
22867         * modules/unistr/u32-strchr: Likewise.
22868         * modules/unistr/u32-strcmp: Likewise.
22869         * modules/unistr/u32-strcoll: Likewise.
22870         * modules/unistr/u32-strcpy: Likewise.
22871         * modules/unistr/u32-strcspn: Likewise.
22872         * modules/unistr/u32-strdup: Likewise.
22873         * modules/unistr/u32-strlen: Likewise.
22874         * modules/unistr/u32-strmblen: Likewise.
22875         * modules/unistr/u32-strmbtouc: Likewise.
22876         * modules/unistr/u32-strncat: Likewise.
22877         * modules/unistr/u32-strncmp: Likewise.
22878         * modules/unistr/u32-strncpy: Likewise.
22879         * modules/unistr/u32-strnlen: Likewise.
22880         * modules/unistr/u32-strpbrk: Likewise.
22881         * modules/unistr/u32-strrchr: Likewise.
22882         * modules/unistr/u32-strspn: Likewise.
22883         * modules/unistr/u32-strstr: Likewise.
22884         * modules/unistr/u32-strtok: Likewise.
22885         * modules/unistr/u32-to-u16: Likewise.
22886         * modules/unistr/u32-to-u8: Likewise.
22887         * modules/unistr/u32-uctomb: Likewise.
22888         * modules/uniwbrk/u8-wordbreaks: Likewise.
22889         * modules/uniwbrk/u16-wordbreaks: Likewise.
22890         * modules/uniwbrk/u32-wordbreaks: Likewise.
22891         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22892         * modules/uniwbrk/wordbreak-property: Likewise.
22893         * modules/uniwidth/u8-strwidth: Likewise.
22894         * modules/uniwidth/u8-width: Likewise.
22895         * modules/uniwidth/u16-strwidth: Likewise.
22896         * modules/uniwidth/u16-width: Likewise.
22897         * modules/uniwidth/u32-strwidth: Likewise.
22898         * modules/uniwidth/u32-width: Likewise.
22899         * modules/uniwidth/width: Likewise.
22900         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22901         with $(LIBUNISTRING).
22902         * modules/unicase/ignorable-tests: Likewise.
22903         * modules/unicase/locale-language-tests: Likewise.
22904         * modules/unicase/tolower-tests: Likewise.
22905         * modules/unicase/totitle-tests: Likewise.
22906         * modules/unicase/toupper-tests: Likewise.
22907         * modules/unicase/u8-casecmp-tests: Likewise.
22908         * modules/unicase/u8-casecoll-tests: Likewise.
22909         * modules/unicase/u8-casefold-tests: Likewise.
22910         * modules/unicase/u8-is-cased-tests: Likewise.
22911         * modules/unicase/u8-is-casefolded-tests: Likewise.
22912         * modules/unicase/u8-is-lowercase-tests: Likewise.
22913         * modules/unicase/u8-is-titlecase-tests: Likewise.
22914         * modules/unicase/u8-is-uppercase-tests: Likewise.
22915         * modules/unicase/u8-tolower-tests: Likewise.
22916         * modules/unicase/u8-totitle-tests: Likewise.
22917         * modules/unicase/u8-toupper-tests: Likewise.
22918         * modules/unicase/u16-casecmp-tests: Likewise.
22919         * modules/unicase/u16-casecoll-tests: Likewise.
22920         * modules/unicase/u16-casefold-tests: Likewise.
22921         * modules/unicase/u16-is-cased-tests: Likewise.
22922         * modules/unicase/u16-is-casefolded-tests: Likewise.
22923         * modules/unicase/u16-is-lowercase-tests: Likewise.
22924         * modules/unicase/u16-is-titlecase-tests: Likewise.
22925         * modules/unicase/u16-is-uppercase-tests: Likewise.
22926         * modules/unicase/u16-tolower-tests: Likewise.
22927         * modules/unicase/u16-totitle-tests: Likewise.
22928         * modules/unicase/u16-toupper-tests: Likewise.
22929         * modules/unicase/u32-casecmp-tests: Likewise.
22930         * modules/unicase/u32-casecoll-tests: Likewise.
22931         * modules/unicase/u32-casefold-tests: Likewise.
22932         * modules/unicase/u32-is-cased-tests: Likewise.
22933         * modules/unicase/u32-is-casefolded-tests: Likewise.
22934         * modules/unicase/u32-is-lowercase-tests: Likewise.
22935         * modules/unicase/u32-is-titlecase-tests: Likewise.
22936         * modules/unicase/u32-is-uppercase-tests: Likewise.
22937         * modules/unicase/u32-tolower-tests: Likewise.
22938         * modules/unicase/u32-totitle-tests: Likewise.
22939         * modules/unicase/u32-toupper-tests: Likewise.
22940         * modules/unicase/ulc-casecmp-tests: Likewise.
22941         * modules/unicase/ulc-casecoll-tests: Likewise.
22942         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22943         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22944         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22945         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22946         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22947         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22948         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22949         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22950         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22951         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22952         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22953         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22954         * modules/unictype/bidicategory-byname-tests: Likewise.
22955         * modules/unictype/bidicategory-name-tests: Likewise.
22956         * modules/unictype/bidicategory-of-tests: Likewise.
22957         * modules/unictype/bidicategory-test-tests: Likewise.
22958         * modules/unictype/block-list-tests: Likewise.
22959         * modules/unictype/block-of-tests: Likewise.
22960         * modules/unictype/block-test-tests: Likewise.
22961         * modules/unictype/category-C-tests: Likewise.
22962         * modules/unictype/category-Cc-tests: Likewise.
22963         * modules/unictype/category-Cf-tests: Likewise.
22964         * modules/unictype/category-Cn-tests: Likewise.
22965         * modules/unictype/category-Co-tests: Likewise.
22966         * modules/unictype/category-Cs-tests: Likewise.
22967         * modules/unictype/category-L-tests: Likewise.
22968         * modules/unictype/category-Ll-tests: Likewise.
22969         * modules/unictype/category-Lm-tests: Likewise.
22970         * modules/unictype/category-Lo-tests: Likewise.
22971         * modules/unictype/category-Lt-tests: Likewise.
22972         * modules/unictype/category-Lu-tests: Likewise.
22973         * modules/unictype/category-M-tests: Likewise.
22974         * modules/unictype/category-Mc-tests: Likewise.
22975         * modules/unictype/category-Me-tests: Likewise.
22976         * modules/unictype/category-Mn-tests: Likewise.
22977         * modules/unictype/category-N-tests: Likewise.
22978         * modules/unictype/category-Nd-tests: Likewise.
22979         * modules/unictype/category-Nl-tests: Likewise.
22980         * modules/unictype/category-No-tests: Likewise.
22981         * modules/unictype/category-P-tests: Likewise.
22982         * modules/unictype/category-Pc-tests: Likewise.
22983         * modules/unictype/category-Pd-tests: Likewise.
22984         * modules/unictype/category-Pe-tests: Likewise.
22985         * modules/unictype/category-Pf-tests: Likewise.
22986         * modules/unictype/category-Pi-tests: Likewise.
22987         * modules/unictype/category-Po-tests: Likewise.
22988         * modules/unictype/category-Ps-tests: Likewise.
22989         * modules/unictype/category-S-tests: Likewise.
22990         * modules/unictype/category-Sc-tests: Likewise.
22991         * modules/unictype/category-Sk-tests: Likewise.
22992         * modules/unictype/category-Sm-tests: Likewise.
22993         * modules/unictype/category-So-tests: Likewise.
22994         * modules/unictype/category-Z-tests: Likewise.
22995         * modules/unictype/category-Zl-tests: Likewise.
22996         * modules/unictype/category-Zp-tests: Likewise.
22997         * modules/unictype/category-Zs-tests: Likewise.
22998         * modules/unictype/category-and-not-tests: Likewise.
22999         * modules/unictype/category-and-tests: Likewise.
23000         * modules/unictype/category-byname-tests: Likewise.
23001         * modules/unictype/category-name-tests: Likewise.
23002         * modules/unictype/category-none-tests: Likewise.
23003         * modules/unictype/category-of-tests: Likewise.
23004         * modules/unictype/category-or-tests: Likewise.
23005         * modules/unictype/category-test-withtable-tests: Likewise.
23006         * modules/unictype/combining-class-tests: Likewise.
23007         * modules/unictype/ctype-alnum-tests: Likewise.
23008         * modules/unictype/ctype-alpha-tests: Likewise.
23009         * modules/unictype/ctype-blank-tests: Likewise.
23010         * modules/unictype/ctype-cntrl-tests: Likewise.
23011         * modules/unictype/ctype-digit-tests: Likewise.
23012         * modules/unictype/ctype-graph-tests: Likewise.
23013         * modules/unictype/ctype-lower-tests: Likewise.
23014         * modules/unictype/ctype-print-tests: Likewise.
23015         * modules/unictype/ctype-punct-tests: Likewise.
23016         * modules/unictype/ctype-space-tests: Likewise.
23017         * modules/unictype/ctype-upper-tests: Likewise.
23018         * modules/unictype/ctype-xdigit-tests: Likewise.
23019         * modules/unictype/decimal-digit-tests: Likewise.
23020         * modules/unictype/digit-tests: Likewise.
23021         * modules/unictype/mirror-tests: Likewise.
23022         * modules/unictype/numeric-tests: Likewise.
23023         * modules/unictype/property-alphabetic-tests: Likewise.
23024         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23025         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23026         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23027         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23028         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23029         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23030         * modules/unictype/property-bidi-control-tests: Likewise.
23031         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23032         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23033         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23034         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23035         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23036         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23037         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23038         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23039         * modules/unictype/property-bidi-pdf-tests: Likewise.
23040         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23041         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23042         * modules/unictype/property-byname-tests: Likewise.
23043         * modules/unictype/property-combining-tests: Likewise.
23044         * modules/unictype/property-composite-tests: Likewise.
23045         * modules/unictype/property-currency-symbol-tests: Likewise.
23046         * modules/unictype/property-dash-tests: Likewise.
23047         * modules/unictype/property-decimal-digit-tests: Likewise.
23048         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23049         * modules/unictype/property-deprecated-tests: Likewise.
23050         * modules/unictype/property-diacritic-tests: Likewise.
23051         * modules/unictype/property-extender-tests: Likewise.
23052         * modules/unictype/property-format-control-tests: Likewise.
23053         * modules/unictype/property-grapheme-base-tests: Likewise.
23054         * modules/unictype/property-grapheme-extend-tests: Likewise.
23055         * modules/unictype/property-grapheme-link-tests: Likewise.
23056         * modules/unictype/property-hex-digit-tests: Likewise.
23057         * modules/unictype/property-hyphen-tests: Likewise.
23058         * modules/unictype/property-id-continue-tests: Likewise.
23059         * modules/unictype/property-id-start-tests: Likewise.
23060         * modules/unictype/property-ideographic-tests: Likewise.
23061         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23062         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23063         * modules/unictype/property-ignorable-control-tests: Likewise.
23064         * modules/unictype/property-iso-control-tests: Likewise.
23065         * modules/unictype/property-join-control-tests: Likewise.
23066         * modules/unictype/property-left-of-pair-tests: Likewise.
23067         * modules/unictype/property-line-separator-tests: Likewise.
23068         * modules/unictype/property-logical-order-exception-tests: Likewise.
23069         * modules/unictype/property-lowercase-tests: Likewise.
23070         * modules/unictype/property-math-tests: Likewise.
23071         * modules/unictype/property-non-break-tests: Likewise.
23072         * modules/unictype/property-not-a-character-tests: Likewise.
23073         * modules/unictype/property-numeric-tests: Likewise.
23074         * modules/unictype/property-other-alphabetic-tests: Likewise.
23075         * modules/unictype/property-other-default-ignorable-code-point-tests:
23076         Likewise.
23077         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23078         * modules/unictype/property-other-id-continue-tests: Likewise.
23079         * modules/unictype/property-other-id-start-tests: Likewise.
23080         * modules/unictype/property-other-lowercase-tests: Likewise.
23081         * modules/unictype/property-other-math-tests: Likewise.
23082         * modules/unictype/property-other-uppercase-tests: Likewise.
23083         * modules/unictype/property-paired-punctuation-tests: Likewise.
23084         * modules/unictype/property-paragraph-separator-tests: Likewise.
23085         * modules/unictype/property-pattern-syntax-tests: Likewise.
23086         * modules/unictype/property-pattern-white-space-tests: Likewise.
23087         * modules/unictype/property-private-use-tests: Likewise.
23088         * modules/unictype/property-punctuation-tests: Likewise.
23089         * modules/unictype/property-quotation-mark-tests: Likewise.
23090         * modules/unictype/property-radical-tests: Likewise.
23091         * modules/unictype/property-sentence-terminal-tests: Likewise.
23092         * modules/unictype/property-soft-dotted-tests: Likewise.
23093         * modules/unictype/property-space-tests: Likewise.
23094         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23095         * modules/unictype/property-test-tests: Likewise.
23096         * modules/unictype/property-titlecase-tests: Likewise.
23097         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23098         * modules/unictype/property-unified-ideograph-tests: Likewise.
23099         * modules/unictype/property-uppercase-tests: Likewise.
23100         * modules/unictype/property-variation-selector-tests: Likewise.
23101         * modules/unictype/property-white-space-tests: Likewise.
23102         * modules/unictype/property-xid-continue-tests: Likewise.
23103         * modules/unictype/property-xid-start-tests: Likewise.
23104         * modules/unictype/property-zero-width-tests: Likewise.
23105         * modules/unictype/scripts-tests: Likewise.
23106         * modules/unictype/syntax-c-ident-tests: Likewise.
23107         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23108         * modules/unictype/syntax-java-ident-tests: Likewise.
23109         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23110         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23111         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23112         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23113         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23114         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23115         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23116         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23117         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23118         * modules/uniname/uniname-tests: Likewise.
23119         * modules/uninorm/canonical-decomposition-tests: Likewise.
23120         * modules/uninorm/compat-decomposition-tests: Likewise.
23121         * modules/uninorm/composition-tests: Likewise.
23122         * modules/uninorm/decomposing-form-tests: Likewise.
23123         * modules/uninorm/decomposition-tests: Likewise.
23124         * modules/uninorm/filter-tests: Likewise.
23125         * modules/uninorm/nfc-tests: Likewise.
23126         * modules/uninorm/nfd-tests: Likewise.
23127         * modules/uninorm/nfkc-tests: Likewise.
23128         * modules/uninorm/nfkd-tests: Likewise.
23129         * modules/uninorm/u8-normcmp-tests: Likewise.
23130         * modules/uninorm/u8-normcoll-tests: Likewise.
23131         * modules/uninorm/u16-normcmp-tests: Likewise.
23132         * modules/uninorm/u16-normcoll-tests: Likewise.
23133         * modules/uninorm/u32-normcmp-tests: Likewise.
23134         * modules/uninorm/u32-normcoll-tests: Likewise.
23135         * modules/unistdio/u8-asnprintf-tests: Likewise.
23136         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23137         * modules/unistdio/u8-vasprintf-tests: Likewise.
23138         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23139         * modules/unistdio/u8-vsprintf-tests: Likewise.
23140         * modules/unistdio/u16-asnprintf-tests: Likewise.
23141         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23142         * modules/unistdio/u16-vasprintf-tests: Likewise.
23143         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23144         * modules/unistdio/u16-vsprintf-tests: Likewise.
23145         * modules/unistdio/u32-asnprintf-tests: Likewise.
23146         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23147         * modules/unistdio/u32-vasprintf-tests: Likewise.
23148         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23149         * modules/unistdio/u32-vsprintf-tests: Likewise.
23150         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23151         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23152         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23153         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23154         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23155         * modules/unistr/u8-check-tests: Likewise.
23156         * modules/unistr/u8-chr-tests: Likewise.
23157         * modules/unistr/u8-cmp-tests: Likewise.
23158         * modules/unistr/u8-cmp2-tests: Likewise.
23159         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23160         * modules/unistr/u8-cpy-tests: Likewise.
23161         * modules/unistr/u8-mblen-tests: Likewise.
23162         * modules/unistr/u8-mbsnlen-tests: Likewise.
23163         * modules/unistr/u8-mbtouc-tests: Likewise.
23164         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23165         * modules/unistr/u8-mbtoucr-tests: Likewise.
23166         * modules/unistr/u8-move-tests: Likewise.
23167         * modules/unistr/u8-next-tests: Likewise.
23168         * modules/unistr/u8-prev-tests: Likewise.
23169         * modules/unistr/u8-set-tests: Likewise.
23170         * modules/unistr/u8-stpcpy-tests: Likewise.
23171         * modules/unistr/u8-stpncpy-tests: Likewise.
23172         * modules/unistr/u8-strcat-tests: Likewise.
23173         * modules/unistr/u8-strcmp-tests: Likewise.
23174         * modules/unistr/u8-strcoll-tests: Likewise.
23175         * modules/unistr/u8-strcpy-tests: Likewise.
23176         * modules/unistr/u8-strdup-tests: Likewise.
23177         * modules/unistr/u8-strlen-tests: Likewise.
23178         * modules/unistr/u8-strmblen-tests: Likewise.
23179         * modules/unistr/u8-strmbtouc-tests: Likewise.
23180         * modules/unistr/u8-strncat-tests: Likewise.
23181         * modules/unistr/u8-strncmp-tests: Likewise.
23182         * modules/unistr/u8-strncpy-tests: Likewise.
23183         * modules/unistr/u8-strnlen-tests: Likewise.
23184         * modules/unistr/u8-to-u16-tests: Likewise.
23185         * modules/unistr/u8-to-u32-tests: Likewise.
23186         * modules/unistr/u8-uctomb-tests: Likewise.
23187         * modules/unistr/u16-check-tests: Likewise.
23188         * modules/unistr/u16-chr-tests: Likewise.
23189         * modules/unistr/u16-cmp-tests: Likewise.
23190         * modules/unistr/u16-cmp2-tests: Likewise.
23191         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23192         * modules/unistr/u16-cpy-tests: Likewise.
23193         * modules/unistr/u16-mblen-tests: Likewise.
23194         * modules/unistr/u16-mbsnlen-tests: Likewise.
23195         * modules/unistr/u16-mbtouc-tests: Likewise.
23196         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23197         * modules/unistr/u16-mbtoucr-tests: Likewise.
23198         * modules/unistr/u16-move-tests: Likewise.
23199         * modules/unistr/u16-next-tests: Likewise.
23200         * modules/unistr/u16-prev-tests: Likewise.
23201         * modules/unistr/u16-set-tests: Likewise.
23202         * modules/unistr/u16-stpcpy-tests: Likewise.
23203         * modules/unistr/u16-stpncpy-tests: Likewise.
23204         * modules/unistr/u16-strcat-tests: Likewise.
23205         * modules/unistr/u16-strcmp-tests: Likewise.
23206         * modules/unistr/u16-strcoll-tests: Likewise.
23207         * modules/unistr/u16-strcpy-tests: Likewise.
23208         * modules/unistr/u16-strdup-tests: Likewise.
23209         * modules/unistr/u16-strlen-tests: Likewise.
23210         * modules/unistr/u16-strmblen-tests: Likewise.
23211         * modules/unistr/u16-strmbtouc-tests: Likewise.
23212         * modules/unistr/u16-strncat-tests: Likewise.
23213         * modules/unistr/u16-strncmp-tests: Likewise.
23214         * modules/unistr/u16-strncpy-tests: Likewise.
23215         * modules/unistr/u16-strnlen-tests: Likewise.
23216         * modules/unistr/u16-to-u32-tests: Likewise.
23217         * modules/unistr/u16-to-u8-tests: Likewise.
23218         * modules/unistr/u16-uctomb-tests: Likewise.
23219         * modules/unistr/u32-check-tests: Likewise.
23220         * modules/unistr/u32-chr-tests: Likewise.
23221         * modules/unistr/u32-cmp-tests: Likewise.
23222         * modules/unistr/u32-cmp2-tests: Likewise.
23223         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23224         * modules/unistr/u32-cpy-tests: Likewise.
23225         * modules/unistr/u32-mblen-tests: Likewise.
23226         * modules/unistr/u32-mbsnlen-tests: Likewise.
23227         * modules/unistr/u32-mbtouc-tests: Likewise.
23228         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23229         * modules/unistr/u32-mbtoucr-tests: Likewise.
23230         * modules/unistr/u32-move-tests: Likewise.
23231         * modules/unistr/u32-next-tests: Likewise.
23232         * modules/unistr/u32-prev-tests: Likewise.
23233         * modules/unistr/u32-set-tests: Likewise.
23234         * modules/unistr/u32-stpcpy-tests: Likewise.
23235         * modules/unistr/u32-stpncpy-tests: Likewise.
23236         * modules/unistr/u32-strcat-tests: Likewise.
23237         * modules/unistr/u32-strcmp-tests: Likewise.
23238         * modules/unistr/u32-strcoll-tests: Likewise.
23239         * modules/unistr/u32-strcpy-tests: Likewise.
23240         * modules/unistr/u32-strdup-tests: Likewise.
23241         * modules/unistr/u32-strlen-tests: Likewise.
23242         * modules/unistr/u32-strmblen-tests: Likewise.
23243         * modules/unistr/u32-strmbtouc-tests: Likewise.
23244         * modules/unistr/u32-strncat-tests: Likewise.
23245         * modules/unistr/u32-strncmp-tests: Likewise.
23246         * modules/unistr/u32-strncpy-tests: Likewise.
23247         * modules/unistr/u32-strnlen-tests: Likewise.
23248         * modules/unistr/u32-to-u16-tests: Likewise.
23249         * modules/unistr/u32-to-u8-tests: Likewise.
23250         * modules/unistr/u32-uctomb-tests: Likewise.
23251         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23252         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23253         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23254         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23255         * modules/uniwidth/u8-strwidth-tests: Likewise.
23256         * modules/uniwidth/u8-width-tests: Likewise.
23257         * modules/uniwidth/u16-strwidth-tests: Likewise.
23258         * modules/uniwidth/u16-width-tests: Likewise.
23259         * modules/uniwidth/u32-strwidth-tests: Likewise.
23260         * modules/uniwidth/u32-width-tests: Likewise.
23261         * modules/uniwidth/width-tests: Likewise.
23262
23263 2010-05-18  Richard Jones  <rjones@redhat.com>
23264
23265         doc: users.txt: list hivex
23266         * users.txt: Add hivex.
23267
23268 2010-05-18  Richard Jones  <rjones@redhat.com>
23269
23270         doc: users.txt: list febootstrap
23271         * users.txt: Add febootstrap.
23272
23273 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23274
23275         bootstrap: fix an error when gnulib is not used as a git submodule
23276         * build-aux/bootstrap (gnulib_path): If its length is zero then
23277         assign "gnulib" to it.
23278         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23279
23280 2010-05-16  Bruno Haible  <bruno@clisp.org>
23281
23282         Avoid autoconf warnings about AM_ICONV.
23283         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23284         2.64.
23285
23286 2010-05-16  Bruno Haible  <bruno@clisp.org>
23287
23288         absolute-header: Make the macro usable in more situations.
23289         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23290         from gl_ABSOLUTE_HEADER.
23291         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23292
23293 2010-05-16  James Youngman  <jay@gnu.org>
23294
23295         doc: update users.txt
23296         * users.txt: Add CSSC.
23297
23298 2010-05-16  Jim Meyering  <meyering@redhat.com>
23299
23300         init.sh: fix an error in the previous change; add more comments
23301         * tests/init.sh: Compare exit code in loop against 9, not 2.
23302         Patch by Bruno Haible.
23303         Make the two tests more similar by adding an empty "then" clause.
23304         Add comments.
23305
23306         init.sh: avoid unnecessary shell re-exec
23307         * tests/init.sh: Improve the re-exec-required check to first test the
23308         current shell.  If it passes the test, do not search for a shell that
23309         does pass, and do not re-exec.  This test is particularly contorted to
23310         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23311         of $(...) evokes a syntax error and causes immediate shell exit with
23312         status 2.  Bruno Haible reported that the re-exec made it impossible
23313         to single-step through any init.sh-using script.
23314
23315 2010-05-16  Bruno Haible  <bruno@clisp.org>
23316
23317         Fix collision between gnulib's and libintl's printf replacements.
23318         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23319         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23320         (printf): When using GNU C, map the __printf__ function to rpl_printf
23321         via __asm__. When not using GNU C, define rpl_printf instead of
23322         __printf__.
23323         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23324         commit.
23325         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23326         commit.
23327         * m4/asm-underscore.m4: New file.
23328         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23329         * modules/stdio (Files): Add m4/asm-underscore.m4.
23330         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23331         Reported by Ben Pfaff.
23332
23333 2010-05-16  Bruno Haible  <bruno@clisp.org>
23334
23335         verify: Avoid skipping the test on openSUSE 11.0.
23336         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23337
23338 2010-05-13  Bruno Haible  <bruno@clisp.org>
23339
23340         Avoid useless warnings from G++.
23341         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23342         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23343         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23344
23345 2010-05-11  Jim Meyering  <meyering@redhat.com>
23346
23347         maint.mk: tweak preceding change
23348         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23349         regexps tighter by anchoring at EOL, and make the new group "shy"
23350         for slightly decreased overhead.
23351
23352 2010-05-11  Eric Blake  <eblake@redhat.com>
23353
23354         maint.mk: gnulib doesn't guarantee NSIG
23355         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23356
23357 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23358
23359         test-pwrite.c: Remove unused variable declaration.
23360         * tests/test-pwrite.c (main): Remove read_buf declaration.
23361
23362         Remove useless test-pwrite.sh file.
23363         * tests/test-pwrite.sh: Delete file.
23364         * modules/pwrite-tests: Remove references.
23365         Reported by Bruno Haible.
23366
23367 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23368
23369         init.sh: fix a typo
23370         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23371
23372 2010-05-10  Jim Meyering  <meyering@redhat.com>
23373
23374         maint.mk: avoid using a temporary file in the always-defined-macros check
23375         * top/maint.mk (.re-defmac): Remove rule.
23376         (gl_trap_): Remove definition.
23377         (sc_prohibit_always-defined_macros): Rewrite not to create and
23378         depend on a temporary file.  Instead, depend on GNU grep's ability
23379         to read a list of regular expressions from stdin when given "-f -".
23380
23381 2010-05-09  Bruno Haible  <bruno@clisp.org>
23382
23383         Update to GNU gettext 0.18, part 1.
23384         * m4/gettext.m4: Update to GNU gettext 0.18.
23385         * m4/intl.m4: Likewise.
23386         * m4/po.m4: Likewise.
23387         * modules/gettext (Files): Add m4/fcntl-o.m4.
23388         (configure.ac): Require gettext infrastructure from version 0.18.
23389
23390 2010-05-09  Jim Meyering  <meyering@redhat.com>
23391
23392         init.sh: enable MALLOC_PERTURB_
23393         * tests/init.sh: Enable glibc's malloc-perturbing option.
23394
23395         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23396         With my recent change in init.sh from the two-line form:
23397             -#   : ${srcdir=.}
23398             -#   . "$srcdir/init.sh"; path_prepend_ .
23399             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23400         I noticed that using the one-line form would cause this test
23401         to fail with a false-positive, or to stop working altogether,
23402         depending on whether help-version changed or all the tests did.
23403         * top/maint.mk (_hv_regex): Remove this definition.
23404         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23405         (_hv_regex_strong): Use a stronger regex to check for conformance.
23406         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23407         Give a separate diagnostic for lack of conforming use.
23408
23409         maint.mk: prohibit definition of symbols defined by gnulib
23410         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23411         definition of symbols defined by gnulib.
23412
23413 2010-05-09  Bruno Haible  <bruno@clisp.org>
23414
23415         acl: Avoid test failure on Cygwin-hosted mingw.
23416         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23417
23418 2010-05-09  Bruno Haible  <bruno@clisp.org>
23419
23420         error: Use system's fcntl function.
23421         * lib/error.c (fcntl): Undefine.
23422
23423 2010-05-09  Jim Meyering  <meyering@redhat.com>
23424
23425         verify: adjust formatting to be more consistent
23426         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23427         argument-list '('s, and after one comma.
23428
23429 2010-05-09  Bruno Haible  <bruno@clisp.org>
23430
23431         error: More reliable output on mingw.
23432         * lib/error.c: Include <windows.h>.
23433         (is_open): New function.
23434         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23435         defined.
23436
23437 2010-05-09  Bruno Haible  <bruno@clisp.org>
23438
23439         vasnprintf: Fix syntax errors in libintl build on mingw.
23440         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23441         pad_ourselves and prec_ourselves after use.
23442
23443 2010-05-08  Bruno Haible  <bruno@clisp.org>
23444
23445         * lib/config.charset: Update comments for Cygwin 1.7.
23446         * lib/localcharset.c: Likewise.
23447
23448 2010-05-07  Jim Meyering  <meyering@redhat.com>
23449
23450         init.sh: improve comments
23451         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23452         . "${srcdir=.}/init.sh"; path_prepend_ .
23453         Add a note about path_prepend_ and the alternative of using
23454         TESTS_ENVIRONMENT.
23455
23456 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23457
23458         exclude: Unescape hashed patterns in wildcard mode.
23459         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23460         to the hash list.
23461         * tests/test-exclude8.sh: New test case.
23462         * modules/exclude-tests: Add new test.
23463
23464 2010-05-05  Eric Blake  <eblake@redhat.com>
23465
23466         verify: automate tests
23467         * modules/verify-tests: New module.
23468         * tests/test-verify.sh: New file.
23469         * tests/test-verify.c: Guard each negative test with a unique id.
23470         Also avoid warning about unused left hand of comma expressions.
23471
23472 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23473
23474         Further improvements to verify.h, suggested by Eric Blake.
23475         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23476         the GL_* versions, to avoid collision with OpenGL.
23477         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23478         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23479         than testing merely whether it's defined.
23480
23481         Modify verify.h to pacify gcc -Wredundant_decls.
23482         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23483         These use the prefix "GL_" since they're likely to be useful elsewhere.
23484         We may need to break them out into a different .h file.
23485         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23486         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23487         of verify_function__.
23488
23489 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23490
23491         Tests for module pwrite.
23492         * modules/pwrite-tests: New file.
23493         * tests/test-pwrite.sh: New file.
23494         * tests/test-pwrite.c: New file.
23495
23496         New module pwrite.
23497         * lib/unistd.in.h (pwrite): New declaration.
23498         * lib/pwrite.c: New file, from glibc with modifications.
23499         * m4/pwrite.m4: New file.
23500         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23501         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23502         REPLACE_PWRITE.
23503         * modules/pwrite: New file.
23504         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23505         REPLACE_PWRITE.
23506         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23507         * doc/posix-functions/pwrite.texi: Mention the new module.
23508
23509 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23510
23511         pread: Update documentation.
23512         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23513
23514 2010-05-04  Eric Blake  <eblake@redhat.com>
23515
23516         docs: update cygwin progress
23517         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23518         this bug.
23519         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23520         Added in cygwin 1.7.2.
23521         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23522         Likewise.
23523         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23524         Likewise.
23525         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23526         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23527         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23528         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23529         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23530         Mention nproc module.
23531         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23532         bug in cygwin 1.7.5 addition.
23533         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23534         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23535         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23536         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23537         1.7.5.
23538         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23539         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23540         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23541         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23542         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23543         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23544         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23545         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23546         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23547         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23548         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23549         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23550         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23551         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23552         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23553         Likewise.
23554         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23555         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23556         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23557         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23558         Likewise.
23559         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23560         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23561         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23562         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23563         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23564         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23565         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23566         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23567         Likewise.
23568         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23569         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23570         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23571         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23572         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23573         Likewise.
23574         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23575         Likewise.
23576         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23577         Likewise.
23578         * doc/glibc-functions/xdrrec_endofrecord.texi
23579         (xdrrec_endofrecord): Likewise.
23580         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23581         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23582         Likewise.
23583         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23584         Likewise.
23585
23586 2010-05-04  Jim Meyering  <meyering@redhat.com>
23587
23588         gendocs.sh: make its "-s FILE" option more useful
23589         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23590         $PACKAGE to reflect the probably-different basename of "FILE".
23591
23592 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23593
23594         bootstrap: don't ignore download_po_files failure
23595         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23596         failure.
23597
23598 2010-05-03  Jim Meyering  <meyering@redhat.com>
23599
23600         maint.mk: allow to pass options to gendocs.sh
23601         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23602         (gendocs_options_): New overridable variable.
23603
23604         gnu-web-doc-update: don't ignore configure or build failure
23605         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23606
23607         announce-gen: backslash-escape '@'s in --help output
23608         * build-aux/announce-gen: Fix syntax errors.
23609
23610         maint.mk, announce-gen: allow project-specific announcement mail headers
23611         * top/maint.mk (translation_project_): Define default.
23612         (announcement_Cc_, announcement_mail_headers_): Likewise.
23613         (announcement): Invoke announce-gen with new --mail-headers option.
23614         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23615
23616         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23617         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23618         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23619         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23620         line in the "err2" output file when running "make check" in verbose
23621         mode (i.e., with set -x enabled).
23622
23623 2010-05-03  Bruno Haible  <bruno@clisp.org>
23624
23625         wctob: Fix for weird platforms.
23626         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23627         argument value.
23628
23629 2010-05-03  Jim Meyering  <meyering@redhat.com>
23630
23631         maint.mk: prohibit unwarranted use of <strings.h>
23632         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23633         strings.h in a file that does not also use strcasecmp, strncasecmp,
23634         ffs or ffsll.
23635
23636         maint.mk: remove obsolete comments
23637         * top/maint.mk: Remove stale, commented-out rules.
23638
23639 2010-05-02  Bruno Haible  <bruno@clisp.org>
23640
23641         wcwidth: Declare also when it's aliased.
23642         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23643         macro.
23644
23645 2010-05-02  Bruno Haible  <bruno@clisp.org>
23646
23647         Fix regression from 2010-04-25.
23648         * gnulib-tool (func_modules_transitive_closure): Check the status of
23649         all modules, not only of the tests that are of the form foo-tests where
23650         foo is a module.
23651
23652 2010-05-02  Bruno Haible  <bruno@clisp.org>
23653
23654         wctob: Work around nasty Cygwin 1.7.2 bug.
23655         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23656         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23657
23658 2010-05-01  Bruno Haible  <bruno@clisp.org>
23659
23660         fpurge: Sharper test.
23661         * tests/test-fpurge.c (main): Add one more ftell check.
23662         * modules/fpurge-tests (Depends-on): Add ftell.
23663         Suggested by Eric Blake.
23664
23665 2010-05-01  Bruno Haible  <bruno@clisp.org>
23666
23667         ftello: Another test.
23668         * tests/test-ftello3.c: New file.
23669         * modules/ftello-tests (Files): Add it.
23670         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23671         MOSTLYCLEANFILES.
23672
23673         ftell: Another test.
23674         * tests/test-ftell3.c: New file.
23675         * modules/ftell-tests (Files): Add it.
23676         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23677         MOSTLYCLEANFILES.
23678
23679 2010-05-01  Bruno Haible  <bruno@clisp.org>
23680
23681         ftell, ftello: Work around Solaris bug.
23682         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23683         * lib/ftello.c: Include stdio-impl.h.
23684         (ftello): On Solaris, when _IOWRT is set, compute the result without
23685         looking at _IOREAD.
23686         * modules/ftello (Files): Add lib/stdio-impl.h.
23687         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23688         * doc/posix-functions/ftello.texi: Likewise.
23689         Reported by Eric Blake.
23690
23691 2010-05-01  Bruno Haible  <bruno@clisp.org>
23692
23693         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23694         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23695         the _IOWRT flag is also set.
23696
23697 2010-05-01  Bruno Haible  <bruno@clisp.org>
23698
23699         Fix doc about a HP-UX stdio bug.
23700         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23701         * doc/posix-functions/ftello.texi: Likewise.
23702
23703 2010-05-01  Bruno Haible  <bruno@clisp.org>
23704
23705         lseek test: Fix failure on Solaris.
23706         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23707         output.
23708
23709 2010-04-30  Jim Meyering  <meyering@redhat.com>
23710
23711         bootstrap: don't ignore failure to generate po*/Makevars
23712         * build-aux/bootstrap (with_gettext): Don't ignore failure
23713         to create po/Makevars or runtime-po/Makevars.
23714
23715 2010-04-29  Eric Blake  <eblake@redhat.com>
23716
23717         headers: relax license to LGPLv2+
23718         * modules/fcntl-h (License): Relax license.
23719         * modules/getopt-posix (License): Likewise.
23720         * modules/locale (License): Likewise.
23721         * modules/math (License): Likewise.
23722         * modules/pty (License): Likewise.
23723         * modules/sched (License): Likewise.
23724         * modules/search (License): Likewise.
23725         * modules/spawn (License): Likewise.
23726         * modules/stdarg (License): Likewise.
23727         * modules/sysexits (License): Likewise.
23728
23729 2010-04-29  Jim Meyering  <meyering@redhat.com>
23730
23731         inttypes: relax license to LGPLv2+
23732         * modules/inttypes (License): Relax license.
23733
23734 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23735
23736         * top/maint.mk (indent): Run twice to produce idempotent results.
23737
23738 2010-04-28  Bruno Haible  <bruno@clisp.org>
23739
23740         getdate: Generate getdate.c in the source directory.
23741         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23742         MOSTLYCLEANFILES.
23743         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23744
23745 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23746
23747         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23748         is not declared as a const *; avoid warnings in that case.
23749
23750 2010-04-28  Eric Blake  <eblake@redhat.com>
23751
23752         canonicalize-lgpl: avoid compiler warning
23753         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23754         declaration' / 'extraneous semicolon' warning with some compilers.
23755         Reported by Andreas Gruenbacher.
23756
23757 2010-04-28  Jim Meyering  <meyering@redhat.com>
23758
23759         init.sh: ensure a more reliable exit status when exiting via trap
23760         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23761         Inspired by patches from Dmitry V. Levin.
23762         Also trap on signal 3 (SIGQUIT).
23763
23764 2010-04-27  Bruno Haible  <bruno@clisp.org>
23765
23766         Update doc about utimes().
23767         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23768         'utimens' module.
23769         Reported by Andreas Gruenbacher <agruen@suse.de>.
23770
23771 2010-04-27  Eric Blake  <eblake@redhat.com>
23772
23773         full-read, full-write: relax license
23774         * modules/full-read (License): Drop to LGPLv2+.
23775         * modules/full-write (License): Likewise.
23776         * modules/safe-read (License): Likewise.
23777         * modules/safe-write (License): Likewise.
23778
23779         pthread: mention library for linking
23780         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23781
23782 2010-04-27  Jim Meyering  <meyering@redhat.com>
23783
23784         maint.mk: fix a bug introduced in last change
23785         * top/maint.mk (gl_assured_headers_): Now that all names are on
23786         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23787         is not anchored to end of word, it should be adequate.
23788
23789         maint.mk: avoid side-effect in latest syntax-check
23790         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23791         to run commands via $(shell...), and hence to incur cost only when
23792         the new rule is actually run.
23793
23794         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23795         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23796         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23797         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23798         (gl_assured_headers_, az_, AZ_): Define.
23799         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23800
23801 2010-04-26  Jim Meyering  <jim@meyering.net>
23802             Bruno Haible  <bruno@clisp.org>
23803
23804         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23805         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23806         Prompted by an exchange with Gilles Espinasse.
23807
23808 2010-04-26  Jim Meyering  <meyering@redhat.com>
23809
23810         git-version-gen: aesthetic tweak
23811         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23812         so that the command remains on a single line.
23813
23814 2010-04-26  Eric Blake  <eblake@redhat.com>
23815
23816         git-version-gen: allow use on EBCDIC hosts
23817         * build-aux/git-version-gen (dirty): Use literal rather than tying
23818         ourselves to ascii.
23819         Reported by Steve Goetze.
23820
23821 2010-04-25  Bruno Haible  <bruno@clisp.org>
23822
23823         netdb: Add support for GNULIB_POSIXCHECK.
23824         * lib/netdb.in.h: Include warn-on-use.h.
23825         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23826         functions are used when GNULIB_POSIXCHECK is defined and the
23827         getaddrinfo module is not in use.
23828         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23829         freeaddrinfo, gai_strerror, getnameinfo are declared.
23830         * modules/netdb (Depends-on): Add warn-on-use.
23831         (Makefile.am): Include warn-on-use.h in netdb.h.
23832
23833 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23834
23835         build: avoid "make check" failure without .git/ directory
23836         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23837         there is no .git/ directory.
23838
23839 2010-04-25  Bruno Haible  <bruno@clisp.org>
23840
23841         ptsname: Fix misuse of ttyname_r.
23842         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23843         of errno.
23844
23845 2010-04-25  Bruno Haible  <bruno@clisp.org>
23846
23847         ttyname_r: Make it work on Solaris 10.
23848         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23849         if the system function has the POSIX declaration. Test whether the
23850         function fails if the buffer is less than 128 bytes large.
23851         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23852         system's ttyname_r function. Provide a reasonably large buffer.
23853         * modules/ttyname_r (Depends-on): Add extensions.
23854         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23855
23856 2010-04-25  Bruno Haible  <bruno@clisp.org>
23857
23858         Use the 'extensions' module for some more functions on Solaris.
23859         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23860         module.
23861         * doc/posix-functions/ctime_r.texi: Likewise.
23862         * doc/posix-functions/getgrgid_r.texi: Likewise.
23863         * doc/posix-functions/getgrnam_r.texi: Likewise.
23864         * doc/posix-functions/getpwnam_r.texi: Likewise.
23865         * doc/posix-functions/getpwuid_r.texi: Likewise.
23866         * doc/posix-functions/readdir_r.texi: Likewise.
23867         * doc/posix-functions/sigwait.texi: Likewise.
23868         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23869         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23870
23871 2010-04-25  Bruno Haible  <bruno@clisp.org>
23872
23873         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23874         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23875         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23876         * lib/ttyname_r.c: Include <limits.h>.
23877         (ttyname_r): Define using the system's ttyname_r function, if it exists
23878         and not on Solaris.
23879         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23880         set.
23881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23882         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23883         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23884         Reported by Simon Josefsson.
23885
23886 2010-04-25  Bruno Haible  <bruno@clisp.org>
23887
23888         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23889         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23890         * doc/posix-functions/ctime_r.texi: Likewise.
23891         * doc/posix-functions/getgrgid_r.texi: Likewise.
23892         * doc/posix-functions/getgrnam_r.texi: Likewise.
23893         * doc/posix-functions/getlogin_r.texi: Likewise.
23894         * doc/posix-functions/getpwnam_r.texi: Likewise.
23895         * doc/posix-functions/getpwuid_r.texi: Likewise.
23896         * doc/posix-functions/readdir_r.texi: Likewise.
23897         * doc/posix-functions/sigwait.texi: Likewise.
23898         * doc/posix-functions/ttyname_r.texi: Likewise.
23899         Reported by Simon Josefsson.
23900
23901 2010-04-25  Bruno Haible  <bruno@clisp.org>
23902
23903         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23904         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23905         also to --create-testdir.
23906         (func_acceptable): Don't consider the status of *-tests modules here.
23907         (func_modules_transitive_closure): Consider it here, before including a
23908         test module.
23909         (func_import, func_create_testdir): Set inc_all_direct_tests,
23910         inc_all_indirect_tests.
23911         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23912         --create-testdir and --create-megatestdir.
23913
23914 2010-04-25  Bruno Haible  <bruno@clisp.org>
23915
23916         gnulib-tool: Add --without-*-tests options.
23917         * gnulib-tool (func_usage): Document the --without-*-tests options.
23918         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23919         excl_unportable_tests): New variables.
23920         Fail if they are specified with --import or --update.
23921         (func_acceptable): Respect the excl_*_tests variables.
23922         (func_import): Set the excl_*_tests variables to empty.
23923
23924 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23925             Bruno Haible  <bruno@clisp.org>
23926
23927         Work around a MacOS X 10.4 bug with openpty.
23928         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23929         * tests/test-openpty.c (main): Close the master side explicitly.
23930
23931 2010-04-25  Bruno Haible  <bruno@clisp.org>
23932
23933         strnlen: Fix a C++ test error on MacOS X and Solaris.
23934         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23935         the function is not declared.
23936         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23937         Simon Josefsson.
23938
23939 2010-04-24  Bruno Haible  <bruno@clisp.org>
23940
23941         Avoid a gcc warning.
23942         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23943         of correct type for %08lx directive.
23944         Reported by Eric Blake.
23945
23946 2010-04-24  Bruno Haible  <bruno@clisp.org>
23947
23948         vasnprintf: Correct errno value in case of out-of-memory.
23949         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23950         or sprintf. Use the errno value from SNPRINTF or sprintf.
23951         Reported by Ian Beckwith <ianb@erislabs.net>.
23952
23953 2010-04-24  Bruno Haible  <bruno@clisp.org>
23954
23955         ansi-c++-opt: Find correct compiler when cross-compiling.
23956         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23957         AC_CHECK_PROGS.
23958         Reported by Simon Josefsson.
23959
23960 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23961
23962         vc-list-files: Add support for subversion
23963         * build-aux/vc-list-files: Use "svn list" to generate the list of
23964         files controlled by subversion.
23965
23966 2010-04-23  Jim Meyering  <meyering@redhat.com>
23967
23968         vc-list-files tests: convert to use init.sh
23969         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23970         path_prepend_.
23971         Use Exit, not exit.
23972         Use skip_ rather than open coding it.
23973         Remove trap set-up and compare definitions.
23974         * tests/test-vc-list-files-git.sh: Likewise.
23975         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23976
23977 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23978
23979         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23980         backup files.
23981
23982 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23983
23984         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23985
23986 2010-04-20  Eric Blake  <eblake@redhat.com>
23987
23988         tests: be robust to ignored SIGPIPE
23989         * tests/test-select-in.sh: Consume all output.
23990         * tests/test-lseek.sh: Check correct exit status, while avoiding
23991         EPIPE.
23992
23993 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23994             Bruno Haible  <bruno@clisp.org>
23995
23996         visibility: Don't use -fvisibility if it leads to a warning.
23997         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23998         yes, don't pretend that visibility works if it leads to a warning.
23999         Reported by Mike Gran <spk121@yahoo.com>.
24000
24001 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24002
24003         * build-aux/bootstrap: Use "git -h" for testing for supported options
24004         instead of "git --help".  The short-form option only shows a summary,
24005         and doesn't layout the full man page.  Grep for the full option name
24006         in the summary, too.
24007
24008 2010-04-19  Bruno Haible  <bruno@clisp.org>
24009
24010         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24011         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24012         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24013         mention of RELOCATABLE_STRIP.
24014         Reported by Sylvain Beucler <beuc@beuc.net>.
24015
24016 2010-04-19  Bruno Haible  <bruno@clisp.org>
24017
24018         * lib/diffseq.h: Fix typo in comment.
24019         Reported by Eric Blake.
24020
24021 2010-04-19  Bruno Haible  <bruno@clisp.org>
24022
24023         ioctl: Move autoconf macro to a .m4 file.
24024         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24025         * modules/ioctl (Files): Add it.
24026         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24027         Reported by Ian Beckwith <ianb@erislabs.net>.
24028
24029 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24030             Bruno Haible  <bruno@clisp.org>
24031
24032         diffseq: Accommodate use-case with abstract arrays.
24033         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24034         is not defined.
24035         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24036         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24037
24038 2010-04-18  Bruno Haible  <bruno@clisp.org>
24039
24040         * doc/posix-headers/stdbool.texi: More precise wording.
24041
24042 2010-04-17  Jim Meyering  <meyering@redhat.com>
24043
24044         maint.mk: use gnu-style indentation in an embedded perl script
24045         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24046         Rename variable: s/two/last_two_bytes/
24047
24048 2010-04-16  Eric Blake  <eblake@redhat.com>
24049
24050         test-stdbool: skip test that fails with Solaris CC
24051         * tests/test-stdbool.c (f): Skip test that causes compilation
24052         error under buggy C++ compiler.
24053         * lib/stdbool.in.h: Document the limitation.
24054         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24055
24056         setenv: allow compilation with C++
24057         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24058         register keyword.
24059
24060         stdint: allow test to pass with C++
24061         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24062
24063         getopt: allow compilation with C++
24064         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24065         struct.
24066         * lib/getopt.c (_getopt_internal_r): Use correct type.
24067         Reported by Dagobert Michelson, via Joel E. Denny.
24068
24069 2010-04-16  Bruno Haible  <bruno@clisp.org>
24070
24071         Override netdb.h always.
24072         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24073         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24074         Reported by Ludovic Courtès <ludo@gnu.org>.
24075
24076 2010-04-15  Bruno Haible  <bruno@clisp.org>
24077
24078         openpty: Fix mistake from 2010-03-21.
24079         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24080         Reported by Simon Josefsson.
24081
24082 2010-04-15  Eric Blake  <eblake@redhat.com>
24083
24084         test-forkpty: fix expected signature
24085         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24086         Reported by Simon Josefsson.
24087
24088 2010-04-15  Jim Meyering  <meyering@redhat.com>
24089
24090         maint.mk: texinfo_suffix_re_: correct the default regexp
24091         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24092
24093         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24094         make it configurable via texinfo_suffix_re_.
24095
24096 2010-04-14  Eric Blake  <eblake@redhat.com>
24097
24098         strtok_r: relax license to LGPLv2+
24099         * modules/strtok_r (License): Relax license.
24100         Reported by Matthias Bolte.
24101
24102 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24103
24104         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24105         version 1.4.4 by default instead of requiring the libgcrypt
24106         version used during build.  This makes it possible to use the
24107         application with older but still binary compatible libgcrypt
24108         versions.
24109
24110 2010-04-13  Eric Blake  <eblake@redhat.com>
24111
24112         getopt-gnu: match recent glibc fixes and posix ruling
24113         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24114         '+' handling, when requesting extensions.
24115         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24116         'W;' handling.
24117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24118         * doc/posix-functions/getopt.texi (getopt): Document this.
24119         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24120         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24121         Likewise.
24122
24123         getopt: merge bug fixes from glibc
24124         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24125         diagnostics.  Honor '+:' correctly.  Reject ';'.
24126
24127         getopt-posix: detect MacOS bug
24128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24129         optind when missing a required argument.
24130         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24131         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24132         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24133         Likewise.
24134
24135         getopt-posix: avoid spurious failure on Solaris
24136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24137         an indicator that setting optind=1 is sufficient for reset.
24138
24139         getopt-posix: avoid spurious failure on FreeBSD
24140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24141         in POSIX mode, since the m4 test uses it.
24142
24143         gnulib-tool: silence warning on BSD sh
24144         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24145
24146 2010-04-13  Jim Meyering  <meyering@redhat.com>
24147
24148         doc: users.txt: GNU patch now uses gnulib
24149         * users.txt: Add patch.
24150
24151 2010-04-12  Jim Meyering  <meyering@redhat.com>
24152
24153         maint.mk: generate more concise timing data for syntax-check rules
24154         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24155         " done" from each line that reports a syntax-check test duration.
24156
24157 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24158
24159         git-version-gen: use "git update-index..." rather than "git status"
24160         * build-aux/git-version-gen: Use git update-index --refresh, not
24161         "git status".  With some versions of git, "git status" would fail
24162         to update the index and result in an unwarranted "-dirty" suffix.
24163
24164 2010-04-11  Jim Meyering  <meyering@redhat.com>
24165
24166         openat: correct formatting (no semantic change)
24167         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24168         Suggested by Bruno Haible.
24169
24170 2010-04-11  Bruno Haible  <bruno@clisp.org>
24171
24172         Stricter declaration checking in testdirs.
24173         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24174         If for_tests is true, augment AM_CPPFLAGS to define
24175         GNULIB_STRICT_CHECKING.
24176         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24177         GNULIB_STRICT_CHECKING is defined, verify that the function is
24178         declared.
24179
24180 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24181             Bruno Haible  <bruno@clisp.org>
24182
24183         libunistring: Improve configure output.
24184         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24185         Don't say "consider installing GNU libunistring" when checking again
24186         with libiconv.
24187
24188 2010-04-11  Bruno Haible  <bruno@clisp.org>
24189
24190         libunistring: Correct value of $LTLIBUNISTRING.
24191         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24192         correct the value of $LTLIBUNISTRING.
24193
24194 2010-04-11  Bruno Haible  <bruno@clisp.org>
24195
24196         havelib: Add static libraries to LIBS in the right order.
24197         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24198         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24199
24200 2010-04-11  Bruno Haible  <bruno@clisp.org>
24201
24202         libunistring: Detect libunistring also when it depends on libiconv.
24203         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24204         the second AC_LIB_HAVE_LINKFLAGS invocation.
24205
24206 2010-04-11  James Youngman  <jay@gnu.org>
24207
24208         close-stream: declare local scalars to be "const"
24209         * lib/close-stream.c (close_stream): Make boolean variables const
24210         to document the fact that we set but do not change them.
24211
24212 2010-04-11  Bruno Haible  <bruno@clisp.org>
24213
24214         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24215
24216 2010-04-11  Jim Meyering  <meyering@redhat.com>
24217
24218         maint.mk: don't include dist-check.mk
24219         * top/maint.mk: Remove bogus include directive.
24220
24221         maint.mk: improve empty-line-at-EOF check
24222         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24223         solution, rather than tail+Perl-based one.  The latter would read
24224         a few kilobytes from the end of each file, and did not handle empty
24225         files properly.
24226
24227         maint.mk: print the elapsed time for each syntax-check rule
24228         * top/maint.mk (sc_m_rules_): Save start time in a file.
24229         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24230         (local-check): Interpose the .z rules
24231
24232 2010-04-11  Jim Meyering  <meyering@redhat.com>
24233
24234         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24235         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24236         empty file with one that ends in an empty line.
24237
24238 2010-04-10  Bruno Haible  <bruno@clisp.org>
24239
24240         mkdir: Make it work on mingw64.
24241         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24242         * lib/mkdir.c: Update comment.
24243         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24244
24245 2010-04-10  Bruno Haible  <bruno@clisp.org>
24246
24247         Don't override improved macro from newer autoconf.
24248         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24249         autoconf >= 2.62.
24250         Reported by Joel E. Denny <jdenny@clemson.edu>.
24251
24252 2010-04-10  Jim Meyering  <meyering@redhat.com>
24253
24254         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24255         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24256
24257         maint.mk: correct a diagnostic
24258         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24259         in diagnostic; now use $prohibit.
24260
24261 2010-04-10  Bruno Haible  <address@hidden>
24262
24263         fchownat: Fix a C++ test error on Solaris 8.
24264         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24265         the function does not exist.
24266
24267 2010-04-10  Bruno Haible  <bruno@clisp.org>
24268
24269         vasnprintf: Add more tests.
24270         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24271         (test_function): Test converting an invalid wide string.
24272
24273         vasnprintf: Correct handling of unconvertible wide string arguments.
24274         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24275         VASNPRINTF.
24276         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24277         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24278         smaller than the expected maximum need for the directive. Set errno to
24279         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24280         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24282         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24283         * modules/vasnprintf (Files): Add m4/printf.m4.
24284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24285
24286 2010-04-10  Bruno Haible  <bruno@clisp.org>
24287
24288         vasnprintf: Fix crash in %ls directive.
24289         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24290         string is passed as argument to %ls, with no precision and no width.
24291         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24292
24293 2010-04-10  Bruno Haible  <bruno@clisp.org>
24294
24295         vasnprintf: Fix multiple test failures on mingw.
24296         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24297         _snprintf, or snwprintf, not _snwprintf.
24298
24299 2010-04-10  Bruno Haible  <bruno@clisp.org>
24300
24301         write: Fix a C++ test error on mingw.
24302         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24303
24304 2010-04-10  Bruno Haible  <bruno@clisp.org>
24305
24306         vasnprintf test: Reduce code duplication.
24307         * tests/test-vasnprintf.c (test_function): New function, extracted from
24308         test_vasnprintf.
24309         (test_vasnprintf, test_asnprintf): Invoke it.
24310
24311 2010-04-10  Bruno Haible  <bruno@clisp.org>
24312
24313         strnlen: Fix warning in C++ mode on MacOS X.
24314         * lib/string.in.h (strnlen): Use the modern idiom.
24315         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24316         defining strnlen as a macro already in <config.h>.
24317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24318         REPLACE_STRNLEN.
24319         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24320         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24321
24322 2010-04-08  James Youngman  <jay@gnu.org>
24323
24324         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24325         the example.
24326
24327 2010-04-09  Jim Meyering  <meyering@redhat.com>
24328
24329         maint.mk: print better diagnostic when there is no $(_hv_file)
24330         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24331         announce that when $(_hv_file) (aka help-version) does not exist.
24332
24333         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24334         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24335         not try to interpret its random input bytes.  Jarno Rajahalme reported
24336         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24337         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24338         (mktempd_): Likewise, just in case.
24339
24340         ftruncate: add two years to projected module removal date: 2012
24341         * m4/ftruncate.m4: Adjust comments.
24342
24343         ftruncate: mark module as obsolete; even MinGW provides it, now
24344         * modules/ftruncate (Status): Obsolete.
24345         (Notice): Say that.
24346         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24347         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24348
24349 2010-04-08  Bruno Haible  <bruno@clisp.org>
24350
24351         Fix side effects from tests-related modules.
24352         * modules/dprintf-posix (Comment): New section.
24353         * modules/fprintf-posix (Comment): Likewise.
24354         * modules/obstack-printf-posix (Comment): Likewise.
24355         * modules/printf-posix (Comment): Likewise.
24356         * modules/snprintf-posix (Comment): Likewise.
24357         * modules/sprintf-posix (Comment): Likewise.
24358         * modules/vasnprintf-posix (Comment): Likewise.
24359         * modules/vasprintf-posix (Comment): Likewise.
24360         * modules/vdprintf-posix (Comment): Likewise.
24361         * modules/vfprintf-posix (Comment): Likewise.
24362         * modules/vprintf-posix (Comment): Likewise.
24363         * modules/vsnprintf-posix (Comment): Likewise.
24364         * modules/vsprintf-posix (Comment): Likewise.
24365         * modules/xprintf-posix (Comment): Likewise.
24366         * modules/xvasprintf-posix (Comment): Likewise.
24367         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24368         * modules/floorf-tests (Depends-on): Likewise.
24369         * modules/round-tests (Depends-on): Likewise.
24370         * modules/roundf-tests (Depends-on): Likewise.
24371         * modules/trunc-tests (Depends-on): Likewise.
24372         * modules/truncf-tests (Depends-on): Likewise.
24373         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24374         'fprintf-posix' module is not present.
24375         * tests/test-floorf2.c (check): Likewise.
24376         * tests/test-trunc2.c (check): Likewise.
24377         * tests/test-truncf2.c (check): Likewise.
24378         * tests/test-round2.c (equal): Likewise.
24379         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24380
24381 2010-04-07  Karl Berry  <karl@gnu.org>
24382
24383         * config/srclist.txt,
24384         * config/srclistvars.sh,
24385         * config/srclist-update: doc fixes.
24386
24387 2010-04-07  Jim Meyering  <meyering@redhat.com>
24388
24389         maint.mk: add a PATH crosschecking syntax-check rule
24390         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24391         Useful if you use a test like the one in help-version (coreutils,
24392         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24393         printed by prog --version.
24394
24395 2010-04-06  Bruno Haible  <bruno@clisp.org>
24396
24397         Fix link error on mingw.
24398         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24399         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24400
24401 2010-04-06  Bruno Haible  <bruno@clisp.org>
24402
24403         Assume rmdir exists.
24404         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24405
24406 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24407
24408         doc: update users.txt
24409         * users.txt: Add gcal.
24410
24411 2010-04-06  Jim Meyering  <meyering@redhat.com>
24412
24413         init.sh: simply unset TMPDIR rather than risking env -i
24414         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24415         although it probably works fine on all Unix-based systems, some
24416         systems (Cygwin?) cannot tolerate a totally cleared environment.
24417         Suggestion from Eric Blake.
24418
24419 2010-04-06  Jim Meyering  <meyering@redhat.com>
24420
24421         init.sh: portability fix: use env's POSIX-specified -i option not -u
24422         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24423         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24424
24425 2010-04-05  Bruno Haible  <bruno@clisp.org>
24426
24427         btowc: Work around Cygwin 1.7.2 bug.
24428         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24429         does not map NUL to 0.
24430         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24431
24432 2010-04-05  Bruno Haible  <bruno@clisp.org>
24433
24434         Make the multithread modules work on Cygwin 1.7.2.
24435         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24436         imported symbols can be declared weak, so that it returns "no" on
24437         Cygwin 1.7.2.
24438
24439 2010-04-05  Bruno Haible  <bruno@clisp.org>
24440
24441         Use the module 'strncat'.
24442         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24443
24444         Tests for module 'strncat'.
24445         * modules/strncat-tests: New file.
24446         * tests/test-strncat.c: New file.
24447
24448         New module 'strncat'.
24449         * lib/string.in.h (strncat): New declaration.
24450         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24451         * m4/strncat.m4: New file, based on m4/memchr.m4.
24452         * modules/strncat: New file.
24453         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24454         is declared.
24455         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24456         REPLACE_STRNCAT.
24457         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24458         REPLACE_STRNCAT.
24459         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24460         module.
24461         * tests/test-string-c++.cc: Check signature of strncat.
24462
24463 2010-04-05  Jim Meyering  <meyering@redhat.com>
24464
24465         xstrtoumax-tests: convert to use init.sh
24466         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24467         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24468         Use Exit, not exit.
24469         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24470
24471         xstrtoimax-tests: convert to use init.sh
24472         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24473         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24474         Use Exit, not exit.
24475         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24476
24477 2010-04-05  Bruno Haible  <bruno@clisp.org>
24478
24479         sys_socket: Avoid #define replacements in C++ mode.
24480         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24481         warning to the function if possible, rather than #defining the symbol
24482         to a dysfunctional alias.
24483
24484 2010-04-05  Bruno Haible  <bruno@clisp.org>
24485
24486         fseeko: Fix C++ test error on mingw.
24487         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24488         gl_FUNC_FSEEKO.
24489         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24490         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24491         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24492         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24493
24494 2010-04-05  Bruno Haible  <bruno@clisp.org>
24495
24496         duplocale: Improve test output.
24497         * tests/test-duplocale.c (main): Print reason for skipped test.
24498
24499 2010-04-05  Bruno Haible  <bruno@clisp.org>
24500
24501         Assume rmdir exists.
24502         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24503         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24504
24505 2010-04-05  Bruno Haible  <bruno@clisp.org>
24506
24507         Fix link error on Solaris 8 with cc.
24508         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24509
24510 2010-04-05  Bruno Haible  <bruno@clisp.org>
24511
24512         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24513         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24514
24515 2010-04-05  Bruno Haible  <bruno@clisp.org>
24516
24517         vasprintf: Update documentation.
24518         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24519
24520 2010-04-05  Bruno Haible  <bruno@clisp.org>
24521
24522         ptsname: Improve test.
24523         * tests/test-ptsname.c (main): Also try the various master names of BSD
24524         systems.
24525
24526 2010-04-05  Bruno Haible  <bruno@clisp.org>
24527
24528         memchr: Avoid a possible C++ test error.
24529         * lib/string.in.h (memchr): Provide declaration if function is missing.
24530         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24531         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24533         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24534
24535 2010-04-05  Bruno Haible  <bruno@clisp.org>
24536
24537         strtok_r: Improve idiom.
24538         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24539         AC_LIBOBJ is used.
24540
24541 2010-04-05  Bruno Haible  <bruno@clisp.org>
24542
24543         strdup: Improve idiom.
24544         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24545         AC_LIBOBJ is used.
24546         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24547         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24548         when AC_LIBOBJ is used.
24549
24550 2010-04-05  Bruno Haible  <bruno@clisp.org>
24551
24552         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24553         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24554         don't set REPLACE_MBSINIT to 1.
24555         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24556         don't set REPLACE_MBRTOWC to 1.
24557         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24558         exist, don't set REPLACE_MBSRTOWCS to 1.
24559         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24560         exist, don't set REPLACE_MBSNRTOWCS to 1.
24561         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24562         don't set REPLACE_WCRTOMB to 1.
24563         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24564         exist, don't set REPLACE_WCSRTOMBS to 1.
24565         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24566         exist, don't set REPLACE_WCSNRTOMBS to 1.
24567
24568 2010-04-05  Bruno Haible  <bruno@clisp.org>
24569
24570         ldexpl: Improve idiom.
24571         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24572         make sure to set HAVE_DECL_LDEXPL to 0.
24573
24574 2010-04-05  Jim Meyering  <meyering@redhat.com>
24575
24576         xstrtol-tests: convert to use init.sh
24577         * modules/xstrtol-tests (Files): Add tests/init.sh.
24578         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24579         Use Exit, not exit.
24580         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24581
24582         atexit-tests: convert to use init.sh
24583         * modules/atexit-tests (Files): Add tests/init.sh.
24584         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24585         Use Exit, not exit.
24586         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24587
24588         init.sh: fix typo
24589         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24590
24591         init.sh: make it easier for a test script to write to the tty, ...
24592         when using automake's parallel-tests mode.
24593         * tests/init.sh (stderr_fileno_): Define overridable variable.
24594         (warn_): New function, to use it.
24595         (fail_, skip_, framework_failure_): Use warn_.
24596
24597 2010-04-04  Bruno Haible  <bruno@clisp.org>
24598
24599         btowc: Avoid warning.
24600         * lib/btowc.c: Include <stdlib.h>.
24601         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24602
24603 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24604             Bruno Haible  <bruno@clisp.org>
24605
24606         wchar: Port to NetBSD 1.5.
24607         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24608         * lib/wctype.in.h (WEOF): Likewise.
24609
24610 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24611             Bruno Haible  <bruno@clisp.org>
24612
24613         Port extended stdio to NetBSD 1.5.
24614         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24615         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24616         older.
24617
24618 2010-04-04  Bruno Haible  <bruno@clisp.org>
24619
24620         string: Remove unused substitution.
24621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24622         HAVE_DECL_STRERROR.
24623         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24624
24625 2010-04-04  Bruno Haible  <bruno@clisp.org>
24626
24627         strtod: Avoid a possible C++ test error.
24628         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24629         set REPLACE_STRTOD.
24630
24631 2010-04-04  Bruno Haible  <bruno@clisp.org>
24632
24633         strerror: Update documentation.
24634         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24635
24636 2010-04-04  Bruno Haible  <bruno@clisp.org>
24637
24638         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24639         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24640         _GL_CXXALIAS_SYS_CAST.
24641
24642 2010-04-04  Bruno Haible  <bruno@clisp.org>
24643
24644         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24645         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24646         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24647         REPLACE_FREXPL to 1.
24648         * doc/posix-functions/frexpl.texi: Update documentation.
24649
24650 2010-04-04  Bruno Haible  <bruno@clisp.org>
24651
24652         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24653         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24654
24655 2010-04-04  Bruno Haible  <bruno@clisp.org>
24656
24657         Implement nanosleep for native Windows.
24658         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24659
24660 2010-04-04  Bruno Haible  <bruno@clisp.org>
24661
24662         math: Fix some C++ test errors on Solaris 8.
24663         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24664
24665 2010-04-04  Bruno Haible  <bruno@clisp.org>
24666
24667         math: Fix some C++ test errors on Cygwin.
24668         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24669         truncl): Provide declaration if the system does not have it.
24670         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24671         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24672         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24673         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24674         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24675         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24676         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24677         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24678         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24679         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24680         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24681         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24682         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24683         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24684         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24685         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24687         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24688         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24689         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24690         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24691         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24692
24693 2010-04-04  Bruno Haible  <bruno@clisp.org>
24694
24695         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24696         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24697         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24698         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24699         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24700         * m4/isinf.m4 (gl_ISINF): Likewise.
24701         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24702
24703 2010-04-04  Bruno Haible  <bruno@clisp.org>
24704
24705         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24706         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24707
24708 2010-04-04  Bruno Haible  <bruno@clisp.org>
24709
24710         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24711         * modules/tmpfile (configure.ac): Update.
24712
24713         tmpfile: Fix C++ test error on mingw.
24714         * lib/stdio.in.h (tmpfile): New declaration.
24715         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24716         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24717         * modules/tmpfile (Depends-on): Add stdio.
24718         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24719         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24720         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24721         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24722         REPLACE_TMPFILE.
24723         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24724
24725 2010-04-04  Bruno Haible  <bruno@clisp.org>
24726
24727         ioctl: Fix C++ test error on mingw.
24728         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24729         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24730         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24731
24732 2010-04-03  Bruno Haible  <bruno@clisp.org>
24733
24734         wcwidth: Fix C++ test error on mingw.
24735         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24737         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24738
24739 2010-04-03  Bruno Haible  <bruno@clisp.org>
24740
24741         nanosleep: Fix C++ test error on mingw.
24742         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24743         * lib/time.in.h (nanosleep): Use modern idiom.
24744         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24745         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24746         REPLACE_NANOSLEEP to 1.
24747         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24748         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24749
24750 2010-04-03  Bruno Haible  <bruno@clisp.org>
24751
24752         strptime: Fix C++ test error on mingw.
24753         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24754         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24755         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24756         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24757         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24758         not REPLACE_STRPTIME.
24759         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24760         REPLACE_STRPTIME.
24761
24762 2010-04-03  Bruno Haible  <bruno@clisp.org>
24763
24764         timegm: Fix C++ test error on mingw.
24765         * lib/time.in.h (timegm): Use modern idiom.
24766         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24767         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24768         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24769         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24770
24771 2010-04-03  Bruno Haible  <bruno@clisp.org>
24772
24773         timegm: Assume declaration if function exists.
24774         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24775         if it exists. Don't clobber ac_cv_func_timegm.
24776
24777 2010-04-03  Bruno Haible  <bruno@clisp.org>
24778
24779         time_r: Fix C++ test error on mingw.
24780         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24781         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24782         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24783         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24784         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24785
24786 2010-04-03  Bruno Haible  <bruno@clisp.org>
24787
24788         time_r: Minor updates.
24789         * modules/time_r (Description): Mention the provided functions.
24790         * lib/time_r.c: Don't include <string.h>.
24791         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24792         * doc/posix-functions/localtime_r.texi: Likewise.
24793
24794 2010-04-03  Bruno Haible  <bruno@clisp.org>
24795
24796         time: Fix regression introduced on 2010-03-08.
24797         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24798         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24799
24800 2010-04-03  Jim Meyering  <meyering@redhat.com>
24801
24802         maint.mk: don't silently disable project-specific syntax-check rules
24803         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24804         that they need to convert their project-specific syntax-check rules
24805         to use the new _sc_search_regexp.
24806
24807 2010-04-03  Bruno Haible  <bruno@clisp.org>
24808
24809         fchdir: Fix regression introduced on 2010-03-08.
24810         * lib/unistd.in.h (fchdir): Fix declaration.
24811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24813         REPLACE_FCHDIR.
24814         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24815         REPLACE_FCHDIR.
24816
24817 2010-04-03  Bruno Haible  <bruno@clisp.org>
24818
24819         getpagesize: Fix C++ test error on mingw.
24820         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24821         system does not declare the function.
24822         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24823         declared.
24824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24825         HAVE_DECL_GETPAGESIZE.
24826         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24827
24828 2010-04-03  Bruno Haible  <bruno@clisp.org>
24829
24830         stdio: Make C++ tests work on mingw.
24831         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24832         does not declare the function.
24833
24834 2010-04-03  Bruno Haible  <bruno@clisp.org>
24835
24836         ftello: Fix C++ test error on mingw.
24837         * lib/stdio.in.h (ftello): Use modern idiom.
24838         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24839         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24840         is missing and that it needs to be replaced.
24841         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24843         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24844
24845 2010-04-03  Bruno Haible  <bruno@clisp.org>
24846
24847         fseeko: Fix C++ test error on mingw.
24848         * lib/stdio.in.h (fseeko): Use modern idiom.
24849         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24850         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24851         is missing and that it needs to be replaced.
24852         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24854         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24855
24856 2010-04-03  Bruno Haible  <bruno@clisp.org>
24857
24858         mkstemp: Fix C++ test error on mingw.
24859         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24860         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24861         function is missing and that it needs to be replaced.
24862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24863         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24864
24865 2010-04-03  Bruno Haible  <bruno@clisp.org>
24866
24867         stpncpy: Fix C++ test error on mingw.
24868         * lib/string.in.h (stpncpy): Use modern idiom.
24869         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24870         function is missing and that it needs to be replaced.
24871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24872         REPLACE_STPNCPY.
24873         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24874
24875 2010-04-03  Bruno Haible  <bruno@clisp.org>
24876
24877         sys_stat: Fix C++ test error on mingw.
24878         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24879         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24880
24881 2010-04-03  Bruno Haible  <bruno@clisp.org>
24882
24883         pty: Update doc.
24884         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24885
24886 2010-04-03  Bruno Haible  <bruno@clisp.org>
24887
24888         unistd: Fix C++ test error on mingw.
24889         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24890
24891 2010-04-03  Bruno Haible  <bruno@clisp.org>
24892
24893         Update doc regarding mingw.
24894         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24895         * doc/glibc-functions/login_tty.texi: Likewise.
24896         * doc/glibc-functions/forkpty.texi: Likewise.
24897
24898 2010-04-03  Bruno Haible  <bruno@clisp.org>
24899
24900         stdlib: Avoid compilation failure of c-strtold on mingw.
24901         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24902
24903 2010-04-03  Bruno Haible  <bruno@clisp.org>
24904
24905         locale: Make C++ tests work on Cygwin and mingw.
24906         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24907         cannot provide the function.
24908         Reported by Simon Josefsson.
24909
24910 2010-04-03  Bruno Haible  <bruno@clisp.org>
24911
24912         localename: Port to MacOS X 10.6.
24913         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24914         memory layout of the locales in MacOS X 10.6 as well.
24915         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24916
24917 2010-04-02  Bruno Haible  <bruno@clisp.org>
24918
24919         gnulib-tool: Ensure that long-running tests are executed last.
24920         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24921         running tests after the one for the other tests.
24922
24923 2010-04-02  Bruno Haible  <bruno@clisp.org>
24924
24925         gnulib-tool: Ensure the tests in the main directory are executed first.
24926         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24927         start with the current directory.
24928
24929 2010-04-02  Bruno Haible  <bruno@clisp.org>
24930
24931         Tests for module 'havelib', moved here from GNU gettext.
24932         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24933         modifications.
24934         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24935         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24936         with modifications.
24937         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24938         modifications.
24939         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24940         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24941         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24942         with modifications.
24943         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24944         with modifications.
24945         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24946         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24947         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24948         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24949         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24950         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24951         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24952         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24953         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24954         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24955         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24956         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24957         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24958         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24959         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24960         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24961         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24962         with modifications.
24963         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24964         with modifications.
24965         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24966         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24967         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24968         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24969         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24970         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24971         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24972         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24973         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24974         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24975         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24976         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24977         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24978         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24979         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24980         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24981         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24982         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24983         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24984         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24985         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24986         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24987         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24988         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24989         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24990         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24991         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24992         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24993         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24994         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24995         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24996         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24997         * tests/havelib/rpathx/rpathx.c: New file, from
24998         gettext/autoconf-lib-link.
24999         * tests/havelib/rpathx/Makefile.am: New file, from
25000         gettext/autoconf-lib-link.
25001         * tests/havelib/rpathx/configure.ac: New file, from
25002         gettext/autoconf-lib-link with modifications.
25003         * tests/havelib/rpathy/rpathy.c: New file, from
25004         gettext/autoconf-lib-link.
25005         * tests/havelib/rpathy/Makefile.am: New file, from
25006         gettext/autoconf-lib-link.
25007         * tests/havelib/rpathy/configure.ac: New file, from
25008         gettext/autoconf-lib-link with modifications.
25009         * tests/havelib/rpathz/rpathz.c: New file, from
25010         gettext/autoconf-lib-link.
25011         * tests/havelib/rpathz/Makefile.am: New file, from
25012         gettext/autoconf-lib-link.
25013         * tests/havelib/rpathz/configure.ac: New file, from
25014         gettext/autoconf-lib-link with modifications.
25015         * tests/havelib/rpathlx/usex.c: New file, from
25016         gettext/autoconf-lib-link.
25017         * tests/havelib/rpathlx/Makefile.am: New file, from
25018         gettext/autoconf-lib-link.
25019         * tests/havelib/rpathlx/configure.ac: New file, from
25020         gettext/autoconf-lib-link with modifications.
25021         * tests/havelib/rpathly/usey.c: New file, from
25022         gettext/autoconf-lib-link.
25023         * tests/havelib/rpathly/Makefile.am: New file, from
25024         gettext/autoconf-lib-link.
25025         * tests/havelib/rpathly/configure.ac: New file, from
25026         gettext/autoconf-lib-link with modifications.
25027         * tests/havelib/rpathlz/usez.c: New file, from
25028         gettext/autoconf-lib-link.
25029         * tests/havelib/rpathlz/Makefile.am: New file, from
25030         gettext/autoconf-lib-link.
25031         * tests/havelib/rpathlz/configure.ac: New file, from
25032         gettext/autoconf-lib-link with modifications.
25033         * tests/havelib/rpathlyx/usey.c: New file, from
25034         gettext/autoconf-lib-link.
25035         * tests/havelib/rpathlyx/Makefile.am: New file, from
25036         gettext/autoconf-lib-link.
25037         * tests/havelib/rpathlyx/configure.ac: New file, from
25038         gettext/autoconf-lib-link with modifications.
25039         * tests/havelib/rpathlzyx/usez.c: New file, from
25040         gettext/autoconf-lib-link.
25041         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25042         gettext/autoconf-lib-link.
25043         * tests/havelib/rpathlzyx/configure.ac: New file, from
25044         gettext/autoconf-lib-link with modifications.
25045         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25046         with modifications.
25047
25048 2010-04-02  Bruno Haible  <bruno@clisp.org>
25049
25050         gnulib-tool: Create distributed built sources also for the tests.
25051         * gnulib-tool (func_create_testdir): Also generate distributed built
25052         sources in the tests directory.
25053
25054 2010-04-02  Bruno Haible  <bruno@clisp.org>
25055
25056         gnulib-tool: Obey user's environment variables.
25057         * gnulib-tool (func_create_testdir): When creating built sources,
25058         respect the environment variables for autoconf, automake, etc. given by
25059         the user.
25060
25061 2010-04-02  Bruno Haible  <bruno@clisp.org>
25062
25063         gnulib-tool: Provide the value of --m4-base to modules.
25064         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25065         of gl_m4_base.
25066
25067 2010-04-02  Eric Blake  <eblake@redhat.com>
25068
25069         maint.mk: fix some fallout
25070         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25071         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25072
25073 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25074
25075         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25076         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25077         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25078         (sc_cast_of_x_alloc_return_value): Likewise.
25079         (sc_cast_of_alloca_return_value): Likewise.
25080         (sc_space_tab): Likewise.
25081         (sc_prohibit_atoi_atof): Likewise.
25082         (sc_prohibit_magic_number_exit): Likewise.
25083         (sc_error_exit_success): Likewise.
25084         (sc_file_system): Likewise.
25085         (sc_prohibit_have_config_h): Likewise.
25086         (sc_require_config_h): Likewise.
25087         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25088         (sc_obsolete_symbols): Likewise.
25089         (sc_changelog): Likewise.
25090         (sc_program_name): Likewise.
25091         (sc_the_the): Likewise.
25092         (sc_trailing_blank): Likewise.
25093         (sc_two_space_separator_in_usage): Likewise.
25094         (sc_useless_cpp_parens): Likewise.
25095         (sc_GPL_version): Likewise.
25096         (sc_GFDL_version): Likewise.
25097         (sc_texinfo_acronym): Likewise.
25098         (sc_prohibit_cvs_keyword): Likewise.
25099         (sc_prohibit_stat_st_blocks): Likewise.
25100         (sc_prohibit_S_IS_definition): Likewise.
25101         (sc_redundant_const): Likewise.
25102         (sc_makefile_TAB_only_indentation): Likewise.
25103         (sc_m4_quote_check): Likewise.
25104         (sc_makefile_path_separator_check): Likewise.
25105         (sc_copyright_check): Likewise.
25106         (sc_Wundef_boolean): Likewise.
25107         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25108
25109         maint.mk: match 0 or more whitespace-before-function-call '('
25110         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25111         that have zero or two-and-more spaces between the function name
25112         and the open parenthesis.
25113         (sc_error_message_warn_fatal): Likewise.
25114         (sc_error_message_uppercase): Likewise.
25115         (sc_error_message_period): Likewise.
25116
25117 2010-03-31  Eric Blake  <eblake@redhat.com>
25118
25119         maint.mk: check for [ as well as test
25120         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25121         Based on a libvirt report by Matthias Bolte.
25122
25123         gnumakefile: don't squelch _version output
25124         * top/GNUmakefile (_version): Create one-shot dependency rather
25125         than using $(shell) when version must be regenerated.
25126         (_autoreconf): Run verbosely, by default.
25127
25128         sys_time: avoid compiler warnings
25129         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25130         unconditional, fixing regression from 2010-03-29.
25131         Reported by Simon Josefsson.
25132
25133 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25134
25135         maint.mk: s/_header_without_use/_sc_header_without_use/
25136         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25137         (sc_prohibit_assert_without_use): Use the new name.
25138         (sc_prohibit_close_stream_without_use): Likewise.
25139         (sc_prohibit_getopt_without_use): Likewise.
25140         (sc_prohibit_quotearg_without_use): Likewise.
25141         (sc_prohibit_quote_without_use): Likewise.
25142         (sc_prohibit_long_options_without_use): Likewise.
25143         (sc_prohibit_inttostr_without_use): Likewise.
25144         (sc_prohibit_ignore_value_without_use): Likewise.
25145         (sc_prohibit_error_without_use): Likewise.
25146         (sc_prohibit_xalloc_without_use): Likewise.
25147         (sc_prohibit_hash_without_use): Likewise.
25148         (sc_prohibit_hash_pjw_without_use): Likewise.
25149         (sc_prohibit_safe_read_without_use): Likewise.
25150         (sc_prohibit_argmatch_without_use): Likewise.
25151         (sc_prohibit_canonicalize_without_use): Likewise.
25152         (sc_prohibit_root_dev_ino_without_use): Likewise.
25153         (sc_prohibit_openat_without_use): Likewise.
25154         (sc_prohibit_c_ctype_without_use): Likewise.
25155         (sc_prohibit_signal_without_use): Likewise.
25156         (sc_prohibit_intprops_without_use): Likewise.
25157
25158 2010-03-30  Eric Blake  <eblake@redhat.com>
25159
25160         maint: improve module indicators
25161         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25162         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25163         columns, and avoid extra macro expansion.
25164
25165         fdopendir: work around FreeBSD bug
25166         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25167         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25168         * modules/dirent (Makefile.am): Substitute it.
25169         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25170         declaration.
25171         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25172         fix.
25173         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25174
25175 2010-03-29  Bruno Haible  <bruno@clisp.org>
25176
25177         Emit #pragma system_header after the inclusion guard, not before.
25178         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25179         guard that spans the entire file, not before. This enables an
25180         optimization in GCC's preprocessor.
25181         * lib/ctype.in.h: Likewise.
25182         * lib/dirent.in.h: Likewise.
25183         * lib/errno.in.h: Likewise.
25184         * lib/float.in.h: Likewise.
25185         * lib/getopt.in.h: Likewise.
25186         * lib/iconv.in.h: Likewise.
25187         * lib/langinfo.in.h: Likewise.
25188         * lib/locale.in.h: Likewise.
25189         * lib/math.in.h: Likewise.
25190         * lib/netdb.in.h: Likewise.
25191         * lib/netinet_in.in.h: Likewise.
25192         * lib/pty.in.h: Likewise.
25193         * lib/sched.in.h: Likewise.
25194         * lib/se-selinux.in.h: Likewise.
25195         * lib/search.in.h: Likewise.
25196         * lib/spawn.in.h: Likewise.
25197         * lib/stdarg.in.h: Likewise.
25198         * lib/stdint.in.h: Likewise.
25199         * lib/string.in.h: Likewise.
25200         * lib/strings.in.h: Likewise.
25201         * lib/sys_file.in.h: Likewise.
25202         * lib/sys_ioctl.in.h: Likewise.
25203         * lib/sys_time.in.h: Likewise.
25204         * lib/sys_times.in.h: Likewise.
25205         * lib/sys_utsname.in.h: Likewise.
25206         * lib/sys_wait.in.h: Likewise.
25207         * lib/sysexits.in.h: Likewise.
25208         * lib/wctype.in.h: Likewise.
25209
25210 2010-03-28  James Youngman  <jay@gnu.org>
25211
25212         save-cwd: don't leak a file descriptor when the caller execs.
25213         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25214         saved file descriptor.
25215         * modules/save-cwd (Depends-on): Depend on cloexec.
25216
25217 2010-03-29  Bruno Haible  <bruno@clisp.org>
25218
25219         Remove vestiges of fts-lgpl module.
25220         * lib/fts_.h: Assume GNULIB_FTS is 1.
25221         * lib/fts.c: Likewise.
25222         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25223
25224 2010-03-28  Bruno Haible  <bruno@clisp.org>
25225
25226         Fix definition of tests witness macro.
25227         * gnulib-tool (func_import): Fix definition of witness macro.
25228
25229 2010-03-28  Bruno Haible  <bruno@clisp.org>
25230
25231         Fix ioctl's protoype on glibc systems.
25232         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25233         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25234         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25235         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25236         signature. If not, arrange to replace the ioctl function.
25237         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25238         REPLACE_IOCTL.
25239         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25240         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25241         Reported by Ludovic Courtès <ludo@gnu.org>.
25242
25243 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25244
25245         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25246         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25247         made it so grep -r --include=GLOB* ... did not work.
25248
25249 2010-03-26  Jim Meyering  <meyering@redhat.com>
25250             Eric Blake  <eblake@redhat.com>
25251
25252         maint.mk: prohibit use of test's -o and -a operators
25253         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25254
25255 2010-03-28  Bruno Haible  <bruno@clisp.org>
25256
25257         Remove unused GNULIB_XYZ macro definitions.
25258         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25259         invocation.
25260
25261 2010-03-28  Bruno Haible  <bruno@clisp.org>
25262
25263         Mark privileged tests modules.
25264         * modules/idpriv-drop-tests (Status): New section.
25265         * modules/idpriv-droptemp-tests (Status): New section.
25266
25267 2010-03-28  Bruno Haible  <bruno@clisp.org>
25268
25269         Split C++ tests into separate tests modules.
25270         * modules/dirent-c++-tests: New file, extracted from
25271         modules/dirent-tests.
25272         * modules/dirent-tests: Depend on it.
25273         * modules/fcntl-h-c++-tests: New file, extracted from
25274         modules/fcntl-h-tests.
25275         * modules/fcntl-h-tests: Depend on it.
25276         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25277         * modules/glob-tests: Depend on it.
25278         * modules/iconv-h-c++-tests: New file, extracted from
25279         modules/iconv-h-tests.
25280         * modules/iconv-h-tests: Depend on it.
25281         * modules/langinfo-c++-tests: New file, extracted from
25282         modules/langinfo-tests.
25283         * modules/langinfo-tests: Depend on it.
25284         * modules/locale-c++-tests: New file, extracted from
25285         modules/locale-tests.
25286         * modules/locale-tests: Depend on it.
25287         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25288         * modules/math-tests: Depend on it.
25289         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25290         * modules/pty-tests: Depend on it.
25291         * modules/search-c++-tests: New file, extracted from
25292         modules/search-tests.
25293         * modules/search-tests: Depend on it.
25294         * modules/signal-c++-tests: New file, extracted from
25295         modules/signal-tests.
25296         * modules/signal-tests: Depend on it.
25297         * modules/spawn-c++-tests: New file, extracted from
25298         modules/spawn-tests.
25299         * modules/spawn-tests: Depend on it.
25300         * modules/stdio-c++-tests: New file, extracted from
25301         modules/stdio-tests.
25302         * modules/stdio-tests: Depend on it.
25303         * modules/stdlib-c++-tests: New file, extracted from
25304         modules/stdlib-tests.
25305         * modules/stdlib-tests: Depend on it.
25306         * modules/string-c++-tests: New file, extracted from
25307         modules/string-tests.
25308         * modules/string-tests: Depend on it.
25309         * modules/sys_ioctl-c++-tests: New file, extracted from
25310         modules/sys_ioctl-tests.
25311         * modules/sys_ioctl-tests: Depend on it.
25312         * modules/sys_select-c++-tests: New file, extracted from
25313         modules/sys_select-tests.
25314         * modules/sys_select-tests: Depend on it.
25315         * modules/sys_socket-c++-tests: New file, extracted from
25316         modules/sys_socket-tests.
25317         * modules/sys_socket-tests: Depend on it.
25318         * modules/sys_stat-c++-tests: New file, extracted from
25319         modules/sys_stat-tests.
25320         * modules/sys_stat-tests: Depend on it.
25321         * modules/sys_time-c++-tests: New file, extracted from
25322         modules/sys_time-tests.
25323         * modules/sys_time-tests: Depend on it.
25324         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25325         * modules/time-tests: Depend on it.
25326         * modules/unistd-c++-tests: New file, extracted from
25327         modules/unistd-tests.
25328         * modules/unistd-tests: Depend on it.
25329         * modules/wchar-c++-tests: New file, extracted from
25330         modules/wchar-tests.
25331         * modules/wchar-tests: Depend on it.
25332         * modules/wctype-c++-tests: New file, extracted from
25333         modules/wctype-tests.
25334         * modules/wctype-tests: Depend on it.
25335         Reported by Simon Josefsson.
25336
25337 2010-03-28  Bruno Haible  <bruno@clisp.org>
25338
25339         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25340         * gnulib-tool (func_exists_module): New function, extracted from
25341         func_verify_module.
25342         (func_verify_module): Use it.
25343         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25344         'foo' only if 'foo' exists.
25345         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25346         module.
25347
25348 2010-03-28  Bruno Haible  <bruno@clisp.org>
25349
25350         gnulib-tool: Add support for special categories of tests.
25351         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25352         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25353         (func_usage): Document them.
25354         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25355         inc_unportable_tests, inc_all_tests): New variables.
25356         (func_acceptable): Consider these variables.
25357         (func_modules_transitive_closure): Make it work when the 'Status' field
25358         consists of multiple words.
25359         (func_import): Store and restore the values of inc_cxx_tests,
25360         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25361         inc_all_tests in gnulib-comp.m4.
25362         (func_create_testdir): Set inc_all_tests to true.
25363         * doc/gnulib.texi (Extra tests modules): New section.
25364         Suggested by Jim Meyering.
25365
25366 2010-03-28  Bruno Haible  <bruno@clisp.org>
25367
25368         ansi-c++-opt: Allow turning off the C++ build by default.
25369         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25370         gl_CXX_CHOICE_DEFAULT_NO is defined.
25371         Requested by Eric Blake.
25372
25373 2010-03-28  Bruno Haible  <bruno@clisp.org>
25374
25375         unistd: Avoid #define replacements in C++ mode.
25376         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25377         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25378         setsockopt, shutdown, select): In C++, attach a warning to the function
25379         if possible, rather than #defining the symbol to a dysfunctional alias.
25380         Reported by John W. Eaton <jwe@gnu.org>.
25381
25382 2010-03-28  Bruno Haible  <bruno@clisp.org>
25383
25384         Fix link errors on mingw.
25385         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25386         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25387         $(LIBSOCKET).
25388         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25389         $(LIBSOCKET).
25390
25391 2010-03-28  Bruno Haible  <bruno@clisp.org>
25392             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25393
25394         lib-ignore: Determine different options for different compilers.
25395         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25396         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25397         Add comments.
25398         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25399         * NEWS: Mention the change.
25400
25401 2010-03-27  Bruno Haible  <bruno@clisp.org>
25402
25403         Remove unused GNULIB_XYZ macro definitions.
25404         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25405         * modules/fseek (configure.ac): Likewise.
25406         * modules/ioctl (configure.ac): Likewise.
25407         * modules/open (configure.ac): Likewise.
25408         * modules/stdlib-safer (configure.ac): Likewise.
25409
25410 2010-03-27  Bruno Haible  <bruno@clisp.org>
25411
25412         Add a remark about certain modules.
25413         * modules/malloc (Comment): New section.
25414         * modules/realloc (Comment): Likewise.
25415         * modules/sigpipe (Comment): Likewise.
25416
25417 2010-03-27  Bruno Haible  <bruno@clisp.org>
25418
25419         Resolve conflict between the two kinds of module indicators.
25420         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25421         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25422         * modules/canonicalize (configure.ac): Invoke
25423         gl_MODULE_INDICATOR_FOR_TESTS.
25424         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25425         GNULIB_XYZ.
25426         * tests/test-dirent-c++.cc: Likewise.
25427         * tests/test-dirent-safer.c: Likewise.
25428         * tests/test-dup2.c: Likewise.
25429         * tests/test-fchdir.c: Likewise.
25430         * tests/test-fcntl-h-c++.cc: Likewise.
25431         * tests/test-getopt.c: Likewise.
25432         * tests/test-getopt.h: Likewise.
25433         * tests/test-langinfo-c++.cc: Likewise.
25434         * tests/test-locale-c++.cc: Likewise.
25435         * tests/test-math-c++.cc: Likewise.
25436         * tests/test-pty-c++.cc: Likewise.
25437         * tests/test-search-c++.cc: Likewise.
25438         * tests/test-signal-c++.cc: Likewise.
25439         * tests/test-spawn-c++.cc: Likewise.
25440         * tests/test-stdio-c++.cc: Likewise.
25441         * tests/test-stdlib-c++.cc: Likewise.
25442         * tests/test-string-c++.cc: Likewise.
25443         * tests/test-sys_ioctl-c++.cc: Likewise.
25444         * tests/test-sys_select-c++.cc: Likewise.
25445         * tests/test-sys_socket-c++.cc: Likewise.
25446         * tests/test-sys_stat-c++.cc: Likewise.
25447         * tests/test-sys_time-c++.cc: Likewise.
25448         * tests/test-time-c++.cc: Likewise.
25449         * tests/test-unistd-c++.cc: Likewise.
25450         * tests/test-wchar-c++.cc: Likewise.
25451         * tests/uninorm/test-u8-nfc.c: Likewise.
25452         * tests/uninorm/test-u8-nfd.c: Likewise.
25453         * tests/uninorm/test-u8-nfkc.c: Likewise.
25454         * tests/uninorm/test-u8-nfkd.c: Likewise.
25455         * tests/uninorm/test-u16-nfc.c: Likewise.
25456         * tests/uninorm/test-u16-nfd.c: Likewise.
25457         * tests/uninorm/test-u16-nfkc.c: Likewise.
25458         * tests/uninorm/test-u16-nfkd.c: Likewise.
25459         * tests/uninorm/test-u32-nfc.c: Likewise.
25460         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25461         * tests/uninorm/test-u32-nfd.c: Likewise.
25462         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25463         * tests/uninorm/test-u32-nfkc.c: Likewise.
25464         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25465         * tests/uninorm/test-u32-nfkd.c: Likewise.
25466         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25467         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25468
25469 2010-03-27  Bruno Haible  <bruno@clisp.org>
25470
25471         Distinguish two kinds of module indicators.
25472         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25473         gl_MODULE_INDICATOR.
25474         (gl_MODULE_INDICATOR): New macro.
25475         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25476         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25477         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25478         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25479         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25480         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25481         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25482         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25483         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25484         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25485         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25486         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25489         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25492         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25493         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25494         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25495         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25496         * modules/cloexec (configure.ac): Likewise.
25497         * modules/getopt-gnu (configure.ac): Likewise.
25498         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25499         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25500         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25501         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25502
25503 2010-03-27  Bruno Haible  <bruno@clisp.org>
25504
25505         New module description field 'Comment'.
25506         * gnulib-tool: New option --extract-comment.
25507         (func_usage): Document it.
25508         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25509         (func_get_comment): New function.
25510         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25511
25512 2010-03-27  Bruno Haible  <bruno@clisp.org>
25513
25514         Addendum to 2010-02-07 commit.
25515         * gnulib-tool (func_usage): Document --extract-applicability option.
25516
25517 2010-03-27  Bruno Haible  <bruno@clisp.org>
25518
25519         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25520         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25521         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25522         rather than link errors.
25523
25524 2010-03-27  Bruno Haible  <bruno@clisp.org>
25525
25526         Avoid side effects from tests-related modules on the compilation of lib.
25527         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25528         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25529         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25530         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25531         macro.
25532         (func_import): Define a witness macro. Assign it a value that depends
25533         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25534         tests-related modules.
25535         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25536         Reported by Jim Meyering.
25537
25538 2010-03-27  Bruno Haible  <bruno@clisp.org>
25539
25540         Factorize common .m4 code.
25541         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25542         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25543         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25544         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25545         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25546         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25547         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25548         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25549         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25550         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25551         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25552         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25553         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25554         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25555         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25556         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25557         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25558         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25560         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25561         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25562         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25563         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25564         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25565         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25566         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25567         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25568         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25569         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25570         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25571         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25572         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25573
25574 2010-03-27  Bruno Haible  <bruno@clisp.org>
25575
25576         Fix a compilation error on Cygwin with g++ >= 4.3.
25577         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25578         if it is undefined or if we alias it to chmod.
25579         (lstat): Don't warn about the use of this function if it is undefined
25580         or if we alias it to stat.
25581         Reported by Simon Josefsson.
25582
25583 2010-03-27  Bruno Haible  <bruno@clisp.org>
25584
25585         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25586         * modules/getlogin (configure.ac): Update.
25587
25588         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25589         * modules/getlogin_r (configure.ac): Update.
25590
25591         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25593         * modules/inet_ntop (configure.ac): Update.
25594
25595         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25596         * modules/inet_pton (configure.ac): Update.
25597
25598         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25599         * modules/mbslen (configure.ac): Update.
25600
25601         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25602         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25603         * modules/forkpty (configure.ac): Update.
25604         * modules/openpty (configure.ac): Update.
25605
25606 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25607
25608         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25609         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25610
25611 2010-03-25  Eric Blake  <eblake@redhat.com>
25612
25613         maint: use pragma consistently across replacement headers
25614         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25615         * lib/dirent.in.h (system_header): Likewise.
25616         * lib/errno.in.h (system_header): Likewise.
25617         * lib/float.in.h (system_header): Likewise.
25618         * lib/getopt.in.h (system_header): Likewise.
25619         * lib/iconv.in.h (system_header): Likewise.
25620         * lib/inttypes.in.h (system_header): Likewise.
25621         * lib/langinfo.in.h (system_header): Likewise.
25622         * lib/locale.in.h (system_header): Likewise.
25623         * lib/math.in.h (system_header): Likewise.
25624         * lib/netdb.in.h (system_header): Likewise.
25625         * lib/netinet_in.in.h (system_header): Likewise.
25626         * lib/pty.in.h (system_header): Likewise.
25627         * lib/sched.in.h (system_header): Likewise.
25628         * lib/se-selinux.in.h (system_header): Likewise.
25629         * lib/search.in.h (system_header): Likewise.
25630         * lib/spawn.in.h (system_header): Likewise.
25631         * lib/stdarg.in.h (system_header): Likewise.
25632         * lib/stdint.in.h (system_header): Likewise.
25633         * lib/string.in.h (system_header): Likewise.
25634         * lib/strings.in.h (system_header): Likewise.
25635         * lib/sys_file.in.h (system_header): Likewise.
25636         * lib/sys_ioctl.in.h (system_header): Likewise.
25637         * lib/sys_socket.in.h (system_header): Likewise.
25638         * lib/sys_times.in.h (system_header): Likewise.
25639         * lib/sys_utsname.in.h (system_header): Likewise.
25640         * lib/sys_wait.in.h (system_header): Likewise.
25641         * lib/sysexits.in.h (system_header): Likewise.
25642         * lib/unistd.in.h (system_header): Likewise.
25643         * lib/wctype.in.h (system_header): Likewise.
25644
25645         arpa/inet: fix mingw compilation warning
25646         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25647         Reported by Matthew Bolte.
25648
25649 2010-03-25  Bruno Haible  <bruno@clisp.org>
25650
25651         Avoid collision between gnulib wrapper and libintl wrapper.
25652         * lib/printf.c (printf): Don't define if a printf wrapper is already
25653         defined in intl/printf.c.
25654         Reported by Michel Boaventura <michel@michelboaventura.com>.
25655
25656 2010-03-25  Bruno Haible  <bruno@clisp.org>
25657
25658         Use ANSI C.
25659         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25660
25661 2010-03-25  Bruno Haible  <bruno@clisp.org>
25662
25663         Minor formatting changes.
25664         * lib/acosl.c: Insert space before function argument list.
25665         * lib/argz.c: Likewise.
25666         * lib/asinl.c: Likewise.
25667         * lib/expl.c: Likewise.
25668         * lib/gen-uni-tables.c: Likewise.
25669         * lib/gettext.h: Likewise.
25670         * lib/glthread/lock.h: Likewise.
25671         * lib/tanl.c: Likewise.
25672         * lib/uniname/uniname.c: Likewise.
25673         * tests/test-idpriv-drop.c: Likewise.
25674         * tests/test-idpriv-droptemp.c: Likewise.
25675         * tests/test-lock.c: Likewise.
25676         * tests/test-tls.c: Likewise.
25677         * lib/argp-help.c: Insert space before function-like macro argument
25678         list.
25679         * lib/memcmp.c: Likewise.
25680         * tests/test-base64.c: Likewise.
25681         * lib/localename.c: Insert space before sizeof's argument list.
25682         * lib/safe-alloc.h: Likewise.
25683         * lib/file-set.h: Insert space before macro argument list.
25684         * tests/test-argp.c: Likewise.
25685         * lib/argp-namefrob.h: Insert space before function parameter list.
25686         * lib/getaddrinfo.c: Likewise.
25687         * lib/netdb.in.h: Likewise.
25688         * lib/parse-duration.h: Likewise.
25689         * lib/parse-duration.c: Likewise.
25690         * lib/poll.c: Likewise.
25691         * lib/select.c: Likewise.
25692         * lib/trim.h: Likewise.
25693         * tests/test-usleep.c: Likewise.
25694         * lib/ldexpl.c: Insert space before function parameter list and before
25695         function argument list.
25696         * lib/logl.c: Likewise.
25697         * lib/sqrtl.c: Likewise.
25698         * lib/trim.c: Likewise.
25699         * lib/cosl.c: Use GNU style indentation. Insert space before function
25700         argument list.
25701         * lib/sinl.c: Likewise.
25702         * lib/tsearch.c: Insert space after 'for'.
25703         Reported by Jim Meyering.
25704
25705 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25706
25707         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25708         config header before grepping, as it's not present before
25709         autoreconf/configure are run.  Reported by Simon Josefsson.
25710
25711 2010-03-23  Bruno Haible  <bruno@clisp.org>
25712
25713         pt_chown: Make it work with automake < 1.11.
25714         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25715         Reported by Simon Josefsson.
25716
25717 2010-03-23  Bruno Haible  <bruno@clisp.org>
25718
25719         pt_chown: Don't depend on GPLed modules.
25720         * lib/pt_chown.c: Don't include idpriv.h.
25721         (main): Don't drop privileges.
25722         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25723         Reported by Simon Josefsson.
25724
25725 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25726
25727         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25728         suggestions from karl@freefriends.org (Karl Berry).
25729
25730 2010-03-22  Eric Blake  <eblake@redhat.com>
25731
25732         gethostname: further tweaks
25733         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25734         are overriding gethostname.
25735         Suggested by Bruno Haible.
25736
25737 2010-03-21  Bruno Haible  <bruno@clisp.org>
25738
25739         Fix comments.
25740         * lib/forkpty.c (rpl_forkpty): Fix comment.
25741         * lib/openpty.c (rpl_openpty): Likewise.
25742         Reported by Eric Blake.
25743
25744 2010-03-22  Eric Blake  <eblake@redhat.com>
25745
25746         gethostname: fix build on mingw
25747         * lib/unistd.in.h (includes): Work around fact that mingw
25748         <winsock2.h> re-includes <unistd.h>, by avoiding any
25749         redeclarations if we are being included by <winsock2.h>.
25750         Reported by Matthias Bolte.
25751
25752 2010-03-21  Bruno Haible  <bruno@clisp.org>
25753
25754         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25755         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25756         modifications.
25757         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25758         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25759         provide the replacement.
25760         * modules/forkpty (Depends-on): Add openpty, login_tty.
25761         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25762         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25763         * doc/glibc-functions/forkpty.texi: More supported platforms.
25764         * config/srclist.txt: Add forkpty.c (commented).
25765
25766 2010-03-21  Bruno Haible  <bruno@clisp.org>
25767
25768         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25769         (Makefile.am): Verify that PTY_LIB is defined.
25770
25771         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25772
25773 2010-03-21  Bruno Haible  <bruno@clisp.org>
25774
25775         Tests for module 'login_tty'.
25776         * modules/login_tty-tests: New file.
25777         * tests/test-login_tty.c: New file.
25778
25779         New module 'login_tty'.
25780         * lib/login_tty.c: New file.
25781         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25782         * modules/login_tty: New file.
25783         * doc/glibc-functions/login_tty.texi: Mention the new module.
25784
25785 2010-03-21  Bruno Haible  <bruno@clisp.org>
25786
25787         login_tty: Documentation.
25788         * doc/glibc-functions/login_tty.texi: New file.
25789         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25790
25791 2010-03-21  Bruno Haible  <bruno@clisp.org>
25792
25793         pty: Consistent macro naming.
25794         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25795         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25796         * modules/pty (configure.ac): Update.
25797
25798 2010-03-21  Bruno Haible  <bruno@clisp.org>
25799
25800         Tests for openpty: Make stricter.
25801         * tests/test-openpty.c (main): Add test of canonical processing and
25802         erase.
25803         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25804
25805         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25806         * lib/openpty.c (openpty): New replacement function.
25807         * lib/pty.in.h: Include <termios.h>.
25808         (openpty): Update declaration. Add comments.
25809         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25810         is not declared, arrange to provide the replacement. Check for _getpty
25811         and posix_openpt.
25812         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25813         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25814         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25815         * modules/pty-tests (test_pty_c___LDADD): New variable.
25816         * doc/glibc-functions/openpty.texi: More supported platforms.
25817
25818 2010-03-21  Bruno Haible  <bruno@clisp.org>
25819
25820         setenv: Tweaks.
25821         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25822         the test program.
25823         * doc/posix-functions/setenv.texi: Update platforms list.
25824
25825 2010-03-21  Bruno Haible  <bruno@clisp.org>
25826
25827         New module 'unlockpt'.
25828         * lib/unlockpt.c: New file, from glibc with modifications.
25829         * m4/unlockpt.m4: New file.
25830         * modules/unlockpt: New file.
25831         * lib/stdlib.in.h (unlockpt): New declaration.
25832         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25833         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25834         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25835         HAVE_UNLOCKPT.
25836         * doc/posix-functions/unlockpt.texi: Mention the new module.
25837         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25838         * config/srclist.txt: Add unlockpt.c (commented).
25839
25840 2010-03-21  Jim Meyering  <meyering@redhat.com>
25841
25842         maint.mk: prohibit inclusion of "intprops.h" without use
25843         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25844
25845 2010-03-21  Bruno Haible  <bruno@clisp.org>
25846
25847         New module 'grantpt'.
25848         * lib/grantpt.c: New file, from glibc with modifications.
25849         * m4/grantpt.m4: New file.
25850         * modules/grantpt: New file.
25851         * lib/stdlib.in.h (grantpt): New declaration.
25852         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25853         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25854         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25855         HAVE_GRANTPT.
25856         * doc/posix-functions/grantpt.texi: Mention the new module.
25857         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25858         * config/srclist.txt: Add grantpt.c (commented).
25859
25860 2010-03-21  Bruno Haible  <bruno@clisp.org>
25861
25862         New module 'pt_chown'.
25863         * lib/pt_chown.c: New file, from glibc with modifications.
25864         * lib/pty-private.h: New file, from glibc with modifications.
25865         * modules/pt_chown: New file.
25866         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25867
25868 2010-03-21  Bruno Haible  <bruno@clisp.org>
25869
25870         Tests for module 'ptsname'.
25871         * modules/ptsname-tests: New file.
25872         * tests/test-ptsname.c: New file.
25873
25874         New module 'ptsname'.
25875         * lib/ptsname.c: New file, from glibc with modifications.
25876         * m4/ptsname.m4: New file.
25877         * modules/ptsname: New file.
25878         * lib/stdlib.in.h (ptsname): New declaration.
25879         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25880         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25881         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25882         HAVE_PTSNAME.
25883         * doc/posix-functions/ptsname.texi: Mention the new module.
25884         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25885         * config/srclist.txt: Add ptsname.c (commented).
25886
25887 2010-03-21  Bruno Haible  <bruno@clisp.org>
25888
25889         Tests for module 'ttyname_r'.
25890         * modules/ttyname_r-tests: New file.
25891         * tests/test-ttyname_r.c: New file.
25892
25893         New module 'ttyname_r'.
25894         * lib/ttyname_r.c: New file.
25895         * m4/ttyname_r.m4: New file.
25896         * modules/ttyname_r: New file.
25897         * lib/unistd.in.h (ttyname_r): New declaration.
25898         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25899         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25900         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25901         HAVE_TTYNAME_R.
25902         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25903         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25904
25905 2010-03-20  Bruno Haible  <bruno@clisp.org>
25906
25907         signal: Undefine macro definitions in C++ mode.
25908         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25909         sigfillset): Undefine macro definitions from the system header in C++
25910         mode.
25911         Reported by John W. Eaton <jwe@gnu.org>.
25912
25913 2010-03-20  Bruno Haible  <bruno@clisp.org>
25914
25915         Ensure no #include statements inside extern "C" { ... }.
25916         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25917         contain #include statements.
25918         * lib/time.in.h: Likewise.
25919
25920 2010-03-20  Bruno Haible  <bruno@clisp.org>
25921
25922         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25923         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25924         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25925         Reported by John W. Eaton <jwe@gnu.org>.
25926
25927 2010-03-20  Bruno Haible  <bruno@clisp.org>
25928
25929         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25930         Reported by Jim Meyering.
25931
25932 2010-03-20  Bruno Haible  <bruno@clisp.org>
25933
25934         pipe: Set errno upon failure.
25935         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25936         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25937         errno value in error message.
25938
25939 2010-03-20  Bruno Haible  <bruno@clisp.org>
25940             Jim Meyering  <meyering@redhat.com>
25941
25942         lchown: Avoid "unused variable" warning.
25943         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25944
25945 2010-03-20  Bruno Haible  <bruno@clisp.org>
25946
25947         Work around unlink() bug on MacOS X 10.5.6.
25948         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25949         attempting to unlink a parent directory.
25950         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25951         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25952         activate for the replacement function.
25953         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25954
25955 2010-03-20  Bruno Haible  <bruno@clisp.org>
25956
25957         Fix link errors on Solaris 8.
25958         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25959         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25960
25961 2010-03-19  Jim Meyering  <meyering@redhat.com>
25962
25963         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25964         The _LIBC implementation of build_range_exp correctly honors the
25965         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25966         However, the non-_LIBC implementation would ignore that syntax-bit
25967         flag and return REG_ERANGE unconditionally.
25968         This change makes it honor that flag.
25969         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25970         Make two pointer parameters "const".
25971         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25972         (parse_bracket_exp): Update caller.
25973
25974         regex.m4: correct the reversed range endpoint ([b-a]) test
25975         * m4/regex.m4: When requiring that [b-a] evoke failure,
25976         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25977         test pass once again for x86-based systems.
25978
25979 2010-03-19  Bruno Haible  <bruno@clisp.org>
25980
25981         scandir: Fix link error on Solaris 8.
25982         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25983         macros.
25984
25985 2010-03-19  Bruno Haible  <bruno@clisp.org>
25986
25987         getusershell: Fix documentation.
25988         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25989         module.
25990         * doc/glibc-functions/setusershell.texi: Likewise.
25991
25992         getusershell: Provide declaration, missing on Solaris 9.
25993         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25994         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25995         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25996         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25998         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25999         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26000         HAVE_GETUSERSHELL.
26001         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26002
26003 2010-03-19  Bruno Haible  <bruno@clisp.org>
26004
26005         wctype: Provide iswblank function.
26006         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26007         exists and is fine.
26008         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26009         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26010         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26011         * doc/posix-functions/iswblank.texi: Update.
26012
26013 2010-03-19  Bruno Haible  <bruno@clisp.org>
26014
26015         Tests of module 'pty' in C++ mode.
26016         * modules/pty-tests: New file.
26017         * tests/test-pty-c++.cc: New file.
26018         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26019
26020 2010-03-19  Eric Blake  <eblake@redhat.com>
26021
26022         logb: fix documentation
26023         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26024         1.5 declaration bug.
26025
26026         forkpty, openpty: prefer glibc's const-safe prototype
26027         * lib/forkpty.c (rpl_forkpty): New file.
26028         * lib/openpty.c (rpl_openpty): Likewise.
26029         * modules/forkpty (Files): Distribute it.
26030         * modules/openpty (Files): Likewise.
26031         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26032         check...
26033         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26034         replacement for for non-const BSD signature.
26035         * modules/pty (Makefile.am): Substitute witnesses.
26036         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26037         * tests/test-forkpty.c: Update signature check.
26038         * tests/test-openpty.c: Likewise.
26039         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26040         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26041
26042         forkpty, openpty: split functions into new modules
26043         * modules/pty (Makefile.am): Substitute new witnesses.
26044         (Libraries): Move library detection...
26045         * modules/forkpty: ...into new module.
26046         * modules/openpty: Another new module.
26047         * modules/pty-tests: Rename and split...
26048         * modules/forkpty-tests: ...to this...
26049         * modules/openpty-tests: ...and this.
26050         * tests/test-pty.c: Rename and split...
26051         * tests/test-forkpty.c: ...to this...
26052         * tests/test-openpty.c: ...and this.
26053         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26054         (gl_PTY): Split library searching...
26055         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26056         (gl_FORKPTY, gl_OPENPTY): New macros.
26057         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26058         * NEWS: Mention the split.
26059         * MODULES.html.sh (Misc): Document the modules.
26060         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26061         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26062
26063         pty: improve replacement header
26064         * lib/pty.in.h: New file.
26065         * modules/pty (Files): Ship it.
26066         (Makefile.am): Always build replacement.
26067         * m4/pty.m4: Rename...
26068         * m4/pty_h.m4: ...to this.
26069         (gl_PTY): Modernize setting of witness macros; update check of
26070         forkpty to take proper advantage of cache.
26071         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26072
26073         getopt: avoid compiler warning
26074         * lib/getopt.c (attribute_hidden): Remove unused macro.
26075
26076 2010-03-18  Bruno Haible  <bruno@clisp.org>
26077
26078         Fix link errors on Solaris 8.
26079         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26080         * modules/search-tests (test_search_c___LDADD): Likewise.
26081         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26082         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26083         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26084         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26085         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26086         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26087         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26088
26089 2010-03-18  Bruno Haible  <bruno@clisp.org>
26090
26091         Fix bug introduced on 2010-03-14.
26092         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26093         (gl_SPAWN_H): Require it.
26094         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26095         Reported by Simon Josefsson.
26096
26097 2010-03-18  Bruno Haible  <bruno@clisp.org>
26098
26099         Fix typo introduced on 2009-12-31.
26100         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26101         posix_spawn_file_actions_adddup2.
26102
26103 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26104         and Eric Blake  <eblake@redhat.com>
26105
26106         test-vc-list-files-git: make more robust
26107         * tests/test-vc-list-files-git.sh: Unset problematic environment
26108         variables.  Chain commands together.
26109
26110 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26111
26112         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26113         `AC_CHECK_DECL' invocation.
26114
26115 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26116
26117         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26118         appears before executable statements. Suggested by Petr Sumbera
26119         <Petr.Sumbera@Sun.COM>.
26120
26121 2010-03-14  Bruno Haible  <bruno@clisp.org>
26122
26123         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26124         portability problems. Instead use a simpler test.
26125         (main): Check that invalid arguments are rejected only on Linux.
26126
26127 2010-03-14  Bruno Haible  <bruno@clisp.org>
26128
26129         Fix bug introduced on 2009-12-31.
26130         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26131         gl_PREREQ_SYS_H_WINSOCK2 always.
26132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26133         SYS_SOCKET_H variable.
26134         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26135         Update comments.
26136         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26137         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26138         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26139         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26140         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26141
26142 2010-03-14  Bruno Haible  <bruno@clisp.org>
26143
26144         Fix values returned by sinl, cosl.
26145         * lib/trigl.h: Add specification comments.
26146         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26147         that combines the values from the precomputed table with the values of
26148         the Chebyshev polynomials.
26149
26150 2010-03-14  Bruno Haible  <bruno@clisp.org>
26151
26152         Fix compilation error when modules 'posix_spawn[p]' are not used.
26153         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26155
26156 2010-03-14  Bruno Haible  <bruno@clisp.org>
26157
26158         Fix compilation error on mingw when module 'time_r' is not used.
26159         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26160         is 1.
26161         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26162         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26163         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26164         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26165
26166 2010-03-14  Bruno Haible  <bruno@clisp.org>
26167
26168         Fix compilation error with Sun C.
26169         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26170         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26171         instead of GCC specific ULONG_LONG_MAX.
26172         * lib/xstrtoll.c: Likewise.
26173         * lib/xstrtoull.c: Likewise.
26174
26175 2010-03-13  Bruno Haible  <bruno@clisp.org>
26176
26177         Allow the user to disable C++ code and tests.
26178         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26179         (gl_PROG_ANSI_CXX): Require it.
26180
26181 2010-03-13  Bruno Haible  <bruno@clisp.org>
26182
26183         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26184         cases.
26185
26186 2010-03-13  Bruno Haible  <bruno@clisp.org>
26187
26188         Test that gnulib does not break the standard C++ headers.
26189         * tests/test-locale-c++2.cc: New file.
26190         * modules/locale-tests (Files): Add it.
26191         (Makefile.am): Compile it for test-locale-c++.
26192         * tests/test-math-c++2.cc: New file.
26193         * modules/math-tests (Files): Add it.
26194         (Makefile.am): Compile it for test-math-c++.
26195         * tests/test-signal-c++2.cc: New file.
26196         * modules/signal-tests (Files): Add it.
26197         (Makefile.am): Compile it for test-signal-c++.
26198         * tests/test-stdio-c++2.cc: New file.
26199         * modules/stdio-tests (Files): Add it.
26200         (Makefile.am): Compile it for test-stdio-c++.
26201         * tests/test-stdlib-c++2.cc: New file.
26202         * modules/stdlib-tests (Files): Add it.
26203         (Makefile.am): Compile it for test-stdlib-c++.
26204         * tests/test-string-c++2.cc: New file.
26205         * modules/string-tests (Files): Add it.
26206         (Makefile.am): Compile it for test-string-c++.
26207         * tests/test-time-c++2.cc: New file.
26208         * modules/time-tests (Files): Add it.
26209         (Makefile.am): Compile it for test-time-c++.
26210         Reported by John W. Eaton <jwe@gnu.org>.
26211
26212 2010-03-13  Bruno Haible  <bruno@clisp.org>
26213
26214         * gnulib-tool (func_usage): Clarify which options are available for
26215         --create-testdir and --create-megatestdir.
26216
26217 2010-03-13  Bruno Haible  <bruno@clisp.org>
26218
26219         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26220         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26221         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26222         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26223         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26224         when appropriate.
26225         Reported by Jim Meyering.
26226
26227 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26228
26229         * gnulib-tool (func_import): Explain origin of code.
26230
26231 2010-03-12  Bruno Haible  <bruno@clisp.org>
26232
26233         Fix problem with automake's definition of CXXLINK.
26234         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26235         Reported by Simon Josefsson and Ludovic Courtès.
26236
26237 2010-03-12  Bruno Haible  <bruno@clisp.org>
26238
26239         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26240         stable releases.
26241
26242 2010-03-11  Bruno Haible  <bruno@clisp.org>
26243
26244         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26245         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26246         whether the system provides one variant or multiple variants of the
26247         function.
26248         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26249         C++ compilers.
26250         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26251         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26252         Reported by Jim Meyering.
26253
26254 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26255
26256         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26257
26258 2010-03-08  Bruno Haible  <bruno@clisp.org>
26259
26260         gnulib-tool: Add support for --libtool in --create-testdir.
26261         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26262         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26263
26264 2010-03-08  Eric Blake  <eblake@redhat.com>
26265
26266         gnulib-tool.texi: mention possibility of git submodule
26267         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26268         submodules.
26269         * doc/.gitignore: Ignore another generated file.
26270
26271 2010-03-08  Karl Berry  <karl@gnu.org>
26272
26273         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26274         of committing gnulib files while skipping others.
26275
26276 2010-03-07  Bruno Haible  <bruno@clisp.org>
26277
26278         Tests of module 'wctype' in C++ mode.
26279         * tests/test-wctype-c++.cc: New file.
26280         * modules/wctype-tests (Files): Add it and tests/signature.h.
26281         (Depends-on): Add ansi-c++-opt.
26282         (Makefile.am): Arrange to compile and run test-wctype-c++.
26283
26284         Tests of module 'wchar' in C++ mode.
26285         * tests/test-wchar-c++.cc: New file.
26286         * modules/wchar-tests (Files): Add it and tests/signature.h.
26287         (Depends-on): Add ansi-c++-opt.
26288         (Makefile.am): Arrange to compile and run test-wchar-c++.
26289         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26290         gl_MODULE_INDICATOR.
26291
26292         Tests of module 'unistd' in C++ mode.
26293         * tests/test-unistd-c++.cc: New file.
26294         * modules/unistd-tests (Files): Add it and tests/signature.h.
26295         (Depends-on): Add ansi-c++-opt.
26296         (Makefile.am): Arrange to compile and run test-unistd-c++.
26297         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26298         gl_MODULE_INDICATOR.
26299
26300         Tests of module 'time' in C++ mode.
26301         * tests/test-time-c++.cc: New file.
26302         * modules/time-tests (Files): Add it and tests/signature.h.
26303         (Depends-on): Add ansi-c++-opt.
26304         (Makefile.am): Arrange to compile and run test-time-c++.
26305         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26306
26307         Tests of module 'sys_time' in C++ mode.
26308         * tests/test-sys_time-c++.cc: New file.
26309         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26310         (Depends-on): Add ansi-c++-opt.
26311         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26312         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26313         gl_MODULE_INDICATOR.
26314
26315         Tests of module 'sys_stat' in C++ mode.
26316         * tests/test-sys_stat-c++.cc: New file.
26317         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26318         (Depends-on): Add ansi-c++-opt.
26319         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26320         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26321         gl_MODULE_INDICATOR.
26322
26323         Tests of module 'sys_socket' in C++ mode.
26324         * tests/test-sys_socket-c++.cc: New file.
26325         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26326         (Depends-on): Add ansi-c++-opt.
26327         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26328         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26329         gl_MODULE_INDICATOR.
26330
26331         Tests of module 'sys_select' in C++ mode.
26332         * tests/test-sys_select-c++.cc: New file.
26333         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26334         (Depends-on): Add ansi-c++-opt.
26335         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26336         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26337         gl_MODULE_INDICATOR.
26338
26339         Tests of module 'sys_ioctl' in C++ mode.
26340         * tests/test-sys_ioctl-c++.cc: New file.
26341         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26342         (Depends-on): Add ansi-c++-opt.
26343         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26344         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26345         gl_MODULE_INDICATOR.
26346
26347         Tests of module 'string' in C++ mode.
26348         * tests/test-string-c++.cc: New file.
26349         * modules/string-tests (Files): Add it and tests/signature.h.
26350         (Depends-on): Add ansi-c++-opt.
26351         (Makefile.am): Arrange to compile and run test-string-c++.
26352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26353         gl_MODULE_INDICATOR.
26354
26355         Tests of module 'stdlib' in C++ mode.
26356         * tests/test-stdlib-c++.cc: New file.
26357         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26358         (Depends-on): Add ansi-c++-opt.
26359         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26360         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26361         gl_MODULE_INDICATOR.
26362
26363         Tests of module 'stdio' in C++ mode.
26364         * tests/test-stdio-c++.cc: New file.
26365         * modules/stdio-tests (Files): Add it and tests/signature.h.
26366         (Depends-on): Add ansi-c++-opt.
26367         (Makefile.am): Arrange to compile and run test-stdio-c++.
26368         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26369         gl_MODULE_INDICATOR.
26370
26371         Tests of module 'spawn' in C++ mode.
26372         * tests/test-spawn-c++.cc: New file.
26373         * modules/spawn-tests (Files): Add it and tests/signature.h.
26374         (Depends-on): Add ansi-c++-opt.
26375         (Makefile.am): Arrange to compile and run test-spawn-c++.
26376         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26377         gl_MODULE_INDICATOR.
26378
26379         Tests of module 'signal' in C++ mode.
26380         * tests/test-signal-c++.cc: New file.
26381         * modules/signal-tests (Files): Add it and tests/signature.h.
26382         (Depends-on): Add ansi-c++-opt.
26383         (Makefile.am): Arrange to compile and run test-signal-c++.
26384         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26385         gl_MODULE_INDICATOR.
26386
26387         Tests of module 'search' in C++ mode.
26388         * tests/test-search-c++.cc: New file.
26389         * modules/search-tests (Files): Add it and tests/signature.h.
26390         (Depends-on): Add ansi-c++-opt.
26391         (Makefile.am): Arrange to compile and run test-search-c++.
26392         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26393         gl_MODULE_INDICATOR.
26394
26395         Tests of module 'math' in C++ mode.
26396         * tests/test-math-c++.cc: New file.
26397         * modules/math-tests (Files): Add it and tests/signature.h.
26398         (Depends-on): Add ansi-c++-opt.
26399         (Makefile.am): Arrange to compile and run test-math-c++.
26400         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26401
26402         Tests of module 'locale' in C++ mode.
26403         * tests/test-locale-c++.cc: New file.
26404         * modules/locale-tests (Files): Add it and tests/signature.h.
26405         (Depends-on): Add ansi-c++-opt.
26406         (Makefile.am): Arrange to compile and run test-locale-c++.
26407         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26408         gl_MODULE_INDICATOR.
26409
26410         Tests of module 'langinfo' in C++ mode.
26411         * tests/test-langinfo-c++.cc: New file.
26412         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26413         (Depends-on): Add ansi-c++-opt.
26414         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26415         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26416         gl_MODULE_INDICATOR.
26417
26418         Tests of module 'iconv-h' in C++ mode.
26419         * tests/test-iconv-h-c++.cc: New file.
26420         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26421         (Depends-on): Add ansi-c++-opt.
26422         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26423
26424         Tests of module 'glob' in C++ mode.
26425         * tests/test-glob-c++.cc: New file.
26426         * modules/glob-tests (Files): Add it.
26427         (Depends-on): Add ansi-c++-opt.
26428         (Makefile.am): Arrange to compile and run test-glob-c++.
26429
26430         Tests of module 'fcntl-h' in C++ mode.
26431         * tests/test-fcntl-h-c++.cc: New file.
26432         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26433         (Depends-on): Add ansi-c++-opt.
26434         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26435         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26436         gl_MODULE_INDICATOR.
26437
26438         Tests of module 'dirent' in C++ mode.
26439         * tests/test-dirent-c++.cc: New file.
26440         * modules/dirent-tests (Files): Add it and tests/signature.h.
26441         (Depends-on): Add ansi-c++-opt.
26442         (Makefile.am): Arrange to compile and run test-dirent-c++.
26443         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26444         gl_MODULE_INDICATOR.
26445
26446         New module 'ansi-c++-opt'.
26447         * modules/ansi-c++-opt: New file.
26448         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26449
26450         Document C++ namespace mode.
26451         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26452
26453         wctype: Avoid #define replacements in C++ mode.
26454         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26455         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26456         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26457         In C++, define a namespaced alias symbol.
26458         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26459         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26460         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26461         rule.
26462
26463         wchar: Avoid #define replacements in C++ mode.
26464         * lib/wchar.in.h: Include c++defs.h.
26465         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26466         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26467         symbol.
26468         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26469         * modules/wchar (Depends-on): Add c++defs.
26470         (Makefile.am): Update wchar.h rule.
26471
26472         unistd: Avoid #define replacements in C++ mode.
26473         * lib/unistd.in.h: Include c++defs.h.
26474         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26475         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26476         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26477         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26478         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26479         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26480         symbol.
26481         (environ): Update.
26482         * modules/unistd (Depends-on): Add c++defs.
26483         (Makefile.am): Update unistd.h rule.
26484
26485         time: Avoid #define replacements in C++ mode.
26486         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26487         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26488         define a namespaced alias symbol.
26489         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26490         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26491         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26492         * modules/time (Depends-on): Add c++defs, warn-on-use.
26493         (Makefile.am): Update time.h rule.
26494         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26495         * modules/nanosleep (configure.ac): Likewise.
26496         * modules/strptime (configure.ac): Likewise.
26497         * modules/timegm (configure.ac): Likewise.
26498
26499         sys_time: Avoid #define replacements in C++ mode.
26500         * lib/sys_time.in.h: Include c++defs.h.
26501         (gettimeofday): In C++, define a namespaced alias symbol.
26502         * modules/sys_time (Depends-on): Add c++defs.
26503         (Makefile.am): Update sys/time.h rule.
26504
26505         sys_stat: Avoid #define replacements in C++ mode.
26506         * lib/sys_stat.in.h: Include c++defs.h.
26507         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26508         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26509         namespaced alias symbol.
26510         In C++, define a namespaced alias symbol.
26511         * modules/sys_stat (Depends-on): Add c++defs.
26512         (Makefile.am): Update sys/stat.h rule.
26513
26514         sys_socket: Avoid #define replacements in C++ mode.
26515         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26516         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26517         definitions also when the system has a <sys/socket.h>.
26518         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26519         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26520         In C++, define a namespaced alias symbol.
26521         * modules/sys_socket (Depends-on): Add c++defs.
26522         (Makefile.am): Update sys/socket.h rule.
26523
26524         sys_select: Avoid #define replacements in C++ mode.
26525         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26526         definitions also when the system has a <sys/select.h>.
26527         (select): In C++, define a namespaced alias symbol.
26528         * modules/sys_select (Depends-on): Add c++defs.
26529         (Makefile.am): Update sys/select.h rule.
26530
26531         sys_ioctl: Avoid #define replacements in C++ mode.
26532         * lib/sys_ioctl.in.h: Include c++defs.h.
26533         (ioctl): In C++, define a namespaced alias symbol.
26534         * modules/sys_ioctl (Depends-on): Add c++defs.
26535         (Makefile.am): Update sys/ioctl.h rule.
26536
26537         string: Avoid #define replacements in C++ mode.
26538         * lib/string.in.h: Include c++defs.h.
26539         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26540         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26541         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26542         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26543         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26544         * modules/string (Depends-on): Add c++defs.
26545         (Makefile.am): Update string.h rule.
26546
26547         stdlib: Avoid #define replacements in C++ mode.
26548         * lib/stdlib.in.h: Include c++defs.h.
26549         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26550         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26551         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26552         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26553         symbol.
26554         * modules/stdlib (Depends-on): Add c++defs.
26555         (Makefile.am): Update stdlib.h rule.
26556
26557         stdio: Avoid #define replacements in C++ mode.
26558         * lib/stdio.in.h: Include c++defs.h.
26559         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26560         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26561         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26562         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26563         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26564         namespaced alias symbol.
26565         * modules/stdio (Depends-on): Add c++defs.
26566         (Makefile.am): Update stdio.h rule.
26567
26568         spawn: Avoid #define replacements in C++ mode.
26569         * lib/spawn.in.h: Include c++defs.h.
26570         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26571         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26572         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26573         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26574         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26575         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26576         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26577         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26578         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26579         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26580         In C++, define a namespaced alias symbol.
26581         * modules/spawn (Depends-on): Add c++defs.
26582         (Makefile.am): Update spawn.h rule.
26583
26584         signal: Avoid #define replacements in C++ mode.
26585         * lib/signal.in.h: Include c++defs.h.
26586         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26587         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26588         namespaced alias symbol.
26589         * modules/signal (Depends-on): Add c++defs.
26590         (Makefile.am): Update signal.h rule.
26591
26592         search: Avoid #define replacements in C++ mode.
26593         * lib/search.in.h: Include c++defs.h.
26594         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26595         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26596         symbol.
26597         * modules/search (Depends-on): Add c++defs.
26598         (Makefile.am): Update search.h rule.
26599
26600         math: Avoid #define replacements in C++ mode.
26601         * lib/math.in.h: Include c++defs.h.
26602         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26603         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26604         trunc, truncl): In C++, define a namespaced alias symbol.
26605         * modules/math (Depends-on): Add c++defs.
26606         (Makefile.am): Update math.h rule.
26607
26608         locale: Avoid #define replacements in C++ mode.
26609         * lib/locale.in.h: Include c++defs.h.
26610         (duplocale): In C++, define a namespaced alias symbol.
26611         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26612         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26613         * modules/locale (Depends-on): Add c++defs.
26614         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26615
26616         langinfo: Avoid #define replacements in C++ mode.
26617         * lib/langinfo.in.h: Include c++defs.h.
26618         (nl_langinfo): In C++, define a namespaced alias symbol.
26619         * modules/langinfo (Depends-on): Add c++defs.
26620         (Makefile.am): Update langinfo.h rule.
26621
26622         iconv-h: Avoid #define replacements in C++ mode.
26623         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26624         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26625         symbol.
26626         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26627         whenever iconv is present.
26628         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26629         (Makefile.am): Update iconv.h rule.
26630
26631         glob: Avoid #define replacements in C++ mode.
26632         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26633         (_gl_glob_errfunc_fn): New type.
26634         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26635         symbol.
26636         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26637         (Makefile.am): Update glob.h rule.
26638
26639         fcntl-h: Avoid #define replacements in C++ mode.
26640         * lib/fcntl.in.h: Include c++defs.h.
26641         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26642         * modules/fcntl-h (Depends-on): Add c++defs.
26643         (Makefile.am): Update fcntl.h rule.
26644
26645         dirent: Avoid #define replacements in C++ mode.
26646         * lib/dirent.in.h: Include c++defs.h.
26647         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26648         namespaced alias symbol.
26649         (dirfd): Update declaration.
26650         * modules/dirent (Depends-on): Add c++defs.
26651         (Makefile.am): Update dirent.h rule.
26652
26653         ctype: Make it usable in C++ code.
26654         * lib/ctype.in.h: Include c++defs.h.
26655         (isblank): Declare as extern "C".
26656         * modules/ctype (Depends-on): Add c++defs.
26657         (Makefile.am): Update ctype.h rule.
26658
26659         New module 'c++defs'.
26660         * modules/c++defs: New file.
26661         * build-aux/c++defs.h: New file.
26662         Reported by John W. Eaton <jwe@gnu.org>.
26663
26664 2010-03-07  Bruno Haible  <bruno@clisp.org>
26665
26666         logb: Provide missing declaration for Cygwin.
26667         * lib/math.in.h (logb): New declaration.
26668         * m4/logb.m4: New file.
26669         * modules/logb (Files): Add m4/logb.m4.
26670         (Depends-on): Add math.
26671         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26672         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26674         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26675         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26676
26677 2010-03-07  Bruno Haible  <bruno@clisp.org>
26678
26679         Fix test-cond link error.
26680         * tests/test-cond.c: Include <stdio.h>.
26681
26682 2010-03-07  Bruno Haible  <bruno@clisp.org>
26683
26684         Fix test-dirent-safer link error.
26685         * modules/dirent-safer-tests (Makefile.am): Define
26686         test_dirent_safer_LDADD.
26687
26688 2010-03-07  Bruno Haible  <bruno@clisp.org>
26689
26690         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26691         among default module list.
26692
26693 2010-03-07  Bruno Haible  <bruno@clisp.org>
26694
26695         Fix link error on platforms with GNU libiconv.
26696         * modules/unistr/u8-strcoll-tests (Makefile): Define
26697         test_u8_strcoll_LDADD.
26698         * modules/unistr/u16-strcoll-tests (Makefile): Define
26699         test_u16_strcoll_LDADD.
26700         * modules/unistr/u32-strcoll-tests (Makefile): Define
26701         test_u32_strcoll_LDADD.
26702
26703 2010-03-07  Bruno Haible  <bruno@clisp.org>
26704
26705         Use POSIX declarations for socket functions.
26706         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26707         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26708         rpl_sendto): Change declaration to match POSIX.
26709         * lib/connect.c (rpl_connect): Likewise.
26710         * lib/accept.c (rpl_accept): Likewise.
26711         * lib/bind.c (rpl_bind): Likewise.
26712         * lib/getpeername.c (rpl_getpeername): Likewise.
26713         * lib/getsockname.c (rpl_getsockname): Likewise.
26714         * lib/recv.c (rpl_recv): Likewise.
26715         * lib/send.c (rpl_send): Likewise.
26716         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26717         * lib/sendto.c (rpl_sendto): Likewise.
26718
26719 2010-03-06  Bruno Haible  <bruno@clisp.org>
26720
26721         Clarify access, euidaccess, faccessat.
26722         * doc/posix-functions/faccessat.texi: Mention security problem under
26723         "Other problems", not "Portability problems".
26724         * doc/posix-functions/access.texi: Likewise. Mention a related security
26725         problem.
26726         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26727         * lib/euidaccess.c: Add comments about platforms.
26728         * lib/unistd.in.h (access, euidaccess): Add warnings.
26729
26730 2010-03-07  Bruno Haible  <bruno@clisp.org>
26731
26732         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26733         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26734         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26735         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26736         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26737         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26738         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26739         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26740         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26741         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26742         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26743         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26744         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26745         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26746         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26747         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26748         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26749         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26750         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26751         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26752         Likewise.
26753         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26754         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26755         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26756         Likewise.
26757         * tests/test-spawn.c (main): Make it work when
26758         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26759
26760 2010-03-07  Bruno Haible  <bruno@clisp.org>
26761
26762         Fix incorrect Makefile.am generation in German locale.
26763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26764         Execute sed command with character range in C locale.
26765
26766 2010-03-06  Bruno Haible  <bruno@clisp.org>
26767
26768         Tests for module 'iconv-h'.
26769         * modules/iconv-h-tests: New file.
26770         * tests/test-iconv-h.c: New file.
26771
26772         New module 'iconv-h'.
26773         * modules/iconv-h: New file.
26774         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26775         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26776         (configure.ac): Remove gl_ICONV_H.
26777         (Makefile.am): Remove rule for iconv.h.
26778
26779 2010-03-06  Bruno Haible  <bruno@clisp.org>
26780
26781         More consistent naming of *.m4 files.
26782         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26783         * modules/wctype (Files): Update.
26784
26785         More consistent naming of *.m4 files.
26786         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26787         * modules/wchar (Files): Update.
26788
26789 2010-03-06  Jim Meyering  <meyering@redhat.com>
26790
26791         euidaccess: relax license to LGPLv2+
26792         * modules/euidaccess (License): Relax to LGPLv2+.
26793
26794 2010-03-06  Bruno Haible  <bruno@clisp.org>
26795
26796         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26797         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26798         (Makefile.am): Augment lib_SOURCES instead.
26799
26800 2010-03-04  Jim Meyering  <meyering@redhat.com>
26801
26802         utime: remove obsolete module
26803         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26804         unnecessary for years, and has been marked as obsolete for 10 months.
26805         * modules/utime: Remove file.
26806         * lib/utime.c: Remove file.
26807         * m4/utime.m4: Remove file.
26808         * m4/utimes-null.m4: Remove file.
26809         * doc/posix-functions/utime.texi (utime): Remove reference to
26810         the module.  Move the sole "fixed by gnulib" item into the
26811         "problems not fixed by Gnulib" list.
26812         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26813
26814 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26815
26816         * modules/exit (License): Relax license to LGPLv2+.
26817         (Status): Mark as obsolete.
26818         * NEWS: Mention deprecated 'exit' module.
26819         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26820         of now obsolete 'exit'.
26821
26822 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26823
26824         fts-lgpl: remove unused module
26825         * modules/fts-lgpl: Remove.
26826         * MODULES.html.sh (func_all_modules): Adjust.
26827         * check-module (find_included_lib_files): Adjust.
26828         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26829
26830 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26831
26832         copy-acl: enhance Solaris ACL error handling
26833         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26834         * lib/set-mode-acl.c (qset_acl): Likewise.
26835
26836 2010-03-02  Bruno Haible  <bruno@clisp.org>
26837
26838         spawn: Don't override the system defined values on FreeBSD 8.
26839         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26840         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26841         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26842         if HAVE_POSIX_SPAWN is 1.
26843         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26844
26845 2010-03-01  Bruno Haible  <bruno@clisp.org>
26846
26847         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26848         regarding Automake.
26849
26850 2010-02-25  Bruno Haible  <bruno@clisp.org>
26851
26852         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26853         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26854         setting, not afterwards.
26855         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26856
26857 2010-02-24  Eric Blake  <eblake@redhat.com>
26858
26859         bootstrap, git-version-gen: use timestamp
26860         * build-aux/git-version-gen (scriptversion): Force UTC.
26861         * build-aux/bootstrap (scriptversion): New variable.
26862
26863         bootstrap: allow older git
26864         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26865         older than 1.6.4.  Requested by the libvirt project.
26866
26867 2010-02-23  Eric Blake  <eblake@redhat.com>
26868
26869         warn-on-use: work with old autoconf
26870         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26871         AS_VAR semantics of autoconf 2.60.
26872         Reported by Bruno Haible.
26873
26874         bootstrap: improve some comments
26875         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26876         clarification comments.
26877
26878         gettimeofday: provide correct function
26879         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26880         when replacement is declared, otherwise provide gettimeofday.
26881         Reported by Michael Goffioul.
26882
26883 2010-02-23  Jim Meyering  <meyering@redhat.com>
26884
26885         lib-ignore: relax license to "unlimited", not LGPLv2+
26886         * modules/lib-ignore (License): Relax to "unlimited".
26887
26888 2010-02-23  Jim Meyering  <meyering@redhat.com>
26889
26890         lib-ignore: relax license to LGPLv2+
26891         * modules/lib-ignore (License): Relax to LGPLv2+.
26892
26893 2010-02-22  Eric Blake  <eblake@redhat.com>
26894
26895         lseek: avoid bash 3.2 broken pipe bug
26896         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26897         warning from bash 3.2.
26898         Reported by Ben Pfaff, with analysis from Bruno Haible.
26899
26900         bootstrap: support non-FSF copyright holder
26901         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26902         bootstrap.conf override of COPYRIGHT_HOLDER.
26903         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26904
26905         bootstrap: interoperate with gettext 0.14.1
26906         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26907
26908         bootstrap: allow for alternate submodule location
26909         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26910         hardcoding submodule location.
26911         (gnulib_mk): Allow direct use of Makefile.am.
26912
26913         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26914         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26915         rather than reconfiguring where the submodule points.
26916
26917         gettimeofday: restore support for platforms that lack function
26918         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26919         replacement if function is missing.
26920         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26921         * modules/sys_time (Makefile.am): Substitute it.
26922         * lib/sys_time.in.h (gettimeofday): Check it.
26923         Reported by Michael Goffioul.
26924
26925 2010-02-21  Bruno Haible  <bruno@clisp.org>
26926
26927         * lib/stdio.in.h (obstack_printf): Fix typo.
26928
26929 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26930
26931         vc-list-files: use bzr ls's -R option
26932         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26933         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26934
26935 2010-02-21  Jim Meyering  <meyering@redhat.com>
26936
26937         init.sh: fix EXEEXT shims to work also for names like test-prog
26938         * tests/init.sh: Re-exec a better shell, when needed.
26939         If the current shell lacks support for posix $(...), an init.sh-using
26940         test will now try to find a shell that supports that.  If EXEEXT is
26941         nonempty, we also require support for hyphen-in-alias-name and shell
26942         substitutions like ${var#glob}.  Failure to find such a shell results
26943         in a skipped test.
26944
26945 2010-02-21  Bruno Haible  <bruno@clisp.org>
26946
26947         Really work around around "broken pipe" error message from bash 3.2.
26948         * gnulib-tool (func_reset_sigpipe): Remove function.
26949         (echo): In bash 3.2, define to a function that uses printf.
26950         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26951
26952 2010-02-20  Bruno Haible  <bruno@clisp.org>
26953
26954         Restore support for automake 1.9.6 with autoconf 2.61.
26955         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26956         Reported by James Youngman <jay@gnu.org>.
26957
26958 2010-02-20  Bruno Haible  <bruno@clisp.org>
26959
26960         Improve *printf warning condition.
26961         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26962         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26963         and the function is overridden due to SIGPIPE emulation.
26964
26965 2010-02-20  Bruno Haible  <bruno@clisp.org>
26966
26967         * lib/stdio.in.h: Tweak comments.
26968
26969 2010-02-19  Bruno Haible  <bruno@clisp.org>
26970
26971         Make it easier to find modules. New gnulib-tool option '--find'.
26972         * gnulib-tool: New option --find.
26973         (func_usage): Document it.
26974         (func_sanitize_modulelist): New function, extracted from
26975         func_all_modules.
26976         (func_all_modules): Invoke it.
26977         * doc/gnulib-tool.texi (Which modules?): New node.
26978
26979 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26980
26981         * lib/sys_select.in.h: Provide select replacement even if
26982         sys/select.h exists on a system, for Interix.
26983
26984 2010-02-18  Jim Meyering  <meyering@redhat.com>
26985
26986         init.sh: don't use $(...) just yet
26987         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26988         to accommodate e.g., Solaris' /bin/sh.
26989
26990 2010-02-17  Bruno Haible  <bruno@clisp.org>
26991
26992         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26993         Reported by Ludovic Courtès <ludo@gnu.org>.
26994
26995 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26996
26997         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26998         linking with -lintl.
26999
27000 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27001
27002         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27003         if not provided by the system's netdb.h.  Reported by
27004         ludo@gnu.org (Ludovic Courtès).
27005
27006 2010-02-15  Jim Meyering  <meyering@redhat.com>
27007
27008         init.sh: improve portability and efficiency
27009         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27010         "dummy" in a for loop.
27011         Use '!', not '^' to select the complement of a character set used
27012         in a "case" statement.
27013         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27014         Suggestions from Eric Blake.
27015
27016         init.sh: automatically accommodate programs with the .exe suffix
27017         Automatically arrange for an invocation of "prog" to execute the
27018         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27019         may use the simpler "prog", yet still work when built on a system
27020         that requires specifying the added suffix.
27021         Do this by constructing a function named "prog" that invokes
27022         "prog.exe" for each .exe file in selected directories.
27023         * tests/init.sh (find_exe_basenames_): New function.
27024         (create_exe_shim_functions_): New function.
27025         (path_prepend_): Use it.
27026
27027         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27028         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27029         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27030
27031 2010-02-14  Jim Meyering  <meyering@redhat.com>
27032
27033         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27034         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27035         (sc_prohibit_hash_pjw_without_use): New rule.
27036
27037         maint.mk: allow the default upload destination dir to be overridden
27038         * top/maint.mk (upload_dest_dir_): Define with a default that
27039         preserves the status quo.
27040         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27041         Reported by Peter Simons.
27042
27043         maint.mk: prohibit inclusion of "hash.h" without_use
27044         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27045
27046 2010-02-10  Jim Meyering  <meyering@redhat.com>
27047
27048         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27049         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27050
27051 2010-02-09  Eric Blake  <ebb9@byu.net>
27052         and Bruno Haible  <bruno@clisp.org>
27053
27054         obstack-printf-posix: ensure declaration
27055         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27056         extracted from gl_FUNC_OBSTACK_PRINTF.
27057         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27058         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27059         Likewise.
27060         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27061         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27062         0.
27063
27064 2010-02-08  Bruno Haible  <bruno@clisp.org>
27065
27066         gnulib-tool: Fix typo in 2010-02-07 commit.
27067         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27068         Reported by Eric Blake.
27069
27070 2010-02-07  Bruno Haible  <bruno@clisp.org>
27071
27072         gnulib-tool: Fix up caching patches.
27073         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27074         option --no-cache. Use associative arrays when supported by the shell.
27075         (sed_comments): New variable.
27076         (modcache): Renamed from do_cache.
27077         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27078         abbreviate unnecessarily.
27079         (have_associative): New variable.
27080         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27081         way also for ksh and zsh.
27082         (func_init_sed_convert_to_cache_statements): New function, extracted
27083         from func_cache_lookup_module. Add support for associative arrays.
27084         Don't set the c_MODULE_cached variable here. Ignore all lines before
27085         the first field header. Remove only the final newline, not all trailing
27086         newlines. Support empty fields correctly. Limit the use of 'eval' to
27087         assignments.
27088         (func_get_description, func_get_status, func_get_notice,
27089         func_get_applicability, func_get_filelist, func_get_dependencies,
27090         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27091         func_get_automake_snippet, func_get_include_directive,
27092         func_get_link_directive, func_get_license, func_get_maintainer):
27093         Update documentation. List the unoptimized code first. Add support for
27094         associative arrays. Limit the use of 'eval' to assignments.
27095         (func_get_applicability): Undo stylistic pessimisations.
27096         (func_get_automake_snippet, func_get_include_directive): Reduce code
27097         duplication.
27098         (func_modules_transitive_closure, func_modules_add_dummy,
27099         func_modules_notice, func_modules_to_filelist, func_add_file,
27100         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27101         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27102         func_create_testdir, func_create_megatestdir): Update documentation.
27103
27104 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27105
27106         * gnulib-tool (func_cache_lookup_module): Store the module name
27107         belonging to the cache variable; error out if two different
27108         module names map to the same cache variable name.
27109
27110 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27111
27112         gnulib-tool: Make caching optional.
27113         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27114         Update matching short versions of --no-changelog.
27115         (func_usage): Update.
27116         (sed_extract_cache_prog): Renamed from ...
27117         (sed_extract_prog): ... this; revert to old extraction script.
27118         (func_get_description, func_get_status)
27119         (func_get_notice, func_get_applicability, func_get_filelist)
27120         (func_get_dependencies, func_get_autoconf_early_snippet)
27121         (func_get_autoconf_snippet, func_get_automake_snippet)
27122         (func_get_include_directive, func_get_link_directive)
27123         (func_get_license, func_get_maintainer): If $do_cache is false,
27124         use old, non-caching extraction scripts.
27125         Suggestion by Bruno Haible.
27126
27127 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27128
27129         gnulib-tool: cache module metainformation.
27130         * gnulib-tool (sed_extract_prog): Match newline before each
27131         header, and rewrite header to a shell variable suffix.
27132         (func_cache_var, func_cache_lookup_module): New functions,
27133         to turn a module name into a cache variable prefix, and to
27134         look up and cache module metainformation.
27135         (func_get_description, func_get_status)
27136         (func_get_notice, func_get_applicability, func_get_filelist)
27137         (func_get_dependencies, func_get_autoconf_early_snippet)
27138         (func_get_autoconf_snippet, func_get_automake_snippet)
27139         (func_get_include_directive, func_get_link_directive)
27140         (func_get_license, func_get_maintainer): Use
27141         func_cache_lookup_module.
27142
27143 2010-02-07  Bruno Haible  <bruno@clisp.org>
27144
27145         fnctl: Fix missing dependency.
27146         * modules/fcntl (Depends-on): Add getdtablesize.
27147         Reported by John W. Eaton <jwe@gnu.org>.
27148
27149 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27150
27151         Argp: fix recognition of short alias options.
27152
27153         * lib/argp-parse.c (convert_options): Fix improper use of
27154         `|' between character values.
27155         * tests/test-argp.c (group1_option): New alias option
27156         --read (-r).
27157         (group1_parser): Special handling for 'r'.
27158         (test15): New test case.
27159         (test_fun): Add test15.
27160         * tests/test-argp-2.sh: Update expected --help and --usage
27161         outputs.
27162
27163 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27164
27165         * tests/test-argp.c: Fix indentation.
27166
27167 2010-02-04  Eric Blake  <ebb9@byu.net>
27168
27169         gettimeofday: expose type of second argument
27170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27171         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27172         * tests/test-gettimeofday.c: Use it to silence warning.
27173         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27174         the issue.
27175
27176 2010-02-03  Jim Meyering  <meyering@redhat.com>
27177
27178         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27179         * lib/regcomp.c (TYPE_SIGNED): Define.
27180         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27181
27182         regcomp.c: avoid a new -Wshadow warning
27183         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27184
27185 2010-02-01  Jim Meyering  <meyering@redhat.com>
27186
27187         removing useless parentheses in cpp #define directives
27188         For motivation, see commit c0221df4, "define STREQ(a,b)
27189         consistently, removing useless parentheses"
27190         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27191         * lib/mountlist.c (MNT_IGNORE): Likewise.
27192         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27193
27194 2010-02-01  Eric Blake  <ebb9@byu.net>
27195
27196         sys_time: use link-warning
27197         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27198         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27199         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27200         * modules/sys_time (Depends-on): Add warn-on-use.
27201         (Makefile.am): Always build replacement.
27202         (configure.ac): Update substitutions.
27203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27204         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27205         bother with SYS_TIME_H.
27206         * modules/gettimeofday (configure.ac): Declare indicator.
27207         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27208         in use.
27209
27210         closein-tests: silence compiler warning
27211         * tests/test-closein.c (main): Ignore fread result.
27212         * modules/closein-tests (Depends-on): Add ignore-value.
27213
27214         tests: silence warning about system return
27215         * tests/test-areadlink-with-size.c (main): Ignore system result.
27216         * tests/test-areadlink.c (main): Likewise.
27217         * tests/test-areadlinkat-with-size.c (main): Likewise.
27218         * tests/test-areadlinkat.c (main): Likewise.
27219         * tests/test-canonicalize-lgpl.c (main): Likewise.
27220         * tests/test-canonicalize.c (main): Likewise.
27221         * tests/test-chown.c (main): Likewise.
27222         * tests/test-fchownat.c (main): Likewise.
27223         * tests/test-fdutimensat.c (main): Likewise.
27224         * tests/test-fstatat.c (main): Likewise.
27225         * tests/test-futimens.c (main): Likewise.
27226         * tests/test-lchown.c (main): Likewise.
27227         * tests/test-link.c (main): Likewise.
27228         * tests/test-linkat.c (main): Likewise.
27229         * tests/test-lstat.c (main): Likewise.
27230         * tests/test-mkdir.c (main): Likewise.
27231         * tests/test-mkdirat.c (main): Likewise.
27232         * tests/test-mkfifo.c (main): Likewise.
27233         * tests/test-mkfifoat.c (main): Likewise.
27234         * tests/test-mknod.c (main): Likewise.
27235         * tests/test-readlink.c (main): Likewise.
27236         * tests/test-remove.c (main): Likewise.
27237         * tests/test-rename.c (main): Likewise.
27238         * tests/test-renameat.c (main): Likewise.
27239         * tests/test-rmdir.c (main): Likewise.
27240         * tests/test-symlink.c (main): Likewise.
27241         * tests/test-symlinkat.c (main): Likewise.
27242         * tests/test-unlink.c (main): Likewise.
27243         * tests/test-unlinkat.c (main): Likewise.
27244         * tests/test-utimens.c (main): Likewise.
27245         * tests/test-utimensat.c (main): Likewise.
27246         * modules/areadlink-tests (Depends-on): Add ignore-value.
27247         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27248         * modules/areadlinkat-tests (Depends-on): Likewise.
27249         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27250         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27251         * modules/canonicalize-tests (Depends-on): Likewise.
27252         * modules/chown-tests (Depends-on): Likewise.
27253         * modules/fdutimensat-tests (Depends-on): Likewise.
27254         * modules/futimens-tests (Depends-on): Likewise.
27255         * modules/lchown-tests (Depends-on): Likewise.
27256         * modules/link-tests (Depends-on): Likewise.
27257         * modules/linkat-tests (Depends-on): Likewise.
27258         * modules/lstat-tests (Depends-on): Likewise.
27259         * modules/mkdir-tests (Depends-on): Likewise.
27260         * modules/mkfifo-tests (Depends-on): Likewise.
27261         * modules/mkfifoat-tests (Depends-on): Likewise.
27262         * modules/mknod-tests (Depends-on): Likewise.
27263         * modules/openat-tests (Depends-on): Likewise.
27264         * modules/readlink-tests (Depends-on): Likewise.
27265         * modules/remove-tests (Depends-on): Likewise.
27266         * modules/rename-tests (Depends-on): Likewise.
27267         * modules/renameat-tests (Depends-on): Likewise.
27268         * modules/rmdir-tests (Depends-on): Likewise.
27269         * modules/symlink-tests (Depends-on): Likewise.
27270         * modules/symlinkat-tests (Depends-on): Likewise.
27271         * modules/unlink-tests (Depends-on): Likewise.
27272         * modules/utimens-tests (Depends-on): Likewise.
27273         * modules/utimensat-tests (Depends-on): Likewise.
27274
27275 2010-01-31  Bruno Haible  <bruno@clisp.org>
27276
27277         Perform the same test for many <math.h> functions.
27278         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27279         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27280         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27281         of gl_MATHFUNC.
27282         * modules/acos (configure.ac): Likewise.
27283         * modules/asin (configure.ac): Likewise.
27284         * modules/atan (configure.ac): Likewise.
27285         * modules/atan2 (configure.ac): Likewise.
27286         * modules/cbrt (configure.ac): Likewise.
27287         * modules/copysign (configure.ac): Likewise.
27288         * modules/cos (configure.ac): Likewise.
27289         * modules/cosh (configure.ac): Likewise.
27290         * modules/erf (configure.ac): Likewise.
27291         * modules/erfc (configure.ac): Likewise.
27292         * modules/exp (configure.ac): Likewise.
27293         * modules/fmod (configure.ac): Likewise.
27294         * modules/hypot (configure.ac): Likewise.
27295         * modules/j0 (configure.ac): Likewise.
27296         * modules/j1 (configure.ac): Likewise.
27297         * modules/jn (configure.ac): Likewise.
27298         * modules/lgamma (configure.ac): Likewise.
27299         * modules/log (configure.ac): Likewise.
27300         * modules/log10 (configure.ac): Likewise.
27301         * modules/log1p (configure.ac): Likewise.
27302         * modules/pow (configure.ac): Likewise.
27303         * modules/remainder (configure.ac): Likewise.
27304         * modules/sin (configure.ac): Likewise.
27305         * modules/sinh (configure.ac): Likewise.
27306         * modules/tan (configure.ac): Likewise.
27307         * modules/tanh (configure.ac): Likewise.
27308         * modules/y0 (configure.ac): Likewise.
27309         * modules/y1 (configure.ac): Likewise.
27310         * modules/yn (configure.ac): Likewise.
27311         Suggested by Paolo Bonzini.
27312
27313 2010-01-31  Bruno Haible  <bruno@clisp.org>
27314
27315         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27316
27317 2010-01-31  Bruno Haible  <bruno@clisp.org>
27318
27319         Work around getdelim() bug on FreeBSD 8.0.
27320         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27321         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27322         not work.
27323         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27324         is 1.
27325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27326         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27327         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27328         a non-zero size.
27329         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27330
27331 2010-01-31  Bruno Haible  <bruno@clisp.org>
27332
27333         Work around getline() bug on FreeBSD 8.0.
27334         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27335         and a non-zero size.
27336         * tests/test-getline.c (main): Likewise.
27337         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27338         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27339
27340 2010-01-28  Eric Blake  <ebb9@byu.net>
27341
27342         regex: fix build failure
27343         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27344         platforms.
27345
27346 2010-01-28  Jim Meyering  <meyering@redhat.com>
27347
27348         regex: do not ignore memory allocation failure
27349         * lib/regex_internal.c (create_cd_newstate): Detect
27350         re_node_set_init_copy failure.   Extracted from glibc commit
27351         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27352
27353         regex: sync more white-space changes from libc
27354         * lib/regex_internal.c: White-space only changes.
27355         * lib/regexec.c: Likewise.
27356
27357         regex: add many uses of __attribute_warn_unused_result__
27358         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27359         * lib/regexec.c: Likewise.
27360         Extracted from a messy glibc commit.
27361
27362         regcomp.c: spelling and merge-artifact from glibc
27363         * lib/regcomp.c: Merge remainder of glibc's
27364         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27365
27366         regcomp.c: sync white-space changes from glibc
27367         * lib/regcomp.c: Merge to accommodate white space
27368         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27369
27370         regcomp.c: do not ignore internal return values
27371         * lib/regcomp.c: Do not ignore internal return values.
27372         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27373         but without its white-space changes and spelling fixes.
27374
27375         regex_internal.h: define __attribute_warn_unused_result__
27376         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27377
27378         maint: add a syntax-check rule to check for vulnerable Makefile.in
27379         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27380
27381 2010-01-27  Jim Meyering  <meyering@redhat.com>
27382
27383         ncftpput-ftp: clean up spaces
27384         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27385         Remove trailing blanks.
27386
27387 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27388
27389         * build-aux/git-version-gen: Fix copyright statement.
27390         * build-aux/gnupload: Likewise.
27391         * tests/test-arcfour.c: Likewise.
27392         * tests/test-arctwo.c: Likewise.
27393         * tests/test-count-one-bits.c: Likewise.
27394         * tests/test-crc.c: Likewise.
27395         * tests/test-des.c: Likewise.
27396         * tests/test-gc-arcfour.c: Likewise.
27397         * tests/test-gc-arctwo.c: Likewise.
27398         * tests/test-gc-des.c: Likewise.
27399         * tests/test-gc-hmac-md5.c: Likewise.
27400         * tests/test-gc-hmac-sha1.c: Likewise.
27401         * tests/test-gc-md2.c: Likewise.
27402         * tests/test-gc-md4.c: Likewise.
27403         * tests/test-gc-md5.c: Likewise.
27404         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27405         * tests/test-gc-rijndael.c: Likewise.
27406         * tests/test-gc-sha1.c: Likewise.
27407         * tests/test-gc.c: Likewise.
27408         * tests/test-gethostname.c: Likewise.
27409         * tests/test-gettimeofday.c: Likewise.
27410         * tests/test-hash.c: Likewise.
27411         * tests/test-hmac-md5.c: Likewise.
27412         * tests/test-hmac-sha1.c: Likewise.
27413         * tests/test-md2.c: Likewise.
27414         * tests/test-md4.c: Likewise.
27415         * tests/test-md5.c: Likewise.
27416         * tests/test-memchr.c: Likewise.
27417         * tests/test-memchr2.c: Likewise.
27418         * tests/test-memcmp.c: Likewise.
27419         * tests/test-memmem.c: Likewise.
27420         * tests/test-memrchr.c: Likewise.
27421         * tests/test-rawmemchr.c: Likewise.
27422         * tests/test-read-file.c: Likewise.
27423         * tests/test-rijndael.c: Likewise.
27424         * tests/test-sockets.c: Likewise.
27425         * tests/test-strchrnul.c: Likewise.
27426         * tests/test-strstr.c: Likewise.
27427         * tests/test-strtod.c: Likewise.
27428         * build-aux/ncftpput-ftp: Likewise.
27429
27430 2010-01-26  Eric Blake  <ebb9@byu.net>
27431
27432         ignore-value: update recommended header name
27433         * modules/ignore-value (Include): Only use <> for headers that
27434         exist in glibc.
27435
27436 2010-01-26  Jim Meyering  <meyering@redhat.com>
27437
27438         test-userspec.c: avoid compiler warnings
27439         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27440         and "initialization discards qualifiers..." warnings.
27441         Put the first "uid" in its own scope, and make char* members "const".
27442
27443 2010-01-25  Bruno Haible  <bruno@clisp.org>
27444
27445         gnulib-tool: Make warning diagnostics consistent.
27446         * gnulib-tool (func_warning): New function.
27447         Use it everywhere where gnulib-tool produces output to stderr and it is
27448         not a fatal error.
27449
27450 2010-01-25  Bruno Haible  <bruno@clisp.org>
27451
27452         Fix test dependencies.
27453         * modules/xstrtol-tests (Depends-on): Add inttypes.
27454         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27455
27456 2010-01-25 Pádraig Brady <P@draigBrady.com>
27457
27458         syntax-check: detect incorrect boolean macro values in config.h
27459         * modules/maintainer-makefile (configure.ac): Parameterize the location
27460         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27461         The logic is from Eric Blake and the location indicated by Jim Meyering.
27462         Note the more natural CONFIG_HEADER name is prohibited by automake
27463         for backwards compatibility reasons.
27464         * top/maint.mk (sc_Wundef_boolean): New rule.
27465
27466 2010-01-25  Jim Meyering  <meyering@redhat.com>
27467
27468         bootstrap: detect MacOS 10.6's shasum, too
27469         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27470         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27471
27472 2010-01-23  Jim Meyering  <meyering@redhat.com>
27473
27474         xstrtoll: new module
27475         * modules/xstrtoll: New file.
27476         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27477         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27478         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27479         ./configure fails if you use this module and lack "long long".
27480         * modules/xstrtoll-tests: New module.
27481         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27482         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27483         new init.sh-based test framework.
27484
27485 2010-01-24  Bruno Haible  <bruno@clisp.org>
27486
27487         Tests for module 'yn'.
27488         * modules/yn-tests: New file.
27489         * tests/test-yn.c: New file.
27490
27491         Tests for module 'y1'.
27492         * modules/y1-tests: New file.
27493         * tests/test-y1.c: New file.
27494
27495         Tests for module 'y0'.
27496         * modules/y0-tests: New file.
27497         * tests/test-y0.c: New file.
27498
27499         Tests for module 'tanh'.
27500         * modules/tanh-tests: New file.
27501         * tests/test-tanh.c: New file.
27502
27503         Tests for module 'tan'.
27504         * modules/tan-tests: New file.
27505         * tests/test-tan.c: New file.
27506
27507         Tests for module 'sqrt'.
27508         * modules/sqrt-tests: New file.
27509         * tests/test-sqrt.c: New file.
27510
27511         Tests for module 'sinh'.
27512         * modules/sinh-tests: New file.
27513         * tests/test-sinh.c: New file.
27514
27515         Tests for module 'sin'.
27516         * modules/sin-tests: New file.
27517         * tests/test-sin.c: New file.
27518
27519         Tests for module 'rint'.
27520         * modules/rint-tests: New file.
27521         * tests/test-rint.c: New file.
27522
27523         Tests for module 'remainder'.
27524         * modules/remainder-tests: New file.
27525         * tests/test-remainder.c: New file.
27526
27527         Tests for module 'pow'.
27528         * modules/pow-tests: New file.
27529         * tests/test-pow.c: New file.
27530
27531         Tests for module 'nextafter'.
27532         * modules/nextafter-tests: New file.
27533         * tests/test-nextafter.c: New file.
27534
27535         Tests for module 'modf'.
27536         * modules/modf-tests: New file.
27537         * tests/test-modf.c: New file.
27538
27539         Tests for module 'logb'.
27540         * modules/logb-tests: New file.
27541         * tests/test-logb.c: New file.
27542
27543         Tests for module 'log1p'.
27544         * modules/log1p-tests: New file.
27545         * tests/test-log1p.c: New file.
27546
27547         Tests for module 'log10'.
27548         * modules/log10-tests: New file.
27549         * tests/test-log10.c: New file.
27550
27551         Tests for module 'log'.
27552         * modules/log-tests: New file.
27553         * tests/test-log.c: New file.
27554
27555         Tests for module 'lgamma'.
27556         * modules/lgamma-tests: New file.
27557         * tests/test-lgamma.c: New file.
27558
27559         Tests for module 'ldexp'.
27560         * modules/ldexp-tests: New file.
27561         * tests/test-ldexp.c: New file.
27562
27563         Tests for module 'jn'.
27564         * modules/jn-tests: New file.
27565         * tests/test-jn.c: New file.
27566
27567         Tests for module 'j1'.
27568         * modules/j1-tests: New file.
27569         * tests/test-j1.c: New file.
27570
27571         Tests for module 'j0'.
27572         * modules/j0-tests: New file.
27573         * tests/test-j0.c: New file.
27574
27575         Tests for module 'hypot'.
27576         * modules/hypot-tests: New file.
27577         * tests/test-hypot.c: New file.
27578
27579         Tests for module 'fmod'.
27580         * modules/fmod-tests: New file.
27581         * tests/test-fmod.c: New file.
27582
27583         Tests for module 'fabs'.
27584         * modules/fabs-tests: New file.
27585         * tests/test-fabs.c: New file.
27586
27587         Tests for module 'exp'.
27588         * modules/exp-tests: New file.
27589         * tests/test-exp.c: New file.
27590
27591         Tests for module 'erfc'.
27592         * modules/erfc-tests: New file.
27593         * tests/test-erfc.c: New file.
27594
27595         Tests for module 'erf'.
27596         * modules/erf-tests: New file.
27597         * tests/test-erf.c: New file.
27598
27599         Tests for module 'cosh'.
27600         * modules/cosh-tests: New file.
27601         * tests/test-cosh.c: New file.
27602
27603         Tests for module 'cos'.
27604         * modules/cos-tests: New file.
27605         * tests/test-cos.c: New file.
27606
27607         Tests for module 'copysign'.
27608         * modules/copysign-tests: New file.
27609         * tests/test-copysign.c: New file.
27610
27611         Tests for module 'cbrt'.
27612         * modules/cbrt-tests: New file.
27613         * tests/test-cbrt.c: New file.
27614
27615         Tests for module 'atan2'.
27616         * modules/atan2-tests: New file.
27617         * tests/test-atan2.c: New file.
27618
27619         Tests for module 'atan'.
27620         * modules/atan-tests: New file.
27621         * tests/test-atan.c: New file.
27622
27623         Tests for module 'asin'.
27624         * modules/asin-tests: New file.
27625         * tests/test-asin.c: New file.
27626
27627         Tests for module 'acos'.
27628         * modules/acos-tests: New file.
27629         * tests/test-acos.c: New file.
27630
27631 2010-01-24  Bruno Haible  <bruno@clisp.org>
27632
27633         Fix tests for common <math.h> functions.
27634         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27635         code snippet that references the function pointer, rather than merely
27636         calling the function. Substitute the FUNC_LIBM variable.
27637         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27638         * modules/acos (configure.ac): Likewise.
27639         * modules/asin (configure.ac): Likewise.
27640         * modules/atan (configure.ac): Likewise.
27641         * modules/atan2 (configure.ac): Likewise.
27642         * modules/cbrt (configure.ac): Likewise.
27643         * modules/copysign (configure.ac): Likewise.
27644         * modules/cos (configure.ac): Likewise.
27645         * modules/cosh (configure.ac): Likewise.
27646         * modules/erf (configure.ac): Likewise.
27647         * modules/erfc (configure.ac): Likewise.
27648         * modules/exp (configure.ac): Likewise.
27649         * modules/fabs (configure.ac): Likewise.
27650         * modules/fmod (configure.ac): Likewise.
27651         * modules/hypot (configure.ac): Likewise.
27652         * modules/j0 (configure.ac): Likewise.
27653         * modules/j1 (configure.ac): Likewise.
27654         * modules/jn (configure.ac): Likewise.
27655         * modules/ldexp (configure.ac): Likewise.
27656         * modules/lgamma (configure.ac): Likewise.
27657         * modules/log (configure.ac): Likewise.
27658         * modules/log10 (configure.ac): Likewise.
27659         * modules/log1p (configure.ac): Likewise.
27660         * modules/logb (configure.ac): Likewise.
27661         * modules/modf (configure.ac): Likewise.
27662         * modules/nextafter (configure.ac): Likewise.
27663         * modules/pow (configure.ac): Likewise.
27664         * modules/remainder (configure.ac): Likewise.
27665         * modules/rint (configure.ac): Likewise.
27666         * modules/sin (configure.ac): Likewise.
27667         * modules/sinh (configure.ac): Likewise.
27668         * modules/tan (configure.ac): Likewise.
27669         * modules/tanh (configure.ac): Likewise.
27670         * modules/y0 (configure.ac): Likewise.
27671         * modules/y1 (configure.ac): Likewise.
27672         * modules/yn (configure.ac): Likewise.
27673
27674 2010-01-24  Bruno Haible  <bruno@clisp.org>
27675
27676         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27677         * tests/test-acosl.c (x): New variable.
27678         (main): Store argument in x and fetch it from x.
27679         * tests/test-asinl.c (x): New variable.
27680         (main): Store argument in x and fetch it from x.
27681         * tests/test-atanl.c (x): New variable.
27682         (main): Store argument in x and fetch it from x.
27683         * tests/test-cosl.c (x): New variable.
27684         (main): Store argument in x and fetch it from x.
27685         * tests/test-expl.c (x): New variable.
27686         (main): Store argument in x and fetch it from x.
27687         * tests/test-logl.c (x): New variable.
27688         (main): Store argument in x and fetch it from x.
27689         * tests/test-sinl.c (x): New variable.
27690         (main): Store argument in x and fetch it from x.
27691         * tests/test-sqrtl.c (x): New variable.
27692         (main): Store argument in x and fetch it from x.
27693         * tests/test-tanl.c (x): New variable.
27694         (main): Store argument in x and fetch it from x.
27695
27696 2010-01-24  Bruno Haible  <bruno@clisp.org>
27697
27698         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27699         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27700         assignments to the initial TESTS_ENVIRONMENT.
27701         * doc/gnulib.texi (Unit test modules): Document it.
27702         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27703         TESTS_ENVIRONMENT.
27704         * modules/btowc-tests (Makefile.am): Likewise.
27705         * modules/c-stack-tests (Makefile.am): Likewise.
27706         * modules/c-strcase-tests (Makefile.am): Likewise.
27707         * modules/copy-file-tests (Makefile.am): Likewise.
27708         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27709         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27710         * modules/mbrtowc-tests (Makefile.am): Likewise.
27711         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27712         * modules/mbscasestr-tests (Makefile.am): Likewise.
27713         * modules/mbschr-tests (Makefile.am): Likewise.
27714         * modules/mbscspn-tests (Makefile.am): Likewise.
27715         * modules/mbsinit-tests (Makefile.am): Likewise.
27716         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27717         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27718         * modules/mbspbrk-tests (Makefile.am): Likewise.
27719         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27720         * modules/mbsrchr-tests (Makefile.am): Likewise.
27721         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27722         * modules/mbsspn-tests (Makefile.am): Likewise.
27723         * modules/mbsstr-tests (Makefile.am): Likewise.
27724         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27725         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27726         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27727         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27728         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27729         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27730         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27731         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27732         * modules/wcrtomb-tests (Makefile.am): Likewise.
27733         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27734         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27735         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27736         assignments from TESTS_ENVIRONMENT.
27737         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27738         augmentation.
27739         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27740         * modules/atexit-tests (Makefile.am): Likewise.
27741         * modules/binary-io-tests (Makefile.am): Likewise.
27742         * modules/closein-tests (Makefile.am): Likewise.
27743         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27744         * modules/exclude-tests (Makefile.am): Likewise.
27745         * modules/fflush-tests (Makefile.am): Likewise.
27746         * modules/fpending-tests (Makefile.am): Likewise.
27747         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27748         * modules/freadahead-tests (Makefile.am): Likewise.
27749         * modules/freadptr-tests (Makefile.am): Likewise.
27750         * modules/freadseek-tests (Makefile.am): Likewise.
27751         * modules/fseek-tests (Makefile.am): Likewise.
27752         * modules/fseeko-tests (Makefile.am): Likewise.
27753         * modules/ftell-tests (Makefile.am): Likewise.
27754         * modules/ftello-tests (Makefile.am): Likewise.
27755         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27756         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27757         * modules/lseek-tests (Makefile.am): Likewise.
27758         * modules/parse-duration-tests (Makefile.am): Likewise.
27759         * modules/perror-tests (Makefile.am): Likewise.
27760         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27761         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27762         * modules/pipe-tests (Makefile.am): Likewise.
27763         * modules/pread-tests (Makefile.am): Likewise.
27764         * modules/printf-posix-tests (Makefile.am): Likewise.
27765         * modules/select-tests (Makefile.am): Likewise.
27766         * modules/sigpipe-tests (Makefile.am): Likewise.
27767         * modules/tsearch-tests (Makefile.am): Likewise.
27768         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27769         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27770         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27771         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27772         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27773         * modules/version-etc-tests (Makefile.am): Likewise.
27774         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27775         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27776         * modules/xalloc-die-tests (Makefile.am): Likewise.
27777         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27778         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27779         * modules/xstrtol-tests (Makefile.am): Likewise.
27780         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27781         * modules/yesno-tests (Makefile.am): Likewise.
27782         Suggested by Jim Meyering.
27783
27784 2010-01-24  Bruno Haible  <bruno@clisp.org>
27785
27786         More documentation.
27787         * doc/gnulib.texi (Writing modules): New chapter.
27788         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27789         the new chapter.
27790
27791 2010-01-24  Jim Meyering  <meyering@redhat.com>
27792
27793         maint.mk: do not prepend "./" after filtering
27794         * top/maint.mk (_prepend_srcdir_prefix): New variable
27795         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27796         "./" when $(srcdir) is ".".
27797
27798         define STREQ(a,b) consistently, removing useless parentheses
27799         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27800         since the only risk is that "a" or "b" contains an unparenthesized
27801         comma, but if either did that, STREQ would have 3 or more arguments.
27802         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27803         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27804         * lib/hash-triple.c (STREQ): Likewise.
27805         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27806         * lib/getugroups.c (STREQ): Likewise.
27807
27808 2010-01-23  Jim Meyering  <meyering@redhat.com>
27809
27810         maint.mk: fix syntax-check in a non-srcdir build directory
27811         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27812         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27813
27814 2010-01-22  Jim Meyering  <meyering@redhat.com>
27815
27816         userspec: add unit tests
27817         * tests/test-userspec.c: New file.
27818         * modules/userspec-tests: Likewise.
27819
27820 2010-01-21  Jim Meyering  <meyering@redhat.com>
27821
27822         maint.mk: handle source file names containing "." robustly
27823         * top/maint.mk (_dot_escaped_srcdir): Define.
27824         (VC_LIST): Use it in LHS of sed substitution.
27825
27826 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27827
27828         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27829         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27830         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27831         from a non-srcdir build.
27832
27833 2010-01-20  Eric Blake  <ebb9@byu.net>
27834
27835         warn-on-use: use instead of link-warning
27836         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27837         * modules/unistd (Depends-on, Makefile.am): Likewise.
27838         * modules/arpa_inet (Depends-on): Replace link-warning with
27839         warn-on-use.
27840         (Makefile.am): Update rules accordingly.
27841         * modules/ctype (Depends-on, Makefile.am): Likewise.
27842         * modules/dirent (Depends-on, Makefile.am): Likewise.
27843         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27844         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27845         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27846         * modules/locale (Depends-on, Makefile.am): Likewise.
27847         * modules/math (Depends-on, Makefile.am): Likewise.
27848         * modules/search (Depends-on, Makefile.am): Likewise.
27849         * modules/signal (Depends-on, Makefile.am): Likewise.
27850         * modules/spawn (Depends-on, Makefile.am): Likewise.
27851         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27852         * modules/string (Depends-on, Makefile.am): Likewise.
27853         * modules/strings (Depends-on, Makefile.am): Likewise.
27854         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27855         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27856         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27857         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27858         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27859         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27860         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27861         * modules/wchar (Depends-on, Makefile.am): Likewise.
27862         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27863         should be poisoned.
27864         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27865         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27866         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27867         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27868         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27869         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27870         * m4/math_h.m4 (gl_MATH_H): Likewise.
27871         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27872         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27873         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27874         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27875         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27876         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27877         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27878         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27879         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27880         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27881         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27882         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27883         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27884         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27885         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27886         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27887         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27888         GL_LINK_WARNING.
27889         * lib/ctype.in.h: Likewise.
27890         * lib/dirent.in.h: Likewise.
27891         * lib/fcntl.in.h: Likewise.
27892         * lib/inttypes.in.h: Likewise.
27893         * lib/langinfo.in.h: Likewise.
27894         * lib/locale.in.h: Likewise.
27895         * lib/math.in.h: Likewise.
27896         * lib/search.in.h: Likewise.
27897         * lib/signal.in.h: Likewise.
27898         * lib/spawn.in.h: Likewise.
27899         * lib/stdio.in.h: Likewise.
27900         * lib/stdlib.in.h: Likewise.
27901         * lib/string.in.h: Likewise.
27902         * lib/strings.in.h: Likewise.
27903         * lib/sys_file.in.h: Likewise.
27904         * lib/sys_ioctl.in.h: Likewise.
27905         * lib/sys_select.in.h: Likewise.
27906         * lib/sys_socket.in.h: Likewise.
27907         * lib/sys_stat.in.h: Likewise.
27908         * lib/sys_times.in.h: Likewise.
27909         * lib/sys_utsname.in.h: Likewise.
27910         * lib/unistd.in.h: Likewise.
27911         * lib/wchar.in.h: Likewise.
27912
27913 2010-01-20  Bruno Haible  <bruno@clisp.org>
27914
27915         Avoid duplicate -lm.
27916         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27917         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27918         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27919         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27920         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27921         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27922         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27923         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27924         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27925         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27926         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27927         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27928         Reported by Paolo Bonzini.
27929
27930 2010-01-19  Bruno Haible  <bruno@clisp.org>
27931
27932         langinfo, nl_langinfo: Relicense under LGPLv2+.
27933         * modules/langinfo (License): Change to LGPLv2+.
27934         * modules/nl_langinfo (License): Likewise.
27935         Patch by David Lutterkort <lutter@redhat.com>.
27936
27937 2010-01-19  Bruno Haible  <bruno@clisp.org>
27938
27939         Avoid compilation error with cc on OSF/1 5.1.
27940         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27941         statement, not before.
27942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27943
27944 2010-01-18  Bruno Haible  <bruno@clisp.org>
27945
27946         Avoid a link error due to the __printf__ symbol.
27947         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27948         and 2.6.x.
27949         (__format__, __printf__): Remove definitions.
27950         * lib/argp-fmtstream.h: Likewise.
27951         * lib/argp.h: Likewise.
27952         * lib/error.h: Likewise.
27953         * lib/vasnprintf.h: Likewise.
27954         * lib/xprintf.h: Likewise.
27955         * lib/xvasprintf.h: Likewise.
27956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27957
27958 2010-01-18  Bruno Haible  <bruno@clisp.org>
27959
27960         Tests for module 'tanl'.
27961         * modules/tanl-tests: New file.
27962         * tests/test-tanl.c: New file.
27963
27964         Tests for module 'sqrtl'.
27965         * modules/sqrtl-tests: New file.
27966         * tests/test-sqrtl.c: New file.
27967
27968         Tests for module 'sinl'.
27969         * modules/sinl-tests: New file.
27970         * tests/test-sinl.c: New file.
27971
27972         Tests for module 'logl'.
27973         * modules/logl-tests: New file.
27974         * tests/test-logl.c: New file.
27975
27976         Tests for module 'expl'.
27977         * modules/expl-tests: New file.
27978         * tests/test-expl.c: New file.
27979
27980         Tests for module 'cosl'.
27981         * modules/cosl-tests: New file.
27982         * tests/test-cosl.c: New file.
27983
27984         Tests for module 'atanl'.
27985         * modules/atanl-tests: New file.
27986         * tests/test-atanl.c: New file.
27987
27988         Tests for module 'asinl'.
27989         * modules/asinl-tests: New file.
27990         * tests/test-asinl.c: New file.
27991
27992         Tests for module 'acosl'.
27993         * modules/acosl-tests: New file.
27994         * tests/test-acosl.c: New file.
27995
27996         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27997         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27998         tanl): Use the standard gnulib idiom.
27999         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28000         * lib/sinl.c: Likewise.
28001         * lib/tanl.c: Don't include trigl.c.
28002         (kernel_tanl): Make static.
28003         * lib/sincosl.c: Include trigl.h first.
28004         * lib/trigl.c: Likewise.
28005         * m4/acosl.m4: New file.
28006         * m4/asinl.m4: New file.
28007         * m4/atanl.m4: New file.
28008         * m4/cosl.m4: New file.
28009         * m4/expl.m4: New file.
28010         * m4/logl.m4: New file.
28011         * m4/sinl.m4: New file.
28012         * m4/sqrtl.m4: New file.
28013         * m4/tanl.m4: New file.
28014         * m4/mathl.m4: Remove file.
28015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28016         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28017         Don't initialize GNULIB_MATHL.
28018         * modules/acosl: New file.
28019         * modules/asinl: New file.
28020         * modules/atanl: New file.
28021         * modules/cosl: New file.
28022         * modules/expl: New file.
28023         * modules/logl: New file.
28024         * modules/sinl: New file.
28025         * modules/sqrtl: New file.
28026         * modules/tanl: New file.
28027         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28028         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28029         substitute GNULIB_MATHL.
28030         * modules/mathl: Rewritten.
28031         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28032         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28033         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28034         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28035         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28036         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28037         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28038         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28039         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28040
28041 2010-01-18  Bruno Haible  <bruno@clisp.org>
28042
28043         sqrt: Make gl_FUNC_SQRT requirable.
28044         * m4/sqrt.m4: New file.
28045         * modules/sqrt (Files): Add it.
28046         (configure.ac): Invoke gl_FUNC_SQRT.
28047
28048 2010-01-18  Bruno Haible  <bruno@clisp.org>
28049
28050         New modules for common <math.h> functions.
28051         * m4/mathfunc.m4: New file.
28052         * modules/acos: New file.
28053         * modules/asin: New file.
28054         * modules/atan: New file.
28055         * modules/atan2: New file.
28056         * modules/cbrt: New file.
28057         * modules/copysign: New file.
28058         * modules/cos: New file.
28059         * modules/cosh: New file.
28060         * modules/erf: New file.
28061         * modules/erfc: New file.
28062         * modules/exp: New file.
28063         * modules/fabs: New file.
28064         * modules/fmod: New file.
28065         * modules/hypot: New file.
28066         * modules/j0: New file.
28067         * modules/j1: New file.
28068         * modules/jn: New file.
28069         * modules/ldexp: New file.
28070         * modules/lgamma: New file.
28071         * modules/log: New file.
28072         * modules/log10: New file.
28073         * modules/log1p: New file.
28074         * modules/logb: New file.
28075         * modules/modf: New file.
28076         * modules/nextafter: New file.
28077         * modules/pow: New file.
28078         * modules/remainder: New file.
28079         * modules/rint: New file.
28080         * modules/sin: New file.
28081         * modules/sinh: New file.
28082         * modules/sqrt: New file.
28083         * modules/tan: New file.
28084         * modules/tanh: New file.
28085         * modules/y0: New file.
28086         * modules/y1: New file.
28087         * modules/yn: New file.
28088         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28089         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28090         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28091         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28092         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28093         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28094         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28095         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28096         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28097         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28098         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28099         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28100         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28101         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28102         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28103         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28104         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28105         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28106         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28107         * doc/posix-functions/log.texi: Mention the 'log' module.
28108         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28109         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28110         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28111         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28112         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28113         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28114         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28115         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28116         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28117         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28118         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28119         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28120         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28121         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28122         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28123         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28124
28125 2010-01-18  Jim Meyering  <meyering@redhat.com>
28126
28127         ignore-value: relax license to LGPLv2+
28128         * modules/ignore-value (License): Relax to LGPLv2+.
28129
28130         getdate: don't leak when TZ contains two or more '"'s
28131         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28132         double quote in TZ after the first one.
28133
28134         readtokens: do not leak internal token_lengths buffer
28135         * lib/readtokens.c (readtokens): Free the local, lengths,
28136         when the supplied "token_lengths" parameter is NULL.
28137
28138 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28139
28140         Fix a couple of missing LIBTHREAD link failures on AIX.
28141         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28142         $(LIBTHREAD).
28143         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28144
28145         Link test-poll against INET_PTON_LIB.
28146         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28147         for inet_pton on Solaris 10.
28148
28149 2010-01-17  Bruno Haible  <bruno@clisp.org>
28150
28151         unistdio/*-sprintf: Fix typo in module description.
28152         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28153         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28154         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28155         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28156         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28157         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28158         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28159         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28160
28161 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28162
28163         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28164         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28165         variables in shell case patterns, for AIX and HP-UX ksh.
28166
28167         Split large sed scripts, for HP-UX sed.
28168         * modules/stdio: Split sed scripts around 50 sed commands,
28169         to avoid HP-UX limit of 99 commands, in the near future.
28170         * modules/string: Likewise.
28171         * modules/unistd: Likewise.
28172
28173         gnulib-tool: avoid writing in the current directory.
28174         * gnulib-tool (func_emit_lib_Makefile_am)
28175         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28176         not in the current directory, so concurrent gnulib-tool
28177         instances do not interfere.
28178
28179 2010-01-16  Jim Meyering  <meyering@redhat.com>
28180
28181         doc: update users.txt
28182         * users.txt: Add grep.
28183         (diffutils, gzip): Update URLs.
28184
28185 2010-01-12  Bruno Haible  <bruno@clisp.org>
28186
28187         posix_spawn: Avoid test failure on Cygwin.
28188         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28189         characters.
28190         Reported by Simon Josefsson.
28191
28192 2010-01-12  Bruno Haible  <bruno@clisp.org>
28193
28194         * tests/test-cond.c (main): When skipping the test, show the reason.
28195
28196 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28197
28198         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28199
28200 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28201
28202         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28203         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28204
28205 2010-01-12  Eric Blake  <ebb9@byu.net>
28206
28207         build: guarantee AS_VAR_IF
28208         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28209         (gl_AS_VAR_IF): Move...
28210         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28211         Reported by Simon Josefsson.
28212
28213 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28214
28215         * lib/stdio.in.h: Fix typo.
28216
28217 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28218
28219         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28220         libgpg-error.
28221
28222 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28223
28224         * tests/test-xalloc-die.sh: Use $EXEEXT.
28225
28226 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28227             Bruno Haible  <bruno@clisp.org>
28228
28229         getlogin, getlogin_r: Avoid test failure.
28230         * tests/test-getlogin.c: Include <stdio.h>.
28231         (main): Skip the test when the function fails because stdin is not a
28232         tty.
28233         * tests/test-getlogin_r.c: Include <stdio.h>.
28234         (main): Skip the test when the function fails because stdin is not a
28235         tty.
28236
28237 2010-01-11  Eric Blake  <ebb9@byu.net>
28238
28239         tests: avoid more large file warnings
28240         * tests/test-fflush.c: Avoid warning about ftell use.
28241         * tests/test-fseek.c: Avoid warning about fseek use.
28242
28243 2010-01-10  Bruno Haible  <bruno@clisp.org>
28244
28245         nproc: Work better on Linux when /proc and /sys are not mounted.
28246         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28247         as lower bound when, on glibc/Linux systems,
28248         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28249         Suggested by Pádraig Brady <P@draigbrady.com>.
28250         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28251
28252         nproc: Refactor.
28253         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28254         extracted from num_processors.
28255         (num_processors): Call it.
28256
28257 2010-01-11  Jim Meyering  <meyering@redhat.com>
28258
28259         utimecmp: avoid new warning from upcoming gcc-4.5.0
28260         * lib/utimecmp.c (BILLION): Define using #define rather than an
28261         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28262
28263 2010-01-11  Eric Blake  <ebb9@byu.net>
28264
28265         math: add portability warnings for classification macros
28266         * modules/math (Depends-on): Add warn-on-use.
28267         (Makefile.am): Provide new substitutions.
28268         * m4/math_h.m4 (gl_MATH_H): Require inline.
28269         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28270         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28271         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28272         implement warnings.
28273
28274         unistd: warn on use of environ without module
28275         * modules/unistd (Depends-on): Add warn-on-use.
28276         (Makefile.am): Provide new substitutions.
28277         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28278         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28279
28280         stdio: warn on suspicious uses
28281         * modules/stdio (Depends-on): Add warn-on-use.
28282         (Makefile.am): Provide new substitutions.
28283         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28284         fseeko.
28285         * lib/stdio.in.h (gets): Always warn on use.
28286         (fseek, ftell): Adjust when warnings are issued, and honor
28287         _GL_NO_LARGE_FILES as a way to silence the warning.
28288         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28289         any warning about large file offsets.
28290         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28291         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28292         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28293         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28294         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28295         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28296         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28297         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28298
28299         warn-on-use: new module
28300         * modules/warn-on-use: New file.
28301         * build-aux/warn-on-use.h: Likewise.
28302         * m4/warn-on-use.m4: Likewise.
28303         * MODULES.html.sh (Support for building): Mention it.
28304
28305 2010-01-10  Bruno Haible  <bruno@clisp.org>
28306
28307         Tests for module 'unistr/u32-strdup'.
28308         * modules/unistr/u32-strdup-tests: New file.
28309         * tests/unistr/test-u32-strdup.c: New file.
28310
28311         Tests for module 'unistr/u16-strdup'.
28312         * modules/unistr/u16-strdup-tests: New file.
28313         * tests/unistr/test-u16-strdup.c: New file.
28314
28315         Tests for module 'unistr/u8-strdup'.
28316         * modules/unistr/u8-strdup-tests: New file.
28317         * tests/unistr/test-u8-strdup.c: New file.
28318         * tests/unistr/test-strdup.h: New file.
28319
28320         Tests for module 'unistr/u32-strncmp'.
28321         * modules/unistr/u32-strncmp-tests: New file.
28322         * tests/unistr/test-u32-strncmp.c: New file.
28323
28324         Tests for module 'unistr/u16-strncmp'.
28325         * modules/unistr/u16-strncmp-tests: New file.
28326         * tests/unistr/test-u16-strncmp.c: New file.
28327
28328         Tests for module 'unistr/u8-strncmp'.
28329         * modules/unistr/u8-strncmp-tests: New file.
28330         * tests/unistr/test-u8-strncmp.c: New file.
28331         * tests/unistr/test-strncmp.h: New file.
28332
28333         Tests for module 'unistr/u32-strcoll'.
28334         * modules/unistr/u32-strcoll-tests: New file.
28335         * tests/unistr/test-u32-strcoll.c: New file.
28336
28337         Tests for module 'unistr/u16-strcoll'.
28338         * modules/unistr/u16-strcoll-tests: New file.
28339         * tests/unistr/test-u16-strcoll.c: New file.
28340
28341         Tests for module 'unistr/u8-strcoll'.
28342         * modules/unistr/u8-strcoll-tests: New file.
28343         * tests/unistr/test-u8-strcoll.c: New file.
28344
28345         Tests for module 'unistr/u32-strcmp'.
28346         * modules/unistr/u32-strcmp-tests: New file.
28347         * tests/unistr/test-u32-strcmp.c: New file.
28348         * tests/unistr/test-u32-strcmp.h: New file.
28349
28350         Tests for module 'unistr/u16-strcmp'.
28351         * modules/unistr/u16-strcmp-tests: New file.
28352         * tests/unistr/test-u16-strcmp.c: New file.
28353         * tests/unistr/test-u16-strcmp.h: New file.
28354
28355         Tests for module 'unistr/u8-strcmp'.
28356         * modules/unistr/u8-strcmp-tests: New file.
28357         * tests/unistr/test-u8-strcmp.c: New file.
28358         * tests/unistr/test-u8-strcmp.h: New file.
28359         * tests/unistr/test-strcmp.h: New file.
28360
28361         Tests for module 'unistr/u32-strncat'.
28362         * modules/unistr/u32-strncat-tests: New file.
28363         * tests/unistr/test-u32-strncat.c: New file.
28364
28365         Tests for module 'unistr/u16-strncat'.
28366         * modules/unistr/u16-strncat-tests: New file.
28367         * tests/unistr/test-u16-strncat.c: New file.
28368
28369         Tests for module 'unistr/u8-strncat'.
28370         * modules/unistr/u8-strncat-tests: New file.
28371         * tests/unistr/test-u8-strncat.c: New file.
28372         * tests/unistr/test-strncat.h: New file.
28373
28374         Tests for module 'unistr/u32-strcat'.
28375         * modules/unistr/u32-strcat-tests: New file.
28376         * tests/unistr/test-u32-strcat.c: New file.
28377
28378         Tests for module 'unistr/u16-strcat'.
28379         * modules/unistr/u16-strcat-tests: New file.
28380         * tests/unistr/test-u16-strcat.c: New file.
28381
28382         Tests for module 'unistr/u8-strcat'.
28383         * modules/unistr/u8-strcat-tests: New file.
28384         * tests/unistr/test-u8-strcat.c: New file.
28385         * tests/unistr/test-strcat.h: New file.
28386
28387         Tests for module 'unistr/u32-stpncpy'.
28388         * modules/unistr/u32-stpncpy-tests: New file.
28389         * tests/unistr/test-u32-stpncpy.c: New file.
28390
28391         Tests for module 'unistr/u16-stpncpy'.
28392         * modules/unistr/u16-stpncpy-tests: New file.
28393         * tests/unistr/test-u16-stpncpy.c: New file.
28394
28395         Tests for module 'unistr/u8-stpncpy'.
28396         * modules/unistr/u8-stpncpy-tests: New file.
28397         * tests/unistr/test-u8-stpncpy.c: New file.
28398         * tests/unistr/test-stpncpy.h: New file.
28399
28400         Tests for module 'unistr/u32-strncpy'.
28401         * modules/unistr/u32-strncpy-tests: New file.
28402         * tests/unistr/test-u32-strncpy.c: New file.
28403
28404         Tests for module 'unistr/u16-strncpy'.
28405         * modules/unistr/u16-strncpy-tests: New file.
28406         * tests/unistr/test-u16-strncpy.c: New file.
28407
28408         Tests for module 'unistr/u8-strncpy'.
28409         * modules/unistr/u8-strncpy-tests: New file.
28410         * tests/unistr/test-u8-strncpy.c: New file.
28411         * tests/unistr/test-strncpy.h: New file.
28412
28413         Tests for module 'unistr/u32-stpcpy'.
28414         * modules/unistr/u32-stpcpy-tests: New file.
28415         * tests/unistr/test-u32-stpcpy.c: New file.
28416
28417         Tests for module 'unistr/u16-stpcpy'.
28418         * modules/unistr/u16-stpcpy-tests: New file.
28419         * tests/unistr/test-u16-stpcpy.c: New file.
28420
28421         Tests for module 'unistr/u8-stpcpy'.
28422         * modules/unistr/u8-stpcpy-tests: New file.
28423         * tests/unistr/test-u8-stpcpy.c: New file.
28424         * tests/unistr/test-stpcpy.h: New file.
28425
28426         Tests for module 'unistr/u32-strcpy'.
28427         * modules/unistr/u32-strcpy-tests: New file.
28428         * tests/unistr/test-u32-strcpy.c: New file.
28429
28430         Tests for module 'unistr/u16-strcpy'.
28431         * modules/unistr/u16-strcpy-tests: New file.
28432         * tests/unistr/test-u16-strcpy.c: New file.
28433
28434         Tests for module 'unistr/u8-strcpy'.
28435         * modules/unistr/u8-strcpy-tests: New file.
28436         * tests/unistr/test-u8-strcpy.c: New file.
28437         * tests/unistr/test-strcpy.h: New file.
28438
28439         Tests for module 'unistr/u32-strnlen'.
28440         * modules/unistr/u32-strnlen-tests: New file.
28441         * tests/unistr/test-u32-strnlen.c: New file.
28442
28443         Tests for module 'unistr/u16-strnlen'.
28444         * modules/unistr/u16-strnlen-tests: New file.
28445         * tests/unistr/test-u16-strnlen.c: New file.
28446
28447         Tests for module 'unistr/u8-strnlen'.
28448         * modules/unistr/u8-strnlen-tests: New file.
28449         * tests/unistr/test-u8-strnlen.c: New file.
28450         * tests/unistr/test-strnlen.h: New file.
28451
28452         Tests for module 'unistr/u32-strlen'.
28453         * modules/unistr/u32-strlen-tests: New file.
28454         * tests/unistr/test-u32-strlen.c: New file.
28455
28456         Tests for module 'unistr/u16-strlen'.
28457         * modules/unistr/u16-strlen-tests: New file.
28458         * tests/unistr/test-u16-strlen.c: New file.
28459
28460         Tests for module 'unistr/u8-strlen'.
28461         * modules/unistr/u8-strlen-tests: New file.
28462         * tests/unistr/test-u8-strlen.c: New file.
28463
28464         Tests for module 'unistr/u32-prev'.
28465         * modules/unistr/u32-prev-tests: New file.
28466         * tests/unistr/test-u32-prev.c: New file.
28467
28468         Tests for module 'unistr/u16-prev'.
28469         * modules/unistr/u16-prev-tests: New file.
28470         * tests/unistr/test-u16-prev.c: New file.
28471
28472         Tests for module 'unistr/u8-prev'.
28473         * modules/unistr/u8-prev-tests: New file.
28474         * tests/unistr/test-u8-prev.c: New file.
28475
28476         Tests for module 'unistr/u32-next'.
28477         * modules/unistr/u32-next-tests: New file.
28478         * tests/unistr/test-u32-next.c: New file.
28479
28480         Tests for module 'unistr/u16-next'.
28481         * modules/unistr/u16-next-tests: New file.
28482         * tests/unistr/test-u16-next.c: New file.
28483
28484         Tests for module 'unistr/u8-next'.
28485         * modules/unistr/u8-next-tests: New file.
28486         * tests/unistr/test-u8-next.c: New file.
28487
28488         Tests for module 'unistr/u32-strmbtouc'.
28489         * modules/unistr/u32-strmbtouc-tests: New file.
28490         * tests/unistr/test-u32-strmbtouc.c: New file.
28491
28492         Tests for module 'unistr/u16-strmbtouc'.
28493         * modules/unistr/u16-strmbtouc-tests: New file.
28494         * tests/unistr/test-u16-strmbtouc.c: New file.
28495
28496         Tests for module 'unistr/u8-strmbtouc'.
28497         * modules/unistr/u8-strmbtouc-tests: New file.
28498         * tests/unistr/test-u8-strmbtouc.c: New file.
28499
28500         Tests for module 'unistr/u32-strmblen'.
28501         * modules/unistr/u32-strmblen-tests: New file.
28502         * tests/unistr/test-u32-strmblen.c: New file.
28503
28504         Tests for module 'unistr/u16-strmblen'.
28505         * modules/unistr/u16-strmblen-tests: New file.
28506         * tests/unistr/test-u16-strmblen.c: New file.
28507
28508         Tests for module 'unistr/u8-strmblen'.
28509         * modules/unistr/u8-strmblen-tests: New file.
28510         * tests/unistr/test-u8-strmblen.c: New file.
28511
28512         Tests for module 'unistr/u32-cpy-alloc'.
28513         * modules/unistr/u32-cpy-alloc-tests: New file.
28514         * tests/unistr/test-u32-cpy-alloc.c: New file.
28515
28516         Tests for module 'unistr/u16-cpy-alloc'.
28517         * modules/unistr/u16-cpy-alloc-tests: New file.
28518         * tests/unistr/test-u16-cpy-alloc.c: New file.
28519
28520         Tests for module 'unistr/u8-cpy-alloc'.
28521         * modules/unistr/u8-cpy-alloc-tests: New file.
28522         * tests/unistr/test-u8-cpy-alloc.c: New file.
28523         * tests/unistr/test-cpy-alloc.h: New file.
28524
28525         Tests for module 'unistr/u32-mbsnlen'.
28526         * modules/unistr/u32-mbsnlen-tests: New file.
28527         * tests/unistr/test-u32-mbsnlen.c: New file.
28528
28529         Tests for module 'unistr/u16-mbsnlen'.
28530         * modules/unistr/u16-mbsnlen-tests: New file.
28531         * tests/unistr/test-u16-mbsnlen.c: New file.
28532
28533         Tests for module 'unistr/u8-mbsnlen'.
28534         * modules/unistr/u8-mbsnlen-tests: New file.
28535         * tests/unistr/test-u8-mbsnlen.c: New file.
28536
28537         Tests for module 'unistr/u32-chr'.
28538         * modules/unistr/u32-chr-tests: New file.
28539         * tests/unistr/test-u32-chr.c: New file.
28540
28541         Tests for module 'unistr/u16-chr'.
28542         * modules/unistr/u16-chr-tests: New file.
28543         * tests/unistr/test-u16-chr.c: New file.
28544
28545         Tests for module 'unistr/u8-chr'.
28546         * modules/unistr/u8-chr-tests: New file.
28547         * tests/unistr/test-u8-chr.c: New file.
28548         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28549
28550         Tests for module 'unistr/u32-cmp2'.
28551         * modules/unistr/u32-cmp2-tests: New file.
28552         * tests/unistr/test-u32-cmp2.c: New file.
28553
28554         Tests for module 'unistr/u16-cmp2'.
28555         * modules/unistr/u16-cmp2-tests: New file.
28556         * tests/unistr/test-u16-cmp2.c: New file.
28557
28558         Tests for module 'unistr/u8-cmp2'.
28559         * modules/unistr/u8-cmp2-tests: New file.
28560         * tests/unistr/test-u8-cmp2.c: New file.
28561         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28562
28563         Tests for module 'unistr/u32-cmp'.
28564         * modules/unistr/u32-cmp-tests: New file.
28565         * tests/unistr/test-u32-cmp.c: New file.
28566
28567         Tests for module 'unistr/u16-cmp'.
28568         * modules/unistr/u16-cmp-tests: New file.
28569         * tests/unistr/test-u16-cmp.c: New file.
28570
28571         Tests for module 'unistr/u8-cmp'.
28572         * modules/unistr/u8-cmp-tests: New file.
28573         * tests/unistr/test-u8-cmp.c: New file.
28574         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28575
28576         Tests for module 'unistr/u32-set'.
28577         * modules/unistr/u32-set-tests: New file.
28578         * tests/unistr/test-u32-set.c: New file.
28579
28580         Tests for module 'unistr/u16-set'.
28581         * modules/unistr/u16-set-tests: New file.
28582         * tests/unistr/test-u16-set.c: New file.
28583
28584         Tests for module 'unistr/u8-set'.
28585         * modules/unistr/u8-set-tests: New file.
28586         * tests/unistr/test-u8-set.c: New file.
28587         * tests/unistr/test-set.h: New file.
28588
28589         Tests for module 'unistr/u32-move'.
28590         * modules/unistr/u32-move-tests: New file.
28591         * tests/unistr/test-u32-move.c: New file.
28592
28593         Tests for module 'unistr/u16-move'.
28594         * modules/unistr/u16-move-tests: New file.
28595         * tests/unistr/test-u16-move.c: New file.
28596
28597         Tests for module 'unistr/u8-move'.
28598         * modules/unistr/u8-move-tests: New file.
28599         * tests/unistr/test-u8-move.c: New file.
28600         * tests/unistr/test-move.h: New file.
28601
28602         Tests for module 'unistr/u32-cpy'.
28603         * modules/unistr/u32-cpy-tests: New file.
28604         * tests/unistr/test-u32-cpy.c: New file.
28605
28606         Tests for module 'unistr/u16-cpy'.
28607         * modules/unistr/u16-cpy-tests: New file.
28608         * tests/unistr/test-u16-cpy.c: New file.
28609
28610         Tests for module 'unistr/u8-cpy'.
28611         * modules/unistr/u8-cpy-tests: New file.
28612         * tests/unistr/test-u8-cpy.c: New file.
28613         * tests/unistr/test-cpy.h: New file.
28614
28615 2010-01-09  Bruno Haible  <bruno@clisp.org>
28616
28617         Tests for module 'unistr/u32-uctomb'.
28618         * modules/unistr/u32-uctomb-tests: New file.
28619         * tests/unistr/test-u32-uctomb.c: New file.
28620
28621         Tests for module 'unistr/u16-uctomb'.
28622         * modules/unistr/u16-uctomb-tests: New file.
28623         * tests/unistr/test-u16-uctomb.c: New file.
28624
28625         Tests for module 'unistr/u8-uctomb'.
28626         * modules/unistr/u8-uctomb-tests: New file.
28627         * tests/unistr/test-u8-uctomb.c: New file.
28628
28629         Tests for module 'unistr/u32-mbtoucr'.
28630         * modules/unistr/u32-mbtoucr-tests: New file.
28631         * tests/unistr/test-u32-mbtoucr.c: New file.
28632
28633         Tests for module 'unistr/u16-mbtoucr'.
28634         * modules/unistr/u16-mbtoucr-tests: New file.
28635         * tests/unistr/test-u16-mbtoucr.c: New file.
28636
28637         Tests for module 'unistr/u8-mbtoucr'.
28638         * modules/unistr/u8-mbtoucr-tests: New file.
28639         * tests/unistr/test-u8-mbtoucr.c: New file.
28640
28641         Tests for module 'unistr/u32-mbtouc'.
28642         * modules/unistr/u32-mbtouc-tests: New file.
28643         * tests/unistr/test-u32-mbtouc.c: New file.
28644
28645         Tests for module 'unistr/u16-mbtouc'.
28646         * modules/unistr/u16-mbtouc-tests: New file.
28647         * tests/unistr/test-u16-mbtouc.c: New file.
28648
28649         Tests for module 'unistr/u8-mbtouc'.
28650         * modules/unistr/u8-mbtouc-tests: New file.
28651         * tests/unistr/test-u8-mbtouc.c: New file.
28652
28653         Tests for module 'unistr/u32-mbtouc-unsafe'.
28654         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28655         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28656         * tests/unistr/test-u32-mbtouc.h: New file.
28657
28658         Tests for module 'unistr/u16-mbtouc-unsafe'.
28659         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28660         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28661         * tests/unistr/test-u16-mbtouc.h: New file.
28662
28663         Tests for module 'unistr/u8-mbtouc-unsafe'.
28664         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28665         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28666         * tests/unistr/test-u8-mbtouc.h: New file.
28667
28668         Tests for module 'unistr/u32-mblen'.
28669         * modules/unistr/u32-mblen-tests: New file.
28670         * tests/unistr/test-u32-mblen.c: New file.
28671
28672         Tests for module 'unistr/u16-mblen'.
28673         * modules/unistr/u16-mblen-tests: New file.
28674         * tests/unistr/test-u16-mblen.c: New file.
28675
28676         Tests for module 'unistr/u8-mblen'.
28677         * modules/unistr/u8-mblen-tests: New file.
28678         * tests/unistr/test-u8-mblen.c: New file.
28679
28680         Tests for module 'unistr/u32-to-u16'.
28681         * modules/unistr/u32-to-u16-tests: New file.
28682         * tests/unistr/test-u32-to-u16.c: New file.
28683
28684         Tests for module 'unistr/u32-to-u8'.
28685         * modules/unistr/u32-to-u8-tests: New file.
28686         * tests/unistr/test-u32-to-u8.c: New file.
28687
28688         Tests for module 'unistr/u16-to-u32'.
28689         * modules/unistr/u16-to-u32-tests: New file.
28690         * tests/unistr/test-u16-to-u32.c: New file.
28691
28692         Tests for module 'unistr/u16-to-u8'.
28693         * modules/unistr/u16-to-u8-tests: New file.
28694         * tests/unistr/test-u16-to-u8.c: New file.
28695
28696         Tests for module 'unistr/u8-to-u32'.
28697         * modules/unistr/u8-to-u32-tests: New file.
28698         * tests/unistr/test-u8-to-u32.c: New file.
28699
28700         Tests for module 'unistr/u8-to-u16'.
28701         * modules/unistr/u8-to-u16-tests: New file.
28702         * tests/unistr/test-u8-to-u16.c: New file.
28703
28704         Tests for module 'unistr/u32-check'.
28705         * modules/unistr/u32-check-tests: New file.
28706         * tests/unistr/test-u32-check.c: New file.
28707
28708         Tests for module 'unistr/u16-check'.
28709         * modules/unistr/u16-check-tests: New file.
28710         * tests/unistr/test-u16-check.c: New file.
28711
28712         Tests for module 'unistr/u8-check'.
28713         * modules/unistr/u8-check-tests: New file.
28714         * tests/unistr/test-u8-check.c: New file.
28715
28716         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28717         (category_equals): New function.
28718         (main): Add more tests.
28719         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28720
28721         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28722
28723 2010-01-10  Bruno Haible  <bruno@clisp.org>
28724
28725         unistr/u*-strcoll: Try harder to distinguish different strings.
28726         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28727         compare s1 and s2 to see if they are different.
28728
28729 2010-01-10  Bruno Haible  <bruno@clisp.org>
28730
28731         unistr/u*-stpncpy: Fix the return value.
28732         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28733         description of the return value consistent with stpncpy in glibc.
28734         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28735         written non-NUL unit.
28736
28737 2010-01-10  Bruno Haible  <bruno@clisp.org>
28738
28739         unistr/u*-next: Add missing dependencies.
28740         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28741         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28742         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28743
28744 2010-01-10  Bruno Haible  <bruno@clisp.org>
28745
28746         unistr/u8-mbsnlen: Fix return value for incomplete character.
28747         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28748         u8_mblen.
28749         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28750         Remove unistr/u8-mblen.
28751         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28752         u16_mblen.
28753         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28754         Remove unistr/u16-mblen.
28755
28756 2010-01-10  Bruno Haible  <bruno@clisp.org>
28757
28758         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28759         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28760         Reported by Brian Gough <bjg@gnu.org> and
28761         Chris Clayton <chris2553@googlemail.com> via
28762         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28763
28764 2010-01-09  Bruno Haible  <bruno@clisp.org>
28765
28766         unistr/u16-to-u32: Reject invalid input.
28767         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28768         u16_mbtouc.
28769         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28770         Remove unistr/u16-mbtouc.
28771
28772         unistr/u16-to-u8: Reject invalid input.
28773         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28774         u16_mbtouc.
28775         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28776         Remove unistr/u16-mbtouc.
28777
28778         unistr/u8-to-u32: Reject invalid input.
28779         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28780         u8_mbtouc.
28781         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28782         Remove unistr/u8-mbtouc.
28783
28784         unistr/u8-to-u16: Reject invalid input.
28785         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28786         u8_mbtouc.
28787         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28788         Remove unistr/u8-mbtouc.
28789
28790 2010-01-09  Bruno Haible  <bruno@clisp.org>
28791
28792         Tests for module 'getlogin'.
28793         * modules/getlogin-tests: New file.
28794         * tests/test-getlogin.c: New file.
28795
28796         New module 'getlogin'.
28797         * lib/unistd.in.h (getlogin): New declaration.
28798         * lib/getlogin.c: New file.
28799         * m4/getlogin.m4: New file.
28800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28801         HAVE_GETLOGIN.
28802         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28803         HAVE_GETLOGIN.
28804         * modules/getlogin: New file.
28805         * doc/posix-functions/getlogin.texi: Mention the new module.
28806         Reported by John W. Eaton <jwe@gnu.org>.
28807
28808 2010-01-09  Bruno Haible  <bruno@clisp.org>
28809
28810         getlogin_r: Support for native Windows.
28811         * lib/getlogin_r.c: Include <windows.h>
28812         (getlogin_r): Implement for native Windows.
28813         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28814         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28815         via John W. Eaton <jwe@gnu.org>.
28816
28817 2010-01-09  Bruno Haible  <bruno@clisp.org>
28818
28819         getlogin_r: Small fixes.
28820         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28821         succeeds.
28822         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28823         before testing whether getlogin_r is declared. No need to set
28824         HAVE_DECL_GETLOGIN_R to 1.
28825         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28826
28827 2010-01-09  Bruno Haible  <bruno@clisp.org>
28828
28829         * lib/unistd.in.h (getlogin_r): Add comment.
28830
28831 2010-01-09  Bruno Haible  <bruno@clisp.org>
28832
28833         Tests for module 'getlogin_r'.
28834         * modules/getlogin_r-tests: New file.
28835         * tests/test-getlogin_r.c: New file.
28836
28837 2010-01-09  Jim Meyering  <meyering@redhat.com>
28838
28839         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28840         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28841         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28842
28843 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28844
28845         * lib/dup2.c (rpl_dup2): Improve comment.
28846
28847 2010-01-08  Eric Blake  <ebb9@byu.net>
28848
28849         maint.mk: allow packages to add makefile @@ exceptions
28850         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28851         (sc_makefile_check): Rename...
28852         (sc_makefile_at_at_check): ...to this, and use hook.
28853
28854         dup2: work around mingw bug
28855         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28856         Reported by Simon Josefsson.
28857
28858 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28859
28860         glob: Fix C++ compilation.
28861         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28862         C++.
28863
28864 2010-01-07  Bruno Haible  <bruno@clisp.org>
28865
28866         Fix indentation of wctype.in.h, broken since 2007-01-06.
28867         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28868
28869 2010-01-07  Bruno Haible  <bruno@clisp.org>
28870
28871         mbslen: Avoid collision with system function.
28872         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28873         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28874         * m4/mbslen.m4: New file.
28875         * modules/mbslen (Files): Add it.
28876         (configure.ac): Invoke gl_MBSLEN.
28877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28878         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28879         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28880         via Ian Beckwith <ianb@erislabs.net>.
28881
28882 2010-01-07  Bruno Haible  <bruno@clisp.org>
28883
28884         dirent: Document the last fix.
28885         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28886
28887 2010-01-07  Bruno Haible  <bruno@clisp.org>
28888
28889         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28890         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28891         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28892         va_list are defined.
28893         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28894         Reported by Eric Blake.
28895
28896 2010-01-07  Bruno Haible  <bruno@clisp.org>
28897
28898         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28899         * modules/xlist (Depends-on): Add 'list',
28900         * modules/xoset (Depends-on): Add 'oset'.
28901         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28902
28903 2010-01-07  Bruno Haible  <bruno@clisp.org>
28904
28905         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28906         * doc/posix-functions/strncasecmp.texi: Likewise.
28907
28908 2010-01-07  Bruno Haible  <bruno@clisp.org>
28909
28910         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28911
28912 2010-01-07  John W. Eaton  <jwe@octave.org>
28913
28914         wctype: allow C++ use
28915         * lib/wctype.in.h: Add extern "C" block for C++.
28916
28917 2010-01-06  Eric Blake  <ebb9@byu.net>
28918
28919         maint.mk: detect incorrect GFDL usage
28920         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28921
28922 2010-01-06  Jim Meyering  <meyering@redhat.com>
28923         and Eric Blake  <ebb9@byu.net>
28924
28925         maint.mk: ignore multi-line copyright in NEWS
28926         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28927
28928 2010-01-06  Eric Blake  <ebb9@byu.net>
28929
28930         select: add missing dependency
28931         * modules/select-tests (Depends-on): Move sockets dependency...
28932         * modules/select (Depends-on): ...here.
28933         Reported by Ian Beckwith.
28934
28935         doc: regenerate INSTALL
28936         * doc/INSTALL: Reflect recent autoconf update.
28937         * doc/INSTALL.ISO: Likewise.
28938         * doc/INSTALL.UTF-8: Likewise.
28939
28940         pread: fix compilation on glibc
28941         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28942         Reported by Ralf Wildenhues.
28943
28944         dirent: fix test failure
28945         * lib/dirent.in.h (includes): Guarantee ino_t.
28946         Reported by Ralf Wildenhues.
28947
28948 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28949
28950         linkat, renameat: avoid bad free
28951         * lib/at-func2.c (at_func2): Fix typo.
28952         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28953
28954 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28955
28956         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28957         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28958         to avoid failure of symlink test later.
28959
28960 2010-01-06  Eric Blake  <ebb9@byu.net>
28961
28962         stdio, unistd: guarantee ssize_t
28963         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28964         2008 are exposed when needed.
28965         * lib/stdio.in.h (includes): Likewise.
28966         Reported by Ralf Wildenhues.
28967
28968 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28969
28970         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28971         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28972         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28973
28974 2010-01-06  Jim Meyering  <meyering@redhat.com>
28975
28976         readtokens: this module *does* require xalloc.h
28977         It uses only functions that were omitted by the old syntax-check rule.
28978         * lib/readtokens.c: Include "xalloc.h" once again.
28979         * modules/readtokens (Depends-on): Add xalloc.
28980         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28981
28982 2010-01-05  Eric Blake  <ebb9@byu.net>
28983
28984         maint: support 'make announcement' from a VPATH build
28985         * top/maint.mk (announcement): Look for correct NEWS file.
28986
28987 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28988
28989         utimens (fdutimens): ignore a negative FD, per contract
28990         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28991         when we have a valid file descriptor.  Otherwise, using a brand
28992         new glibc (with just-patched futimens that now fails with EBADF)
28993         would cause this function to fail with ENOSYS.
28994         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28995         See also http://bugzilla.redhat.com/552320.
28996
28997 2010-01-05  Eric Blake  <ebb9@byu.net>
28998
28999         strcase: document what it provides
29000         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29001         gnulib module.
29002         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29003         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29004
29005 2010-01-05  Jim Meyering  <meyering@redhat.com>
29006
29007         maint: remove useless inclusions of "xalloc.h"
29008         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29009         * lib/readtokens.c: Likewise.
29010         * lib/same.c: Likewise.
29011         * modules/getloadavg (Depends-on): Remove xalloc.
29012         * modules/readtokens: Likewise.
29013         * modules/same: Likewise.
29014
29015         maint.mk: include 4 more function names in alloca.h-checking regexp
29016         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29017         regexp.  Before, we would give a false-positive (saying alloca.h
29018         is included unnecessarily) when the only uses involved omitted symbols.
29019
29020         xalloc.h: use consistent formatting
29021         * lib/xalloc.h: Move declarations to start in the first column.
29022
29023 2010-01-05  Eric Blake  <ebb9@byu.net>
29024
29025         mkdir: avoid xalloc
29026         * lib/mkdir.c (includes): Drop unused header.
29027         Reported by John W. Eaton.
29028
29029 2010-01-04  Jim Meyering  <meyering@redhat.com>
29030
29031         nl_langinfo: avoid configure-time syntax error
29032         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29033         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29034         the empty string.  Don't let that provoke a shell syntax error.
29035
29036         regcomp, regexec, fnmatch: avoid array bounds read error
29037         * lib/regcomp.c (build_equiv_class): From glibc:
29038         Use only the low 24 bits of a findidx return value as an index
29039         into the weights array.  Patch by Ulrich Drepper:
29040         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29041         * lib/regexec.c (check_node_accept_bytes): Likewise.
29042         * lib/fnmatch_loop.c (FCT): Likewise.
29043
29044         regcomp: skip collseq lookup when there are no rules
29045         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29046         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29047
29048         regcomp: recognize ill-formed { } expressions
29049         * lib/regcomp.c (parse_dup_op): From glibc:
29050         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29051
29052         regcomp: fix typo in comment
29053         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29054         s/satisfy/satisfies/.
29055
29056         regcomp: sync from glibc: remove dead store
29057         * lib/regcomp.c (duplicate_node_closure): Remove useless
29058         search_duplicated_node call and dead store.
29059
29060         regcomp: sync from glibc; always use nl_langinfo
29061         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29062         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29063         * modules/regex (Depends-on): Add nl_langinfo.
29064
29065 2010-01-04  Eric Blake  <ebb9@byu.net>
29066
29067         fdopendir: fix configure test
29068         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29069
29070 2010-01-01  Bruno Haible  <bruno@clisp.org>
29071
29072         wchar: Remove unused configure check.
29073         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29074
29075 2010-01-01  Eric Blake  <ebb9@byu.net>
29076
29077         headers: make check of system header explicit
29078         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29079         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29080         ourselves.
29081         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29082         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29083         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29084         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29085         internals.
29086         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29087         missing.
29088         Suggested by Bruno Haible.
29089
29090 2010-01-01  Jim Meyering  <meyering@redhat.com>
29091
29092         ChangeLog: tweak to eliminate unnecessary copyright line
29093         * ChangeLog: Remove a copyright line that was mistakenly updated
29094         by today's update-copyright run.  Reported by Eric Blake.
29095
29096         test-update-copyright: don't let envvar setting cause test failure
29097         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29098
29099 2010-01-01  Bruno Haible  <bruno@clisp.org>
29100
29101         localename: Avoid gcc warning.
29102         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29103         function if it is not used.
29104
29105 2010-01-01  Jim Meyering  <meyering@redhat.com>
29106
29107         update nearly all FSF copyright year lists to include 2010
29108         Use the same procedure as for 2009, outlined in
29109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29110
29111         version-etc: set COPYRIGHT_YEAR to 2010
29112         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29113
29114 2009-12-31  Eric Blake  <ebb9@byu.net>
29115
29116         doc: correct availability of cygwin 1.5.x getopt
29117         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29118         variables.
29119         * doc/posix-functions/opterr.texi (opterr): Likewise.
29120         * doc/posix-functions/optind.texi (optind): Likewise.
29121         * doc/posix-functions/optopt.texi (optopt): Likewise.
29122         * doc/posix-functions/tzname.texi (tzname): Likewise.
29123
29124         openat: update maintainer
29125         * modules/openat (Maintainer): Add myself.
29126
29127         utimens: avoid shadowing warning
29128         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29129         buffers into one, to avoid shadowing, as well as avoiding a
29130         redundant stat.
29131         Reported by Jim Meyering.
29132
29133         test-dup2: avoid compiler warning
29134         * tests/test-dup2.c (is_inheritable): Only define if used.
29135
29136 2010-01-01  Bruno Haible  <bruno@clisp.org>
29137
29138         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29139         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29140         defined, use wctomb instead of wcrtomb.
29141
29142 2010-01-01  Bruno Haible  <bruno@clisp.org>
29143
29144         iconv: Reject native Solaris iconv.
29145         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29146         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29147
29148 2009-12-31  Bruno Haible  <bruno@clisp.org>
29149
29150         * tests/test-signal.c (main): Remove test of 'SIG'.
29151
29152 2009-12-31  Bruno Haible  <bruno@clisp.org>
29153
29154         spawn: Fix incomplete fix.
29155         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29156         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29157         warnings for GNULIB_POSIXCHECK again.
29158         Reported by Eric Blake.
29159
29160 2009-12-31  Bruno Haible  <bruno@clisp.org>
29161
29162         Avoid namespace pollution on glibc systems.
29163         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29164         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29165         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29166         glibc systems.
29167
29168 2009-12-31  Bruno Haible  <bruno@clisp.org>
29169
29170         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29171         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29172         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29173         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29174         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29175         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29176         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29177
29178 2009-12-31  Bruno Haible  <bruno@clisp.org>
29179
29180         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29181         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29182         afterwards.
29183
29184 2009-12-31  Bruno Haible  <bruno@clisp.org>
29185
29186         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29187         SYS_UTSNAME_H.
29188
29189 2009-12-31  Bruno Haible  <bruno@clisp.org>
29190
29191         spawn: Fix misapplied patch.
29192         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29193         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29194         warnings for GNULIB_POSIXCHECK.
29195
29196 2009-12-31  Bruno Haible  <bruno@clisp.org>
29197
29198         times: Update after sys_times changed.
29199         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29200         * modules/times (Files): Add it.
29201         (configure.ac): Invoke gl_FUNC_TIMES.
29202
29203 2009-12-31  Bruno Haible  <bruno@clisp.org>
29204
29205         Use AC_C_INLINE where necessary.
29206         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29207         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29208         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29209         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29210         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29211         * m4/mbiter.m4 (gl_MBITER): Likewise.
29212         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29213         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29214         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29215         * modules/u64 (configure.ac): Likewise.
29216
29217 2009-12-31  Bruno Haible  <bruno@clisp.org>
29218
29219         Use AC_C_INLINE instead of module 'inline' where possible.
29220         * modules/inline (Description): Clarify purpose.
29221         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29222         * modules/count-one-bits (Depends-on): Remove inline.
29223         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29224         * modules/openat (Depends-on): Remove inline.
29225         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29226         instead of depending on module 'inline'.
29227         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29228         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29229         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29230         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29231         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29232         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29233         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29234         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29235         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29236         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29237         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29238         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29239         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29240         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29241         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29242         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29243         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29244         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29245         Likewise.
29246         * modules/unictype/property-ascii-hex-digit (Depends-on,
29247         configure.ac): Likewise.
29248         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29249         configure.ac): Likewise.
29250         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29251         configure.ac): Likewise.
29252         * modules/unictype/property-bidi-block-separator (Depends-on,
29253         configure.ac): Likewise.
29254         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29255         configure.ac): Likewise.
29256         * modules/unictype/property-bidi-common-separator (Depends-on,
29257         configure.ac): Likewise.
29258         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29259         Likewise.
29260         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29261         configure.ac): Likewise.
29262         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29263         configure.ac): Likewise.
29264         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29265         configure.ac): Likewise.
29266         * modules/unictype/property-bidi-european-digit (Depends-on,
29267         configure.ac): Likewise.
29268         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29269         configure.ac): Likewise.
29270         * modules/unictype/property-bidi-left-to-right (Depends-on,
29271         configure.ac): Likewise.
29272         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29273         configure.ac): Likewise.
29274         * modules/unictype/property-bidi-other-neutral (Depends-on,
29275         configure.ac): Likewise.
29276         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29277         Likewise.
29278         * modules/unictype/property-bidi-segment-separator (Depends-on,
29279         configure.ac): Likewise.
29280         * modules/unictype/property-bidi-whitespace (Depends-on,
29281         configure.ac): Likewise.
29282         * modules/unictype/property-combining (Depends-on, configure.ac):
29283         Likewise.
29284         * modules/unictype/property-composite (Depends-on, configure.ac):
29285         Likewise.
29286         * modules/unictype/property-currency-symbol (Depends-on,
29287         configure.ac): Likewise.
29288         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29289         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29290         Likewise.
29291         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29292         configure.ac): Likewise.
29293         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29294         Likewise.
29295         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29296         Likewise.
29297         * modules/unictype/property-extender (Depends-on, configure.ac):
29298         Likewise.
29299         * modules/unictype/property-format-control (Depends-on, configure.ac):
29300         Likewise.
29301         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29302         Likewise.
29303         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29304         Likewise.
29305         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29306         Likewise.
29307         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29308         Likewise.
29309         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29310         Likewise.
29311         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29312         Likewise.
29313         * modules/unictype/property-id-start (Depends-on, configure.ac):
29314         Likewise.
29315         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29316         Likewise.
29317         * modules/unictype/property-ids-binary-operator (Depends-on,
29318         configure.ac): Likewise.
29319         * modules/unictype/property-ids-trinary-operator (Depends-on,
29320         configure.ac): Likewise.
29321         * modules/unictype/property-ignorable-control (Depends-on,
29322         configure.ac): Likewise.
29323         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29324         Likewise.
29325         * modules/unictype/property-join-control (Depends-on, configure.ac):
29326         Likewise.
29327         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29328         Likewise.
29329         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29330         Likewise.
29331         * modules/unictype/property-logical-order-exception (Depends-on,
29332         configure.ac): Likewise.
29333         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29334         Likewise.
29335         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29336         * modules/unictype/property-non-break (Depends-on, configure.ac):
29337         Likewise.
29338         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29339         Likewise.
29340         * modules/unictype/property-numeric (Depends-on, configure.ac):
29341         Likewise.
29342         * modules/unictype/property-other-alphabetic (Depends-on,
29343         configure.ac): Likewise.
29344         * modules/unictype/property-other-default-ignorable-code-point
29345         (Depends-on, configure.ac): Likewise.
29346         * modules/unictype/property-other-grapheme-extend (Depends-on,
29347         configure.ac): Likewise.
29348         * modules/unictype/property-other-id-continue (Depends-on,
29349         configure.ac): Likewise.
29350         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29351         Likewise.
29352         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29353         Likewise.
29354         * modules/unictype/property-other-math (Depends-on, configure.ac):
29355         Likewise.
29356         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29357         Likewise.
29358         * modules/unictype/property-paired-punctuation (Depends-on,
29359         configure.ac): Likewise.
29360         * modules/unictype/property-paragraph-separator (Depends-on,
29361         configure.ac): Likewise.
29362         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29363         Likewise.
29364         * modules/unictype/property-pattern-white-space (Depends-on,
29365         configure.ac): Likewise.
29366         * modules/unictype/property-private-use (Depends-on, configure.ac):
29367         Likewise.
29368         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29369         Likewise.
29370         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29371         Likewise.
29372         * modules/unictype/property-radical (Depends-on, configure.ac):
29373         Likewise.
29374         * modules/unictype/property-sentence-terminal (Depends-on,
29375         configure.ac): Likewise.
29376         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29377         Likewise.
29378         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29379         * modules/unictype/property-terminal-punctuation (Depends-on,
29380         configure.ac): Likewise.
29381         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29382         Likewise.
29383         * modules/unictype/property-unassigned-code-value (Depends-on,
29384         configure.ac): Likewise.
29385         * modules/unictype/property-unified-ideograph (Depends-on,
29386         configure.ac): Likewise.
29387         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29388         Likewise.
29389         * modules/unictype/property-variation-selector (Depends-on,
29390         configure.ac): Likewise.
29391         * modules/unictype/property-white-space (Depends-on, configure.ac):
29392         Likewise.
29393         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29394         Likewise.
29395         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29396         Likewise.
29397         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29398         Likewise.
29399         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29400         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29401         Likewise.
29402
29403 2009-12-31  Bruno Haible  <bruno@clisp.org>
29404
29405         Remove unnecessary AC_C_INLINE invocation.
29406         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29407         since 2009-08-21.
29408
29409 2009-12-31  Jim Meyering  <meyering@redhat.com>
29410
29411         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29412         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29413         With this change, we can all remove the gpg_key_ID = ... definition
29414         from our respective cfg.mk files.
29415
29416         maint.mk: create announcement template in ~/, not in /tmp
29417         * top/maint.mk (emit_upload_commands): Adjust.
29418         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29419         Remove temporary file, .ci-msg.
29420
29421 2009-12-31  Eric Blake  <ebb9@byu.net>
29422
29423         link-warning: always build headers with link warnings
29424         * modules/arpa_inet (Makefile.am): Always build replacement
29425         header.
29426         * modules/ctype (Makefile.am): Likewise.
29427         * modules/dirent (Makefile.am): Likewise.
29428         * modules/inttypes (Makefile.am): Likewise.
29429         * modules/langinfo (Makefile.am): Likewise.
29430         * modules/locale (Makefile.am): Likewise.
29431         * modules/spawn (Makefile.am): Likewise.
29432         * modules/sys_file (Makefile.am): Likewise.
29433         * modules/sys_ioctl (Makefile.am): Likewise.
29434         * modules/sys_select (Makefile.am): Likewise.
29435         * modules/sys_socket (Makefile.am): Likewise.
29436         * modules/sys_times (Makefile.am): Likewise.
29437         * modules/sys_utsname (Makefile.am): Likewise.
29438         * modules/sys_wait (Makefile.am): Likewise.
29439         * modules/wchar (Makefile.am): Likewise.
29440         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29441         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29442         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29443         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29444         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29445         Likewise.
29446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29447         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29448         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29449         Likewise.
29450         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29451         Likewise.
29452         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29453         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29454         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29455         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29456         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29457         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29458         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29459         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29460         (gl_WCHAR_H_DEFAULTS): Likewise.
29461
29462 2009-12-31  Eric Blake  <ebb9@byu.net>
29463
29464         signal, spawn: use link warnings
29465         * lib/signal.in.h (sigset_t): Make unconditional.
29466         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29467         (sigpending, sigprocmask, sigaction): Add link warnings.
29468         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29469         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29470         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29471         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29472         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29473         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29474         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29475         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29476         (posix_spawn_file_actions_destroy)
29477         (posix_spawn_file_actions_addopen)
29478         (posix_spawn_file_actions_addclose)
29479         (posix_spawn_file_actions_adddup2): Likewise.
29480         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29481         * tests/test-signal.c (main): Enhance test.
29482
29483         spawn: improve wrapper support
29484         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29485         (gl_SPAWN_H_DEFAULTS): New defaults.
29486         * modules/spawn (Makefile.am): Substitute them.
29487         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29488         Only declare if missing or broken.
29489
29490         sys_times, sys_utsname: use include_next
29491         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29492         header.
29493         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29495         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29496         * modules/sys_times (Depends-on): Add include_next.
29497         (Makefile.am): Substitute additional values.
29498         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29499         * lib/sys_times.in.h (includes): Include native header, if
29500         available.
29501         * lib/sys_utsname.in.h (includes): Likewise.
29502         * tests/test-sys_times.c (main): Enhance test.
29503
29504         fdutimensat: revert prior patch
29505         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29506         utimens.h.
29507         Reported by Bruno Haible.
29508
29509 2009-12-30  Eric Blake  <ebb9@byu.net>
29510
29511         sys_wait: drop link-warning dependency
29512         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29513         link-warning efforts.
29514         * lib/sys_wait.in.h: Likewise.
29515
29516         fdutimensat: remove bogus dependency
29517         * modules/fdutimensat (Depends-on): Drop inline.
29518
29519         unistd: fix typo
29520         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29521
29522 2009-12-30  Bruno Haible  <bruno@clisp.org>
29523
29524         Fix compilation error with Solaris cc.
29525         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29526         * lib/unicase/u16-is-invariant.c: Likewise.
29527         * lib/unicase/u32-is-invariant.c: Likewise.
29528         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29529
29530 2009-12-30  Bruno Haible  <bruno@clisp.org>
29531
29532         Fix test crash.
29533         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29534         locales.
29535         Reported by Simon Josefsson <simon@josefsson.org>.
29536
29537 2009-12-30  Bruno Haible  <bruno@clisp.org>
29538
29539         Fix compilation error on most platforms.
29540         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29541         Reported by Simon Josefsson <simon@josefsson.org>
29542         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29543
29544 2009-12-30  Eric Blake  <ebb9@byu.net>
29545
29546         futimens, utimensat: work around ntfs-3g bug
29547         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29548         a ctime bug is present, and expand workaround to cover ntfs-3g.
29549         * lib/utimens.c (fdutimens, lutimens): Likewise.
29550         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29551         (validate_timespec): Adjust return value.
29552         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29553         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29554         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29555
29556 2009-12-29  Eric Blake  <ebb9@byu.net>
29557
29558         link-warning: make usage consistent
29559         * modules/ctype (Depends-on): Add link-warning.
29560         (Makefile.am): Update rules accordingly.
29561         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29562         * modules/locale (Depends-on, Makefile.am): Likewise.
29563         * modules/sys_file (Makefile.am): Likewise.
29564         * modules/getopt-posix (Makefile.am): Delete unused link warning
29565         efforts.
29566         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29567         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29568         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29569         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29570
29571         stdio: remove unused variables
29572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29573         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29574         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29575
29576         tests: test more substitute headers
29577         * modules/ctype-tests: New file.
29578         * modules/dirent-tests: Likewise.
29579         * modules/spawn-tests: Likewise.
29580         * modules/sys_file-tests: Likewise.
29581         * modules/sys_ioctl-tests: Likewise.
29582         * modules/sys_wait-tests: Likewise.
29583         * tests/test-ctype.c: Likewise.
29584         * tests/test-dirent.c: Likewise.
29585         * tests/test-spawn.c: Likewise.
29586         * tests/test-sys_file.c: Likewise.
29587         * tests/test-sys_ioctl.c: Likewise.
29588         * tests/test-sys_wait.c: Likewise.
29589         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29590         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29591         whether or not flock is in use.
29592
29593         tests: remove License section from module
29594         * modules/arpa_inet-tests: Remove unneeded section.
29595         * modules/byteswap-tests: Likewise.
29596         * modules/ceilf-tests: Likewise.
29597         * modules/ceill-tests: Likewise.
29598         * modules/crypto/des-tests: Likewise.
29599         * modules/crypto/gc-arcfour-tests: Likewise.
29600         * modules/crypto/gc-arctwo-tests: Likewise.
29601         * modules/crypto/gc-des-tests: Likewise.
29602         * modules/crypto/gc-hmac-md5-tests: Likewise.
29603         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29604         * modules/crypto/gc-md2-tests: Likewise.
29605         * modules/crypto/gc-md4-tests: Likewise.
29606         * modules/crypto/gc-md5-tests: Likewise.
29607         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29608         * modules/crypto/gc-rijndael-tests: Likewise.
29609         * modules/crypto/gc-sha1-tests: Likewise.
29610         * modules/crypto/gc-tests: Likewise.
29611         * modules/crypto/md2-tests: Likewise.
29612         * modules/crypto/md4-tests: Likewise.
29613         * modules/fcntl-h-tests: Likewise.
29614         * modules/floorf-tests: Likewise.
29615         * modules/floorl-tests: Likewise.
29616         * modules/frexp-nolibm-tests: Likewise.
29617         * modules/frexp-tests: Likewise.
29618         * modules/frexpl-nolibm-tests: Likewise.
29619         * modules/frexpl-tests: Likewise.
29620         * modules/getaddrinfo-tests: Likewise.
29621         * modules/inttypes-tests: Likewise.
29622         * modules/isfinite-tests: Likewise.
29623         * modules/isinf-tests: Likewise.
29624         * modules/ldexpl-tests: Likewise.
29625         * modules/locale-tests: Likewise.
29626         * modules/math-tests: Likewise.
29627         * modules/netdb-tests: Likewise.
29628         * modules/netinet_in-tests: Likewise.
29629         * modules/printf-frexp-tests: Likewise.
29630         * modules/printf-frexpl-tests: Likewise.
29631         * modules/priv-set-tests: Likewise.
29632         * modules/random_r-tests: Likewise.
29633         * modules/round-tests: Likewise.
29634         * modules/roundf-tests: Likewise.
29635         * modules/roundl-tests: Likewise.
29636         * modules/search-tests: Likewise.
29637         * modules/select-tests: Likewise.
29638         * modules/signal-tests: Likewise.
29639         * modules/stdbool-tests: Likewise.
29640         * modules/stddef-tests: Likewise.
29641         * modules/stdint-tests: Likewise.
29642         * modules/stdio-tests: Likewise.
29643         * modules/stdlib-tests: Likewise.
29644         * modules/string-tests: Likewise.
29645         * modules/strings-tests: Likewise.
29646         * modules/sys_select-tests: Likewise.
29647         * modules/sys_socket-tests: Likewise.
29648         * modules/sys_stat-tests: Likewise.
29649         * modules/sys_time-tests: Likewise.
29650         * modules/sys_utsname-tests: Likewise.
29651         * modules/sysexits-tests: Likewise.
29652         * modules/time-tests: Likewise.
29653         * modules/trunc-tests: Likewise.
29654         * modules/truncf-tests: Likewise.
29655         * modules/truncl-tests: Likewise.
29656         * modules/tsearch-tests: Likewise.
29657         * modules/unistd-tests: Likewise.
29658         * modules/wchar-tests: Likewise.
29659         * modules/wctype-tests: Likewise.
29660
29661         tests: fix license on several tests
29662         * tests/test-des.c: Update to GPLv3+.
29663         * tests/test-flock.c: Likewise.
29664         * tests/test-fsync.c: Likewise.
29665         * tests/test-futimens.h: Likewise.
29666         * tests/test-gc-arcfour.c: Likewise.
29667         * tests/test-gc-arctwo.c: Likewise.
29668         * tests/test-gc-des.c: Likewise.
29669         * tests/test-gc-hmac-md5.c: Likewise.
29670         * tests/test-gc-hmac-sha1.c: Likewise.
29671         * tests/test-gc-md2.c: Likewise.
29672         * tests/test-gc-md4.c: Likewise.
29673         * tests/test-gc-md5.c: Likewise.
29674         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29675         * tests/test-gc-rijndael.c: Likewise.
29676         * tests/test-gc-sha1.c: Likewise.
29677         * tests/test-gc.c: Likewise.
29678         * tests/test-getcwd.c: Likewise.
29679         * tests/test-link.c: Likewise.
29680         * tests/test-link.h: Likewise.
29681         * tests/test-lutimens.h: Likewise.
29682         * tests/test-md2.c: Likewise.
29683         * tests/test-md4.c: Likewise.
29684         * tests/test-mkdir.h: Likewise.
29685         * tests/test-rename.c: Likewise.
29686         * tests/test-rename.h: Likewise.
29687         * tests/test-safe-alloc.c: Likewise.
29688         * tests/test-utimens-common.h: Likewise.
29689         * tests/test-utimens.h: Likewise.
29690
29691         maint: sync license texts
29692         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29693         * doc/gpl-3.0.texi: Revert copyright year update.
29694         * doc/lgpl-3.0.texi: Likewise.
29695
29696 2009-12-29  Jim Meyering  <meyering@redhat.com>
29697
29698         update nearly all FSF copyright year lists to include 2009
29699         The files named by the following are exempted:
29700             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29701               test -f "$dst" && { echo "$dst"; continue; }
29702               test -d "$dst" || continue
29703               echo "$dst"/$(basename "$src")
29704             done > exempt
29705             git ls-files tests/unictype >> exempt
29706         In the remaining files, convert to all-interval notation if
29707         - there is already at least one year interval like 2000-2003
29708         - the file is maintained by me
29709         - the file is in lib/uni*/, where that style already prevails
29710         Otherwise, use update-copyright's default.
29711
29712 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29713         and Eric Blake  <ebb9@byu.net>
29714
29715         tests: don't require debug system() to pass
29716         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29717         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29718         * tests/test-unlink.h (test_unlink_func): Likewise.
29719         * tests/test-fstatat.c (main): ...into callers.
29720         * tests/test-lstat.c (main): Likewise.
29721         * tests/test-rmdir.c (main): Likewise.
29722         * tests/test-unlink.c (main): Likewise.
29723         * tests/test-unlinkat.c (main): Likewise.
29724         * tests/test-areadlink-with-size.c (main): Don't require a
29725         debug-only system call to pass, aiding cross-testing to mingw.
29726         * tests/test-areadlink.c (main): Likewise.
29727         * tests/test-areadlinkat-with-size.c (main): Likewise.
29728         * tests/test-areadlinkat.c (main): Likewise.
29729         * tests/test-canonicalize-lgpl.c (main): Likewise.
29730         * tests/test-canonicalize.c (main): Likewise.
29731         * tests/test-chown.c (main): Likewise.
29732         * tests/test-fchownat.c (main): Likewise.
29733         * tests/test-lchown.c (main): Likewise.
29734         * tests/test-fdutimensat.c (main): Likewise.
29735         * tests/test-futimens.c (main): Likewise.
29736         * tests/test-link.c (main): Likewise.
29737         * tests/test-linkat.c (main): Likewise.
29738         * tests/test-mkdir.c (main): Likewise.
29739         * tests/test-mkdirat.c (main): Likewise.
29740         * tests/test-mkfifo.c (main): Likewise.
29741         * tests/test-mkfifoat.c (main): Likewise.
29742         * tests/test-mknod.c (main): Likewise.
29743         * tests/test-readlink.c (main): Likewise.
29744         * tests/test-remove.c (main): Likewise.
29745         * tests/test-rename.c (main): Likewise.
29746         * tests/test-renameat.c (main): Likewise.
29747         * tests/test-symlink.c (main): Likewise.
29748         * tests/test-symlinkat.c (main): Likewise.
29749         * tests/test-utimens.c (main): Likewise.
29750         * tests/test-utimensat.c (main): Likewise.
29751
29752 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29753
29754         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29755         on $(UNUSED_PARAMETER_H) to avoid build failure.
29756
29757 2009-12-28  Jim Meyering  <meyering@redhat.com>
29758
29759         update-copyright: you may specify a max. line length other than 72
29760         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29761
29762         maint: use consistent FSF copyright line syntax
29763         * lib/posixtm.c: Add missing comma in FSF copyright line.
29764         * lib/posixtm.h: Likewise.
29765         * lib/getugroups.c: Add missing ", Inc.".
29766
29767         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29768         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29769         FSF copyright line.  Remove trailing blanks.
29770
29771 2009-12-28  Eric Blake  <ebb9@byu.net>
29772
29773         test-dup2: reduce dependencies
29774         * modules/cloexec (Configure.ac): Set witness.
29775         * modules/dup2-tests (Depends-on): Drop cloexec.
29776         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29777         not present.
29778         Suggested by Bruno Haible.
29779
29780 2009-12-26  Bruno Haible  <bruno@clisp.org>
29781
29782         Remove an unneeded dependency.
29783         * modules/fseterr (Depends-on): Remove dup2.
29784
29785 2009-12-26  Eric Blake  <ebb9@byu.net>
29786
29787         tests: use macros.h in more places
29788         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29789         (ASSERT_STREAM): Provide default of stderr.
29790         * tests/test-dirent-safer.c: Include macros.h, using alternate
29791         stream for assertions.
29792         * tests/test-dup-safer.c: Likewise.
29793         * tests/test-freopen-safer.c: Likewise.
29794         * tests/test-getopt.c: Likewise.
29795         * tests/test-openat-safer.c: Likewise.
29796         * tests/test-pipe.c: Likewise.
29797         * tests/test-popen-safer.c: Likewise.
29798         * modules/dirent-safer-tests (Files): Include macros.h.
29799         * modules/unistd-safer-tests (Files): Likewise.
29800         * modules/freopen-safer-tests (Files): Likewise.
29801         * modules/getopt-posix-tests (Files): Likewise.
29802         * modules/openat-safer-tests (Files): Likewise.
29803         * modules/pipe-tests (Files): Likewise.
29804
29805 2009-12-26  Bruno Haible  <bruno@clisp.org>
29806
29807         javacomp: Portability fix.
29808         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29809         that it also works on Solaris.
29810
29811 2009-12-26  Bruno Haible  <bruno@clisp.org>
29812
29813         localename: Fix storage allocation of gl_locale_name_thread's result.
29814         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29815         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29816         all platforms that have 'uselocale'.
29817         (gl_locale_name_thread_unsafe): New function, extracted from
29818         gl_locale_name_thread.
29819         (gl_locale_name_thread): Call struniq on all platforms that have
29820         'uselocale'.
29821         * tests/test-localename.c (test_locale_name_thread): Check that the
29822         resulting strings are permanently allocated.
29823         * modules/localename-tests (Depends-on): Add strdup.
29824
29825 2009-12-26  Bruno Haible  <bruno@clisp.org>
29826
29827         * tests/test-localename.c (categories): Fill in the strings.
29828
29829 2009-12-26  Jim Meyering  <meyering@redhat.com>
29830
29831         isdir: complete the removal of m4/isdir.m4
29832         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29833
29834         isdir: clean up, since at least grep still uses it
29835         * lib/isdir.c: Include "isdir.h".
29836         (S_ISDIR): Remove now-unneeded definition.
29837         * modules/isdir (Files): Add lib/isdir.h.
29838         * lib/isdir.h: New file, with declaration.
29839         * m4/isdir.m4: Remove file -- unneeded.
29840
29841 2009-12-25  Bruno Haible  <bruno@clisp.org>
29842
29843         selinux-h: Make generated .h files standalone.
29844         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29845         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29846         * lib/se-selinux.in.h: Likewise.
29847         * modules/selinux-h (Depends-on): Add unused-parameter.
29848         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29849         selinux/selinux.h and selinux/context.h.
29850         Suggested by Eric Blake.
29851
29852 2009-12-25  Bruno Haible  <bruno@clisp.org>
29853
29854         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29855         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29856         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29857         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29858         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29859
29860 2009-12-24  Bruno Haible  <bruno@clisp.org>
29861
29862         openat: Fix warning.
29863         * lib/openat-proc.c: Include <unistd.h>.
29864
29865 2009-12-24  Bruno Haible  <bruno@clisp.org>
29866
29867         New module 'unused-parameter'.
29868         * build-aux/unused-parameter.h: New file, extracted from earlier
29869         gnulib-common.m4.
29870         * modules/unused-parameter: New file.
29871         * lib/unistr.h: Include unused-parameter.h.
29872         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29873         _GL_UNUSED.
29874         * modules/unistr/base (Depends-on): Add unused-parameter.
29875
29876 2009-12-24  Bruno Haible  <bruno@clisp.org>
29877
29878         Add missing dependencies to 'extensions' module.
29879         * m4/extensions.m4: Add comment.
29880         * modules/accept4 (Depends-on): Add extensions.
29881         * modules/dup3 (Depends-on): Likewise.
29882         * modules/fcntl (Depends-on): Likewise.
29883         * modules/futimens (Depends-on): Likewise.
29884         * modules/mknod (Depends-on): Likewise.
29885         * modules/pipe2 (Depends-on): Likewise.
29886         * modules/stat-time (Depends-on): Likewise.
29887         * modules/strcasestr-simple (Depends-on): Likewise.
29888         * modules/strsignal (Depends-on): Likewise.
29889         * modules/utimensat (Depends-on): Likewise.
29890         * modules/localcharset (Depends-on): Likewise. Needed because of
29891         gl_FCNTL_O_FLAGS.
29892         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29893         AC_TYPE_MBSTATE_T.
29894         * modules/wcsnrtombs (Depends-on): Likewise.
29895         * modules/wcsrtombs (Depends-on): Likewise.
29896
29897 2009-12-24  Bruno Haible  <bruno@clisp.org>
29898
29899         binary-io: Avoid gcc warning due to SET_BINARY.
29900         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29901         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29902
29903 2009-12-24  Bruno Haible  <bruno@clisp.org>
29904
29905         Avoid future namespace pollution on glibc systems.
29906         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29907         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29908         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29909         glibc systems.
29910
29911 2009-12-24  Bruno Haible  <bruno@clisp.org>
29912
29913         Refactor common macros used in tests.
29914         * tests/macros.h: New file.
29915         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29916         and/or <stdlib.h>, if appropriate.
29917         (ASSERT, SIZEOF): Remove macros.
29918         * tests/test-areadlink-with-size.c: Likewise.
29919         * tests/test-areadlinkat.c: Likewise.
29920         * tests/test-areadlinkat-with-size.c: Likewise.
29921         * tests/test-argmatch.c: Likewise.
29922         * tests/test-argv-iter.c: Likewise.
29923         * tests/test-array-mergesort.c: Likewise.
29924         * tests/test-array_list.c: Likewise.
29925         * tests/test-array_oset.c: Likewise.
29926         * tests/test-avltree_list.c: Likewise.
29927         * tests/test-avltree_oset.c: Likewise.
29928         * tests/test-avltreehash_list.c: Likewise.
29929         * tests/test-base64.c: Likewise.
29930         * tests/test-binary-io.c: Likewise.
29931         * tests/test-bitrotate.c: Likewise.
29932         * tests/test-btowc.c: Likewise.
29933         * tests/test-byteswap.c: Likewise.
29934         * tests/test-c-ctype.c: Likewise.
29935         * tests/test-c-stack.c: Likewise.
29936         * tests/test-c-strcasecmp.c: Likewise.
29937         * tests/test-c-strcasestr.c: Likewise.
29938         * tests/test-c-strncasecmp.c: Likewise.
29939         * tests/test-c-strstr.c: Likewise.
29940         * tests/test-canonicalize-lgpl.c: Likewise.
29941         * tests/test-canonicalize.c: Likewise.
29942         * tests/test-carray_list.c: Likewise.
29943         * tests/test-ceilf1.c: Likewise.
29944         * tests/test-ceilf2.c: Likewise.
29945         * tests/test-ceill.c: Likewise.
29946         * tests/test-chown.c: Likewise.
29947         * tests/test-cloexec.c: Likewise.
29948         * tests/test-copy-acl.c: Likewise.
29949         * tests/test-copy-file.c: Likewise.
29950         * tests/test-count-one-bits.c: Likewise.
29951         * tests/test-dprintf-posix.c: Likewise.
29952         * tests/test-dup2.c: Likewise.
29953         * tests/test-dup3.c: Likewise.
29954         * tests/test-duplocale.c: Likewise.
29955         * tests/test-fbufmode.c: Likewise.
29956         * tests/test-fchdir.c: Likewise.
29957         * tests/test-fchownat.c: Likewise.
29958         * tests/test-fcntl-safer.c: Likewise.
29959         * tests/test-fcntl.c: Likewise.
29960         * tests/test-fdopendir.c: Likewise.
29961         * tests/test-fdutimensat.c: Likewise.
29962         * tests/test-fflush2.c: Likewise.
29963         * tests/test-file-has-acl.c: Likewise.
29964         * tests/test-filevercmp.c: Likewise.
29965         * tests/test-flock.c: Likewise.
29966         * tests/test-floorf1.c: Likewise.
29967         * tests/test-floorf2.c: Likewise.
29968         * tests/test-floorl.c: Likewise.
29969         * tests/test-fnmatch.c: Likewise.
29970         * tests/test-fopen.h: Likewise.
29971         * tests/test-fpending.c: Likewise.
29972         * tests/test-fprintf-posix.c: Likewise.
29973         * tests/test-fpurge.c: Likewise.
29974         * tests/test-freadable.c: Likewise.
29975         * tests/test-freadahead.c: Likewise.
29976         * tests/test-freading.c: Likewise.
29977         * tests/test-freadptr.c: Likewise.
29978         * tests/test-freadptr2.c: Likewise.
29979         * tests/test-freadseek.c: Likewise.
29980         * tests/test-freopen.c: Likewise.
29981         * tests/test-frexp.c: Likewise.
29982         * tests/test-frexpl.c: Likewise.
29983         * tests/test-fseek.c: Likewise.
29984         * tests/test-fseeko.c: Likewise.
29985         * tests/test-fstatat.c: Likewise.
29986         * tests/test-fstrcmp.c: Likewise.
29987         * tests/test-fsync.c: Likewise.
29988         * tests/test-ftell.c: Likewise.
29989         * tests/test-ftello.c: Likewise.
29990         * tests/test-func.c: Likewise.
29991         * tests/test-futimens.c: Likewise.
29992         * tests/test-fwritable.c: Likewise.
29993         * tests/test-fwriting.c: Likewise.
29994         * tests/test-getcwd.c: Likewise.
29995         * tests/test-getdate.c: Likewise.
29996         * tests/test-getdelim.c: Likewise.
29997         * tests/test-getdtablesize.c: Likewise.
29998         * tests/test-getgroups.c: Likewise.
29999         * tests/test-getline.c: Likewise.
30000         * tests/test-getndelim2.c: Likewise.
30001         * tests/test-glob.c: Likewise.
30002         * tests/test-hash.c: Likewise.
30003         * tests/test-i-ring.c: Likewise.
30004         * tests/test-iconv-utf.c: Likewise.
30005         * tests/test-iconv.c: Likewise.
30006         * tests/test-idpriv-drop.c: Likewise.
30007         * tests/test-idpriv-droptemp.c: Likewise.
30008         * tests/test-inet_ntop.c: Likewise.
30009         * tests/test-inet_pton.c: Likewise.
30010         * tests/test-isblank.c: Likewise.
30011         * tests/test-isfinite.c: Likewise.
30012         * tests/test-isinf.c: Likewise.
30013         * tests/test-isnan.c: Likewise.
30014         * tests/test-isnand.h: Likewise.
30015         * tests/test-isnanf.h: Likewise.
30016         * tests/test-isnanl.h: Likewise.
30017         * tests/test-lchown.c: Likewise.
30018         * tests/test-ldexpl.c: Likewise.
30019         * tests/test-link.c: Likewise.
30020         * tests/test-linkat.c: Likewise.
30021         * tests/test-linked_list.c: Likewise.
30022         * tests/test-linkedhash_list.c: Likewise.
30023         * tests/test-localename.c: Likewise.
30024         * tests/test-lseek.c: Likewise.
30025         * tests/test-lstat.c: Likewise.
30026         * tests/test-mbmemcasecmp.c: Likewise.
30027         * tests/test-mbmemcasecoll.c: Likewise.
30028         * tests/test-mbrtowc.c: Likewise.
30029         * tests/test-mbscasecmp.c: Likewise.
30030         * tests/test-mbscasestr1.c: Likewise.
30031         * tests/test-mbscasestr2.c: Likewise.
30032         * tests/test-mbscasestr3.c: Likewise.
30033         * tests/test-mbscasestr4.c: Likewise.
30034         * tests/test-mbschr.c: Likewise.
30035         * tests/test-mbscspn.c: Likewise.
30036         * tests/test-mbsinit.c: Likewise.
30037         * tests/test-mbsncasecmp.c: Likewise.
30038         * tests/test-mbsnrtowcs.c: Likewise.
30039         * tests/test-mbspbrk.c: Likewise.
30040         * tests/test-mbspcasecmp.c: Likewise.
30041         * tests/test-mbsrchr.c: Likewise.
30042         * tests/test-mbsrtowcs.c: Likewise.
30043         * tests/test-mbsspn.c: Likewise.
30044         * tests/test-mbsstr1.c: Likewise.
30045         * tests/test-mbsstr2.c: Likewise.
30046         * tests/test-mbsstr3.c: Likewise.
30047         * tests/test-memchr.c: Likewise.
30048         * tests/test-memchr2.c: Likewise.
30049         * tests/test-memcmp.c: Likewise.
30050         * tests/test-memmem.c: Likewise.
30051         * tests/test-memrchr.c: Likewise.
30052         * tests/test-mkdir.c: Likewise.
30053         * tests/test-mkdirat.c: Likewise.
30054         * tests/test-mkfifo.c: Likewise.
30055         * tests/test-mkfifoat.c: Likewise.
30056         * tests/test-mknod.c: Likewise.
30057         * tests/test-nanosleep.c: Likewise.
30058         * tests/test-nl_langinfo.c: Likewise.
30059         * tests/test-obstack-printf.c: Likewise.
30060         * tests/test-open.c: Likewise.
30061         * tests/test-openat.c: Likewise.
30062         * tests/test-pipe-filter-gi1.c: Likewise.
30063         * tests/test-pipe-filter-gi2-main.c: Likewise.
30064         * tests/test-pipe-filter-ii1.c: Likewise.
30065         * tests/test-pipe-filter-ii2-main.c: Likewise.
30066         * tests/test-pipe2.c: Likewise.
30067         * tests/test-popen.h: Likewise.
30068         * tests/test-posixtm.c: Likewise.
30069         * tests/test-pread.c: Likewise.
30070         * tests/test-printf-frexp.c: Likewise.
30071         * tests/test-printf-frexpl.c: Likewise.
30072         * tests/test-printf-posix.c: Likewise.
30073         * tests/test-priv-set.c: Likewise.
30074         * tests/test-quotearg.c: Likewise.
30075         * tests/test-random_r.c: Likewise.
30076         * tests/test-rawmemchr.c: Likewise.
30077         * tests/test-rbtree_list.c: Likewise.
30078         * tests/test-rbtree_oset.c: Likewise.
30079         * tests/test-rbtreehash_list.c: Likewise.
30080         * tests/test-readlink.c: Likewise.
30081         * tests/test-remove.c: Likewise.
30082         * tests/test-rename.c: Likewise.
30083         * tests/test-renameat.c: Likewise.
30084         * tests/test-rmdir.c: Likewise.
30085         * tests/test-round1.c: Likewise.
30086         * tests/test-roundf1.c: Likewise.
30087         * tests/test-roundl.c: Likewise.
30088         * tests/test-safe-alloc.c: Likewise.
30089         * tests/test-sameacls.c: Likewise.
30090         * tests/test-set-mode-acl.c: Likewise.
30091         * tests/test-setenv.c: Likewise.
30092         * tests/test-sigaction.c: Likewise.
30093         * tests/test-signbit.c: Likewise.
30094         * tests/test-sleep.c: Likewise.
30095         * tests/test-snprintf-posix.c: Likewise.
30096         * tests/test-snprintf.c: Likewise.
30097         * tests/test-sprintf-posix.c: Likewise.
30098         * tests/test-stat-time.c: Likewise.
30099         * tests/test-stat.c: Likewise.
30100         * tests/test-strcasestr.c: Likewise.
30101         * tests/test-strchrnul.c: Likewise.
30102         * tests/test-strerror.c: Likewise.
30103         * tests/test-striconv.c: Likewise.
30104         * tests/test-striconveh.c: Likewise.
30105         * tests/test-striconveha.c: Likewise.
30106         * tests/test-strsignal.c: Likewise.
30107         * tests/test-strstr.c: Likewise.
30108         * tests/test-strtod.c: Likewise.
30109         * tests/test-strverscmp.c: Likewise.
30110         * tests/test-symlink.c: Likewise.
30111         * tests/test-symlinkat.c: Likewise.
30112         * tests/test-trunc1.c: Likewise.
30113         * tests/test-trunc2.c: Likewise.
30114         * tests/test-truncf1.c: Likewise.
30115         * tests/test-truncf2.c: Likewise.
30116         * tests/test-truncl.c: Likewise.
30117         * tests/test-uname.c: Likewise.
30118         * tests/test-unlink.c: Likewise.
30119         * tests/test-unlinkat.c: Likewise.
30120         * tests/test-unsetenv.c: Likewise.
30121         * tests/test-usleep.c: Likewise.
30122         * tests/test-utimens.c: Likewise.
30123         * tests/test-utimensat.c: Likewise.
30124         * tests/test-vasnprintf-posix.c: Likewise.
30125         * tests/test-vasnprintf-posix2.c: Likewise.
30126         * tests/test-vasnprintf.c: Likewise.
30127         * tests/test-vasprintf-posix.c: Likewise.
30128         * tests/test-vasprintf.c: Likewise.
30129         * tests/test-vdprintf-posix.c: Likewise.
30130         * tests/test-vfprintf-posix.c: Likewise.
30131         * tests/test-vprintf-posix.c: Likewise.
30132         * tests/test-vsnprintf-posix.c: Likewise.
30133         * tests/test-vsnprintf.c: Likewise.
30134         * tests/test-vsprintf-posix.c: Likewise.
30135         * tests/test-wcrtomb.c: Likewise.
30136         * tests/test-wcsnrtombs.c: Likewise.
30137         * tests/test-wcsrtombs.c: Likewise.
30138         * tests/test-wctype.c: Likewise.
30139         * tests/test-wcwidth.c: Likewise.
30140         * tests/test-xfprintf-posix.c: Likewise.
30141         * tests/test-xmemdup0.c: Likewise.
30142         * tests/test-xprintf-posix.c: Likewise.
30143         * tests/test-xvasprintf.c: Likewise.
30144         * tests/unicase/test-locale-language.c: Likewise.
30145         * tests/unicase/test-mapping-part1.h: Likewise.
30146         * tests/unicase/test-predicate-part1.h: Likewise.
30147         * tests/unicase/test-u8-casecmp.c: Likewise.
30148         * tests/unicase/test-u8-casecoll.c: Likewise.
30149         * tests/unicase/test-u8-casefold.c: Likewise.
30150         * tests/unicase/test-u8-is-cased.c: Likewise.
30151         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30152         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30153         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30154         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30155         * tests/unicase/test-u8-tolower.c: Likewise.
30156         * tests/unicase/test-u8-totitle.c: Likewise.
30157         * tests/unicase/test-u8-toupper.c: Likewise.
30158         * tests/unicase/test-u16-casecmp.c: Likewise.
30159         * tests/unicase/test-u16-casecoll.c: Likewise.
30160         * tests/unicase/test-u16-casefold.c: Likewise.
30161         * tests/unicase/test-u16-is-cased.c: Likewise.
30162         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30163         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30164         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30165         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30166         * tests/unicase/test-u16-tolower.c: Likewise.
30167         * tests/unicase/test-u16-totitle.c: Likewise.
30168         * tests/unicase/test-u16-toupper.c: Likewise.
30169         * tests/unicase/test-u32-casecmp.c: Likewise.
30170         * tests/unicase/test-u32-casecoll.c: Likewise.
30171         * tests/unicase/test-u32-casefold.c: Likewise.
30172         * tests/unicase/test-u32-is-cased.c: Likewise.
30173         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30174         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30175         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30176         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30177         * tests/unicase/test-u32-tolower.c: Likewise.
30178         * tests/unicase/test-u32-totitle.c: Likewise.
30179         * tests/unicase/test-u32-toupper.c: Likewise.
30180         * tests/unicase/test-ulc-casecmp.c: Likewise.
30181         * tests/unicase/test-ulc-casecoll.c: Likewise.
30182         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30183         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30184         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30185         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30186         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30187         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30188         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30189         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30190         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30191         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30192         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30193         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30194         * tests/unictype/test-bidi_byname.c: Likewise.
30195         * tests/unictype/test-bidi_name.c: Likewise.
30196         * tests/unictype/test-bidi_of.c: Likewise.
30197         * tests/unictype/test-bidi_test.c: Likewise.
30198         * tests/unictype/test-block_list.c: Likewise.
30199         * tests/unictype/test-block_of.c: Likewise.
30200         * tests/unictype/test-block_test.c: Likewise.
30201         * tests/unictype/test-categ_and.c: Likewise.
30202         * tests/unictype/test-categ_and_not.c: Likewise.
30203         * tests/unictype/test-categ_byname.c: Likewise.
30204         * tests/unictype/test-categ_name.c: Likewise.
30205         * tests/unictype/test-categ_none.c: Likewise.
30206         * tests/unictype/test-categ_of.c: Likewise.
30207         * tests/unictype/test-categ_or.c: Likewise.
30208         * tests/unictype/test-categ_test_withtable.c: Likewise.
30209         * tests/unictype/test-combining.c: Likewise.
30210         * tests/unictype/test-decdigit.c: Likewise.
30211         * tests/unictype/test-digit.c: Likewise.
30212         * tests/unictype/test-mirror.c: Likewise.
30213         * tests/unictype/test-numeric.c: Likewise.
30214         * tests/unictype/test-pr_byname.c: Likewise.
30215         * tests/unictype/test-pr_test.c: Likewise.
30216         * tests/unictype/test-predicate-part1.h: Likewise.
30217         * tests/unictype/test-scripts.c: Likewise.
30218         * tests/unictype/test-sy_c_ident.c: Likewise.
30219         * tests/unictype/test-sy_java_ident.c: Likewise.
30220         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30221         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30222         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30223         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30224         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30225         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30226         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30227         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30228         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30229         * tests/uninorm/test-compat-decomposition.c: Likewise.
30230         * tests/uninorm/test-composition.c: Likewise.
30231         * tests/uninorm/test-decomposing-form.c: Likewise.
30232         * tests/uninorm/test-decomposition.c: Likewise.
30233         * tests/uninorm/test-u8-nfc.c: Likewise.
30234         * tests/uninorm/test-u8-nfd.c: Likewise.
30235         * tests/uninorm/test-u8-nfkc.c: Likewise.
30236         * tests/uninorm/test-u8-nfkd.c: Likewise.
30237         * tests/uninorm/test-u8-normcmp.c: Likewise.
30238         * tests/uninorm/test-u8-normcoll.c: Likewise.
30239         * tests/uninorm/test-u16-nfc.c: Likewise.
30240         * tests/uninorm/test-u16-nfd.c: Likewise.
30241         * tests/uninorm/test-u16-nfkc.c: Likewise.
30242         * tests/uninorm/test-u16-nfkd.c: Likewise.
30243         * tests/uninorm/test-u16-normcmp.c: Likewise.
30244         * tests/uninorm/test-u16-normcoll.c: Likewise.
30245         * tests/uninorm/test-u32-nfc.c: Likewise.
30246         * tests/uninorm/test-u32-nfd.c: Likewise.
30247         * tests/uninorm/test-u32-nfkc.c: Likewise.
30248         * tests/uninorm/test-u32-nfkd.c: Likewise.
30249         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30250         * tests/uninorm/test-u32-normcmp.c: Likewise.
30251         * tests/uninorm/test-u32-normcoll.c: Likewise.
30252         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30253         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30254         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30255         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30256         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30257         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30258         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30259         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30260         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30261         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30262         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30263         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30264         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30265         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30266         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30267         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30268         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30269         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30270         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30271         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30272         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30273         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30274         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30275         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30276         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30277         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30278         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30279         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30280         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30281         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30282         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30283         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30284         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30285         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30286         * tests/uniwidth/test-u8-width.c: Likewise.
30287         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30288         * tests/uniwidth/test-u16-width.c: Likewise.
30289         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30290         * tests/uniwidth/test-u32-width.c: Likewise.
30291         * tests/uniwidth/test-uc_width.c: Likewise.
30292         * tests/uniwidth/test-uc_width2.c: Likewise.
30293         * modules/acl-tests (Files): Add tests/macros.h.
30294         * modules/areadlink-tests (Files): Likewise.
30295         * modules/areadlink-with-size-tests (Files): Likewise.
30296         * modules/areadlinkat-tests (Files): Likewise.
30297         * modules/areadlinkat-with-size-tests (Files): Likewise.
30298         * modules/argmatch-tests (Files): Likewise.
30299         * modules/argv-iter-tests (Files): Likewise.
30300         * modules/array-list-tests (Files): Likewise.
30301         * modules/array-mergesort-tests (Files): Likewise.
30302         * modules/array-oset-tests (Files): Likewise.
30303         * modules/avltree-list-tests (Files): Likewise.
30304         * modules/avltree-oset-tests (Files): Likewise.
30305         * modules/avltreehash-list-tests (Files): Likewise.
30306         * modules/base64-tests (Files): Likewise.
30307         * modules/binary-io-tests (Files): Likewise.
30308         * modules/bitrotate-tests (Files): Likewise.
30309         * modules/btowc-tests (Files): Likewise.
30310         * modules/byteswap-tests (Files): Likewise.
30311         * modules/c-ctype-tests (Files): Likewise.
30312         * modules/c-stack-tests (Files): Likewise.
30313         * modules/c-strcase-tests (Files): Likewise.
30314         * modules/c-strcasestr-tests (Files): Likewise.
30315         * modules/c-strstr-tests (Files): Likewise.
30316         * modules/canonicalize-lgpl-tests (Files): Likewise.
30317         * modules/canonicalize-tests (Files): Likewise.
30318         * modules/carray-list-tests (Files): Likewise.
30319         * modules/ceilf-tests (Files): Likewise.
30320         * modules/ceill-tests (Files): Likewise.
30321         * modules/chown-tests (Files): Likewise.
30322         * modules/cloexec-tests (Files): Likewise.
30323         * modules/copy-file-tests (Files): Likewise.
30324         * modules/count-one-bits-tests (Files): Likewise.
30325         * modules/dprintf-posix-tests (Files): Likewise.
30326         * modules/dup2-tests (Files): Likewise.
30327         * modules/dup3-tests (Files): Likewise.
30328         * modules/duplocale-tests (Files): Likewise.
30329         * modules/fbufmode-tests (Files): Likewise.
30330         * modules/fchdir-tests (Files): Likewise.
30331         * modules/fcntl-safer-tests (Files): Likewise.
30332         * modules/fcntl-tests (Files): Likewise.
30333         * modules/fdopendir-tests (Files): Likewise.
30334         * modules/fdutimensat-tests (Files): Likewise.
30335         * modules/fflush-tests (Files): Likewise.
30336         * modules/filevercmp-tests (Files): Likewise.
30337         * modules/flock-tests (Files): Likewise.
30338         * modules/floorf-tests (Files): Likewise.
30339         * modules/floorl-tests (Files): Likewise.
30340         * modules/fnmatch-tests (Files): Likewise.
30341         * modules/fopen-safer-tests (Files): Likewise.
30342         * modules/fopen-tests (Files): Likewise.
30343         * modules/fpending-tests (Files): Likewise.
30344         * modules/fprintf-posix-tests (Files): Likewise.
30345         * modules/fpurge-tests (Files): Likewise.
30346         * modules/freadable-tests (Files): Likewise.
30347         * modules/freadahead-tests (Files): Likewise.
30348         * modules/freading-tests (Files): Likewise.
30349         * modules/freadptr-tests (Files): Likewise.
30350         * modules/freadseek-tests (Files): Likewise.
30351         * modules/freopen-tests (Files): Likewise.
30352         * modules/frexp-nolibm-tests (Files): Likewise.
30353         * modules/frexp-tests (Files): Likewise.
30354         * modules/frexpl-nolibm-tests (Files): Likewise.
30355         * modules/frexpl-tests (Files): Likewise.
30356         * modules/fseek-tests (Files): Likewise.
30357         * modules/fseeko-tests (Files): Likewise.
30358         * modules/fstrcmp-tests (Files): Likewise.
30359         * modules/fsync-tests (Files): Likewise.
30360         * modules/ftell-tests (Files): Likewise.
30361         * modules/ftello-tests (Files): Likewise.
30362         * modules/func-tests (Files): Likewise.
30363         * modules/futimens-tests (Files): Likewise.
30364         * modules/fwritable-tests (Files): Likewise.
30365         * modules/fwriting-tests (Files): Likewise.
30366         * modules/getcwd-tests (Files): Likewise.
30367         * modules/getdate-tests (Files): Likewise.
30368         * modules/getdelim-tests (Files): Likewise.
30369         * modules/getdtablesize-tests (Files): Likewise.
30370         * modules/getgroups-tests (Files): Likewise.
30371         * modules/getline-tests (Files): Likewise.
30372         * modules/getndelim2-tests (Files): Likewise.
30373         * modules/glob-tests (Files): Likewise.
30374         * modules/hash-tests (Files): Likewise.
30375         * modules/i-ring-tests (Files): Likewise.
30376         * modules/iconv-tests (Files): Likewise.
30377         * modules/iconv_open-utf-tests (Files): Likewise.
30378         * modules/idpriv-drop-tests (Files): Likewise.
30379         * modules/idpriv-droptemp-tests (Files): Likewise.
30380         * modules/inet_ntop-tests (Files): Likewise.
30381         * modules/inet_pton-tests (Files): Likewise.
30382         * modules/isblank-tests (Files): Likewise.
30383         * modules/isfinite-tests (Files): Likewise.
30384         * modules/isinf-tests (Files): Likewise.
30385         * modules/isnan-tests (Files): Likewise.
30386         * modules/isnand-nolibm-tests (Files): Likewise.
30387         * modules/isnand-tests (Files): Likewise.
30388         * modules/isnanf-nolibm-tests (Files): Likewise.
30389         * modules/isnanf-tests (Files): Likewise.
30390         * modules/isnanl-nolibm-tests (Files): Likewise.
30391         * modules/isnanl-tests (Files): Likewise.
30392         * modules/lchown-tests (Files): Likewise.
30393         * modules/ldexpl-tests (Files): Likewise.
30394         * modules/link-tests (Files): Likewise.
30395         * modules/linkat-tests (Files): Likewise.
30396         * modules/linked-list-tests (Files): Likewise.
30397         * modules/linkedhash-list-tests (Files): Likewise.
30398         * modules/localename-tests (Files): Likewise.
30399         * modules/lseek-tests (Files): Likewise.
30400         * modules/lstat-tests (Files): Likewise.
30401         * modules/mbmemcasecmp-tests (Files): Likewise.
30402         * modules/mbmemcasecoll-tests (Files): Likewise.
30403         * modules/mbrtowc-tests (Files): Likewise.
30404         * modules/mbscasecmp-tests (Files): Likewise.
30405         * modules/mbscasestr-tests (Files): Likewise.
30406         * modules/mbschr-tests (Files): Likewise.
30407         * modules/mbscspn-tests (Files): Likewise.
30408         * modules/mbsinit-tests (Files): Likewise.
30409         * modules/mbsncasecmp-tests (Files): Likewise.
30410         * modules/mbsnrtowcs-tests (Files): Likewise.
30411         * modules/mbspbrk-tests (Files): Likewise.
30412         * modules/mbspcasecmp-tests (Files): Likewise.
30413         * modules/mbsrchr-tests (Files): Likewise.
30414         * modules/mbsrtowcs-tests (Files): Likewise.
30415         * modules/mbsspn-tests (Files): Likewise.
30416         * modules/mbsstr-tests (Files): Likewise.
30417         * modules/memchr-tests (Files): Likewise.
30418         * modules/memchr2-tests (Files): Likewise.
30419         * modules/memcmp-tests (Files): Likewise.
30420         * modules/memmem-tests (Files): Likewise.
30421         * modules/memrchr-tests (Files): Likewise.
30422         * modules/mkdir-tests (Files): Likewise.
30423         * modules/mkfifo-tests (Files): Likewise.
30424         * modules/mkfifoat-tests (Files): Likewise.
30425         * modules/mknod-tests (Files): Likewise.
30426         * modules/nanosleep-tests (Files): Likewise.
30427         * modules/nl_langinfo-tests (Files): Likewise.
30428         * modules/obstack-printf-tests (Files): Likewise.
30429         * modules/open-tests (Files): Likewise.
30430         * modules/openat-tests (Files): Likewise.
30431         * modules/pipe-filter-gi-tests (Files): Likewise.
30432         * modules/pipe-filter-ii-tests (Files): Likewise.
30433         * modules/pipe2-tests (Files): Likewise.
30434         * modules/popen-safer-tests (Files): Likewise.
30435         * modules/popen-tests (Files): Likewise.
30436         * modules/posixtm-tests (Files): Likewise.
30437         * modules/pread-tests (Files): Likewise.
30438         * modules/printf-frexp-tests (Files): Likewise.
30439         * modules/printf-frexpl-tests (Files): Likewise.
30440         * modules/printf-posix-tests (Files): Likewise.
30441         * modules/priv-set-tests (Files): Likewise.
30442         * modules/quotearg-tests (Files): Likewise.
30443         * modules/random_r-tests (Files): Likewise.
30444         * modules/rawmemchr-tests (Files): Likewise.
30445         * modules/rbtree-list-tests (Files): Likewise.
30446         * modules/rbtree-oset-tests (Files): Likewise.
30447         * modules/rbtreehash-list-tests (Files): Likewise.
30448         * modules/readlink-tests (Files): Likewise.
30449         * modules/remove-tests (Files): Likewise.
30450         * modules/rename-tests (Files): Likewise.
30451         * modules/renameat-tests (Files): Likewise.
30452         * modules/rmdir-tests (Files): Likewise.
30453         * modules/round-tests (Files): Likewise.
30454         * modules/roundf-tests (Files): Likewise.
30455         * modules/roundl-tests (Files): Likewise.
30456         * modules/safe-alloc-tests (Files): Likewise.
30457         * modules/setenv-tests (Files): Likewise.
30458         * modules/sigaction-tests (Files): Likewise.
30459         * modules/signbit-tests (Files): Likewise.
30460         * modules/sleep-tests (Files): Likewise.
30461         * modules/snprintf-posix-tests (Files): Likewise.
30462         * modules/snprintf-tests (Files): Likewise.
30463         * modules/sprintf-posix-tests (Files): Likewise.
30464         * modules/stat-tests (Files): Likewise.
30465         * modules/stat-time-tests (Files): Likewise.
30466         * modules/strcasestr-tests (Files): Likewise.
30467         * modules/strchrnul-tests (Files): Likewise.
30468         * modules/strerror-tests (Files): Likewise.
30469         * modules/striconv-tests (Files): Likewise.
30470         * modules/striconveh-tests (Files): Likewise.
30471         * modules/striconveha-tests (Files): Likewise.
30472         * modules/strsignal-tests (Files): Likewise.
30473         * modules/strstr-tests (Files): Likewise.
30474         * modules/strtod-tests (Files): Likewise.
30475         * modules/strverscmp-tests (Files): Likewise.
30476         * modules/symlink-tests (Files): Likewise.
30477         * modules/symlinkat-tests (Files): Likewise.
30478         * modules/trunc-tests (Files): Likewise.
30479         * modules/truncf-tests (Files): Likewise.
30480         * modules/truncl-tests (Files): Likewise.
30481         * modules/uname-tests (Files): Likewise.
30482         * modules/unicase/cased-tests (Files): Likewise.
30483         * modules/unicase/ignorable-tests (Files): Likewise.
30484         * modules/unicase/locale-language-tests (Files): Likewise.
30485         * modules/unicase/tolower-tests (Files): Likewise.
30486         * modules/unicase/totitle-tests (Files): Likewise.
30487         * modules/unicase/toupper-tests (Files): Likewise.
30488         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30489         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30490         * modules/unicase/u8-casefold-tests (Files): Likewise.
30491         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30492         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30493         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30494         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30495         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30496         * modules/unicase/u8-tolower-tests (Files): Likewise.
30497         * modules/unicase/u8-totitle-tests (Files): Likewise.
30498         * modules/unicase/u8-toupper-tests (Files): Likewise.
30499         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30500         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30501         * modules/unicase/u16-casefold-tests (Files): Likewise.
30502         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30503         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30504         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30505         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30506         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30507         * modules/unicase/u16-tolower-tests (Files): Likewise.
30508         * modules/unicase/u16-totitle-tests (Files): Likewise.
30509         * modules/unicase/u16-toupper-tests (Files): Likewise.
30510         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30511         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30512         * modules/unicase/u32-casefold-tests (Files): Likewise.
30513         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30514         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30515         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30516         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30517         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30518         * modules/unicase/u32-tolower-tests (Files): Likewise.
30519         * modules/unicase/u32-totitle-tests (Files): Likewise.
30520         * modules/unicase/u32-toupper-tests (Files): Likewise.
30521         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30522         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30523         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30524         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30525         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30526         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30527         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30528         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30529         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30530         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30531         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30532         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30533         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30534         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30535         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30536         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30537         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30538         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30539         * modules/unictype/block-list-tests (Files): Likewise.
30540         * modules/unictype/block-of-tests (Files): Likewise.
30541         * modules/unictype/block-test-tests (Files): Likewise.
30542         * modules/unictype/category-C-tests (Files): Likewise.
30543         * modules/unictype/category-Cc-tests (Files): Likewise.
30544         * modules/unictype/category-Cf-tests (Files): Likewise.
30545         * modules/unictype/category-Cn-tests (Files): Likewise.
30546         * modules/unictype/category-Co-tests (Files): Likewise.
30547         * modules/unictype/category-Cs-tests (Files): Likewise.
30548         * modules/unictype/category-L-tests (Files): Likewise.
30549         * modules/unictype/category-Ll-tests (Files): Likewise.
30550         * modules/unictype/category-Lm-tests (Files): Likewise.
30551         * modules/unictype/category-Lo-tests (Files): Likewise.
30552         * modules/unictype/category-Lt-tests (Files): Likewise.
30553         * modules/unictype/category-Lu-tests (Files): Likewise.
30554         * modules/unictype/category-M-tests (Files): Likewise.
30555         * modules/unictype/category-Mc-tests (Files): Likewise.
30556         * modules/unictype/category-Me-tests (Files): Likewise.
30557         * modules/unictype/category-Mn-tests (Files): Likewise.
30558         * modules/unictype/category-N-tests (Files): Likewise.
30559         * modules/unictype/category-Nd-tests (Files): Likewise.
30560         * modules/unictype/category-Nl-tests (Files): Likewise.
30561         * modules/unictype/category-No-tests (Files): Likewise.
30562         * modules/unictype/category-P-tests (Files): Likewise.
30563         * modules/unictype/category-Pc-tests (Files): Likewise.
30564         * modules/unictype/category-Pd-tests (Files): Likewise.
30565         * modules/unictype/category-Pe-tests (Files): Likewise.
30566         * modules/unictype/category-Pf-tests (Files): Likewise.
30567         * modules/unictype/category-Pi-tests (Files): Likewise.
30568         * modules/unictype/category-Po-tests (Files): Likewise.
30569         * modules/unictype/category-Ps-tests (Files): Likewise.
30570         * modules/unictype/category-S-tests (Files): Likewise.
30571         * modules/unictype/category-Sc-tests (Files): Likewise.
30572         * modules/unictype/category-Sk-tests (Files): Likewise.
30573         * modules/unictype/category-Sm-tests (Files): Likewise.
30574         * modules/unictype/category-So-tests (Files): Likewise.
30575         * modules/unictype/category-Z-tests (Files): Likewise.
30576         * modules/unictype/category-Zl-tests (Files): Likewise.
30577         * modules/unictype/category-Zp-tests (Files): Likewise.
30578         * modules/unictype/category-Zs-tests (Files): Likewise.
30579         * modules/unictype/category-and-not-tests (Files): Likewise.
30580         * modules/unictype/category-and-tests (Files): Likewise.
30581         * modules/unictype/category-byname-tests (Files): Likewise.
30582         * modules/unictype/category-name-tests (Files): Likewise.
30583         * modules/unictype/category-none-tests (Files): Likewise.
30584         * modules/unictype/category-of-tests (Files): Likewise.
30585         * modules/unictype/category-or-tests (Files): Likewise.
30586         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30587         * modules/unictype/combining-class-tests (Files): Likewise.
30588         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30589         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30590         * modules/unictype/ctype-blank-tests (Files): Likewise.
30591         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30592         * modules/unictype/ctype-digit-tests (Files): Likewise.
30593         * modules/unictype/ctype-graph-tests (Files): Likewise.
30594         * modules/unictype/ctype-lower-tests (Files): Likewise.
30595         * modules/unictype/ctype-print-tests (Files): Likewise.
30596         * modules/unictype/ctype-punct-tests (Files): Likewise.
30597         * modules/unictype/ctype-space-tests (Files): Likewise.
30598         * modules/unictype/ctype-upper-tests (Files): Likewise.
30599         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30600         * modules/unictype/decimal-digit-tests (Files): Likewise.
30601         * modules/unictype/digit-tests (Files): Likewise.
30602         * modules/unictype/mirror-tests (Files): Likewise.
30603         * modules/unictype/numeric-tests (Files): Likewise.
30604         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30605         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30606         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30607         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30608         Likewise.
30609         * modules/unictype/property-bidi-block-separator-tests (Files):
30610         Likewise.
30611         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30612         Likewise.
30613         * modules/unictype/property-bidi-common-separator-tests (Files):
30614         Likewise.
30615         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30616         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30617         Likewise.
30618         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30619         Likewise.
30620         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30621         Likewise.
30622         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30623         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30624         Likewise.
30625         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30626         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30627         Likewise.
30628         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30629         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30630         * modules/unictype/property-bidi-segment-separator-tests (Files):
30631         Likewise.
30632         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30633         * modules/unictype/property-byname-tests (Files): Likewise.
30634         * modules/unictype/property-combining-tests (Files): Likewise.
30635         * modules/unictype/property-composite-tests (Files): Likewise.
30636         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30637         * modules/unictype/property-dash-tests (Files): Likewise.
30638         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30639         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30640         Likewise.
30641         * modules/unictype/property-deprecated-tests (Files): Likewise.
30642         * modules/unictype/property-diacritic-tests (Files): Likewise.
30643         * modules/unictype/property-extender-tests (Files): Likewise.
30644         * modules/unictype/property-format-control-tests (Files): Likewise.
30645         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30646         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30647         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30648         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30649         * modules/unictype/property-hyphen-tests (Files): Likewise.
30650         * modules/unictype/property-id-continue-tests (Files): Likewise.
30651         * modules/unictype/property-id-start-tests (Files): Likewise.
30652         * modules/unictype/property-ideographic-tests (Files): Likewise.
30653         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30654         * modules/unictype/property-ids-trinary-operator-tests (Files):
30655         Likewise.
30656         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30657         * modules/unictype/property-iso-control-tests (Files): Likewise.
30658         * modules/unictype/property-join-control-tests (Files): Likewise.
30659         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30660         * modules/unictype/property-line-separator-tests (Files): Likewise.
30661         * modules/unictype/property-logical-order-exception-tests (Files):
30662         Likewise.
30663         * modules/unictype/property-lowercase-tests (Files): Likewise.
30664         * modules/unictype/property-math-tests (Files): Likewise.
30665         * modules/unictype/property-non-break-tests (Files): Likewise.
30666         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30667         * modules/unictype/property-numeric-tests (Files): Likewise.
30668         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30669         * modules/unictype/property-other-default-ignorable-code-point-tests
30670         (Files): Likewise.
30671         * modules/unictype/property-other-grapheme-extend-tests (Files):
30672         Likewise.
30673         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30674         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30675         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30676         * modules/unictype/property-other-math-tests (Files): Likewise.
30677         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30678         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30679         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30680         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30681         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30682         * modules/unictype/property-private-use-tests (Files): Likewise.
30683         * modules/unictype/property-punctuation-tests (Files): Likewise.
30684         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30685         * modules/unictype/property-radical-tests (Files): Likewise.
30686         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30687         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30688         * modules/unictype/property-space-tests (Files): Likewise.
30689         * modules/unictype/property-terminal-punctuation-tests (Files):
30690         Likewise.
30691         * modules/unictype/property-test-tests (Files): Likewise.
30692         * modules/unictype/property-titlecase-tests (Files): Likewise.
30693         * modules/unictype/property-unassigned-code-value-tests (Files):
30694         Likewise.
30695         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30696         * modules/unictype/property-uppercase-tests (Files): Likewise.
30697         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30698         * modules/unictype/property-white-space-tests (Files): Likewise.
30699         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30700         * modules/unictype/property-xid-start-tests (Files): Likewise.
30701         * modules/unictype/property-zero-width-tests (Files): Likewise.
30702         * modules/unictype/scripts-tests (Files): Likewise.
30703         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30704         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30705         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30706         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30707         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30708         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30709         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30710         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30711         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30712         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30713         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30714         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30715         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30716         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30717         * modules/uninorm/composition-tests (Files): Likewise.
30718         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30719         * modules/uninorm/decomposition-tests (Files): Likewise.
30720         * modules/uninorm/filter-tests (Files): Likewise.
30721         * modules/uninorm/nfc-tests (Files): Likewise.
30722         * modules/uninorm/nfd-tests (Files): Likewise.
30723         * modules/uninorm/nfkc-tests (Files): Likewise.
30724         * modules/uninorm/nfkd-tests (Files): Likewise.
30725         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30726         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30727         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30728         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30729         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30730         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30731         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30732         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30733         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30734         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30735         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30736         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30737         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30738         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30739         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30740         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30741         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30742         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30743         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30744         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30745         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30746         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30747         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30748         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30749         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30750         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30751         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30752         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30753         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30754         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30755         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30756         * modules/uniwidth/u8-width-tests (Files): Likewise.
30757         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30758         * modules/uniwidth/u16-width-tests (Files): Likewise.
30759         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30760         * modules/uniwidth/u32-width-tests (Files): Likewise.
30761         * modules/uniwidth/width-tests (Files): Likewise.
30762         * modules/unlink-tests (Files): Likewise.
30763         * modules/unsetenv-tests (Files): Likewise.
30764         * modules/usleep-tests (Files): Likewise.
30765         * modules/utimens-tests (Files): Likewise.
30766         * modules/utimensat-tests (Files): Likewise.
30767         * modules/vasnprintf-posix-tests (Files): Likewise.
30768         * modules/vasnprintf-tests (Files): Likewise.
30769         * modules/vasprintf-posix-tests (Files): Likewise.
30770         * modules/vasprintf-tests (Files): Likewise.
30771         * modules/vdprintf-posix-tests (Files): Likewise.
30772         * modules/vfprintf-posix-tests (Files): Likewise.
30773         * modules/vprintf-posix-tests (Files): Likewise.
30774         * modules/vsnprintf-posix-tests (Files): Likewise.
30775         * modules/vsnprintf-tests (Files): Likewise.
30776         * modules/vsprintf-posix-tests (Files): Likewise.
30777         * modules/wcrtomb-tests (Files): Likewise.
30778         * modules/wcsnrtombs-tests (Files): Likewise.
30779         * modules/wcsrtombs-tests (Files): Likewise.
30780         * modules/wctype-tests (Files): Likewise.
30781         * modules/wcwidth-tests (Files): Likewise.
30782         * modules/xmemdup0-tests (Files): Likewise.
30783         * modules/xprintf-posix-tests (Files): Likewise.
30784         * modules/xvasprintf-tests (Files): Likewise.
30785
30786 2009-12-24  Eric Blake  <ebb9@byu.net>
30787
30788         test-nanosleep: fix typo
30789         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30790         patch.
30791         Reported by Bruno Haible.
30792
30793 2009-12-24  Bruno Haible  <bruno@clisp.org>
30794
30795         Reduce namespace pollution on glibc systems.
30796         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30797         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30798         systems.
30799         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30800         <getopt.h> on glibc systems.
30801         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30802         systems.
30803         * lib/fcntl.c: Include <unistd.h> here instead.
30804
30805 2009-12-24  Bruno Haible  <bruno@clisp.org>
30806
30807         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30808
30809 2009-12-24  Eric Blake  <ebb9@byu.net>
30810
30811         tests: add signature checks
30812         * tests/signature.h (SIGNATURE_CHECK): New file.
30813         * modules/atexit-tests (Files): Use it.
30814         * modules/btowc-tests (Files): Likewise.
30815         * modules/canonicalize-lgpl-tests (Files): Likewise.
30816         * modules/ceilf-tests (Files): Likewise.
30817         * modules/ceill-tests (Files): Likewise.
30818         * modules/chown-tests (Files): Likewise.
30819         * modules/dprintf-posix-tests (Files): Likewise.
30820         * modules/dup2-tests (Files): Likewise.
30821         * modules/dup3-tests (Files): Likewise.
30822         * modules/duplocale-tests (Files): Likewise.
30823         * modules/fchdir-tests (Files): Likewise.
30824         * modules/fcntl-tests (Files): Likewise.
30825         * modules/fdopendir-tests (Files): Likewise.
30826         * modules/fflush-tests (Files): Likewise.
30827         * modules/flock-tests (Files): Likewise.
30828         * modules/floorf-tests (Files): Likewise.
30829         * modules/floorl-tests (Files): Likewise.
30830         * modules/fnmatch-tests (Files): Likewise.
30831         * modules/fopen-tests (Files): Likewise.
30832         * modules/fprintf-posix-tests (Files): Likewise.
30833         * modules/freopen-tests (Files): Likewise.
30834         * modules/frexp-nolibm-tests (Files): Likewise.
30835         * modules/frexp-tests (Files): Likewise.
30836         * modules/frexpl-nolibm-tests (Files): Likewise.
30837         * modules/frexpl-tests (Files): Likewise.
30838         * modules/fseek-tests (Files): Likewise.
30839         * modules/fseeko-tests (Files): Likewise.
30840         * modules/fsync-tests (Files): Likewise.
30841         * modules/ftell-tests (Files): Likewise.
30842         * modules/ftello-tests (Files): Likewise.
30843         * modules/futimens-tests (Files): Likewise.
30844         * modules/getaddrinfo-tests (Files): Likewise.
30845         * modules/getcwd-tests (Files): Likewise.
30846         * modules/getdelim-tests (Files): Likewise.
30847         * modules/getdtablesize-tests (Files): Likewise.
30848         * modules/getgroups-tests (Files): Likewise.
30849         * modules/gethostname-tests (Files): Likewise.
30850         * modules/getline-tests (Files): Likewise.
30851         * modules/getopt-posix-tests (Files): Likewise.
30852         * modules/gettimeofday-tests (Files): Likewise.
30853         * modules/glob-tests (Files): Likewise.
30854         * modules/iconv-tests (Files): Likewise.
30855         * modules/inet_ntop-tests (Files): Likewise.
30856         * modules/inet_pton-tests (Files): Likewise.
30857         * modules/isblank-tests (Files): Likewise.
30858         * modules/lchown-tests (Files): Likewise.
30859         * modules/ldexpl-tests (Files): Likewise.
30860         * modules/link-tests (Files): Likewise.
30861         * modules/linkat-tests (Files): Likewise.
30862         * modules/lseek-tests (Files): Likewise.
30863         * modules/lstat-tests (Files): Likewise.
30864         * modules/mbrtowc-tests (Files): Likewise.
30865         * modules/mbsinit-tests (Files): Likewise.
30866         * modules/mbsnrtowcs-tests (Files): Likewise.
30867         * modules/mbsrtowcs-tests (Files): Likewise.
30868         * modules/memchr-tests (Files): Likewise.
30869         * modules/memcmp-tests (Files): Likewise.
30870         * modules/memmem-tests (Files): Likewise.
30871         * modules/memrchr-tests (Files): Likewise.
30872         * modules/mkdir-tests (Files): Likewise.
30873         * modules/mkfifo-tests (Files): Likewise.
30874         * modules/mkfifoat-tests (Files): Likewise.
30875         * modules/mknod-tests (Files): Likewise.
30876         * modules/nanosleep-tests (Files): Likewise.
30877         * modules/nl_langinfo-tests (Files): Likewise.
30878         * modules/obstack-printf-tests (Files): Likewise.
30879         * modules/open-tests (Files): Likewise.
30880         * modules/openat-tests (Files): Likewise.
30881         * modules/perror-tests (Files): Likewise.
30882         * modules/pipe2-tests (Files): Likewise.
30883         * modules/poll-tests (Files): Likewise.
30884         * modules/popen-tests (Files): Likewise.
30885         * modules/posix_spawn-tests (Files): Likewise.
30886         * modules/posix_spawnp-tests (Files): Likewise.
30887         * modules/pread-tests (Files): Likewise.
30888         * modules/printf-posix-tests (Files): Likewise.
30889         * modules/pty-tests (Files): Likewise.
30890         * modules/random_r-tests (Files): Likewise.
30891         * modules/rawmemchr-tests (Files): Likewise.
30892         * modules/readlink-tests (Files): Likewise.
30893         * modules/remove-tests (Files): Likewise.
30894         * modules/rename-tests (Files): Likewise.
30895         * modules/renameat-tests (Files): Likewise.
30896         * modules/rmdir-tests (Files): Likewise.
30897         * modules/round-tests (Files): Likewise.
30898         * modules/roundf-tests (Files): Likewise.
30899         * modules/roundl-tests (Files): Likewise.
30900         * modules/select-tests (Files): Likewise.
30901         * modules/setenv-tests (Files): Likewise.
30902         * modules/sigaction-tests (Files): Likewise.
30903         * modules/sleep-tests (Files): Likewise.
30904         * modules/snprintf-posix-tests (Files): Likewise.
30905         * modules/snprintf-tests (Files): Likewise.
30906         * modules/sprintf-posix-tests (Files): Likewise.
30907         * modules/stat-tests (Files): Likewise.
30908         * modules/strcasestr-tests (Files): Likewise.
30909         * modules/strchrnul-tests (Files): Likewise.
30910         * modules/strerror-tests (Files): Likewise.
30911         * modules/strsignal-tests (Files): Likewise.
30912         * modules/strstr-tests (Files): Likewise.
30913         * modules/strtod-tests (Files): Likewise.
30914         * modules/strverscmp-tests (Files): Likewise.
30915         * modules/symlink-tests (Files): Likewise.
30916         * modules/symlinkat-tests (Files): Likewise.
30917         * modules/times-tests (Files): Likewise.
30918         * modules/trunc-tests (Files): Likewise.
30919         * modules/truncf-tests (Files): Likewise.
30920         * modules/truncl-tests (Files): Likewise.
30921         * modules/tsearch-tests (Files): Likewise.
30922         * modules/uname-tests (Files): Likewise.
30923         * modules/unlink-tests (Files): Likewise.
30924         * modules/unsetenv-tests (Files): Likewise.
30925         * modules/usleep-tests (Files): Likewise.
30926         * modules/utimensat-tests (Files): Likewise.
30927         * modules/vasprintf-tests (Files): Likewise.
30928         * modules/vdprintf-posix-tests (Files): Likewise.
30929         * modules/vfprintf-posix-tests (Files): Likewise.
30930         * modules/vprintf-posix-tests (Files): Likewise.
30931         * modules/vsnprintf-posix-tests (Files): Likewise.
30932         * modules/vsnprintf-tests (Files): Likewise.
30933         * modules/vsprintf-posix-tests (Files): Likewise.
30934         * modules/wcrtomb-tests (Files): Likewise.
30935         * modules/wcsnrtombs-tests (Files): Likewise.
30936         * modules/wcsrtombs-tests (Files): Likewise.
30937         * modules/wcwidth-tests (Files): Likewise.
30938         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30939         * tests/test-isinf.c (isinf): Likewise.
30940         * tests/test-isnan.c (isnan): Likewise.
30941         * tests/test-signbit.c (signbit): Likewise.
30942         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30943         declaration, either as macro or with correct signature.
30944         (select): Ensure function under test is declared with correct
30945         signature in correct header.
30946         * tests/test-atexit.c (atexit): Likewise.
30947         * tests/test-btowc.c (btowc): Likewise.
30948         * tests/test-canonicalize-lgpl.c (realpath)
30949         (canonicalize_file_name): Likewise.
30950         * tests/test-ceilf1.c (ceilf): Likewise.
30951         * tests/test-ceill.c (ceill): Likewise.
30952         * tests/test-chown.c (chown): Likewise.
30953         * tests/test-dprintf-posix.c (dprintf): Likewise.
30954         * tests/test-dup2.c (dup2): Likewise.
30955         * tests/test-dup3.c (dup3): Likewise.
30956         * tests/test-duplocale.c (duplocale): Likewise.
30957         * tests/test-fchdir.c (fchdir): Likewise.
30958         * tests/test-fchownat.c (fchownat): Likewise.
30959         * tests/test-fcntl.c (fcntl): Likewise.
30960         * tests/test-fdopendir.c (fdopendir): Likewise.
30961         * tests/test-fflush.c (fflush): Likewise.
30962         * tests/test-flock.c (flock): Likewise.
30963         * tests/test-floorf1.c (floorf): Likewise.
30964         * tests/test-floorl.c (floorl): Likewise.
30965         * tests/test-fnmatch.c (fnmatch): Likewise.
30966         * tests/test-fopen.c (fopen): Likewise.
30967         * tests/test-fprintf-posix.c (fprintf): Likewise.
30968         * tests/test-freopen.c (freopen): Likewise.
30969         * tests/test-frexp.c (frexp): Likewise.
30970         * tests/test-frexpl.c (frexpl): Likewise.
30971         * tests/test-fseek.c (fseek): Likewise.
30972         * tests/test-fseeko.c (fseeko): Likewise.
30973         * tests/test-fstatat.c (fstatat): Likewise.
30974         * tests/test-fsync.c (fsync): Likewise.
30975         * tests/test-ftell.c (ftell): Likewise.
30976         * tests/test-ftello.c (ftello): Likewise.
30977         * tests/test-futimens.c (futimens): Likewise.
30978         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30979         (gai_strerror): Likewise.
30980         * tests/test-getcwd.c (getcwd): Likewise.
30981         * tests/test-getdelim.c (getdelim): Likewise.
30982         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30983         * tests/test-getgroups.c (getgroups): Likewise.
30984         * tests/test-gethostname.c (gethostname): Likewise.
30985         * tests/test-getline.c (getline): Likewise.
30986         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30987         Likewise.
30988         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30989         * tests/test-glob.c (glob, globfree): Likewise.
30990         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30991         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30992         * tests/test-inet_pton.c (inet_pton): Likewise.
30993         * tests/test-isblank.c (isblank): Likewise.
30994         * tests/test-lchown.c (lchown): Likewise.
30995         * tests/test-ldexpl.c (ldexpl): Likewise.
30996         * tests/test-link.c (link): Likewise.
30997         * tests/test-linkat.c (linkat): Likewise.
30998         * tests/test-lseek.c (lseek): Likewise.
30999         * tests/test-lstat.c (lstat): Likewise.
31000         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31001         * tests/test-mbsinit.c (mbsinit): Likewise.
31002         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31003         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31004         * tests/test-memchr.c (memchr): Likewise.
31005         * tests/test-memcmp.c (memcmp): Likewise.
31006         * tests/test-memmem.c (memmem): Likewise.
31007         * tests/test-memrchr.c (memrchr): Likewise.
31008         * tests/test-mkdir.c (mkdir): Likewise.
31009         * tests/test-mkdirat.c (mkdirat): Likewise.
31010         * tests/test-mkfifo.c (mkfifo): Likewise.
31011         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31012         * tests/test-mknod.c (mknod): Likewise.
31013         * tests/test-nanosleep.c (nanosleep): Likewise.
31014         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31015         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31016         Likewise.
31017         * tests/test-open.c (open): Likewise.
31018         * tests/test-openat.c (openat): Likewise.
31019         * tests/test-perror.c (perror): Likewise.
31020         * tests/test-pipe2.c (pipe2): Likewise.
31021         * tests/test-poll.c (poll): Likewise.
31022         * tests/test-popen.c (popen, pclose): Likewise.
31023         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31024         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31025         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31026         (posix_spawn_file_actions_destroy)
31027         (posix_spawn_file_actions_addclose)
31028         (posix_spawn_file_actions_addopen)
31029         (posix_spawn_file_actions_adddup2): Likewise.
31030         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31031         * tests/test-pread.c (pread): Likewise.
31032         * tests/test-printf-posix.c (printf): Likewise.
31033         * tests/test-pty.c (openpty, forkpty): Likewise.
31034         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31035         (random_r): Likewise.
31036         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31037         * tests/test-readlink.c (readlink): Likewise.
31038         * tests/test-remove.c (remove): Likewise.
31039         * tests/test-rename.c (rename): Likewise.
31040         * tests/test-renameat.c (renameat): Likewise.
31041         * tests/test-rmdir.c (rmdir): Likewise.
31042         * tests/test-round1.c (round): Likewise.
31043         * tests/test-roundf1.c (roundf): Likewise.
31044         * tests/test-roundl.c (roundl): Likewise.
31045         * tests/test-setenv.c (setenv): Likewise.
31046         * tests/test-sigaction.c (sigaction): Likewise.
31047         * tests/test-sleep.c (sleep): Likewise.
31048         * tests/test-snprintf.c (snprintf): Likewise.
31049         * tests/test-sprintf-posix.c (sprintf): Likewise.
31050         * tests/test-stat.c (stat): Likewise.
31051         * tests/test-stpncpy.c (stpncpy): Likewise.
31052         * tests/test-strcasestr.c (strcasestr): Likewise.
31053         * tests/test-strchrnul.c (strchrnul): Likewise.
31054         * tests/test-strerror.c (strerror): Likewise.
31055         * tests/test-strsignal.c (strsignal): Likewise.
31056         * tests/test-strstr.c (strstr): Likewise.
31057         * tests/test-strtod.c (strtod): Likewise.
31058         * tests/test-strverscmp.c (strverscmp): Likewise.
31059         * tests/test-symlink.c (symlink): Likewise.
31060         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31061         * tests/test-times.c (times): Likewise.
31062         * tests/test-trunc1.c (trunc): Likewise.
31063         * tests/test-truncf1.c (truncf): Likewise.
31064         * tests/test-truncl.c (truncl): Likewise.
31065         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31066         Likewise.
31067         * tests/test-uname.c (uname): Likewise.
31068         * tests/test-unlink.c (unlink): Likewise.
31069         * tests/test-unlinkat.c (unlinkat): Likewise.
31070         * tests/test-unsetenv.c (unsetenv): Likewise.
31071         * tests/test-usleep.c (usleep): Likewise.
31072         * tests/test-utimensat.c (utimensat): Likewise.
31073         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31074         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31075         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31076         * tests/test-vprintf-posix.c (vprintf): Likewise.
31077         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31078         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31079         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31080         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31081         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31082         * tests/test-wcwidth.c (wcwidth): Likewise.
31083
31084         build: pull in conditional headers during GNULIB_POSIXCHECK
31085         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31086         definitions from any conditionally-included headers.
31087         * lib/stdlib.in.h (includes): Likewise.
31088         * lib/unistd.in.h (includes): Likewise.
31089
31090 2009-12-24  Bruno Haible  <bruno@clisp.org>
31091
31092         * tests/test-argv-iter.c: Include header file being tested immediately
31093         after config.h.
31094         * tests/test-base64.c: Likewise.
31095         * tests/test-flock.c: Likewise.
31096         * tests/test-fsync.c: Likewise.
31097         * tests/test-getdate.c: Likewise.
31098         * tests/test-getndelim2.c: Likewise.
31099         * tests/test-isfinite.c: Likewise.
31100         * tests/test-isinf.c: Likewise.
31101         * tests/test-strerror.c: Likewise.
31102         * tests/test-strsignal.c: Likewise.
31103
31104 2009-12-23  Eric Blake  <ebb9@byu.net>
31105
31106         unistd: work around cygwin bug
31107         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31108         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31109         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31110
31111 2009-12-23  Bruno Haible  <bruno@clisp.org>
31112
31113         localename: More tests.
31114         * tests/test-localename.c (SIZEOF): New macro.
31115         (categories): New variable.
31116         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31117         test_locale_name_default): Add test w.r.t. thread locale.
31118         (test_locale_name_thread): New function.
31119         (main): Invoke it.
31120
31121         localename: Make aware of thread locale.
31122         * lib/localename.h (gl_locale_name_thread): New declaration.
31123         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31124         behaviour with respect to thread locale.
31125         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31126         <langinfo.h>, glthread/lock.h.
31127         (SIZE_BITS): New macro.
31128         (string_hash): New function.
31129         (struct hash_node): New type.
31130         (HASH_TABLE_SIZE): New macro.
31131         (struniq_hash_table, struniq_lock): New variables.
31132         (struniq): New function.
31133         (gl_locale_name_thread): New function.
31134         (gl_locale_name): Invoke it.
31135         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31136         * modules/localename (Depends-on): Add lock.
31137         Reported by Mike Gran <spk121@yahoo.com>.
31138
31139 2009-12-23  Eric Blake  <ebb9@byu.net>
31140
31141         va-args: new module
31142         * modules/va-args: New file.
31143         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31144         * MODULES.html.sh (Core language properties): Mention it.
31145
31146         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31147         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31148         named alias for __attribute__((__unused__)).
31149         * lib/chown.c: Update client.
31150         * lib/fchmodat.c: Likewise.
31151         * lib/fts.c: Likewise.
31152         * lib/getdate.y: Likewise.
31153         * lib/getgroups.c: Likewise.
31154         * lib/getopt.c: Likewise.
31155         * lib/getugroups.c: Likewise.
31156         * lib/mkdir.c: Likewise.
31157         * lib/mkfifo.c: Likewise.
31158         * lib/mkfifoat.c: Likewise.
31159         * lib/mknod.c: Likewise.
31160         * lib/mknodat.c: Likewise.
31161         * lib/readlink.c: Likewise.
31162         * lib/se-context.in.h: Likewise.
31163         * lib/se-selinux.in.h: Likewise.
31164         * lib/sockets.c: Likewise.
31165         * lib/symlink.c: Likewise.
31166         * lib/symlinkat.c: Likewise.
31167         * lib/unicodeio.c: Likewise.
31168         * lib/unistr.h: Likewise.
31169         * tests/test-areadlink.c: Likewise.
31170         * tests/test-areadlinkat.c: Likewise.
31171         * tests/test-filenamecat.c: Likewise.
31172         * tests/test-fseeko.c: Likewise.
31173         * tests/test-ftello.c: Likewise.
31174         * tests/test-getdate.c: Likewise.
31175         * tests/test-getgroups.c: Likewise.
31176         * tests/test-gethostname.c: Likewise.
31177         * tests/test-quotearg.c: Likewise.
31178         * tests/test-version-etc.c: Likewise.
31179         * tests/test-xalloc-die.c: Likewise.
31180         * tests/test-xfprintf-posix.c: Likewise.
31181         * tests/test-xprintf-posix.c: Likewise.
31182         * tests/test-xvasprintf.c: Likewise.
31183
31184         tests: avoid compiler warnings
31185         * tests/test-fcntl.c (main): Delete unused parameters.
31186         * tests/test-freopen-safer.c (main): Likewise.
31187         * tests/test-xalloc-die.c (main): Mark unused parameters.
31188         * tests/test-fseeko.c (main): Likewise.
31189         * tests/test-ftello.c (main): Likewise.
31190         * tests/test-nanosleep.c (main): Avoid declaration warning.
31191         * tests/test-sleep.c (main): Likewise.
31192         * tests/test-unsetenv.c (main): Silence warning about string
31193         literal.
31194         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31195
31196 2009-12-23  Bruno Haible  <bruno@clisp.org>
31197
31198         * tests/test-localename.c (test_locale_name): New function, extracted
31199         from main. Also test mixed situations.
31200         (test_locale_name_posix, test_locale_name_environ,
31201         test_locale_name_default): New functions.
31202         (main): Invoke them all.
31203         * modules/localename-tests (configure.ac): Test for newlocale.
31204
31205 2009-12-23  Bruno Haible  <bruno@clisp.org>
31206
31207         unistd: Ensure getcwd gets declared before being overridden.
31208         * lib/unistd.in.h: Conditionally include <io.h>.
31209
31210 2009-12-22  Bruno Haible  <bruno@clisp.org>
31211
31212         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31213         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31214         (gl_WCHAR_H): Invoke it.
31215         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31216         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31217         Reported by Karl Berry <karl@freefriends.org>.
31218
31219 2009-12-22  Eric Blake  <ebb9@byu.net>
31220
31221         math, unistd: avoid redundant includes
31222         * lib/math.in.h (isnan): No need to re-include <math.h>.
31223         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31224
31225         getsubopt: work around cygwin bug
31226         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31227         avoid conflicting with system getsubopt.
31228         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31229         bug.
31230
31231         getopt: synchronize from glibc
31232         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31233         parameter order.  Adjust all callers.
31234         (_getopt_internal_r, main): Adjust quoting in error messages.
31235         Drop considerations for outdated POSIX 1003.2 error message.
31236         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31237         callers.
31238         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31239
31240         test-getopt: test stderr behavior
31241         * modules/getopt-posix-tests (Depends-on): Add dup2.
31242         * tests/test-getopt.c (ASSERT): Avoid stderr.
31243         (main): Move stderr to a temporary file.
31244         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31245         Instead, add parameter to inform caller if output occurred.
31246         (test_getopt): Adjust all existing tests to expect silence, and
31247         add new tests of leading ":".
31248         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31249         glibc shortcomings with leading "-:" or "+:" in optstring.
31250         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31251         Likewise.
31252         * doc/posix-functions/getopt.texi (getopt): Likewise.
31253
31254         test-getopt: enhance test
31255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31256         supports optind=0.
31257         * tests/test-getopt.c (OPTIND_MIN): Move...
31258         * tests/test-getopt.h (OPTIND_MIN): ...here.
31259         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31260         Require that optind=0 works, since modern BSD supports it in
31261         addition to optreset, and since coreutils expects it.
31262         (test_getopt_long_only): New test.
31263         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31264         glibc shortcomings with 'W;', and enforcement of optind=0.
31265         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31266         Likewise.
31267
31268 2009-12-21  Bruno Haible  <bruno@clisp.org>
31269
31270         localename: Improvements for MacOS X and Cygwin.
31271         * lib/localename.h (gl_locale_name_environ): New declaration.
31272         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31273         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31274         (gl_locale_name_posix): Invoke it.
31275         (gl_locale_name_default): Add comments. Use Windows native API also on
31276         Cygwin.
31277
31278 2009-12-21  Bruno Haible  <bruno@clisp.org>
31279
31280         Update list of Win32 locale ids.
31281         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31282         (LANG_SAMI): Renamed from LANG_SAAMI.
31283         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31284         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31285         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31286         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31287         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31288         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31289         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31290         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31291         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31292         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31293         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31294         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31295         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31296         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31297         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31298         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31299         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31300         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31301         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31302         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31303         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31304         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31305         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31306         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31307         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31308         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31309         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31310         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31311         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31312         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31313         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31314         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31315         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31316         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31317         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31318         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31319         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31320         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31321         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31322         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31323         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31324         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31325         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31326         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31327         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31328         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31329         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31330         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31331         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31332         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31333         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31334         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31335         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31336         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31337         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31338         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31339         Add more languages and countries for Sami, Sorbian. Add more countries
31340         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31341         for Pashto. Change country for Syriac, Tswana.
31342
31343 2009-12-21  Eric Blake  <ebb9@byu.net>
31344
31345         test-utimens: avoid spurious failure
31346         * tests/test-chown.h (nap): Factor...
31347         * tests/nap.h: ...into new file.
31348         * tests/test-lchown.h (nap): Avoid duplication.
31349         * tests/test-utimens-common.h (nap): Use shared implementation,
31350         necessary on file systems with 1-second resolution.
31351         * modules/chown-tests (Files): Include new file.
31352         * modules/fdutimensat-tests (Files): Likewise.
31353         * modules/futimens-tests (Files): Likewise.
31354         * modules/lchown-tests (Files): Likewise.
31355         * modules/openat-tests (Files): Likewise.
31356         * modules/utimens-tests (Files): Likewise.
31357         * modules/utimensat-tests (Files): Likewise.
31358
31359 2009-12-19  Eric Blake  <ebb9@byu.net>
31360
31361         futimens, utimensat: work around Linux bug
31362         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31363         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31364         * lib/utimensat.c (rpl_utimensat): Work around it.
31365         * lib/futimens.c (rpl_futimens): Adjust comment.
31366
31367         utimens: work around Linux ctime bug
31368         * lib/utimens.c (detect_ctime_bug): New helper function.
31369         (update_timespec): Differentiate between workaround needed for
31370         this bug vs. what is needed for systems that lack utimensat.
31371         (fdutimens, lutimens): Work around bug.
31372
31373         utimens: check for ctime update
31374         * tests/test-utimens-common.h (check_ctime): Define.
31375         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31376         * tests/test-futimens.h (test_futimens): Likewise.
31377         * tests/test-lutimens.h (test_lutimens): Likewise.
31378         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31379         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31380
31381 2009-12-19  Bruno Haible  <bruno@clisp.org>
31382
31383         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31384         * tests/test-dprintf-posix2.sh: New file.
31385         * tests/test-dprintf-posix2.c: New file.
31386         * modules/dprintf-posix-tests (Files): Add them.
31387         (configure.ac): Check for getrlimit and setrlimit.
31388         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31389
31390 2009-12-19  Bruno Haible  <bruno@clisp.org>
31391
31392         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31393         * tests/test-fprintf-posix3.sh: New file.
31394         * tests/test-fprintf-posix3.c: New file.
31395         * modules/fprintf-posix-tests (Files): Add them.
31396         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31397
31398 2009-12-19  Eric Blake  <ebb9@byu.net>
31399
31400         dirfd: fix prototype
31401         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31402         * lib/dirfd.c (dirfd): Likewise.
31403
31404         canonicalize: reduce memory usage
31405         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31406         allocation to size.
31407         Reported by Solar Designer <solar@openwall.com>.
31408
31409 2009-12-19  Bruno Haible  <bruno@clisp.org>
31410
31411         New module attribute 'Applicability'.
31412         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31413         * gnulib-tool: New option --extract-applicability.
31414         (func_usage): Document it.
31415         (sed_extract_prog): Recognize it.
31416         (func_get_applicability): New function.
31417         (func_import): Generalize handling of 'link-warning' module.
31418         * modules/link-warning (Applicability): New section.
31419         * modules/arg-nonnull (Applicability): New section.
31420         Repoted by Simon Josefsson <simon@josefsson.org>.
31421
31422 2009-12-19  Bruno Haible  <bruno@clisp.org>
31423
31424         fflush: tweak
31425         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31426         * lib/fseeko.c (rpl_fseeko): Likewise.
31427
31428 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31429
31430         * lib/gl_list.h: Fix typo in comment.
31431
31432 2009-12-16  Eric Blake  <ebb9@byu.net>
31433
31434         fcntl: use to simplify other modules
31435         * modules/cloexec (Depends-on): Add fcntl.
31436         * modules/fchdir (Depends-on): Likewise.
31437         * modules/fd-safer-flag (Depends-on): Likewise.
31438         * modules/unistd-safer (Depends-on): Likewise.
31439         * modules/dup3 (configure.ac): Set module indicator.
31440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31441         missing.
31442         * lib/fchdir.c (_gl_register_dup): Fix comment.
31443         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31444         * lib/dup-safer.c (dup_safer): Likewise.
31445         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31446         * lib/dup3.c (dup3): Likewise.
31447         * tests/test-fchdir.c (main): Enhance test.
31448         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31449
31450         fcntl: port portions of fcntl to mingw
31451         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31452         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31453         replacement for mingw.
31454         * modules/fcntl (Description): Update.
31455         (Depends-on): Add dup2.
31456         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31457         * modules/fcntl-h (Makefile.am): Substitute it.
31458         * lib/fcntl.in.h (fcntl): Update declaration.
31459         (F_DUPFD, F_GETFD): New macros, when needed.
31460         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31461         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31462         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31463         we now guarantee.
31464
31465         fcntl: work around cygwin bug in F_DUPFD
31466         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31467         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31468         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31469         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31470         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31471
31472         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31473         * modules/fcntl (Files): List new files.
31474         (configure.ac): Run a test.
31475         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31476         * lib/fcntl.c (rpl_fcntl): Likewise.
31477         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31478         (gl_FCNTL_H): Always replace fcntl.h.
31479         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31480         * lib/fcntl.in.h (fcntl): Declare replacement.
31481         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31482         needed, plus a witness.
31483         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31484         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31485         * tests/test-fcntl.c: New file.
31486         * modules/fcntl-tests: Likewise.
31487
31488         binary-io: avoid potential compilation warning
31489         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31490         directives.
31491
31492         fflush: avoid compilation error on NetBSD
31493         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31494         between off_t and fpos_t, since the latter is sometimes a struct.
31495         * lib/fseeko.c (rpl_fseeko): Likewise.
31496         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31497
31498 2009-12-15  Eric Blake  <ebb9@byu.net>
31499
31500         fcntl-h, stdio, sys_ioctl: fix declarations
31501         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31502         function must not take arguments.
31503         * lib/sys_ioctl.in.h (ioctl): Likewise.
31504         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31505         (open): Add a link warning.
31506
31507 2009-12-15  Jim Meyering  <meyering@redhat.com>
31508
31509         areadlink, areadlink-with-size: relax license to LGPLv2+
31510         * modules/areadlink (License): Relax to LGPLv2+.
31511         * modules/areadlink-with-size (License): Likewise.
31512
31513 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31514             Bruno Haible  <bruno@clisp.org>
31515
31516         *printf: Fix memory leak.
31517         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31518         * lib/vfprintf.c (vfprintf): Likewise.
31519         * lib/dprintf.c (dprintf): Likewise.
31520         * lib/vdprintf.c (vdprintf): Likewise.
31521
31522 2009-12-14  Eric Blake  <ebb9@byu.net>
31523
31524         accept4: adjust module dependencies
31525         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31526
31527         utimens: one more try at avoiding compiler warning
31528         * lib/utimens.c (lutimens): Lower scope of result.
31529
31530 2009-12-13  Bruno Haible  <bruno@clisp.org>
31531
31532         Move the malloc checking from module 'list' to new module 'xlist'.
31533         * modules/xlist: New file.
31534         * lib/gl_xlist.h: New file.
31535         * lib/gl_xlist.c: New file.
31536         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31537         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31538         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31539         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31540         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31541         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31542         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31543         gl_sortedlist_nx_add): New declarations.
31544         (struct gl_list_implementation): Rename and change methods accordingly.
31545         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31546         (gl_list_nx_create): Renamed from gl_list_create.
31547         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31548         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31549         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31550         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31551         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31552         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31553         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31554         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31555         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31556         gl_list_create_empty.
31557         (gl_list_nx_create): Renamed from gl_list_create.
31558         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31559         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31560         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31561         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31562         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31563         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31564         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31565         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31566         * lib/gl_array_list.c: Don't include xalloc.h.
31567         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31568         NULL upon out-of-memory.
31569         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31570         out-of-memory.
31571         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31572         Change return type to 'int'.
31573         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31574         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31575         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31576         upon out-of-memory.
31577         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31578         upon out-of-memory.
31579         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31580         upon out-of-memory.
31581         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31582         upon out-of-memory.
31583         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31584         out-of-memory.
31585         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31586         Update.
31587         (gl_array_list_implementation): Update.
31588         * lib/gl_carray_list.c: Don't include xalloc.h.
31589         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31590         Return NULL upon out-of-memory.
31591         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31592         out-of-memory.
31593         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31594         Change return type to 'int'.
31595         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31596         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31597         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31598         upon out-of-memory.
31599         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31600         upon out-of-memory.
31601         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31602         out-of-memory.
31603         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31604         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31605         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31606         Update.
31607         (gl_carray_list_implementation): Update.
31608         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31609         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31610         gl_linked_create_empty. Return NULL upon out-of-memory.
31611         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31612         out-of-memory.
31613         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31614         Change return type to 'int'. Return -1 upon out-of-memory.
31615         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31616         out-of-memory.
31617         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31618         upon out-of-memory.
31619         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31620         upon out-of-memory.
31621         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31622         NULL upon out-of-memory.
31623         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31624         upon out-of-memory.
31625         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31626         out-of-memory.
31627         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31628         Update.
31629         * lib/gl_linked_list.c: Don't include xalloc.h.
31630         (gl_linked_list_implementation): Update.
31631         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31632         (add_to_bucket): Change return type to 'int'.
31633         (gl_linkedhash_list_implementation): Update.
31634         * lib/gl_anytree_list1.h (free_subtree): New function.
31635         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31636         gl_tree_create_empty. Return NULL upon out-of-memory.
31637         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31638         Change return type to 'int'. Return -1 upon out-of-memory.
31639         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31640         out-of-memory.
31641         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31642         (gl_tree_remove_node): New function, moved here from
31643         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31644         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31645         Update.
31646         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31647         malloc, not xmalloc. Return NULL upon out-of-memory.
31648         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31649         out-of-memory.
31650         (gl_tree_remove_node_from_tree): New function, extracted from
31651         gl_tree_remove_node.
31652         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31653         upon out-of-memory.
31654         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31655         out-of-memory.
31656         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31657         upon out-of-memory.
31658         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31659         upon out-of-memory.
31660         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31661         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31662         not xmalloc. Return NULL upon out-of-memory.
31663         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31664         out-of-memory.
31665         (gl_tree_remove_node_from_tree): New function, extracted from
31666         gl_tree_remove_node.
31667         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31668         upon out-of-memory.
31669         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31670         out-of-memory.
31671         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31672         upon out-of-memory.
31673         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31674         upon out-of-memory.
31675         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31676         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31677         gl_anytree_list1.h before gl_anyavltree_list2.h.
31678         (gl_avltree_list_implementation): Update.
31679         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31680         gl_anytree_list1.h before gl_anyavltree_list2.h.
31681         (gl_rbtree_list_implementation): Update.
31682         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31683         Change return type to 'int'. Return -1 upon out-of-memory. Use
31684         __builtin_expect.
31685         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31686         (gl_avltreehash_list_implementation): Update.
31687         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31688         (gl_rbtreehash_list_implementation): Update.
31689         * modules/array-list (Depends-on): Remove xalloc.
31690         * modules/carray-list (Depends-on): Likewise.
31691         * modules/linked-list (Depends-on): Likewise.
31692         * modules/linkedhash-list (Depends-on): Likewise.
31693         * modules/avltree-list (Depends-on): Likewise.
31694         * modules/rbtree-list (Depends-on): Likewise.
31695         * modules/avltreehash-list (Depends-on): Likewise.
31696         * modules/rbtreehash-list (Depends-on): Likewise.
31697
31698         * modules/xsublist: New file.
31699         * lib/gl_xsublist.h: New file.
31700         * lib/gl_xsublist.c: New file.
31701         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31702         (gl_sublist_nx_create): New declaration.
31703         * lib/gl_sublist.c: Don't include xalloc.h.
31704         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31705         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31706         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31707         Change return type to 'int'. Return -1 upon out-of-memory.
31708         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31709         upon out-of-memory.
31710         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31711         NULL upon out-of-memory.
31712         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31713         upon out-of-memory.
31714         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31715         NULL upon out-of-memory.
31716         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31717         NULL upon out-of-memory.
31718         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31719         upon out-of-memory.
31720         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31721         (gl_sublist_list_implementation): Update.
31722         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31723         upon out-of-memory.
31724         * modules/sublist (Depends-on): Remove xalloc.
31725
31726         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31727         * tests/test-carray_list.c: Likewise.
31728         * tests/test-linked_list.c: Likewise.
31729         * tests/test-linkedhash_list.c: Likewise.
31730         * tests/test-avltree_list.c: Likewise.
31731         * tests/test-rbtree_list.c: Likewise.
31732         * tests/test-avltreehash_list.c: Likewise.
31733         * tests/test-rbtreehash_list.c: Likewise.
31734         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31735         * modules/carray-list-tests (Makefile.am): Likewise.
31736         * modules/linked-list-tests (Makefile.am): Likewise.
31737         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31738         * modules/avltree-list-tests (Makefile.am): Likewise.
31739         * modules/rbtree-list-tests (Makefile.am): Likewise.
31740         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31741         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31742
31743         * NEWS: Mention the changes.
31744
31745         * lib/clean-temp.c: Include gl_xlist.h.
31746         * modules/clean-temp (Depends-on): Add xlist.
31747
31748         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31749         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31750
31751         * tests/test-array_oset.c: Include gl_xlist.h.
31752         * modules/array-oset-tests (Depends-on): Add xlist.
31753
31754         Reported by José E. Marchesi <jemarch@gnu.org>.
31755
31756 2009-12-13  Bruno Haible  <bruno@clisp.org>
31757
31758         Move the malloc checking from module 'oset' to new module 'xoset'.
31759         * modules/xoset: New file.
31760         * lib/gl_xoset.h: New file.
31761         * lib/gl_xoset.c: New file.
31762         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31763         declarations.
31764         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31765         (struct gl_oset_implementation): Rename and change methods accordingly.
31766         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31767         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31768         'int'. Mark as __warn_unused_result__.
31769         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31770         gl_oset_create_empty.
31771         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31772         'int'.
31773         * lib/gl_array_oset.c: Don't include xalloc.h.
31774         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31775         malloc, not xmalloc.
31776         (grow): Change return type to 'int'. Don't call xalloc_die.
31777         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31778         to 'int'.
31779         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31780         'int'.
31781         (gl_array_oset_implementation): Update.
31782         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31783         gl_tree_create_empty.
31784         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31785         'int'.
31786         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31787         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31788         xmalloc.
31789         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31790         not xmalloc.
31791         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31792         xmalloc.
31793         (gl_avltree_oset_implementation): Update.
31794         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31795         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31796         xmalloc.
31797         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31798         not xmalloc.
31799         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31800         xmalloc.
31801         (gl_rbtree_oset_implementation): Update.
31802         * modules/array-oset (Depends-on): Remove xalloc.
31803         * modules/avltree-oset (Depends-on): Likewise.
31804         * modules/rbtree-oset (Depends-on): Likewise.
31805         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31806         * tests/test-avltree_oset.c: Likewise.
31807         * tests/test-rbtree_oset.c: Likewise.
31808         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31809         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31810         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31811         * NEWS: Mention the change.
31812
31813 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31814
31815         maint.mk: allow a project to override release-prep commands
31816         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31817         commands into a new rule.
31818         (release-prep): New rule.
31819         (release-prep-hook): New overridable variable.
31820
31821 2009-12-13  Bruno Haible  <bruno@clisp.org>
31822
31823         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31824
31825 2009-12-13  Jim Meyering  <meyering@redhat.com>
31826
31827         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31828         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31829
31830 2009-12-12  Bruno Haible  <bruno@clisp.org>
31831
31832         duplocale: Tweak.
31833         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31834
31835 2009-12-12  Karl Berry  <karl@gnu.org>
31836
31837         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31838
31839 2009-12-12  Bruno Haible  <bruno@clisp.org>
31840
31841         * m4/po.m4: Undo incorrect untabification.
31842
31843 2009-12-12  Bruno Haible  <bruno@clisp.org>
31844
31845         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31846         * modules/c-strtod (Depends-on): Add locale.
31847         * modules/c-strtold (Depends-on): Likewise.
31848
31849 2009-12-12  Bruno Haible  <bruno@clisp.org>
31850
31851         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31852
31853 2009-12-11  Eric Blake  <ebb9@byu.net>
31854
31855         setenv: relax requirement in light of POSIX ruling
31856         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31857         not NULL.
31858         * tests/test-setenv.c (main): Relax test.
31859         * tests/test-unsetenv.c (main): Likewise.
31860         * doc/posix-functions/setenv.texi (setenv): Document this.
31861         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31862
31863 2009-12-11  Bruno Haible  <bruno@clisp.org>
31864
31865         New module 'fd-safer-flag'.
31866         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31867         * lib/dup-safer.c (dup_safer_flag): Remove function.
31868         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31869         * lib/fd-safer.c (fd_safer_flag): Remove function.
31870         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31871         * modules/cloexec (configure.ac): Drop indicator macro.
31872         * modules/fd-safer-flag: New file.
31873         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31874         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31875         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31876
31877 2009-12-11  Bruno Haible  <bruno@clisp.org>
31878
31879         Tests for module 'nl_langinfo'.
31880         * modules/nl_langinfo-tests: New file.
31881         * tests/test-nl_langinfo.sh: New file.
31882         * tests/test-nl_langinfo.c: New file.
31883
31884         New module 'nl_langinfo'.
31885         * lib/nl_langinfo.c: New file.
31886         * m4/nl_langinfo.m4: New file.
31887         * modules/nl_langinfo: New file.
31888         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31889
31890 2009-12-11  Bruno Haible  <bruno@clisp.org>
31891
31892         Tests for module 'langinfo'.
31893         * modules/langinfo-tests: New file.
31894         * tests/test-langinfo.c: New file.
31895
31896         New module 'langinfo'.
31897         * lib/langinfo.in.h: New file.
31898         * m4/langinfo_h.m4: New file.
31899         * modules/langinfo: New file.
31900         * doc/posix-headers/langinfo.texi: Mention the new module.
31901
31902 2009-12-11  Bruno Haible  <bruno@clisp.org>
31903
31904         * lib/config.charset: Untabify.
31905
31906 2009-12-11  Bruno Haible  <bruno@clisp.org>
31907
31908         * modules/unistd-safer (configure.ac): Drop indicator macro.
31909
31910 2009-12-11  Bruno Haible  <bruno@clisp.org>
31911
31912         Move pipe2-safer code to its own file.
31913         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31914         * lib/pipe-safer.c (pipe2_safer): Remove function.
31915         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31916         (Makefile.am): Add it to lib_SOURCES.
31917
31918 2009-12-10  Bruno Haible  <bruno@clisp.org>
31919
31920         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31921
31922 2009-12-10  Bruno Haible  <bruno@clisp.org>
31923
31924         Declare which arguments expect non-NULL values, for GCC and clang.
31925         * build-aux/arg-nonnull.h: New file.
31926         * modules/arg-nonnull: New file.
31927         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31928         (inet_ntop, inet_pton): Use it.
31929         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31930         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31931         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31932         (open, openat): Use it.
31933         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31934         (fnmatch): Use it.
31935         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31936         (getopt, getopt_long, getopt_long_only): Use it.
31937         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31938         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31939         Use it.
31940         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31941         (iconv_open): Use it.
31942         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31943         (strtoimax, strtoumax): Use it.
31944         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31945         (duplocale): Use it.
31946         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31947         (frexp, frexpl): Use it.
31948         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31949         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31950         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31951         (tsearch, tfind, tdelete, twalk): Use it.
31952         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31953         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31954         sigpending): Use it.
31955         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31956         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31957         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31958         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31959         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31960         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31961         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31962         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31963         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31964         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31965         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31966         Use it.
31967         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31968         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31969         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31970         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31971         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31972         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31973         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31974         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31975         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31976         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31977         strtoull, unsetenv): Use it.
31978         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31979         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31980         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31981         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31982         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31983         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31984         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31985         (strcasecmp, strncasecmp): Use it.
31986         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31987         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31988         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31989         rpl_setsockopt): Use it.
31990         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31991         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31992         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31993         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31994         (gettimeofday): Use it.
31995         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31996         (times): Use it.
31997         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31998         (uname): Use it.
31999         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32000         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32001         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32002         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32003         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32004         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32005         unlinkat, write): Use it.
32006         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32007         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32008         * lib/argv-iter.h: Include arg-nonnull.h.
32009         (_ATTRIBUTE_NONNULL_): Remove macro.
32010         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32011         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32012         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32013         optimization.
32014         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32015         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32016         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32017         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32018         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32019         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32020         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32021         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32022         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32023         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32024         * modules/dirent (Depends-on): Add arg-nonnull.
32025         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32026         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32027         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32028         * modules/fnmatch (Depends-on): Add arg-nonnull.
32029         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32030         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32031         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32032         * modules/glob (Depends-on): Add arg-nonnull.
32033         (Makefile.am): Insert arg-nonnull.h into glob.h.
32034         * modules/iconv_open (Depends-on): Add arg-nonnull.
32035         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32036         * modules/inttypes (Depends-on): Add arg-nonnull.
32037         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32038         * modules/locale (Depends-on): Add arg-nonnull.
32039         (Makefile.am): Insert arg-nonnull.h into locale.h.
32040         * modules/math (Depends-on): Add arg-nonnull.
32041         (Makefile.am): Insert arg-nonnull.h into math.h.
32042         * modules/netdb (Depends-on): Add arg-nonnull.
32043         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32044         * modules/search (Depends-on): Add arg-nonnull.
32045         (Makefile.am): Insert arg-nonnull.h into search.h.
32046         * modules/signal (Depends-on): Add arg-nonnull.
32047         (Makefile.am): Insert arg-nonnull.h into signal.h.
32048         * modules/spawn (Depends-on): Add arg-nonnull.
32049         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32050         * modules/stdio (Depends-on): Add arg-nonnull.
32051         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32052         * modules/stdlib (Depends-on): Add arg-nonnull.
32053         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32054         * modules/string (Depends-on): Add arg-nonnull.
32055         (Makefile.am): Insert arg-nonnull.h into string.h.
32056         * modules/strings (Depends-on): Add arg-nonnull.
32057         (Makefile.am): Insert arg-nonnull.h into strings.h.
32058         * modules/sys_socket (Depends-on): Add arg-nonnull.
32059         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32060         * modules/sys_stat (Depends-on): Add arg-nonnull.
32061         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32062         * modules/sys_time (Depends-on): Add arg-nonnull.
32063         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32064         * modules/sys_times (Depends-on): Add arg-nonnull.
32065         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32066         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32067         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32068         * modules/time (Depends-on): Add arg-nonnull.
32069         (Makefile.am): Insert arg-nonnull.h into time.h.
32070         * modules/unistd (Depends-on): Add arg-nonnull.
32071         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32072         * modules/wchar (Depends-on): Add arg-nonnull.
32073         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32074         * modules/argv-iter (Depends-on): Add arg-nonnull.
32075         * tests/test-canonicalize.c (null_ptr): New function.
32076         (main): Use it.
32077         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32078         (main): Use it.
32079         * tests/test-memmem.c (null_ptr): New function.
32080         (main): Use it.
32081         Reported by Jim Meyering.
32082
32083 2009-12-10  Bruno Haible  <bruno@clisp.org>
32084
32085         Use spaces for indentation, not tabs.
32086         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32087         * m4/*.m4: Untabify.
32088         * build-aux/*.h: Untabify.
32089         * tests/**/*.[hc]: Untabify.
32090         * README: New section "Indent with spaces, not TABs", based on
32091         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32092         * NEWS: Mention the change.
32093
32094 2009-12-10  Bruno Haible  <bruno@clisp.org>
32095
32096         pty test: Fix link error.
32097         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32098         test_pty_LDADD.
32099
32100 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32101
32102         * modules/pty: New file.
32103         * modules/pty-tests: New file.
32104         * m4/pty.m4: New file.
32105         * tests/test-pty.c: New file.
32106         * doc/glibc-headers/pty.texi: Modified.
32107         * doc/glibc-functions/forkpty.texi: Modified.
32108         * doc/glibc-functions/openpty.texi: Modified.
32109
32110 2009-12-10  Bruno Haible  <bruno@clisp.org>
32111
32112         Avoid syntax error in C++ mode.
32113         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32114
32115 2009-12-10  Bruno Haible  <bruno@clisp.org>
32116
32117         Use sed with option -e.
32118         * gnulib-tool (func_version, func_emit_copyright_notice,
32119         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32120         option -e to sed.
32121         * modules/link-warning (Makefile.am): Likewise.
32122
32123 2009-12-10  Jim Meyering  <meyering@redhat.com>
32124
32125         mgetgroups: do not write bytes beyond end of malloc'd buffer
32126         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32127         username, we call getgroups with a one-element-shorter buffer,
32128         but still told it the length was original, max_n_groups.
32129
32130 2009-12-09  Eric Blake  <ebb9@byu.net>
32131
32132         cloexec: relax license
32133         * modules/cloexec (Maintainer): Add myself.
32134         (License): Use LGPL, not GPL.
32135
32136         link-warning: optimize generation
32137         * modules/link-warning (Makefile.am): Reduce process usage.
32138
32139 2009-12-09  Bruno Haible  <bruno@clisp.org>
32140
32141         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32142         workaround was added on 2009-11-17.
32143
32144 2009-12-09  Jim Meyering  <meyering@redhat.com>
32145             Bruno Haible  <bruno@clisp.org>
32146
32147         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32148         * modules/link-warning (Makefile.am): Make the comment-removing sed
32149         command more robust in the face of bootstrap-prepended comment lines.
32150
32151 2009-12-09  Bruno Haible  <bruno@clisp.org>
32152
32153         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32154         most one group.
32155
32156 2009-12-09  Simon Josefsson <simon@josefsson.org>
32157             Bruno Haible  <bruno@clisp.org>
32158
32159         * build-aux/link-warning.h: Add copyright notice.
32160         * modules/link-warning (Makefile.am): Generate link-warning.h from
32161         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32162         * NEWS: Mention change in link-warning module.
32163         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32164         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32165         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32166         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32167         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32168         * modules/math (Makefile.am): Add dependency to math.h.
32169         * modules/search (Makefile.am): Add dependency to search.h.
32170         * modules/signal (Makefile.am): Add dependency to signal.h.
32171         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32172         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32173         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32174         * modules/string (Makefile.am): Add dependency to string.h.
32175         * modules/strings (Makefile.am): Add dependency to strings.h.
32176         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32177         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32178         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32179         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32180         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32181         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32182         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32183         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32184         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32185
32186 2009-12-09  Bruno Haible  <bruno@clisp.org>
32187
32188         fchdir: Optimize away rpl_fstat when possible.
32189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32190         REPLACE_OPEN_DIRECTORY.
32191         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32192
32193 2009-12-09  Bruno Haible  <bruno@clisp.org>
32194
32195         * lib/fchdir.c: Update comment.
32196
32197 2009-12-09  Bruno Haible  <bruno@clisp.org>
32198
32199         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32200
32201 2009-12-08  Eric Blake  <ebb9@byu.net>
32202
32203         fchdir: avoid memory leak on re-registration.
32204         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32205
32206 2009-12-08  Jim Meyering  <meyering@redhat.com>
32207
32208         init.sh: avoid Solaris 10 /bin/sh portability problem
32209         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32210         sourced script:
32211           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32212           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32213           bar
32214         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32215         and two tests used that idiom.
32216         * tests/init.sh: Update suggested usage comments.
32217         (path_prepend_): New function, to be used in place
32218         of the --src-path=DIR option.
32219         (setup_): Move PATH-prepending code into path_prepend_.
32220         * tests/test-pread.sh: Adapt to new usage.
32221         * tests/test-xalloc-die.sh: Likewise.
32222
32223 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32224
32225         * doc/gnulib.texi (Glibc pty.h): Add.
32226         * doc/glibc-functions/forkpty.texi: Add.
32227         * doc/glibc-functions/openpty.texi: Add.
32228         Suggested by Bruno Haible.
32229
32230 2009-12-08  Eric Blake  <ebb9@byu.net>
32231
32232         fchdir: fix logic bugs
32233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32234         * tests/test-fchdir.c (main): Enhance test.
32235         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32236         is in use.
32237
32238         dup2: fix logic bugs
32239         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32240         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32241         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32242         exists.
32243         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32244
32245 2009-12-07  Eric Blake  <ebb9@byu.net>
32246
32247         unlink: fix m4 detection
32248         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32249
32250         unistd-safer: add unit test
32251         * modules/unistd-safer-tests: New file.
32252         * tests/test-dup-safer.c: Likewise.
32253         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32254         * tests/test-dup2.c (setmode): Likewise.
32255         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32256
32257         cloexec: preserve text vs. binary across dup_cloexec
32258         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32259         mode.
32260         * modules/dup2-tests (Depends-on): Add binary-io.
32261         * modules/cloexec-tests (Depends-on): Likewise.
32262         * tests/test-dup2.c (setmode, is_mode): New helpers.
32263         (main): Add tests that translation mode is preserved.
32264         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32265         Reported by Bruno Haible.
32266
32267         mgetgroups: reduce duplicate listings
32268         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32269         resulting array.
32270         * tests/test-chown.h (test_chown): Simplify client.
32271         * tests/test-lchown.h (test_lchown): Likewise.
32272
32273 2009-12-06  Bruno Haible  <bruno@clisp.org>
32274
32275         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32276         value.
32277
32278 2009-12-06  Bruno Haible  <bruno@clisp.org>
32279
32280         * lib/progname.c: Include stdio.h, stdlib.h.
32281         (set_program_name): Reject a NULL argument.
32282
32283 2009-12-05  Eric Blake  <ebb9@byu.net>
32284
32285         pipe2-safer: new module
32286         * modules/pipe2-safer: New file.
32287         * lib/unistd-safer.h (pipe2_safer): New prototype.
32288         * lib/unistd--.h (pipe2): New wrapper.
32289         * lib/pipe-safer.c (pipe2_safer): New function.
32290         * modules/pipe (Depends-on): Add pipe2-safer.
32291         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32292
32293         stdlib-safer: preserve cloexec flag for mkostemp[s]
32294         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32295         fd_safer_flag.
32296
32297         unistd-safer: allow preservation of cloexec status via flag
32298         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32299         prototypes.
32300         * lib/dup-safer.c (dup_safer_flag): New function.
32301         * lib/fd-safer.c (fd_safer_flag): Likewise.
32302         * modules/cloexec (configure.ac): Set witness.
32303
32304         test-dup2: enhance test
32305         * modules/dup2-tests (Depends-on): Add cloexec.
32306         * tests/test-dup2.c (main): Enhance test.
32307
32308         cloexec: add dup_cloexec
32309         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32310         header and comments.
32311         * lib/cloexec.c (set_cloexec_flag): Add comments.
32312         (dup_cloexec): New function, with mingw implementation borrowed
32313         from...
32314         * lib/w32spawn.h (dup_noinherit): ...here.
32315         * modules/execute (Depends-on): Add cloexec.
32316         * modules/pipe (Depends-on): Likewise.
32317         * modules/cloexec (Depends-on): Add dup2.
32318         * modules/cloexec-tests (Files): New file.
32319         * tests/test-cloexec.c: Likewise.
32320
32321         test-xalloc-die: fix test for mingw
32322         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32323         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32324         directory and .exe suffix off argv[0] output.
32325
32326         test-fseeko: fix test for mingw
32327         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32328         than undefining fseek, so test will pass on mingw.
32329
32330 2009-12-05  Bruno Haible  <bruno@clisp.org>
32331
32332         * lib/progname.h (set_program_name): Clarify specification.
32333         * lib/progname.c (set_program_name): Likewise.
32334         Reported by Jim Meyering.
32335
32336 2009-12-05  Jim Meyering  <meyering@redhat.com>
32337
32338         maint.mk: backslash-escape parens in default regexp
32339         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32340         backslash-escape the literal parentheses.
32341
32342         maint.mk: news-date-check: use grep -E
32343         * top/maint.mk (today): Define a Make variable, not a...
32344         (news-date-check): ...shell variable.
32345         (news-date-regexp): Use the Make variable.
32346         Use grep's -E option.  Change the failing diagnostic to mention
32347         the variable, $(news-date-regexp).
32348
32349 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32350
32351         maintainer-makefile: allow customization of NEWS entry format
32352         * top/maint.mk (news-date-regexp): New overridable variable.
32353         (news-date-check): Use it.
32354
32355 2009-12-04  Eric Blake  <ebb9@byu.net>
32356
32357         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32358         * lib/mgetgroups.h (xgetgroups): New prototype.
32359         * lib/mgetgroups.c (xgetgroups): New wrapper.
32360         (mgetgroups): Handle ENOSYS.
32361         * modules/mgetgroups (Depends-on): Add realloc.
32362         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32363
32364         mgetgroups: avoid argument promotion issues with -1
32365         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32366         for invalid gid_t.
32367         * tests/test-chown.h (getegid, test_chown): Likewise.
32368         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32369
32370 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32371
32372         exclude: Fix header file problems.
32373         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32374
32375 2009-12-01  Jim Meyering  <meyering@redhat.com>
32376
32377         fts: fts_open: do not let an empty string cause immediate failure
32378         This is required in support of GNU rm, for which the command
32379         "rm A '' B" must process and remove both A and B, in spite of
32380         the empty string argument.
32381         * lib/fts.c (fts_open): Do not let the presence of an empty string
32382         cause fts_open to fail immediately.  Most fts-using tools must be
32383         able to process all arguments, in order, and can be expected to
32384         diagnose such arguments themselves.
32385
32386 2009-11-30  Eric Blake  <ebb9@byu.net>
32387
32388         utimens: fix compilation error
32389         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32390         Declare variable at right scope.
32391
32392 2009-11-29  Jim Meyering  <meyering@redhat.com>
32393
32394         bootstrap: handle perl-5.11's changed --version output
32395         * build-aux/bootstrap (get_version): Handle perl separately,
32396         since perl-5.11's --version output is different.
32397
32398 2009-11-28  Jim Meyering  <meyering@redhat.com>
32399
32400         userspec: depend on the inttostr module, too
32401         * modules/userspec (Depends-on): Add inttostr.
32402
32403         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32404         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32405         number of MAXUID when it evaluates to (uid_t) -1.
32406         Likewise for group ID.  Reported by Matt McCutchen in
32407         <http://savannah.gnu.org/bugs/?28113>
32408
32409         userspec: reformat to use spaces, not TABs
32410         * lib/userspec.c: Expand TABs to spaces.
32411         Add Emacs' "indent-tabs-mode: nil" hint.
32412
32413 2009-11-27  Eric Blake  <ebb9@byu.net>
32414
32415         getopt-gnu: flush out another BSD bug
32416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32417         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32418         flush out BSD bug.
32419         * tests/test-getopt.h (test_getopt): End lists with NULL.
32420         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32421         (test_getopt_long_posix): Enhance test.
32422         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32423         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32424         getopt-gnu.
32425         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32426         Likewise.
32427
32428 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32429
32430         * modules/idpriv-droptemp-tests (Notice): Fix text.
32431
32432 2009-11-27  Jim Meyering  <meyering@redhat.com>
32433
32434         test-xalloc-die: avoid spurious failure due to libtool argv difference
32435         In a libtool-enabled project, this test would fail due to a difference
32436         in the emitted program name, e.g.,
32437         -test-xalloc-die: memory exhausted
32438         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32439         Use program to avoid that.
32440         * modules/xalloc-die-tests (Depends-on): Add progname.
32441         * tests/test-xalloc-die.c: Include progname.h".
32442         (program_name): Remove decl.
32443         (main): Call set_program_name.
32444         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32445
32446 2009-11-26  Richard Jones  <rjones@redhat.com>
32447
32448         w32sock: leave win32 error in place.
32449         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32450
32451 2009-11-26  Eric Blake  <ebb9@byu.net>
32452
32453         init.sh: suggest to use skip_ and fail_ functions in comments
32454         * tests/init.sh: Add a sentence.
32455
32456 2009-11-25  Bruno Haible  <bruno@clisp.org>
32457
32458         init.sh: add documentation in comments
32459         * tests/init.sh: Add some developer and user documentation.
32460
32461 2009-11-26  Jim Meyering  <meyering@redhat.com>
32462
32463         init.sh: accommodate even those who specify bogus srcdir manually
32464         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32465         configure-time tests to be sanitized, so that there is no need to
32466         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32467         (with no double quotes) suffices.  However, since tests may be
32468         invoked manually, and since you may explicitly set srcdir to the
32469         name of a directory containing spaces, do quote its uses here.
32470         * tests/test-pread.sh: Likewise.
32471         Suggested by Bruno Haible.
32472
32473         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32474         * tests/test-pread.sh: Write no data into the pipe, because
32475         test-pread actually reads none.  This avoids a diagnostic,
32476         "bash: echo: write error: Broken pipe", that arises in the unusual
32477         event something is ignoring SIGPIPE, and might be interpreted
32478         as some sort of failure.  Reported by Bruno Haible.
32479
32480 2009-11-25  Jim Meyering  <meyering@redhat.com>
32481
32482         test-pread: cover failure with ESPIPE and EINVAL
32483         * tests/test-pread.c (main): Test for failure, too.
32484         * tests/test-pread.sh: Invoke with stdin on a pipe.
32485         Suggested by Eric Blake.
32486
32487         pread: improvement and fix
32488         * modules/pread (Depends-on): Depend on lseek, for portability to
32489         e.g., mingw.  Suggested by Eric Blake.
32490         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32491
32492         unistd.in.h: correct declaration of pread
32493         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32494         Reported by Richard W.M. Jones.
32495
32496         test-pread.sh: distribute the test script
32497         * modules/pread-tests (Files): Include test-pread.sh.
32498
32499         test-pread.sh: clean up
32500         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32501         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32502         That is unnecessary, since it's always ".".
32503         Suggestion from Eric Blake.
32504
32505         test-pread.sh: make executable
32506         * tests/test-pread.sh: Set executable bit.
32507         Reported by Eric Blake.
32508
32509         correct typo in test-pread.sh
32510         * tests/test-pread.sh: Add #! line.
32511
32512         test pread
32513         * tests/test-pread.c: New file.
32514         * tests/test-pread.sh: Likewise.
32515         * modules/pread-tests: Likewise.
32516
32517         pread: new module
32518         * modules/pread: New file.
32519         * lib/unistd.in.h (pread): Define/declare.
32520         * lib/pread.c (pread): New file.
32521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32522         * modules/unistd (Makefile.am): Substitute witnesses.
32523         * doc/posix-functions/pread.texi (pread): Update.
32524         * MODULES.html.sh: Add pread.
32525
32526 2009-11-25  Jim Meyering  <meyering@redhat.com>
32527
32528         tests/init.sh: new file to be used via most *.sh tests
32529         * tests/init.sh: New file.
32530
32531 2009-11-25  Eric Blake  <ebb9@byu.net>
32532
32533         utimens: work around older Linux failure with symlinks
32534         * lib/utimens.c (lutimensat_works_really): New variable.
32535         (fdutimens, lutimens): Use it to manage kernels that support
32536         nanosecond times on files, but not on symlinks.
32537         Reported by OndÅ™ej Vašík.
32538
32539         utimes: fix configure grammar
32540         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32541
32542 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32543
32544         regex: Fix fastmap for multibyte character ranges.
32545         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32546         characters when a multibyte character range is included.
32547
32548 2009-11-22  Andy Wingo  <wingo@pobox.com>
32549
32550         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32551         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32552
32553 2009-11-24  Bruno Haible  <bruno@clisp.org>
32554
32555         doc: Most *_l functions exist in MacOS X 10.5.
32556         * doc/posix-functions/duplocale.texi: Update platforms list.
32557         * doc/posix-functions/freelocale.texi: Likewise.
32558         * doc/posix-functions/newlocale.texi: Likewise.
32559         * doc/posix-functions/uselocale.texi: Likewise.
32560         * doc/posix-functions/isalnum_l.texi: Likewise.
32561         * doc/posix-functions/isalpha_l.texi: Likewise.
32562         * doc/posix-functions/isblank_l.texi: Likewise.
32563         * doc/posix-functions/iscntrl_l.texi: Likewise.
32564         * doc/posix-functions/isdigit_l.texi: Likewise.
32565         * doc/posix-functions/isgraph_l.texi: Likewise.
32566         * doc/posix-functions/islower_l.texi: Likewise.
32567         * doc/posix-functions/isprint_l.texi: Likewise.
32568         * doc/posix-functions/ispunct_l.texi: Likewise.
32569         * doc/posix-functions/isspace_l.texi: Likewise.
32570         * doc/posix-functions/isupper_l.texi: Likewise.
32571         * doc/posix-functions/iswalnum_l.texi: Likewise.
32572         * doc/posix-functions/iswalpha_l.texi: Likewise.
32573         * doc/posix-functions/iswblank_l.texi: Likewise.
32574         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32575         * doc/posix-functions/iswctype_l.texi: Likewise.
32576         * doc/posix-functions/iswdigit_l.texi: Likewise.
32577         * doc/posix-functions/iswgraph_l.texi: Likewise.
32578         * doc/posix-functions/iswlower_l.texi: Likewise.
32579         * doc/posix-functions/iswprint_l.texi: Likewise.
32580         * doc/posix-functions/iswpunct_l.texi: Likewise.
32581         * doc/posix-functions/iswspace_l.texi: Likewise.
32582         * doc/posix-functions/iswupper_l.texi: Likewise.
32583         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32584         * doc/posix-functions/isxdigit_l.texi: Likewise.
32585         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32586         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32587         * doc/posix-functions/strcoll_l.texi: Likewise.
32588         * doc/posix-functions/strfmon_l.texi: Likewise.
32589         * doc/posix-functions/strftime_l.texi: Likewise.
32590         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32591         * doc/posix-functions/strxfrm_l.texi: Likewise.
32592         * doc/posix-functions/tolower_l.texi: Likewise.
32593         * doc/posix-functions/toupper_l.texi: Likewise.
32594         * doc/posix-functions/towctrans_l.texi: Likewise.
32595         * doc/posix-functions/towlower_l.texi: Likewise.
32596         * doc/posix-functions/towupper_l.texi: Likewise.
32597         * doc/posix-functions/wcscoll_l.texi: Likewise.
32598         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32599         * doc/posix-functions/wctrans_l.texi: Likewise.
32600         * doc/posix-functions/wctype_l.texi: Likewise.
32601         * doc/glibc-functions/strptime_l.texi: Likewise.
32602         * doc/glibc-functions/strtod_l.texi: Likewise.
32603         * doc/glibc-functions/strtof_l.texi: Likewise.
32604         * doc/glibc-functions/strtol_l.texi: Likewise.
32605         * doc/glibc-functions/strtold_l.texi: Likewise.
32606         * doc/glibc-functions/strtoll_l.texi: Likewise.
32607         * doc/glibc-functions/strtoul_l.texi: Likewise.
32608         * doc/glibc-functions/strtoull_l.texi: Likewise.
32609         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32610         * doc/glibc-functions/wcstod_l.texi: Likewise.
32611         * doc/glibc-functions/wcstof_l.texi: Likewise.
32612         * doc/glibc-functions/wcstol_l.texi: Likewise.
32613         * doc/glibc-functions/wcstold_l.texi: Likewise.
32614         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32615         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32616         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32617
32618 2009-11-24  Bruno Haible  <bruno@clisp.org>
32619
32620         duplocale: Fix logic bug.
32621         * lib/duplocale.c: Don't include <langinfo.h>.
32622         (_NL_LOCALE_NAME): Remove macro.
32623         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32624         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32625
32626 2009-11-23  Jim Meyering  <meyering@redhat.com>
32627
32628         test-update-copyright: don't hard-code /usr/bin/perl
32629         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32630         perl to print the current year.  Gilles Espinasse reported that
32631         the replaced use of perl was hard-coded as /usr/bin/perl.
32632
32633 2009-11-23  Bruno Haible  <bruno@clisp.org>
32634
32635         duplocale: Add support for glibc 2.3.x.
32636         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32637
32638 2009-11-22  Bruno Haible  <bruno@clisp.org>
32639
32640         vasnprintf: Tiny optimization.
32641         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32642         MacOS X.
32643
32644 2009-11-22  Bruno Haible  <bruno@clisp.org>
32645
32646         Tests for module 'duplocale'.
32647         * modules/duplocale-tests: New file.
32648         * tests/test-duplocale.c: New file.
32649
32650         New module 'duplocale'.
32651         * m4/duplocale.m4: New file.
32652         * lib/locale.in.h (duplocale): New declaration.
32653         * lib/duplocale.c: New file.
32654         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32655         gl_LOCALE_H_DEFAULTS): New macros.
32656         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32657         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32658         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32659         REPLACE_DUPLOCALE.
32660         * modules/duplocale: New file.
32661         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32662
32663 2009-11-22  Bruno Haible  <bruno@clisp.org>
32664
32665         * modules/locale-tests (configure.ac): Test for newlocale function.
32666         * tests/test-locale.c: When the system has extended locale functions,
32667         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32668
32669         locale: Make locale_t available when possible.
32670         * lib/locale.in.h: Include <xlocale.h> when it exists.
32671         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32672         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32673         * modules/locale (Depends-on): Add extensions.
32674         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32675         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32676
32677 2009-11-22  Bruno Haible  <bruno@clisp.org>
32678
32679         Add comments.
32680         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32681         invocation.
32682         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32683         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32684         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32685
32686 2009-11-22  Bruno Haible  <bruno@clisp.org>
32687
32688         error: account for the possibility of freopen (stdout).
32689         * lib/error.c: Include <unistd.h>.
32690         (flush_stdout): New function, extracted from error and error_at_line.
32691         Determine stdout's fd dynamically.
32692         (error, error_at_line): Invoke flush_stdout.
32693         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32694         * modules/error (Depends-on): Add unistd.
32695
32696 2009-11-22  Bruno Haible  <bruno@clisp.org>
32697
32698         diffseq: Add comment.
32699         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32700
32701 2009-11-22  Jim Meyering  <meyering@redhat.com>
32702
32703         c-stack: avoid defining an unused static function
32704         * lib/c-stack.c (find_stack_direction): Do not define this function
32705         when it will not be used.
32706
32707         diffseq: avoid spurious gcc warnings
32708         * lib/diffseq.h (IF_LINT2): Define.
32709         (compareseq): Use it to initialize two members of "part".
32710         This avoids two used-uninitialized warnings.
32711
32712 2009-11-21  Jim Meyering  <meyering@redhat.com>
32713
32714         c-stack: avoid "ignoring return value of `write'" warning
32715         * lib/c-stack.c: Include "ignore-value.h".
32716         (die): Explicitly ignore each write return value.
32717         * modules/c-stack (Depends-on): Add ignore-value.
32718
32719 2009-11-21  Bruno Haible  <bruno@clisp.org>
32720
32721         diffseq: reduce scope of variable 'best'.
32722         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32723         variable, earlier used for two different purposes.
32724
32725 2009-11-21  Jim Meyering  <meyering@redhat.com>
32726
32727         diffseq: remove useless assignment to "best"
32728         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32729         assignment.  At that point "best" is already guaranteed to be zero.
32730
32731 2009-11-20  Eric Blake  <ebb9@byu.net>
32732
32733         build: mention ftp redirector in release announcements
32734         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32735         values that used to come from cfg.mk; mention FTP redirect URL.
32736         * build-aux/announce-gen: Mention the mirror list.
32737         Suggested by Karl Berry.
32738
32739         nanosleep: improve port to mingw
32740         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32742         LIB_NANOSLEEP, but only when needed.
32743         * modules/select (Link): Document LIBSOCKET.
32744         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32745         enough.
32746
32747         nanosleep: work around cygwin bug
32748         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32749         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32750         bug.
32751         (getnow): Delete, not needed.
32752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32753         LIB_CLOCK_GETTIME.
32754         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32755         clock-time, gettime.
32756         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32757         bug.
32758         * modules/nanosleep-tests: New test.
32759         * tests/test-nanosleep.c: New file.
32760
32761         sleep: work around cygwin bug
32762         * lib/sleep.c (rpl_sleep): Work around the bug.
32763         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32764         (gl_PREREQ_SLEEP): Delete unused macro.
32765         * modules/sleep (Depends-on): Add verify.
32766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32767         * modules/unistd (Makefile.am): Substitute witness.
32768         * lib/unistd.in.h (sleep): Update prototype.
32769         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32770         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32771         * modules/sleep-tests (Depends-on): Check for alarm.
32772
32773 2009-11-20  Jim Meyering  <meyering@redhat.com>
32774
32775         maint.mk: improve sc_prohibit_magic_number_exit
32776         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32777         so it does not match uses like System.exit(1).
32778         Add comments showing how to correct all offenders.
32779
32780 2009-11-19  Eric Blake  <ebb9@byu.net>
32781
32782         xalloc-die-tests: add missing library
32783         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32784
32785         test-xvasprintf: silence compiler warnings
32786         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32787         empty string from gcc.
32788
32789 2009-11-19  Jim Meyering  <meyering@redhat.com>
32790
32791         xfreopen: new module, from coreutils
32792         * modules/xfreopen: New module.
32793         * lib/xfreopen.c: New file.
32794         * lib/xfreopen.h: New file.
32795         * MODULES.html.sh (File stream based Input/Output"): Add it.
32796
32797 2009-11-19  Eric Blake  <ebb9@byu.net>
32798
32799         manywarnings: depend on warnings
32800         * modules/manywarnings (Depends-on): Add warnings.
32801
32802         build: avoid compiler warnings
32803         * lib/select.c (rpl_select): Delete unused variable.
32804         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32805
32806 2009-11-18  Eric Blake  <ebb9@byu.net>
32807
32808         tests: avoid false negative with --with-packager
32809         * tests/test-version-etc.sh: Discard packager information.
32810         * tests/test-argp-version-etc-1.sh: Likewise.
32811         Reported by Mike Frysinger.
32812
32813         utimens: fix regression on Solaris
32814         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32815         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32816         can only change fd timestamps via futimesat.  Instead, use an
32817         additional witness macro to avoid BSD bug.
32818         Reported by Jim Meyering.
32819
32820 2009-11-17  Eric Blake  <ebb9@byu.net>
32821
32822         usleep: use it to simplify tests
32823         * modules/stat-time-tests (Depends-on): Add usleep.
32824         (configure.ac): Drop usleep check.
32825         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32826         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32827         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32828         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32829         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32830         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32831         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32832         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32833         Likewise.
32834         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32835         * tests/test-lchown.h (nap): Likewise.
32836         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32837         * tests/test-stat-time.c (nap): Likewise.
32838         * tests/test-utimens-common.h (nap): Update comments.
32839
32840         usleep: new module
32841         * modules/usleep: New file.
32842         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32843         * lib/usleep.c (usleep): Likewise.
32844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32845         * modules/unistd (Makefile.am): Substitute witnesses.
32846         * lib/unistd.in.h (usleep): Add declaration.
32847         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32848         * MODULES.html.sh (Date and time): Likewise.
32849         * modules/usleep-tests (Depends-on): New test.
32850         * tests/test-usleep.c: New file.
32851
32852         chown: work around OpenBSD bug
32853         * lib/chown.c (rpl_chown): Work around the bug.
32854         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32855         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32856         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32857         * modules/chown (Depends-on): Add stdbool.
32858         * modules/lchown (Depends-on): Likewise.
32859         * doc/posix-functions/chown.texi (chown): Document the bug.
32860         * doc/posix-functions/lchown.texi (lchown): Likewise.
32861         * tests/test-lchown.h (test_chown): Relax test.
32862
32863         mkstemp: avoid conflict with C++ keyword template
32864         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32865         * lib/mkostemp.c (mkostemp): Likewise.
32866         * lib/mkostemps.c (mkostemps): Likewise.
32867         * lib/mkstemp.c (mkstemp): Likewise.
32868         * lib/mkstemps.c (mkstemps): Likewise.
32869
32870         xalloc-die-tests: optimize
32871         * tests/test-xalloc-die.sh: Reduce number of processes.
32872
32873 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32874
32875         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32876         patch from ludo@gnu.org (Ludovic Courtès).
32877
32878 2009-11-17  Jim Meyering  <meyering@redhat.com>
32879
32880         version-etc: use proper license string
32881         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32882         * modules/version-etc-fsf: Likewise.
32883
32884 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32885
32886         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32887         printed to stdout.  Deal with EOL differences.
32888
32889 2009-11-17  Eric Blake  <ebb9@byu.net>
32890
32891         unsetenv: work around Solaris bug
32892         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32893         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32894         Reported by Jim Meyering.
32895
32896         vasnprintf: avoid compiler warnings
32897         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32898         variables.
32899         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32900
32901 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32902
32903         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32904         settings since xalloc-die is no longer the self test,
32905         xalloc-die.sh is.
32906
32907 2009-11-17  Jim Meyering  <meyering@redhat.com>
32908
32909         test-xalloc-die.sh: make the code agree with the commit log
32910         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32911         at the end, just in case you happen to have a test-xalloc-die
32912         program in some other PATH directory.
32913
32914         test-xalloc-die.sh: fix a portability bug
32915         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32916         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32917         Otherwise, argv[0] (as often seen in diagnostics) would be too
32918         system-dependent, sometimes with, and sometimes without the leading "./".
32919
32920         version-etc-fsf: relax license to LGPLv3+
32921         * modules/version-etc-fsf (License): Relax license.
32922
32923 2009-11-16  Eric Blake  <ebb9@byu.net>
32924
32925         xalloc-die-tests: avoid printing null pointer
32926         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32927         shell script.
32928         * tests/test-xalloc-die.c (program_name): Declare.
32929         * tests/test-xalloc-die.sh (tmpfiles): New file.
32930
32931         setenv, unsetenv: work around various bugs
32932         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32933         (setenv) [HAVE_SETENV]: Work around bugs.
32934         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32935         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32936         for bugs.
32937         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32938         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32940         * modules/stdlib (Makefile.am): Update substitutions.
32941         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32942         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32943         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32944         * modules/setenv-tests: New test.
32945         * modules/unsetenv-tests: Likewise.
32946         * tests/test-setenv.c: New file.
32947         * tests/test-unsetenv.c: Likewise.
32948
32949 2009-11-16  Jim Meyering  <meyering@redhat.com>
32950
32951         version-etc: relax license to LGPLv3+
32952         * modules/version-etc (License): Relax license.
32953
32954         better AC_REQUIRE expanded-before-required-warning avoidance
32955         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32956         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32957         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32958         which is no longer needed.
32959
32960 2009-11-16  Eric Blake  <ebb9@byu.net>
32961
32962         test-freading: clean up temporary file
32963         * tests/test-freading.c (main): Remove file on success, and use
32964         ASSERT more liberally.
32965         Reported by Jim Meyering.
32966
32967 2009-11-16  Jim Meyering  <meyering@redhat.com>
32968
32969         avoid new AC_REQUIRE expanded-before-required warnings
32970         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32971         merely using it.
32972         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32973         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32974
32975 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32976
32977         * tests/test-xalloc-die.c: New file.
32978         * modules/xalloc-die-tests: New file.
32979         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32980         XFAIL_TESTS so it can be appended by modules.
32981
32982 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32983
32984         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32985         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32986
32987 2009-11-14  Eric Blake  <ebb9@byu.net>
32988
32989         fnmatch: avoid compiler warning
32990         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32991         to silence compiler warning about mismatch signedness in ?:.
32992         Reported by Robert Millan.
32993
32994         intprops: add double-inclusion guard
32995         * lib/intprops.h: Allow idempotent includes.
32996         Suggested by Bruce Korb.
32997
32998         openat: detect Solaris fchownat bug
32999         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33000         penalizing glibc chownat when only lchownat is broken.
33001         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33002         trailing slash bugs.
33003         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33004         * modules/openat-tests (Files): Include more files.
33005         (Depends-on): Add mgetgroups, sleep, stat-time.
33006         (configure.ac): Add additional checks.
33007         (Makefile.am): Build new test.
33008         * tests/test-fchownat.c: New file.
33009
33010         lchown: detect Solaris and FreeBSD bug
33011         * lib/lchown.c (rpl_lchown): Work around bug.
33012         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33014         * modules/unistd (Makefile.am): Populate it.
33015         * lib/unistd.in.h (lchown): Update declaration.
33016         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33017         * modules/lchown-tests: New file.
33018         * tests/test-lchown.h (test_lchown): Likewise.
33019         * tests/test-lchown.c (main): Likewise.
33020
33021         chown: detect Solaris and FreeBSD bug
33022         * lib/chown.c (rpl_chown): Work around bug.
33023         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33024         (gl_PREREQ_CHOWN): Delete.
33025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33026         * modules/unistd (Makefile.am): Populate it.
33027         * lib/unistd.in.h (chown): Update declaration.
33028         * lib/lchown.c (chown): Update client.
33029         * modules/lchown (Depends-on): Add lstat.
33030         * doc/posix-functions/chown.texi (chown): Document the bug.
33031         * doc/posix-functions/getgroups.texi (getgroups): Document
33032         getgroups pitfall.
33033         * modules/chown-tests: New file.
33034         * tests/test-chown.h (test_chown): Likewise.
33035         * tests/test-chown.c (main): Likewise.
33036
33037 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33038
33039         gnulib-tool: correctly detect absence of m4 directories
33040         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33041
33042 2009-11-14  Jim Meyering  <meyering@redhat.com>
33043
33044         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33045         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33046
33047 2009-11-14  John W. Eaton  <jwe@gnu.org>
33048
33049         strftime.h: wrap funtion declaration in extern "C" block
33050         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33051
33052 2009-11-13  Eric Blake  <ebb9@byu.net>
33053
33054         getgroups: avoid compiler warning
33055         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33056
33057         getgroups: work around FreeBSD bug
33058         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33059         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33060         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33061         * tests/test-getgroups.c (main): Fix buffer overrun.
33062
33063         getgroups: avoid compilation failure
33064         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33065         * modules/getgroups (Depends-on): Add stdint.
33066
33067 2009-11-13  Jim Meyering  <meyering@redhat.com>
33068
33069         test-getgroups: avoid compilation failure
33070         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33071
33072 2009-11-13  Eric Blake  <ebb9@byu.net>
33073
33074         mgetgroups: new module, taken from coreutils
33075         * modules/mgetgroups: New file.
33076         * lib/mgetgroups.h: Likewise.
33077         * lib/mgetgroups.c (mgetgroups): Likewise.
33078         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33079         * MODULES.html.sh (Users and groups): Mention it.
33080
33081         getgroups: don't expose GETGROUPS_T to user
33082         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33083         an element at a time if GETGROUPS_T is wrong size.
33084         * lib/getugroups.h (getugroups): Change signature.
33085         * lib/unistd.in.h (getgroups): Likewise.
33086         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33087         signature needs fixing.
33088         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33089         AC_TYPE_GETGROUPS.
33090         * modules/group-member (Depends-on): Add getgroups.
33091         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33092         (group_member): Rely on getgroups replacement.
33093         * lib/getugroups.c (getugroups): Use gid_t.
33094         * tests/test-getgroups.c (main): Likewise.
33095         * NEWS: Mention the signature change.
33096         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33097         problem with signature.
33098         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33099         GETGROUPS_T is still useful for setgroups.
33100
33101         getgroups, getugroups: provide stubs for mingw
33102         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33103         * lib/getugroups.c (getugroups): Likewise.
33104         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33105         function.  Modernize replacement scheme.
33106         (gl_PREREQ_GETGROUPS): Delete.
33107         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33108         * modules/getgroups (configure.ac): Declare witness.
33109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33110         * modules/unistd (Depends-on): Substitute witness.
33111         * lib/unistd.in.h (getgroups): Declare replacement.
33112
33113         getgroups: avoid calling exit
33114         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33115         drop xalloc.
33116         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33117         dependencies.
33118         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33119         exiting, in the rare case of malloc failure.
33120
33121         getgroups: fix logic error
33122         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33123         has more than 20 groups.
33124         * modules/getgroups-tests: New test.
33125         * tests/test-getgroups.c: New file.
33126
33127 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33128
33129         * tests/test-base64.c: Improve.
33130
33131 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33132
33133         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33134         Blake <ebb9@byu.net>.
33135
33136 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33137
33138         * tests/test-xvasprintf.c: Add %s%s related checks.
33139
33140 2009-11-12  Eric Blake  <ebb9@byu.net>
33141
33142         version-etc: match standards.texi style
33143         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33144         and use <> only for URLs.
33145
33146 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33147
33148         fts: do not fail on a submount during traversal
33149         * lib/fts.c (fts_build): Read the stat info again after opening
33150         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33151         Original report at http://bugzilla.redhat.com/501848.
33152
33153 2009-11-12  Jim Meyering  <meyering@redhat.com>
33154
33155         bootstrap: sync from coreutils
33156         * build-aux/bootstrap (bootstrap_epilogue): New function.
33157         Use git_modules_config in one more place.  This make bootstrap's
33158         --gnulib-srcdir option more useful for testing.
33159
33160         bootstrap: generalize autoheader check
33161         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33162         AC_CONFIG_HEADERS.
33163
33164 2009-11-11  Eric Blake  <ebb9@byu.net>
33165
33166         mkfifoat: use new modules for Solaris and BSD bugs
33167         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33168         * lib/mkfifoat.c (mknodat): Split...
33169         * lib/mknodat.c (mknodat): ...into new file.
33170         * modules/mkfifoat (Files): Ship new file.
33171         (Depends-on): Add mkfifo, mknod.
33172         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33173         (Depends-on): Add symlink.
33174         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33175         redundant with test_mkfifo.h.
33176         (do_mkfifoat, do_mknodat): New helpers.
33177
33178         mknod: new module
33179         * modules/mknod: New file.
33180         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33181         * lib/mknod.c (mknod): Likewise.
33182         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33183         defaults.
33184         * modules/sys_stat (Makefile.am): Substitute them.
33185         * lib/sys_stat.in.h (mknod): Declare replacement.
33186         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33187         Document it.
33188         * doc/posix-functions/mknod.texi (mknod): Likewise.
33189         * modules/mknod-tests: New test.
33190         * tests/test-mknod.c: Likewise.
33191
33192         mkfifo: new module
33193         * modules/mkfifo: New file.
33194         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33195         * lib/mkfifo.c (mkfifo): Likewise.
33196         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33197         defaults.
33198         * modules/sys_stat (Makefile.am): Substitute them.
33199         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33200         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33201         Document it.
33202         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33203         * modules/mkfifo-tests: New test.
33204         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33205         from test-mkfifoat.c.
33206         * tests/test-mkfifo.c: New file.
33207
33208         readlink: detect FreeBSD bug
33209         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33210         slash on symlink.
33211         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33212         * tests/test-readlink.h (test_readlink): Enhance test.
33213
33214         symlink: detect FreeBSD bug
33215         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33216         slash on symlink.
33217         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33218         * tests/test-symlink.h (test_symlink): Enhance test.
33219
33220 2009-11-10  Eric Blake  <ebb9@byu.net>
33221
33222         link: detect FreeBSD bug
33223         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33224         symlink.
33225         * doc/posix-functions/link.texi (link): Document the bug.
33226         * tests/test-link.h (test_link): Enhance test.
33227         * tests/test-linkat.c (main): Update caller.
33228
33229         unlink, remove: detect FreeBSD bug
33230         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33231         slash on symlink.
33232         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33233         * doc/posix-functions/remove.texi (remove): Likewise.
33234         * tests/test-unlink.h (test_unlink): Enhance test.
33235         * tests/test-remove.c (main): Likewise.
33236
33237 2009-11-09  Eric Blake  <ebb9@byu.net>
33238
33239         rename: detect FreeBSD bug
33240         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33241         slash on symlink.
33242         * modules/renameat-tests (Depends-on): Add filenamecat.
33243         * tests/test-rename.h (test_rename): Allow one more errno.
33244         * tests/test-renameat.c (main): Likewise.
33245         * doc/posix-functions/rename.texi (rename): Document the bug.
33246
33247         open: detect FreeBSD bug
33248         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33249         symlink.
33250         * doc/posix-functions/open.texi (open): Document the bug.
33251         * doc/posix-functions/utimes.texi (utimes): Likewise.
33252         * tests/test-open.h (test_open): Add parameters, and test symlink
33253         handling.
33254         * tests/test-open.c (main): Adjust caller.
33255         * tests/test-fcntl-safer.c (main): Likewise.
33256         * modules/open-tests (Depends-on): Add stdbool, symlink.
33257         * modules/fcntl-safer-tests (Depends-on): Likewise.
33258         * tests/test-openat.c (main): Add test-open tests.
33259
33260         stat: detect FreeBSD bug
33261         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33262         symlink.
33263         * doc/posix-functions/stat.texi (stat): Document the bug.
33264         * tests/test-stat.h (test_stat_func): Add argument.
33265         * tests/test-stat.c (main): Adjust caller.
33266         * tests/test-fstatat.c (main): Likewise.
33267         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33268         Reported by Jim Meyering.
33269
33270 2009-11-09  James Youngman  <jay@gnu.org>
33271
33272         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33273         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33274
33275 2009-11-08  Jim Meyering  <meyering@redhat.com>
33276
33277         utimens: remove invalid futimesat call
33278         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33279         It used the file descriptor of the target file as the DIR_FD
33280         parameter and NULL as the file name.  That caused failure with
33281         errno == EFAULT on FreeBSD-8.0-rc2
33282
33283 2009-11-07  Eric Blake  <ebb9@byu.net>
33284
33285         fflush, freadseek: use fseeko, not fseek
33286         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33287         (clear_ungetc_buffer): Avoid potential problems on large files.
33288         * lib/freadseek.c (freadseek): Likewise.
33289         * modules/freadseek (Depends-on): Add fseeko.
33290         * modules/fseek (configure.ac): Set a witness.
33291         * tests/test-fflush.c (main): Use fseeko.
33292         * tests/test-fpurge.c (fseek): Disable link warning.
33293         * tests/test-freadable.c (fseek): Likewise.
33294         * tests/test-freading.c (fseek): Likewise.
33295         * tests/test-fseeko.c (fseek): Likewise.
33296         * tests/test-ftell.c (fseek): Likewise.
33297         * tests/test-ftello.c (fseek): Likewise.
33298         * tests/test-fwritable.c (fseek): Likewise.
33299         * tests/test-fwriting.c (fseek): Likewise.
33300
33301 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33302
33303         * modules/memchr (Depends-on): Drop getpagesize dependency.
33304
33305 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33306
33307         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33308         Reported by Ludovic Courtès.
33309         * build-aux/pmccabe2html: Improve example usage.
33310         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33311
33312 2009-11-06  Jim Meyering  <meyering@redhat.com>
33313
33314         do-release-commit-and-tag: New module.
33315         Automate the release-commit and tag process.
33316         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33317         * modules/do-release-commit-and-tag: New file.
33318         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33319
33320 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33321
33322         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33323         because test-select.c uses inet_pton.
33324
33325 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33326
33327         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33328         GETADDRINFO_LIB.  Bump serial number.
33329         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33330         Suggested by Eric Blake <ebb9@byu.net>.
33331
33332 2009-11-05  Eric Blake  <ebb9@byu.net>
33333
33334         strtod: detect darwin bug
33335         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33336         Reported by Leo Davis.
33337
33338         freopen-safer: new module
33339         * modules/freopen-safer: New module.
33340         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33341         * lib/freopen-safer.c (freopen_safer): New file.
33342         * lib/stdio-safer.h (freopen_safer): New declaration.
33343         * lib/stdio--.h (freopen): New override.
33344         * MODULES.html.sh (File stream based Input/Output): Mention it.
33345         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33346         freopen-safer module.
33347         * doc/posix-functions/stderr.texi (stderr): Likewise.
33348         * doc/posix-functions/stdin.texi (stdin): Likewise.
33349         * doc/posix-functions/stdout.texi (stdout): Likewise.
33350         * modules/freopen-safer-tests: New test.
33351         * tests/test-reopen-safer.c: New file.
33352
33353 2009-11-05  Jim Meyering  <meyering@redhat.com>
33354
33355         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33356         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33357
33358 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33359
33360         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33361
33362 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33363
33364         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33365
33366 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33367
33368         Fix link error.
33369         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33370         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33371
33372 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33373
33374         * tests/test-func.c: Also test value of __func__.
33375
33376 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33377
33378         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33379         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33380
33381 2009-11-05  Bruno Haible  <bruno@clisp.org>
33382
33383         Fix link error.
33384         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33385         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33386         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33387
33388 2009-11-05  Bruno Haible  <bruno@clisp.org>
33389
33390         Tests for module 'inet_pton'.
33391         * modules/inet_pton-tests: New file.
33392         * tests/test-inet_pton.c: New file.
33393
33394 2009-11-05  Bruno Haible  <bruno@clisp.org>
33395
33396         Tests for module 'inet_ntop'.
33397         * modules/inet_ntop-tests: New file.
33398         * tests/test-inet_ntop.c: New file.
33399
33400 2009-11-04  Eric Blake  <ebb9@byu.net>
33401
33402         stdlib-safer: wrap all mkstemp variants
33403         * modules/mkostemp (configure.ac): Set witness.
33404         * modules/mkostemps (configure.ac): Likewise.
33405         * modules/mkstemps (configure.ac): Likewise.
33406         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33407         (mkstemps_safer): Wrap more functions.
33408         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33409         wrapping.
33410         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33411         (mkstemps_safer): Implement the wrappers.
33412
33413         mkstemps, mkostemps: new modules
33414         * modules/mkostemps: New module.
33415         * modules/mkstemps: Likewise.
33416         * lib/mkostemps.c (mkostemps): New file.
33417         * lib/mkstemps.c (mkstemps): Likewise.
33418         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33419         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33421         * modules/stdlib (Makefile.am): Substitute them.
33422         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33423         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33424         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33425         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33426         * MODULES.html.sh (File system functions): Mention them.
33427
33428         tempname: resync from glibc
33429         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33430         same values for __GT_FILE as glibc.  Abort even when assertions
33431         are disabled.
33432         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33433         match its value otherwise.  Allow idempotent inclusion.
33434         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33435         * lib/mkostemp.c (mkostemp): Likewise.
33436         * lib/mkstemp.c (mkstemp): Likewise.
33437         * lib/tmpfile.c (tmpfile): Likewise.
33438         * NEWS: Document this.
33439
33440         utimens: fix use of futimens on older Linux
33441         * lib/utimens.c (fdutimens): Use updated, rather than original,
33442         timespec to avoid bug in older Linux kernel.
33443         Reported by Simon Josefsson.
33444
33445 2009-11-04  Bruno Haible  <bruno@clisp.org>
33446
33447         Make num_processors more flexible and consistent.
33448         * lib/nproc.h (enum nproc_query): New type.
33449         (num_processors): Add a 'query' argument.
33450         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33451         (num_processors): Add a 'query' argument. Test the value of the
33452         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33453         mingw, count the number of CPUs available for the current process.
33454         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33455         Check for sched_getaffinity and sched_getaffinity_np.
33456         * modules/nproc (Depends-on): Add c-ctype, extensions.
33457         * NEWS: Mention the change.
33458
33459 2009-11-03  Bruno Haible  <bruno@clisp.org>
33460
33461         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33462
33463 2009-11-03  Jim Meyering  <meyering@redhat.com>
33464
33465         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33466         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33467         if it is defined.
33468
33469 2009-11-02  Eric Blake  <ebb9@byu.net>
33470
33471         mktime, timegm: share common declaration
33472         * lib/mktime-internal.h: New file.
33473         * lib/mktime.c: Use it rather than open-coding a declaration.
33474         * lib/timegm.c: Likewise.
33475         * modules/mktime (Files): Ship it.
33476         * modules/timegm (Files): Likewise.
33477         Suggested by Bruno Haible.
33478
33479         test-update-copyright: update test to match script changes
33480         * tests/test-update-copyright.sh: Avoid hard-coding perl
33481         location.  Don't update *.bak created by earlier runs.
33482
33483 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33484             Simon Josefsson  <simon@josefsson.org>
33485             Bruno Haible  <bruno@clisp.org>
33486
33487         Fix link error on Solaris 8.
33488         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33489         also in libnsl. Define also INET_PTON_LIB.
33490         * modules/inet_pton (Link): New section.
33491
33492 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33493             Bruno Haible  <bruno@clisp.org>
33494
33495         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33496         * modules/inet_ntop (Link): New section.
33497         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33498
33499 2009-11-02  Eric Blake  <ebb9@byu.net>
33500
33501         maint: avoid compiler warnings in m4 macros
33502         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33503         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33504
33505 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33506
33507         * m4/pmccabe2html.m4: Remove file.
33508         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33509         function.  Change maintainer.
33510         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33511         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33512         Courtès).
33513
33514 2009-10-31  Eric Blake  <ebb9@byu.net>
33515
33516         fseeko: fix m4 regression
33517         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33518         regression from 2009-10-27.
33519         Reported by Ralf Wildenhues.
33520
33521 2009-10-31  Jim Meyering  <meyering@redhat.com>
33522
33523         inttostr: aesthetics and improved (compile-time) safety
33524         Define inttype_is_signed rather than inttype_is_unsigned,
33525         since the sole use is via "#if inttype_is_signed".
33526         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33527         inttype_is_unsigned.
33528         * lib/offtostr.c (inttype_is_signed): Likewise.
33529         * lib/uinttostr.c (inttype_is_signed): Likewise.
33530         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33531         * lib/inttostr.c (inttostr): Use verify to cross-check the
33532         inttype_is_signed value and the signedness of the actual type.
33533         * modules/inttostr (Depends-on): Add verify.
33534
33535 2009-10-30  Eric Blake  <ebb9@byu.net>
33536
33537         build: avoid compiler warnings
33538         * lib/fchmodat.c (lchmod): Mark unused variables.
33539         * lib/getopt.c (_getopt_initialize): Likewise.
33540         * lib/mktime.c (__mktime_internal): Provide prototype.
33541         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33542         older gcc that do not understand #pragma GCC diagnostic.
33543         * lib/uinttostr.c (inttype_is_unsigned): Define.
33544         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33545
33546 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33547
33548         stat: fix compilation on AIX
33549         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33550         only see struct stat64.
33551
33552 2009-10-30  Eric Blake  <ebb9@byu.net>
33553
33554         exclude: make more robust
33555         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33556         rather than masking a coding bug.
33557         Suggested by Bruno Haible.
33558
33559 2009-10-30  Jim Meyering  <meyering@redhat.com>
33560
33561         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33562         Rather than putting #!/usr/bin/perl on the first line,
33563         start with a variant of what's recommended by "man perlrun" that
33564         invokes the first "perl" program from your shell's search path.
33565         * build-aux/gitlog-to-changelog: Replace #!... as above.
33566         Add a "Local Variables" perl mode setting.
33567         Prompted by a patch from Ludovic Courtès.
33568         Improved by Eric Blake.
33569         * build-aux/useless-if-before-free: Likewise.
33570         * build-aux/announce-gen: Likewise.
33571         * build-aux/update-copyright: Likewise.
33572
33573 2009-10-29  Eric Blake  <ebb9@byu.net>
33574
33575         filenamecat-lgpl: adjust clients
33576         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33577         filenamecat.
33578         * modules/renameat (Depends-on): Likewise.
33579
33580         filenamecat: split into filenamecat-lgpl
33581         * modules/filenamecat-lgpl: New module.
33582         * modules/filenamecat (Files): Move library-safe files into
33583         filenamecat-lgpl.
33584         (Depends-on): Add filenamecat-lgpl.
33585         (configure.ac): Declare witness.
33586         * lib/filenamecat.h (file_name_concat): Only declare when using
33587         GPL module.
33588         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33589         Move...
33590         * lib/filenamecat-lgpl.c: ...into new file.
33591         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33592         (gl_FILE_NAME_CONCAT): Use it.
33593         * MODULES.html.sh (File system functions): Mention new module.
33594
33595         argp: avoid memory leak
33596         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33597         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33598         base_name, since the latter malloc()s and can call exit().
33599         Leak introduced 2006-07-03.
33600
33601         dirname-lgpl: adjust clients that don't need full dirname
33602         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33603         * modules/filenamecat (Depends-on): Likewise.
33604         * modules/linkat (Depends-on): Likewise.
33605         * modules/mkancesdirs (Depends-on): Likewise.
33606         * modules/mkdir (Depends-on): Likewise.
33607         * modules/openat (Depends-on): Likewise.
33608         * modules/savewd (Depends-on): Likewise.
33609         * modules/rename (Depends-on): Likewise.
33610         (License): Relax license.
33611         * modules/mkdir-tests (Depends-on): Drop progname.
33612         (Makefile.am): Delete unneeded LDADD.
33613         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33614
33615         dirname: split into dirname-lgpl
33616         * modules/dirname-lgpl: New module.
33617         * modules/dirname (Files): Move library-safe files into
33618         dirname-lgpl.
33619         (Depends-on): Add dirname-lgpl.
33620         (configure.ac): Declare witness.
33621         * modules/double-slash-root (License): Relax license.
33622         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33623         module.
33624         * lib/dirname.c (dir_len, mdir_name): Move...
33625         * lib/dirname-lgpl.c: ...into new file.
33626         * lib/basename.c (last_component, base_len): Move...
33627         * lib/basename-lgpl.c: ...into new file.
33628         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33629         (gl_DIRNAME): Use it.
33630         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33631         Mention new module.
33632         * modules/dirname-tests (Depends-on): Add progname.
33633         * tests/test-dirname.c (program_name): Delete.
33634
33635         mkdir: make safe for libraries
33636         * modules/mkdir (Depends-on): Drop xalloc.
33637         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33638         exit.
33639
33640         tests: avoid some compiler warnings
33641         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33642         literals.
33643         * tests/test-memchr.c (main): Avoid type mismatch.
33644         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33645         * tests/test-base64.c (main): Likewise.
33646         * tests/test-getdelim.c (main): Likewise.
33647         * tests/test-gethostname.c (main): Likewise.
33648         * tests/test-getline.c (main): Likewise.
33649         * tests/test-netinet_in.c (main): Likewise.
33650         * tests/test-select.c (open_server_socket, main): Likewise.
33651         * tests/test-select-stdin.c (main): Likewise.
33652         * tests/test-sockets.c (main): Likewise.
33653         * tests/test-strsignal.c (main): Likewise.
33654         * tests/test-sys_select.c (main): Likewise.
33655         * tests/test-sys_socket.c (main): Likewise.
33656         * tests/test-u64.c (main): Likewise.
33657         * tests/test-xfprintf-posix.c (main): Likewise.
33658         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33659
33660         sockets: avoid compiler warning
33661         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33662
33663         maint: detect usage(1) and other suspicious exits
33664         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33665
33666 2009-10-29  Jim Meyering  <meyering@redhat.com>
33667
33668         timespec: long-to-int truncation could make timespec_cmp malfunction
33669         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33670         a multiple of 2^32 nanoseconds as no difference.
33671
33672 2009-10-28  Jim Meyering  <meyering@redhat.com>
33673
33674         fprintftime: wrap macro code argument in "do {...} while(0)"
33675         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33676         cpy macro must be a statement that can be followed by a semicolon.
33677         Now that the else clause contains a comment and is hence longer
33678         than one line, I require curly braces.  That in turn requires
33679         that we wrap this code block in the standard do...while(0).
33680
33681         fprintftime: remove stray semicolon from previous change
33682         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33683
33684         fprintftime: avoid a warning about ignored fwrite return value
33685         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33686         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33687         that is unsafe.
33688         * modules/fprintftime (Depends-on): Add ignore-value.
33689
33690         exclude: avoid an unwarranted warning
33691         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33692
33693 2009-10-27  Eric Blake  <ebb9@byu.net>
33694
33695         fseek: avoid compilation failure when fflush is replaced
33696         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33697         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33698         module is in use.
33699         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33700         module is not in use; since REPLACE_FSEEK worked otherwise.
33701         (GNULIB_FTELLO): Likewise for ftell.
33702         Reported by Ian Beckwith and others.
33703
33704 2009-10-27  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33707         Reported by Jim Meyering.
33708
33709 2009-10-27  Jim Meyering  <jim@meyering.net>
33710             Bruno Haible  <bruno@clisp.org>
33711
33712         Avoid warning despite dropping the return value of fwrite.
33713         * lib/unicodeio.c: Include ignore-value.h.
33714         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33715         * modules/unicodeio (Depends-on): Add ignore-value.
33716
33717 2009-10-26  Eric Blake  <ebb9@byu.net>
33718
33719         areadlinkat: fix fallback path
33720         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33721         pointer and zero.
33722
33723 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33724
33725         Use a better IO block size for modern systems
33726         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33727         * lib/md2.c: Likewise.
33728         * lib/md4.c: Likewise.
33729         * lib/md5.c: Likewise.
33730         * lib/sha1.c: Likewise.
33731         * lib/sha256.c: Likewise.
33732         * lib/sha512.c: Likewise.
33733
33734 2009-10-22  Eric Blake  <ebb9@byu.net>
33735
33736         tests: avoid several compiler warnings
33737         * tests/test-getcwd.c (main): Avoid buffer underflow.
33738         * tests/test-getdate.c (main): String literals are not safe with
33739         putenv, so use setenv.  Declare unused argument.
33740         * modules/getdate-tests (Depends-on): Add setenv.
33741         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33742         problems with string literals in char *.
33743         * tests/test-hash.c (main): Avoid shadowing declaration.
33744         (insert_new): Treat string literals as char const *.
33745         * tests/test-getopt.h (test_getopt): Likewise.
33746         (getopt_loop): Alter types to minimize casting elsewhere.
33747         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33748         (test_getopt_long_posix): Likewise.
33749         (do_getopt_long): Add wrapper to minimize casting.
33750         * tests/test-atexit.c (clear_temp_file): Use void.
33751         * tests/test-areadlink-with-size.c (main): Declare unused
33752         arguments.
33753         * tests/test-areadlink.c (main): Likewise.
33754         * tests/test-areadlinkat-with-size.c (main): Likewise.
33755         * tests/test-areadlinkat.c (main): Likewise.
33756         * tests/test-canonicalize-lgpl.c (main): Likewise.
33757         * tests/test-canonicalize.c (main): Likewise.
33758         * tests/test-dirent-safer.c (main): Likewise.
33759         * tests/test-dirname.c (main): Likewise.
33760         * tests/test-dup2.c (main): Likewise.
33761         * tests/test-fchdir.c (main): Likewise.
33762         * tests/test-fcntl-h.c (main): Likewise.
33763         * tests/test-fcntl-safer.c (main): Likewise.
33764         * tests/test-fdopendir.c (main): Likewise.
33765         * tests/test-fdutimensat.c (main): Likewise.
33766         * tests/test-fflush.c (main): Likewise.
33767         * tests/test-filenamecat.c (main): Likewise.
33768         * tests/test-filevercmp.c (main): Likewise.
33769         * tests/test-fopen-safer.c (main): Likewise.
33770         * tests/test-fopen.c (main): Likewise.
33771         * tests/test-fpending.c (main): Likewise.
33772         * tests/test-fpurge.c (main): Likewise.
33773         * tests/test-freading.c (main): Likewise.
33774         * tests/test-fstatat.c (main): Likewise.
33775         * tests/test-fsync.c (main): Likewise.
33776         * tests/test-futimens.c (main): Likewise.
33777         * tests/test-getndelim2.c (main): Likewise.
33778         * tests/test-gettimeofday.c (main): Likewise.
33779         * tests/test-getopt.c (main): Likewise.
33780         * tests/test-i-ring.c (main): Likewise.
33781         * tests/test-inttypes.c (main): Likewise.
33782         * tests/test-link.c (main): Likewise.
33783         * tests/test-lstat.c (main): Likewise.
33784         * tests/test-math.c (main): Likewise.
33785         * tests/test-md5.c (main): Likewise.
33786         * tests/test-memchr2.c (main): Likewise.
33787         * tests/test-memrchr.c (main): Likewise.
33788         * tests/test-mkdir.c (main): Likewise.
33789         * tests/test-mkdirat.c (main): Likewise.
33790         * tests/test-mkfifoat.c (main): Likewise.
33791         * tests/test-open.c (main): Likewise.
33792         * tests/test-openat-safer.c (main): Likewise.
33793         * tests/test-openat.c (main): Likewise.
33794         * tests/test-quotearg.c (main): Likewise.
33795         * tests/test-rawmemchr.c (main): Likewise.
33796         * tests/test-readlink.c (main): Likewise.
33797         * tests/test-remove.c (main): Likewise.
33798         * tests/test-rename.c (main): Likewise.
33799         * tests/test-renameat.c (main): Likewise.
33800         * tests/test-rmdir.c (main): Likewise.
33801         * tests/test-sha1.c (main): Likewise.
33802         * tests/test-signal.c (main): Likewise.
33803         * tests/test-sigaction.c (main): Likewise.
33804         * tests/test-stat.c (main): Likewise.
33805         * tests/test-stat-time.c (main): Likewise.
33806         * tests/test-stddef.c (main): Likewise.
33807         * tests/test-stdint.c (main): Likewise.
33808         * tests/test-stdio.c (main): Likewise.
33809         * tests/test-stdlib.c (main): Likewise.
33810         * tests/test-strchrnul.c (main): Likewise.
33811         * tests/test-strerror.c (main): Likewise.
33812         * tests/test-string.c (main): Likewise.
33813         * tests/test-strtod.c (main): Likewise.
33814         * tests/test-strverscmp.c (main): Likewise.
33815         * tests/test-symlink.c (main): Likewise.
33816         * tests/test-symlinkat.c (main): Likewise.
33817         * tests/test-sys_stat.c (main): Likewise.
33818         * tests/test-sys_time.c (main): Likewise.
33819         * tests/test-time.c (main): Likewise.
33820         * tests/test-unistd.c (main): Likewise.
33821         * tests/test-unlink.c (main): Likewise.
33822         * tests/test-unlinkat.c (main): Likewise.
33823         * tests/test-utimens.c (main): Likewise.
33824         * tests/test-utimensat.c (main): Likewise.
33825         * tests/test-version-etc.c (main): Likewise.
33826         * tests/test-wchar.c (main): Likewise.
33827         * tests/test-wctype.c (main): Likewise.
33828         * tests/test-xprintf-posix.c (main): Likewise.
33829         * tests/test-posixtm.c (main): Likewise.
33830         (STREQ): Delete unused macro.
33831         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33832         shadowed variables.
33833         * tests/test-memchr.c (main): Likewise.
33834
33835 2009-10-21  Eric Blake  <ebb9@byu.net>
33836
33837         areadlinkat: avoid failure on older glibc
33838         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33839         rather than mis-comparing 0 against FUNC_RESULT of char*.
33840
33841 2009-10-21  Bruno Haible  <bruno@clisp.org>
33842
33843         * modules/stpncpy (License): Relicense under LGPLv2+.
33844         Reported by David Lutterkort <lutter@redhat.com>.
33845
33846 2009-10-20  Eric Blake  <ebb9@byu.net>
33847
33848         utimensat: work around Solaris 9 bug
33849         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33850         has trailing slash bugs.
33851         * tests/test-lutimens.h (test_lutimens): Enhance test.
33852         * tests/test-utimens.h (test_utimens): Likewise.
33853         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33854         * doc/posix-functions/utimes.texi (utimes): Likewise.
33855         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33856         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33857         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33858         * doc/posix-functions/futimens.texi (futimens): Likewise.
33859
33860         fdutimensat: new module
33861         * modules/fdutimensat: New file.
33862         * lib/fdutimensat.c (fdutimensat): Likewise.
33863         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33864         * MODULES.html.sh (File system functions): Mention module.
33865         * modules/fdutimensat-tests: New test.
33866         * tests/test-fdutimensat.c: Likewise.
33867
33868         doc: regenerate INSTALL
33869         * doc/INSTALL: Reflect recent autoconf update.
33870         * doc/INSTALL.ISO: Likewise.
33871         * doc/INSTALL.UTF-8: Likewise.
33872
33873 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33874
33875         acl: warn if ACL support is not detected
33876         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33877
33878 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33879
33880         * lib/nproc.h: Add extern "C" block for C++.
33881
33882 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33883             Bruno Haible  <bruno@clisp.org>
33884
33885         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33886         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33887         * doc/posix-functions/isalpha.texi: Likewise.
33888         * doc/posix-functions/isblank.texi: Likewise.
33889         * doc/posix-functions/iscntrl.texi: Likewise.
33890         * doc/posix-functions/isdigit.texi: Likewise.
33891         * doc/posix-functions/isgraph.texi: Likewise.
33892         * doc/posix-functions/islower.texi: Likewise.
33893         * doc/posix-functions/isprint.texi: Likewise.
33894         * doc/posix-functions/ispunct.texi: Likewise.
33895         * doc/posix-functions/isspace.texi: Likewise.
33896         * doc/posix-functions/isupper.texi: Likewise.
33897         * doc/posix-functions/isxdigit.texi: Likewise.
33898
33899 2009-10-18  Bruno Haible  <bruno@clisp.org>
33900
33901         Tests for module 'isblank'.
33902         * modules/isblank-tests: New file.
33903         * tests/test-isblank.c: New file.
33904
33905         New module 'isblank'.
33906         * lib/isblank.c: New file.
33907         * m4/isblank.m4: New file.
33908         * modules/isblank: New file.
33909         * doc/posix-functions/isblank.texi: Mention the new module.
33910
33911 2009-10-18  Bruno Haible  <bruno@clisp.org>
33912
33913         New module 'ctype'.
33914         * lib/ctype.in.h: New file.
33915         * m4/ctype.m4: New file.
33916         * modules/ctype: New file.
33917         * doc/posix-headers/ctype.texi: Mention the new module.
33918
33919 2009-10-18  Jim Meyering  <meyering@redhat.com>
33920
33921         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33922         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33923         right after its initialization, rather than farther down.
33924         Keeping these in close proximity makes it easier to ensure
33925         that each such variable is initialized.  E.g.,
33926
33927             LIB_CLOCK_GETTIME=
33928             AC_SUBST([LIB_CLOCK_GETTIME])
33929
33930         This change also increments these serial numbers.
33931         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33932         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33934
33935 2009-10-18  Bruno Haible  <bruno@clisp.org>
33936
33937         Don't let environment variables perturb build.
33938         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33939         (gl_PREREQ_GETHRXTIME): ... not here.
33940
33941 2009-10-18  Bruno Haible  <bruno@clisp.org>
33942
33943         Avoid symlink attack in localcharset module.
33944         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33945         (O_NOFOLLOW): Define fallback.
33946         (get_charset_aliases): Don't open the file if it is a symbolic link.
33947         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33948         gl_FCNTL_H.
33949         (gl_FCNTL_H): Require it.
33950         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33951         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33952         Reported by Fergal Glynn <fglynn@veracode.com>.
33953
33954 2009-10-18  Bruno Haible  <bruno@clisp.org>
33955
33956         Implement nproc for mingw.
33957         * lib/nproc.c: Include <windows.h>
33958         (num_processors): On native Windows platforms, try GetSystemInfo.
33959
33960 2009-10-18  Bruno Haible  <bruno@clisp.org>
33961
33962         Implement nproc for IRIX.
33963         * lib/nproc.c: Include <sys/sysmp.h>.
33964         (num_processors): On IRIX systems, try sysmp.
33965         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33966
33967 2009-10-18  Bruno Haible  <bruno@clisp.org>
33968
33969         Implement nproc for HP-UX.
33970         * lib/nproc.c: Include <sys/pstat.h>
33971         (num_processors): On HP-UX systems, try pstat_getdynamic.
33972         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33973         pstat_getdynamic.
33974
33975 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33976             Bruno Haible  <bruno@clisp.org>
33977
33978         Implement nproc for NetBSD, OpenBSD.
33979         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33980         (ARRAY_SIZE): New macro.
33981         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33982         * m4/nproc.m4: New file.
33983         * modules/nproc (Files): Add m4/nproc.m4.
33984         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33985         (Makefile.am): Instead, augment lib_SOURCES.
33986
33987 2009-10-18  Bruno Haible  <bruno@clisp.org>
33988
33989         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33990         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33991         sys/param.h.
33992
33993 2009-10-16  Eric Blake  <ebb9@byu.net>
33994
33995         utimensat: new module
33996         * modules/utimensat: New file.
33997         * lib/utimensat.c (utimensat): Likewise.
33998         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33999         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34000         so we can work around Linux bugs.
34001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34002         * modules/sys_stat (Makefile.am): Substitute them.
34003         * lib/sys_stat.in.h (utimensat): Declare it.
34004         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34005         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34006         * modules/utimensat-tests: New test.
34007         * tests/test-utimensat.c: Likewise.
34008
34009         utimens: let lutimens work on non-symlinks
34010         * lib/utimens.c (lutimens): Fall back to utimens rather than
34011         failing with ENOSYS, when file is not a symlink.
34012         (utimens): Reduce redirection.
34013         * tests/test-lutimens.h (test_lutimens): Update test to cover
34014         non-symlinks.
34015         * tests/test-utimens.h (test_utimens): Update test to cover
34016         symlinks.
34017         * tests/test-utimens.c (main): Update caller.
34018
34019         utimens: cache whether utimensat syscall works
34020         * lib/utimens.c (utimensat_works_really): New cache variable.
34021         (fdutimens, lutimens): Use it to avoid failing syscall.
34022
34023         test-stat-time, test-utimens: improve portability
34024         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34025         ext4 on alpha, and for cygwin.
34026         * tests/test-utimens-common.h: New file.
34027         (nap): Factor delays into single function.
34028         * tests/test-lutimens.h (test_lutimens): Use new header.
34029         * tests/test-futimens.h (test_futimens): Likewise.
34030         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34031         timestamps to occur from same machine, as was done previously for
34032         test_utimens.
34033         * modules/utimens-tests (Files): Ship new file.
34034         * modules/futimens-tests (Files): Likewise.
34035         Reported in part by Jim Meyering.
34036
34037         sys_stat: sort replacement declarations
34038         * lib/sys_stat.in.h: Sort declarations.
34039         * lib/futimens.c (futimens): Fix typo.
34040
34041 2009-10-15  Jim Meyering  <meyering@redhat.com>
34042
34043         don't let environment settings perturb build
34044         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34045         could cause a configure-time and/or build-time malfunction.
34046         Typically, a configure-time function-in-library test is performed
34047         via code like this:
34048
34049           LIB_VAR=
34050           AC_SUBST([LIB_VAR])
34051           prefix_saved_LIBS=$LIBS
34052             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34053                        [test "$ac_cv_search_FUNC" = "none required" ||
34054                         LIB_VAR=$ac_cv_search_FUNC])
34055           LIBS=$prefix_saved_LIBS
34056
34057         However, in each of the files affected by this change, the LIB_VAR=
34058         initialization was omitted.  Thus, when set in the environment, its
34059         value would propagate into generated Makefiles when FUNC is not found
34060         in LIB_NAME.
34061         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34062         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34064
34065 2009-10-14  Eric Blake  <ebb9@byu.net>
34066
34067         fchdir: avoid infinite recursion in mingw
34068         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34069         recursing.
34070
34071         test-stat-time: port to mingw
34072         * tests/test-stat-time.c (force_unlink): Return a value.
34073         (test_ctime) [W32]: Fix compilation error.
34074         (nap): Don't call usleep with too large an argument.  Use
34075         force_unlink.
34076         * doc/pastposix-functions/usleep.texi (usleep): Document the
34077         portability issue.
34078
34079 2009-10-13  Jim Meyering  <meyering@redhat.com>
34080
34081         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34082         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34083         * modules/pipe-filter-ii: Likewise.
34084         * modules/sys_socket-tests: Likewise.
34085         * modules/tsearch-tests: Likewise.
34086         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34087         (check): Depend on it.
34088
34089 2009-10-12  Eric Blake  <ebb9@byu.net>
34090
34091         utimens-tests: port to NFS file systems
34092         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34093         comparisons to avoid spurious failures from timestamp drift
34094         between NFS machines.
34095
34096 2009-10-12  Eric Blake  <ebb9@byu.net>
34097
34098         stat-time-tests: minor cleanups
34099         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34100         * tests/test-stat-time.c (nap): Separate assignment from call.
34101         Suggested by Paolo Bonzini and Bruno Haible.
34102
34103         sys_stat: guarantee struct timespec
34104         * lib/sys_stat.in.h (includes): Always include <time.h>
34105         * modules/sys_stat (Depends-on): Add time.
34106         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34107         mode_t permission values.
34108         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34109         get at subsecond timestamps.
34110
34111 2009-10-10  Eric Blake  <ebb9@byu.net>
34112
34113         futimens: new module
34114         * modules/futimens: New file.
34115         * lib/futimens.c (futimens): Likewise.
34116         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34117         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34118         we can work around Linux bugs.
34119         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34120         * modules/sys_stat (Makefile.am): Substitute them.
34121         * lib/sys_stat.in.h (futimens): Declare it.
34122         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34123         * doc/posix-functions/futimens.texi (futimens): Likewise.
34124         * modules/futimens-tests: New test.
34125         * tests/test-futimens.c: Likewise.
34126
34127         utimens: introduce fdutimens
34128         * lib/utimens.h (fdutimens): New prototype.
34129         * lib/utimens.c (gl_futimens): Move guts...
34130         (fdutimens): ...to new interface.
34131         * tests/test-utimens.c (do_fdutimens): Use it.
34132
34133         utimens: add UTIME_NOW and UTIME_OMIT support
34134         * lib/utimens.c (validate_timespec, update_timespec): New helper
34135         functions.
34136         (gl_futimens, lutimens): Use them.
34137         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34138         stdbool, sys_stat.
34139         (Link): Mention resulting library dependency.
34140         * modules/utimecmp (Link): Likewise.
34141         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34142         (Makefile.am): Pick up library dependency.
34143         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34144         definition.
34145         * tests/test-sys_stat.c: Test the definitions.
34146         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34147         * NEWS: Document library dependency.
34148
34149         utimecmp: support symlink timestamps
34150         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34151         hashing when possible.  Use pathconf when available.
34152         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34153         * modules/utimecmp (Depends-on): Add lstat.
34154
34155         utimens: add lutimens interface
34156         * lib/utimens.c (lutimens): New function.
34157         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34158         * lib/utimens.h (lutimens): Declare new interface.
34159         * tests/test-utimens.c (main): Enhance test.
34160         * tests/test-lutimens.h (test_lutimens): New file.
34161         * modules/utimens-tests (Files): Distribute it.
34162         (Depends-on): Add symlink.
34163         (configure.ac): Check for usleep.
34164
34165         utimens: validate futimens usage
34166         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34167         fewer syscalls on failure later on.  Avoid compiler warning on
34168         mingw.
34169         * modules/utimens (Depends-on): Add dup2.
34170
34171         utimens: add test
34172         * modules/utimens-tests: New test.
34173         * tests/test-utimens.h: New file.
34174         * tests/test-futimens.h: Likewise.
34175         * tests/test-utimens.c: Likewise.
34176
34177         doc: mention timestamp portability issues
34178         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34179         instead.
34180         * doc/posix-functions/utime.texi (utime): Likewise.
34181         * doc/posix-functions/utimes.texi (utimes): Likewise.
34182         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34183         instead.
34184         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34185         module.
34186         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34187         Mention weakness with symlink timestamps.
34188         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34189         to utimensat/futimens instead.
34190         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34191
34192         test-dup2: enhance test
34193         * tests/test-dup2.c (main): Also check AT_FDCWD.
34194
34195         test-stat-time: avoid more spurious failures
34196         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34197         xfs; and avoid race if the two timestamps cross quantization edge.
34198
34199         relocatable: prefer 'file system' over 'filesystem'
34200         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34201         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34202         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34203         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34204         * lib/relocatable.c (compute_curr_prefix): Likewise.
34205
34206 2009-10-10  Jim Meyering  <meyering@redhat.com>
34207
34208         stat-time-tests: check for the usleep function
34209         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34210
34211 2009-10-10  Bruno Haible  <bruno@clisp.org>
34212
34213         * modules/xnanosleep: Put the Link section after the Include section.
34214
34215 2009-10-09  Eric Blake  <ebb9@byu.net>
34216
34217         dup2: work around FreeBSD 6.1 bug
34218         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34219         * doc/posix-functions/dup2.texi (dup2): Document it.
34220         Reported by Nelson H. F. Beebe and Jim Meyering.
34221
34222         test-stat-time: port to buggy NFS clients
34223         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34224         (test_ctime): Also skip test if mtime and ctime are skewed.
34225
34226         maint: prefer 'file system' over 'filesystem'
34227         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34228         * doc/posix-functions/lstat.texi (lstat): Likewise.
34229         * lib/file-has-acl.c (file_has_acl): Likewise.
34230         * lib/fwriteerror.c [TEST]: Likewise.
34231         * tests/test-areadlink.h (test_areadlink): Likewise.
34232         * tests/test-areadlinkat-with-size.c (main): Likewise.
34233         * tests/test-areadlinkat.c (main): Likewise.
34234         * tests/test-canonicalize-lgpl.c (main): Likewise.
34235         * tests/test-canonicalize.c (main): Likewise.
34236         * tests/test-fstatat.c (main): Likewise.
34237         * tests/test-linkat.c (main): Likewise.
34238         * tests/test-lstat.h (test_lstat_func): Likewise.
34239         * tests/test-mkdir.h (test_mkdir): Likewise.
34240         * tests/test-readlink.h (test_readlink): Likewise.
34241         * tests/test-remove.c (main): Likewise.
34242         * tests/test-rename.h (test_rename): Likewise.
34243         * tests/test-renameat.c (main): Likewise.
34244         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34245         * tests/test-symlink.h (test_symlink): Likewise.
34246         * tests/test-symlinkat.c (main): Likewise.
34247         * tests/test-unlink.h (test_unlink_func): Likewise.
34248         * tests/test-unlinkat.c (main): Likewise.
34249
34250         maint: make realtime library usage explicit
34251         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34252         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34253         * modules/settime (Link): Likewise.
34254         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34255
34256         test-stat-time: speed up execution
34257         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34258         warning on mingw.
34259         (nap): New helper function.
34260         (prepare_test): Use it to reduce sleep time.
34261         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34262         execution.
34263         * modules/stat-time-tests (configure.ac): Check for usleep.
34264
34265 2009-10-09  Jim Meyering  <meyering@redhat.com>
34266
34267         selinux-h: always use getfilecon wrappers
34268         * lib/getfilecon.c: New file.
34269         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34270         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34271         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34272         (fgetfilecon): Provide a stub.
34273         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34274         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34275         file unconditionally.
34276         When <selinux/selinux.h> is found, arrange to use wrappers.
34277         * modules/selinux-h (Files): Add getfilecon.c.
34278         (Makefile.am): Substitute include-next-related bits
34279         into the now-always-generated selinux/selinux.h file.
34280         * doc/glibc-functions/lgetfilecon.texi: New file.
34281         * doc/glibc-functions/fgetfilecon.texi: New file.
34282         * doc/glibc-functions/getfilecon.texi: New file.
34283         * doc/glibc-functions/getfilecon-desc.texi: New file.
34284         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34285         which to pull in the new files.
34286         * MODULES.html.sh (Misc): Add selinux-h.
34287
34288 2009-10-08  Jim Meyering  <meyering@redhat.com>
34289
34290         unistd: fix comment typo
34291         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34292
34293 2009-10-08  Eric Blake  <ebb9@byu.net>
34294
34295         areadlink: use SIZE_MAX consistently
34296         * modules/areadlink (Depends-on): Add stdint.
34297         * modules/areadlink-with-size (Depends-on): Likewise.
34298         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34299         gives NULL; drop sys/types, since unistd gives size_t; and add
34300         stdint for SIZE_MAX.
34301         (SIZE_MAX): Rely on headers.
34302         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34303         and add stdint.
34304         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34305         (SIZE_MAX): Likewise.
34306         (INITIAL_BUF_SIZE): Turn into enum.
34307         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34308
34309 2009-10-08  Jim Meyering  <meyering@redhat.com>
34310
34311         areadlinkat: avoid compilation failure
34312         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34313         Fix typo in comment.
34314
34315 2009-10-07  Eric Blake  <ebb9@byu.net>
34316
34317         areadlinkat-with-size: new module
34318         * modules/areadlinkat-with-size: New module.
34319         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34320         * lib/areadlink.h (areadlinkat): Declare it.
34321         * MODULES.html.sh (File system functions): Mention it.
34322         * modules/areadlinkat-with-size-tests: New test.
34323         * tests/test-areadlinkat-with-size.c: New file.
34324
34325         xreadlinkat: new module
34326         * modules/xreadlinkat: New module.
34327         * lib/xreadlinkat.c (xreadlinkat): New file.
34328         * lib/xreadlink.h (xreadlinkat): Declare it.
34329         * MODULES.html.sh (File system functions): Mention it.
34330
34331         areadlinkat: new module
34332         * lib/at-func.c (FUNC_FAIL): New define.
34333         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34334         * modules/areadlinkat: New module.
34335         * lib/linkat.c (areadlinkat): Move...
34336         * lib/areadlinkat.c (areadlinkat): ...to new file.
34337         * lib/areadlink.h (areadlinkat): Declare it.
34338         * modules/linkat (Depends-on): Add areadlinkat.
34339         * MODULES.html.sh (File system functions): Mention it.
34340         * modules/areadlinkat-tests: New test.
34341         * tests/test-areadlinkat.c: New file.
34342
34343         areadlink, areadlink-with-size: add tests
34344         * modules/areadlink-tests: New test.
34345         * modules/areadlink-with-size-tests: Likewise.
34346         * tests/test-areadlink.h: New file.
34347         * tests/test-areadlink.c: Likewise.
34348         * tests/test-areadlink-with-size.c: Likewise.
34349
34350         maint: minor cleanups
34351         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34352         _UNUSED_PARAMETER_ instead.
34353         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34354         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34355         * modules/linkat-tests (Files): Distribute test-link.h.
34356
34357         openat, utimens: whitespace cleanup
34358         * lib/openat.c: Prefer space throughout, rather than mix of 8
34359         spaces vs. tabs.
34360         * lib/at-func.c: Likewise.
34361         * lib/utimens.c: Likewise.
34362
34363         openat: avoid using wrong fd
34364         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34365         working directory chooses same fd.
34366         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34367
34368         mkdir, mkdirat: fix cygwin 1.5.x bug
34369         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34370         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34371         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34372         bug.
34373         (gl_PREREQ_MKDIR): Delete unused macro.
34374         * modules/mkdir (Files): Track file rename.
34375         (configure.ac): Update macro name.
34376         * modules/openat (Depends-on): Add mkdir.
34377         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34378
34379         mkdir, mkdirat: add tests
34380         * modules/mkdir-tests: New test.
34381         * tests/test-mkdir.h: New file.
34382         * tests/test-mkdir.c: Likewise.
34383         * tests/test-mkdirat.c: Likewise.
34384         * modules/openat-tests (Files): Add new files.
34385         (Makefile.am): Run new test.
34386
34387 2009-10-06  Eric Blake  <ebb9@byu.net>
34388
34389         doc: tweak *at function documentation
34390         * doc/posix-functions/faccessat.texi (faccessat): Mention
34391         known issue with replacement.
34392         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34393         * doc/posix-functions/linkat.texi (linkat): Likewise.
34394         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34395         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34396         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34397         * doc/posix-functions/renameat.texi (renameat): Likewise.
34398         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34399
34400         openat: fix GNU/Hurd bug in unlinkat
34401         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34402         broken.
34403         * doc/posix-functions/unlink.texi (unlink): Document this.
34404         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34405
34406         fdopendir: fix GNU/Hurd bug
34407         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34408         allowing non-directory fds.
34409         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34410         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34411         * modules/dirent (Makefile.am): Substitute it.
34412         * lib/dirent.in.h (fdopendir): Declare replacement.
34413         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34414         * tests/test-fdopendir.c (main): Test something other than
34415         /dev/null, since on Hurd that behaves like a directory.
34416
34417         test-symlink: port to GNU/Hurd
34418         * tests/test-symlink.h (test_symlink): Relax expected errno.
34419
34420         doc: tweak more cygwin information
34421         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34422         now compatible with glibc.
34423         * doc/posix-functions/getopt.texi (getopt): Likewise.
34424
34425         getopt-gnu: add another test
34426         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34427         guarantee behavior relied on by m4.
34428         * tests/test-getopt.c (main): Use it.
34429         * modules/getopt-posix-tests (Depends-on): Add setenv.
34430         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34431
34432         getopt: fix compilation on darwin
34433         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34434         include.
34435         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34436         Reported by Ludovic Courtès.
34437
34438 2009-10-06  Bruno Haible  <bruno@clisp.org>
34439
34440         * modules/size_max (Description): Discourage its use.
34441         Reported by Simon Josefsson.
34442
34443 2009-10-06  Jim Meyering  <meyering@redhat.com>
34444
34445         linkat: avoid compilation failure
34446         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34447
34448 2009-10-05  Eric Blake  <ebb9@byu.net>
34449
34450         linkat: support Linux 2.6.17
34451         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34452         linkat on Linux, but allow cache variable override.
34453         * lib/linkat.c (rpl_linkat): Define override.
34454         * modules/linkat (Depends-on): Add symlinkat.
34455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34456         * modules/unistd (Makefile.am): Substitute it.
34457         * lib/unistd.in.h (linkat): Declare replacement.
34458         Reported by Pádraig Brady.
34459
34460         quotearg: port test to systems with C.UTF-8 locale
34461         * tests/test-quotearg.c (struct result_strings): Add another
34462         member, differentiating between C.ASCII and C.UTF-8 handling.
34463         (compare_strings): Add parameter.
34464         (main): Adjust all callers.
34465
34466         getopt: avoid clash with FreeBSD _getopt_internal
34467         * lib/getopt.in.h (_getopt_internal): Override the name.
34468         * lib/getopt_int.h (includes): Pick up any overrides.
34469         Reported by Reuben Thomas.
34470
34471         hash: allow C89 compilation
34472         * lib/hash.c (check_tuning): Move declaration before statement.
34473         Reported by Reuben Thomas.
34474
34475 2009-10-05  Karl Berry  <karl@gnu.org>
34476
34477         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34478
34479 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34480             Bruno Haible  <bruno@clisp.org>
34481
34482         * lib/uname.c (uname): Use a table-driven algorithm to compute
34483         Windows NT versions.
34484
34485 2009-10-04  Bruno Haible  <bruno@clisp.org>
34486
34487         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34488         program_invocation_short_name.
34489         * modules/progname (configure.ac): Test for presence of
34490         program_invocation_short_name.
34491         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34492
34493 2009-10-04  Bruno Haible  <bruno@clisp.org>
34494
34495         * lib/progname.c (set_program_name): Fix comment.
34496         Reported by Jim Meyering.
34497
34498 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34499             Bruno Haible  <bruno@clisp.org>
34500
34501         * lib/uname.c: Include <string.h>.
34502         (uname): Do only one call to GetVersionEx in the common case.
34503
34504 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34505             Bruno Haible  <bruno@clisp.org>
34506
34507         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34508         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34509         (uname): Add support for Windows CE and various non-x86 CPU types.
34510
34511 2009-10-03  Bruno Haible  <bruno@clisp.org>
34512
34513         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34514         invocation to tests/configure.ac.
34515         Reported by Ian Beckwith <ianb@erislabs.net>.
34516
34517 2009-10-02  Eric Blake  <ebb9@byu.net>
34518
34519         fchdir: avoid compiler warning
34520         * lib/fchdir.c (canonicalize_file_name)
34521         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34522
34523         test-open: support mingw errno values
34524         * tests/test-open.h (test_open): Relax test.
34525         * tests/test-fopen.h (test_fopen): Likewise.
34526         * tests/test-openat-safer.c (main): Likewise.
34527
34528         open: fix opening directory on mingw
34529         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34530
34531         test-open: on GNU/Hurd, /dev/null is a directory
34532         * tests/test-fopen.h (main): Rename...
34533         (test_fopen): ...to this.  Use a guaranteed non-directory when
34534         confirming open behavior on trailing slash.
34535         * tests/test-openat-safer.c (main): Likewise.
34536         * tests/test-open.h (main): Likewise....
34537         (test_open): ...to this.
34538         * tests/test-fopen.c (main): Adjust caller.
34539         * tests/test-fopen-safer.c (main): Likewise.
34540         * tests/test-open.c (main): Likewise.
34541         * tests/test-fcntl-safer.c (main): Likewise.
34542         Reported by Samuel Thibault.
34543
34544         rename, fchdir: don't ignore chdir failure
34545         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34546         * lib/rename.c (rpl_rename) [W32]: Likewise.
34547         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34548         an empty destination directory if source cannot be renamed,
34549         although there is still possibility for failure.
34550         * doc/posix-functions/rename.texi (rename): Document the race.
34551         Reported by Jim Meyering.
34552
34553         maint: cleanup whitespace in recent commits
34554         * lib/rename.c (rpl_rename): Remove tabs.
34555         * tests/test-link.h (test_link): Likewise.
34556         * lib/fchdir.c (get_name): Likewise.
34557         Reported by Jim Meyering.
34558
34559 2009-10-02  Ben Pfaff  <blp@gnu.org>
34560
34561         relocatable-prog-wrapper: Add missing dependency on
34562         double-slash-root.
34563         * modules/relocatable-prog-wrapper: Add dependency.
34564         Reported by Ian Beckwith <ianb@erislabs.net>.
34565
34566 2009-10-02  Eric Blake  <ebb9@byu.net>
34567
34568         renameat: fix Solaris bugs
34569         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34570         needed fixing.
34571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34572         * modules/stdio (Makefile.am): Substitute it.
34573         * lib/stdio.in.h (renameat): Declare replacement.
34574         * lib/renameat.c (rpl_renameat): Implement fix.
34575
34576         renameat: new module
34577         * modules/renameat: New file.
34578         * lib/renameat.c (renameat): Likewise.
34579         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34581         * modules/stdio (Makefile.am): Substitute them.
34582         * lib/stdio.in.h (renameat): Declare it.
34583         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34584         * doc/posix-functions/renameat.texi (renameat): Likewise.
34585         * modules/renameat-tests: New test.
34586         * tests/test-renameat.c: Likewise.
34587
34588         rename: fix mingw bugs
34589         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34590         directory overwrite bugs.
34591
34592         rename: fix another cygwin 1.5 bug
34593         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34594         checks.
34595         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34596         unnecessary cygwin workarounds.  Also work around bug with moving
34597         full directory onto an empty one.
34598         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34599
34600         rename-dest-slash: merge into rename module
34601         * modules/rename-dest-slash (Status): Mark obsolete.
34602         (Depends-on): Add rename.
34603         (Files): Let rename do it all.
34604         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34605         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34606         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34607         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34608         * lib/rename.c (rpl_rename): Update comments.
34609
34610         rename: fix cygwin 1.5.x bugs
34611         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34612         * lib/rename.c (rpl_rename): Work around them.
34613         * modules/rename (Depends-on): Add same-inode.
34614
34615         rename: fix Solaris 10 bug
34616         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34617         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34618         was the only bug.
34619
34620         rename: fix Solaris 9 bug
34621         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34622         on non-directory.  Avoid calling exit.
34623         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34624         strdup.
34625         * modules/rename-tests (Depends-on): Drop lstat.
34626         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34627         (gl_PREREQ_RENAME): Delete unused macro.
34628
34629         rename-dest-slash: fix NetBSD bug
34630         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34631         links.
34632         * modules/rename-dest-slash (Depends-on): Add same-inode.
34633
34634         rename-tests: new test, exposes several platform bugs
34635         * modules/rename-tests: New file.
34636         * tests/test-rename.h: Likewise.
34637         * tests/test-rename.c: Likewise.
34638         * doc/posix-functions/rename.texi (rename): Improve documentation,
34639         including bugs that will eventually be fixed in gnulib.
34640
34641 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34642
34643         * lib/uname.c: Include <stdlib.h>
34644         (uname): Assume version info is available.
34645
34646 2009-10-02  Jim Meyering  <meyering@redhat.com>
34647
34648         gnu-web-doc-update: correct --help output
34649         * build-aux/gnu-web-doc-update: Make --help output relevant.
34650
34651         gnu-web-doc-update: add standard options
34652         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34653
34654         gnu-web-doc-update: New module.
34655         Use this script to automatically update the on-line web documentation
34656         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34657         * modules/gnu-web-doc-update: New file, from coreutils.
34658         * build-aux/gnu-web-doc-update: New script.
34659
34660 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34661
34662         link: LoadLibrary is not needed.
34663         * lib/link.c: Use GetModuleHandle.
34664
34665 2009-10-01  Eric Blake  <ebb9@byu.net>
34666
34667         getopt: bump serial number
34668         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34669         change.
34670
34671         tests: tighten link, rmdir, and remove tests
34672         * tests/test-link.h (includes): No need to use <config.h> here.
34673         Clean up if directory hard link was created, otherwise test for
34674         trailing '.'.
34675         * tests/test-linkat.c (main): Simplify.
34676         * tests/test-remove.c (main): Enhance test for trailing '.'.
34677         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34678
34679 2009-10-01  Jim Meyering  <meyering@redhat.com>
34680
34681         maint.mk: requiring "make major" was annoying, for a "minor" release.
34682         What is intended is "stable", to contrast with alpha and beta,
34683         so require "make stable", not "make major".
34684         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34685         (get_tool_versions): Likewise.
34686         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34687
34688 2009-09-30  Ben Pfaff  <blp@gnu.org>
34689
34690         Fix broken build of replacement for Windows tmpfile().
34691         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34692         flags argument added along with the 'mkostemp' module.
34693
34694 2009-09-28  Bruno Haible  <bruno@clisp.org>
34695
34696         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34697         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34698         to 'remove_elt'.
34699         (gl_list_remove): Update.
34700         * lib/gl_list.c (gl_list_remove): Update.
34701         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34702         to 'remove_elt'.
34703         (gl_oset_remove): Update.
34704         * lib/gl_list.c (gl_oset_remove): Update.
34705         Reported by Eric Blake.
34706
34707 2009-09-28  Eric Blake  <ebb9@byu.net>
34708
34709         doc: mention yet more cygwin 1.7 status
34710         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34711         cygwin.
34712         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34713         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34714
34715         argp: fix test failure
34716         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34717         that are not upper-case.  Pass correct range to tolower.
34718
34719 2009-09-27  Jim Meyering  <meyering@redhat.com>
34720
34721         test-yesno: work around sparc-dash here-document infelicity
34722         Without this change, the literal \177 byte in a here document
34723         would make dash 0.5.5.1-3 access uninitialized memory.
34724         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34725         Instead, use a marker, "@", and filter through tr to create the desired
34726         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34727
34728 2009-09-27  Bruno Haible  <bruno@clisp.org>
34729
34730         Disable untested support for new flavours of ACLs on AIX.
34731         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34732         progress.
34733         * lib/set-mode-acl.c (qset_acl): Likewise.
34734
34735 2008-12-07  Bruno Haible  <bruno@clisp.org>
34736
34737         Add support for new flavours of ACLs on AIX. (Untested.)
34738         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34739         (file_has_acl): Add support for newer AIX.
34740         * lib/set-mode-acl.c (qset_acl): Likewise.
34741         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34742         Rainer Tammer <tammer@tammer.net>.
34743
34744 2009-09-26  Eric Blake  <ebb9@byu.net>
34745
34746         argp: fix compilation of getopt
34747         * lib/getopt.in.h (includes): Use different guard than glibc.
34748         Reported by Sergey Poznyakoff.
34749
34750         doc: mention more cygwin 1.7 status
34751         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34752         bug.
34753         * doc/posix-functions/execl.texi (execl): Likewise.
34754         * doc/posix-functions/execle.texi (execle): Likewise.
34755         * doc/posix-functions/execlp.texi (execlp): Likewise.
34756         * doc/posix-functions/execv.texi (execv): Likewise.
34757         * doc/posix-functions/execve.texi (execve): Likewise.
34758         * doc/posix-functions/execvp.texi (execvp): Likewise.
34759         * doc/glibc-functions/canonicalize_file_name.texi
34760         (canonicalize_file_name): Cygwin 1.7 now provides this.
34761         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34762         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34763         on AT_SYMLINK_NOFOLLOW.
34764
34765 2009-09-24  Eric Blake  <ebb9@byu.net>
34766
34767         test-linkat: make test more robust
34768         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34769
34770         getopt: fix inclusion guards for cygwin
34771         * modules/getopt-posix (Depends-on): Add include-next.
34772         (Makefile.am): Substitute more items in replacement header.
34773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34774         <getopt.h>.
34775         * lib/getopt.in.h (includes): Use split inclusion guard, and
34776         prefer <getopt.h> over include <unistd.h> when one is present.
34777         (option): Also override name of 'struct option'.
34778
34779         same-inode: revert prior change; it is not yet ready
34780         * NEWS: Undo mention of this change.
34781         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34782         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34783         * lib/cycle-check.c (cycle_check): Likewise.
34784         * lib/same.c (same_name): Likewise.
34785         * lib/at-func2.c (at_func2): Likewise.
34786
34787 2009-09-23  Eric Blake  <ebb9@byu.net>
34788
34789         linkat: new module
34790         * modules/linkat: New file.
34791         * lib/at-func2.c (at_func2): Likewise.
34792         * lib/linkat.c (linkat): Likewise.
34793         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34794         * lib/openat-priv.h (at_func2): Add declaration.
34795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34796         * modules/unistd (Makefile.am): Substitute them.
34797         * lib/unistd.in.h (linkat): Declare it.
34798         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34799         * doc/posix-functions/linkat.texi (linkat): Likewise.
34800         * doc/posix-functions/link.texi (link): Tweak wording.
34801         * tests/test-link.c (main): Move guts...
34802         * tests/test-link.h (test_link): ...into new file.
34803         * modules/linkat-tests: New test.
34804         * tests/test-linkat.c: Likewise.
34805         * modules/link-tests (Files): Ship new file.
34806         (Depends-on): Add stdbool.
34807
34808         dirname: add library-safe mdir_name
34809         * lib/dirname.h (mdir_name): New prototype.
34810         * lib/dirname.c (dir_name): Move guts...
34811         (mdir_name): ...to new function that avoids xalloc_die.
34812
34813         fchdir: another mingw fix
34814         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34815         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34816         on mingw (where it has not yet been ported), and make it optional
34817         elsewhere.
34818         (_gl_register_fd): Use it.
34819
34820         same-inode: make SAME_INODE tri-state, to port to mingw
34821         * NEWS: Mention this change.
34822         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34823         st_ino always being 0.
34824         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34825         * lib/cycle-check.c (cycle_check): Likewise.
34826         * lib/same.c (same_name): Likewise.
34827
34828         lstat: avoid mingw compilation error
34829         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34830         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34831         lstat ourselves.
34832         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34833         was adequate.
34834         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34835         the checks for lstat.
34836         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34837
34838         link: fix test failure on Solaris 9
34839         * lib/link.c (rpl_link): Don't assume link will catch bogus
34840         trailing slash on source.
34841
34842         test-symlinkat: enhance test
34843         * tests/test-readlink.c (main): Move guts...
34844         * tests/test-readlink.h (test_readlink): ...into new file.
34845         * tests/test-symlink.c (main): Move guts...
34846         * tests/test-symlink.h (test_symlink): ...into new file.
34847         * tests/test-symlinkat.c (main): Use new files for further
34848         coverage.
34849         (do_symlink, do_readlink): New helper functions.
34850         * modules/symlink-tests (Files): Ship new file.
34851         (Depends-on): Add stdbool.
34852         * modules/readlink-tests (Files): Ship new file.
34853         (Depends-on): Add stdbool.
34854         * modules/symlinkat-tests (Files): Use new files.
34855
34856 2009-09-23  Eric Blake  <ebb9@byu.net>
34857
34858         readlink: document portability issue with symlink length
34859         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34860         systems have bogus st_size on symlinks, and mention the
34861         areadlink-with-size module.
34862         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34863         * doc/posix-functions/readlink.texi (readlink): Mention the
34864         areadlink module, and ERANGE failure.
34865         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34866         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34867
34868         readlink: fix Solaris 9 bug with trailing slash
34869         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34870         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34871         * doc/posix-functions/readlink.texi (readlink): Document this.
34872         * modules/readlink-tests: New test.
34873         * tests/test-readlink.c: Likewise.
34874
34875         readlink: fix cygwin 1.5.x bug with return type
34876         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34877         * lib/unistd.in.h (readlink): Use ssize_t.
34878         * lib/readlink.c (readlink): Likewise.
34879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34880         * modules/unistd (Makefile.am): Substitute it.
34881         * lib/unistd.in.h (readlink): Declare replacement.
34882         * doc/posix-functions/readlink.texi (readlink): Document this.
34883
34884         symlink: use throughout gnulib
34885         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34886         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34887         symlink is not used.
34888         * modules/symlinkat (Depends-on): Add symlink.
34889         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34890         * modules/canonicalize-tests (Depends-on): Likewise.
34891         * modules/lstat-tests (Depends-on): Likewise.
34892         * modules/openat-tests (Depends-on): Likewise.
34893         * modules/remove-tests (Depends-on): Likewise.
34894         * modules/rmdir-tests (Depends-on): Likewise.
34895         * modules/unlink-tests (Depends-on): Likewise.
34896         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34897         * tests/test-canonicalize.c (symlink): Likewise.
34898         * tests/test-fstatat.c (symlink): Likewise.
34899         * tests/test-lstat.c (symlink): Likewise.
34900         * tests/test-remove.c (symlink): Likewise.
34901         * tests/test-rmdir.c (symlink): Likewise.
34902         * tests/test-unlink.c (symlink): Likewise.
34903         * tests/test-unlinkat.c (symlink): Likewise.
34904
34905         symlink: new module, for Solaris 9 bug
34906         * modules/symlink: New file.
34907         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34908         * lib/symlink.c: Likewise.
34909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34910         * modules/unistd (Makefile.am): Substitute them.
34911         * lib/unistd.in.h (symlink): Declare replacement.
34912         * MODULES.html.sh (File system functions): Mention it.
34913         * doc/posix-functions/symlink.texi (symlink): Likewise.
34914         * modules/symlink-tests: New test.
34915         * tests/test-symlink.c: Likewise.
34916
34917 2009-09-23  Bruno Haible  <bruno@clisp.org>
34918
34919         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34920         when needed.
34921         Test case: gnulib-tool --import --with-tests atexit inttypes.
34922         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34923
34924 2009-09-23  Bruno Haible  <bruno@clisp.org>
34925
34926         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34927         subcommand, not in a subshell.
34928
34929 2009-09-22  Eric Blake  <ebb9@byu.net>
34930
34931         unistd: sort replacement declarations
34932         * lib/unistd.in.h: Sort declarations.
34933
34934         open, openat: minor optimization
34935         * lib/open.c (open): If open succeeded, len is non-zero.
34936         * lib/openat.c (rpl_openat): Likewise.
34937
34938         link-follow: ensure correct result
34939         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34940         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34941         distinguish between possible failures.
34942
34943 2009-09-21  Eric Blake  <ebb9@byu.net>
34944
34945         fts: avoid compiler warning
34946         * lib/fts.c (dirent_inode_sort_may_be_useful)
34947         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34948
34949 2009-09-19  Bruno Haible  <bruno@clisp.org>
34950
34951         * lib/progreloc.c (canonicalize_file_name): New declaration.
34952
34953 2009-09-19  Eric Blake  <ebb9@byu.net>
34954
34955         link: fix quoting
34956         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34957
34958         openat: fix openat bugs on Solaris 9
34959         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34960         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34961         * modules/openat (Depends-on): Add open.
34962         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34963         * modules/fcntl-h (Makefile.am): Substitute it.
34964         * lib/fcntl.in.h (openat): Declare replacement.
34965         * doc/posix-functions/openat.texi (openat): Document this.
34966
34967         openat: move fstatat and unlinkat into correct files
34968         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34969         compiled.
34970         * lib/openat.c (fstatat, unlinkat): Move...
34971         * lib/fstatat.c (fstatat): ...into correct files.
34972         * lib/unlinkat.c (unlinkat): Likewise.
34973
34974         openat: fix unlinkat bugs on Solaris 9
34975         * lib/unlinkat.c (unlinkat): New file.
34976         * modules/openat (Depends-on): Add unlink.
34977         (Files): Distribute it.
34978         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34979         trailing slash behavior is broken.
34980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34981         * modules/unistd (Makefile.am): Substitute it.
34982         * lib/unistd.in.h (unlinkat): Declare replacement.
34983         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34984
34985         openat: fix fstatat bugs on Solaris 9
34986         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34987         stat.
34988         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34989
34990         test-unlinkat: enhance test, to expose Solaris 9 bug
34991         * tests/test-unlink.c (main): Factor guts...
34992         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34993         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34994         * tests/test-rmdir.c (main): Adjust caller.
34995         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34996         (unlinker): New helper function.
34997         (rmdirat): Enhance check.
34998         * modules/rmdir-tests (Depends-on): Add stdbool.
34999         * modules/unlink-tests (Depends-on): Likewise.
35000         (Files): Add test-unlink.h.
35001         * modules/openat-tests (Files): Likewise.
35002         (Depends-on): Add unlinkdir.
35003
35004         test-fstatat: new test, to expose Solaris 9 bugs
35005         * tests/test-stat.c (main): Factor guts...
35006         * tests/test-stat.h (test_stat_func): ...into new file.
35007         * tests/test-lstat.c (main): Factor guts...
35008         * tests/test-lstat.h (test_lstat_func): ...into new file.
35009         * tests/test-fstatat.c: New file.
35010         * modules/stat-tests (Files): Add test-stat.h.
35011         * modules/lstat-tests (Files): Add test-lstat.h.
35012         (Depends-on): Add stdbool.
35013         * modules/openat-tests (Depends-on): Add pathmax.
35014         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35015         (Makefile.am): Run new test.
35016
35017         remove: new module, for mingw and Solaris 9 bugs
35018         * modules/remove: New file.
35019         * lib/remove.c: Likewise.
35020         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35022         * modules/stdio (Makefile.am): Use them.
35023         * lib/stdio.in.h (remove): Declare replacement.
35024         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35025         * doc/posix-functions/remove.texi (remove): Likewise.
35026         * modules/remove-tests: New test.
35027         * tests/test-remove.c: Likewise.
35028
35029         unlink: new module, for Solaris 9 bug
35030         * modules/unlink: New file.
35031         * lib/unlink.c: Likewise.
35032         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35034         * modules/unistd (Makefile.am): Use them.
35035         * lib/unistd.in.h (stat): Declare replacement.
35036         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35037         * doc/posix-functions/unlink.texi (unlink): Likewise.
35038         * modules/unlink-tests: New test.
35039         * tests/test-unlink.c: Likewise.
35040
35041         lstat: fix Solaris 9 bug
35042         * lib/lstat.c (lstat): Also check for trailing slash on
35043         non-symlink, non-directories.  Use stat module to simplify logic.
35044         * doc/posix-functions/lstat.texi (lstat): Document it.
35045         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35046         (configure.ac): Check for symlink.
35047         * tests/test-lstat.c (main): Add more tests.
35048
35049         stat: add as dependency to other modules
35050         * modules/chown (Depends-on): Add stat.
35051         * modules/euidaccess (Depends-on): Likewise.
35052         * modules/fchdir (Depends-on): Likewise.
35053         * modules/isdir (Depends-on): Likewise.
35054         * modules/link (Depends-on): Likewise.
35055         * modules/lstat (Depends-on): Likewise.
35056         * modules/mkdir-p (Depends-on): Likewise.
35057         * modules/modechange (Depends-on): Likewise.
35058         * modules/open (Depends-on): Likewise.
35059         * modules/readlink (Depends-on): Likewise.
35060         * modules/same (Depends-on): Likewise.
35061
35062         stat: fix Solaris 9 bug
35063         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35064         slash.
35065         * lib/stat.c (rpl_stat): Work around it.
35066         * doc/posix-functions/stat.texi (stat): Update documentation.
35067
35068         stat: new module, for mingw bug
35069         * modules/stat: New file.
35070         * lib/stat.c: Likewise.
35071         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35073         * modules/sys_stat (Makefile.am): Use them.
35074         * lib/sys_stat.in.h (stat): Declare replacement.
35075         * lib/openat.c (fstatat): Deal with lstat and stat being function
35076         macros.
35077         * modules/openat (Depends-on): Add inline.
35078         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35079         * doc/posix-functions/stat.texi (stat): Likewise.
35080         * modules/stat-tests: New test.
35081         * tests/test-stat.c: Likewise.
35082
35083 2009-09-19  Jim Meyering  <meyering@redhat.com>
35084
35085         syntax-check: detect unnecessary inclusion of canonicalize.h
35086         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35087
35088 2009-09-19  Eric Blake  <ebb9@byu.net>
35089
35090         canonicalize-lgpl: adjust clients to use correct header
35091         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35092         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35093         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35094         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35095         * lib/progreloc.c (includes): Likewise.
35096
35097 2009-09-19  Jim Meyering  <meyering@redhat.com>
35098
35099         test-posixtm.c: correct a comment
35100         * tests/test-posixtm.c: Correct first-line comment.
35101         Spotted by Eric Blake.
35102
35103 2009-09-16  Jim Meyering  <meyering@redhat.com>
35104
35105         posixtm-tests: make T const-correct; add a test case
35106         * tests/test-posixtm.c (T): Declare const.
35107         Add a test for -(2^31+1).
35108         Remove useless can-succeed-only-in-2002 test.
35109
35110         posixtm-tests: adjust the sole failing test
35111         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35112         expected output matches what mktime now produces.  Cross-checked via
35113         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35114
35115         posixtm: move #ifdef'd tests into a new module
35116         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35117         * tests/test-posixtm.c: ... this new file.
35118         * modules/posixtm-tests: New module.
35119
35120 2009-09-19  Eric Blake  <ebb9@byu.net>
35121
35122         openat: simplify use of at-func.c
35123         * lib/at-func.c (includes): Include prerequisites here, to
35124         simplify requirements on client files.
35125         * lib/openat-priv.h: Add double-inclusion guard.
35126         * lib/faccessat.c (includes): Simplify.
35127         * lib/fchmodat.c (includes): Likewise.
35128         * lib/fchownat.c (includes): Likewise.
35129         * lib/mkdirat.c (includes): Likewise.
35130         * lib/mkfifoat.c (includes): Likewise.
35131         * lib/symlinkat.c (includes): Likewise.
35132
35133         openat: allow return of fd 0
35134         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35135         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35136         unistd-safer.
35137         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35138         <fcntl.h>; this module does not leak fds.
35139         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35140         must be allowed to return 0, leaving openat_safer to add the
35141         safety.
35142         (openat_permissive): Avoid writing to just-opened fd 2 if
35143         restoring the current directory fails.
35144         * lib/openat-die.c (openat_restore_fail): Add comment.
35145         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35146         (save_cwd): Guarantee safe fd, but without use of open_safer.
35147         * tests/test-openat.c: New test.
35148         * modules/openat-tests (Files, Makefile.am): Distribute and build
35149         new file.
35150
35151         relocatable-prog-wrapper: fix build
35152         * modules/relocatable-prog-wrapper (Files): Update name of
35153         canonicalize m4 file, broken on 2009-09-17.
35154         Reported by emad hajjar <aleppos@hotmail.com>.
35155
35156 2009-09-19  Bruno Haible  <bruno@clisp.org>
35157
35158         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35159         * lib/safe-alloc.c: Likewise.
35160         Reported by Ian Beckwith <ianb@erislabs.net>.
35161
35162 2009-09-18  Bruno Haible  <bruno@clisp.org>
35163
35164         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35165         Reported by <erobles@sensacd.com.mx>.
35166
35167 2009-09-17  Eric Blake  <ebb9@byu.net>
35168
35169         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35170         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35171         slashes when checking if last component is missing.
35172         * tests/test-canonicalize.c (main): Test this.
35173
35174         canonicalize, canonicalize-lgpl: honor // if distinct from /
35175         * modules/canonicalize (Files): Add double-slash-root.m4.
35176         * modules/canonicalize-lgpl (Files): Likewise.
35177         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35178         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35179         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35180         fallback definition.
35181         (canonicalize_filename_mode): Use it to protect //.
35182         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35183         (__realpath): Likewise.
35184         * tests/test-canonicalize.c (main): Test this.
35185         * tests/test-canonicalize-lgpl.c (main): Likewise.
35186         * modules/canonicalize-tests (Depends-on): Add same-inode.
35187         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35188
35189         canonicalize-lgpl: fix glibc bug with trailing slash
35190         * m4/canonicalize-lgpl.m4: Move contents...
35191         * m4/canonicalize.m4: ...here.
35192         (gl_CANONICALIZE_LGPL): Factor realpath check...
35193         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35194         glibc 2.3.5 bug, fixed 2005-04-27.
35195         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35196         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35197         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35198         * modules/canonicalize-lgpl (Files): Manage file rename.
35199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35200         * modules/stdlib (Makefile.am): Substitute witness.
35201         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35202         is needed.
35203         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35204         replacement is required.
35205         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35206         * doc/glibc-functions/canonicalize_file_name.texi
35207         (canonicalize_file_name): Document this.
35208         * doc/posix-functions/realpath.texi (realpath): Likewise.
35209
35210         canonicalize-lgpl: reject non-directory with trailing slash
35211         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35212         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35213         catches failures in glibc 2.3.5.
35214         * tests/test-canonicalize.c (main): Likewise.
35215
35216         canonicalize-lgpl: use native realpath if it works
35217         * lib/canonicalize-lgpl.c (realpath): Guard with
35218         FUNC_REALPATH_WORKS.
35219         * lib/stdlib.in.h (realpath): Make declaration optional based on
35220         HAVE_REALPATH.
35221         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35222         native realpath works.
35223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35224         * modules/stdlib (Makefile.am): Substitute witness.
35225
35226         canonicalize, canonicalize-lgpl: use <stdlib.h>
35227         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35228         (Include): Mention <stdlib.h>.
35229         (configure.ac): Mention functions we provide.
35230         * modules/canonicalize (configure.ac): Likewise.
35231         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35232         realpath if canonicalize_file_name is missing.
35233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35234         * modules/stdlib (Makefile.am): Substitute witnesses.
35235         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35236         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35237         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35238         * NEWS: Document this.
35239         * doc/glibc-functions/canonicalize_file_name.texi
35240         (canonicalize_file_name): Likewise.
35241         * doc/posix-functions/realpath.texi (realpath): Likewise.
35242         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35243
35244         test-canonicalize: consolidate into single C program
35245         * tests/test-canonicalize.sh: Delete; move setup into...
35246         * tests/test-canonicalize.c (main): ...the program, making it
35247         easier to run in debugger.  Add some tests.
35248         * modules/canonicalize-tests (Files): Remove unused file.
35249         (Depends-on): Add progname.
35250         (configure.ac, Makefile.am): Simplify.
35251
35252         test-canonicalize-lgpl: consolidate into single C program
35253         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35254         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35255         easier to run in debugger.  Add some tests.
35256         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35257         (configure.ac, Makefile.am): Simplify.
35258
35259         canonicalize: avoid resolvepath
35260         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35261         unnecessary checks.
35262         * lib/canonicalize.c (includes): Simplify.
35263         (canonicalize_file_name): Drop resolvepath implementation.
35264         * modules/canonicalize (Depends-on): Drop filenamecat.
35265
35266         canonicalize: don't lose errno
35267         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35268         over calls to free.
35269
35270         canonicalize: simplify errno handling
35271         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35272         assignment.
35273
35274         canonicalize, canonicalize-lgpl: update module dependencies
35275         * modules/canonicalize (Depends-on): Add extensions, lstat,
35276         pathmax, stdlib.
35277         (Files): Drop pathmax.h.
35278         (configure.ac): Adjust macro name.
35279         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35280         lstat, stdlib, sys_stat.
35281         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35282         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35283         extensions.
35284         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35285         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35286         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35287         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35288         declaration, if available.
35289         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35290         we can rely on the readlink module.
35291         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35292         (includes): Use <unistd.h> unconditionally.
35293
35294 2009-09-17  Eric Blake  <ebb9@byu.net>
35295
35296         maint: make Include sections of modules consistent
35297         * modules/alloca: Use only header name; no need to list #include.
35298         * modules/alloca-opt: Likewise.
35299         * modules/arpa_inet: Likewise.
35300         * modules/canon-host: Likewise.
35301         * modules/configmake: Likewise.
35302         * modules/dirent: Likewise.
35303         * modules/eealloc: Likewise.
35304         * modules/environ: Likewise.
35305         * modules/fchdir: Likewise.
35306         * modules/fcntl: Likewise.
35307         * modules/fcntl-h: Likewise.
35308         * modules/gethrxtime: Likewise.
35309         * modules/gettime: Likewise.
35310         * modules/ignore-value: Likewise.
35311         * modules/inet_ntop: Likewise.
35312         * modules/inet_pton: Likewise.
35313         * modules/inttypes: Likewise.
35314         * modules/isnand-nolibm: Likewise.
35315         * modules/isnanf-nolibm: Likewise.
35316         * modules/mbchar: Likewise.
35317         * modules/mbfile: Likewise.
35318         * modules/mbiter: Likewise.
35319         * modules/mbuiter: Likewise.
35320         * modules/netdb: Likewise.
35321         * modules/netinet_in: Likewise.
35322         * modules/nproc: Likewise.
35323         * modules/pagealign_alloc: Likewise.
35324         * modules/poll: Likewise.
35325         * modules/printf-frexp: Likewise.
35326         * modules/pthread: Likewise.
35327         * modules/putenv: Likewise.
35328         * modules/random_r: Likewise.
35329         * modules/relocatable-prog: Likewise.
35330         * modules/search: Likewise.
35331         * modules/select: Likewise.
35332         * modules/selinux-h: Likewise.
35333         * modules/settime: Likewise.
35334         * modules/signal: Likewise.
35335         * modules/size_max: Likewise.
35336         * modules/socklen: Likewise.
35337         * modules/ssize_t: Likewise.
35338         * modules/stdarg: Likewise.
35339         * modules/stdbool: Likewise.
35340         * modules/stddef: Likewise.
35341         * modules/stdint: Likewise.
35342         * modules/stdio: Likewise.
35343         * modules/stdlib: Likewise.
35344         * modules/string: Likewise.
35345         * modules/strings: Likewise.
35346         * modules/sys_file: Likewise.
35347         * modules/sys_ioctl: Likewise.
35348         * modules/sys_select: Likewise.
35349         * modules/sys_socket: Likewise.
35350         * modules/sys_stat: Likewise.
35351         * modules/sys_time: Likewise.
35352         * modules/sys_times: Likewise.
35353         * modules/sys_utsname: Likewise.
35354         * modules/sys_wait: Likewise.
35355         * modules/sysexits: Likewise.
35356         * modules/time: Likewise.
35357         * modules/times: Likewise.
35358         * modules/tmpfile: Likewise.
35359         * modules/trim: Likewise.
35360         * modules/unistd: Likewise.
35361         * modules/wchar: Likewise.
35362         * modules/wctype: Likewise.
35363
35364 2009-09-17  Bruno Haible  <bruno@clisp.org>
35365
35366         Make getdate.y compile on QNX and NetBSD 5 / i386.
35367         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35368         TIME_T_FITS_IN_LONG_INT.
35369         * lib/getdate.y (long_time_t): New type.
35370         (relative_time): Change type of 'seconds' field to long_time_t.
35371         (get_date): Update types of local variables. Check against overflow
35372         during conversion from long_time_t to time_t.
35373         Reported by Matt Kraai <kraai@ftbfs.org>
35374         and Hasso Tepper <hasso@netbsd.org>.
35375
35376 2009-09-17  Bruno Haible  <bruno@clisp.org>
35377
35378         * modules/COPYING: Update copyright years.
35379         * modules/README: Likeiwse.
35380         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35381         Reported by Ian Beckwith <ianb@erislabs.net>.
35382
35383 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35384
35385         * users.txt: Update references for gnuit package.
35386
35387 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35388
35389         * m4/getdelim.m4: Fix typo in copyright line.
35390
35391 2009-09-17  Bruno Haible  <bruno@clisp.org>
35392
35393         * lib/atoll.c: Use the standard header with GPL copyright.
35394         * lib/argz.in.h: Likewise.
35395         * lib/glob.c: Likewise.
35396         * lib/glob-libc.h: Likewise.
35397         * lib/random_r.c: Likewise.
35398         * lib/siglist.h: Likewise.
35399         * lib/strsignal.c: Likewise.
35400         Reported by Ian Beckwith <ianb@erislabs.net>.
35401
35402 2009-09-17  Eric Blake  <ebb9@byu.net>
35403
35404         rmdir: ensure correct dependency order
35405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35406
35407 2009-09-17  Bruno Haible  <bruno@clisp.org>
35408
35409         Disable assertion that fails on NetBSD 5 / i386.
35410         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35411         Reported by Sam Steingold <sds@gnu.org>
35412         and Hasso Tepper <hasso@netbsd.org>.
35413
35414 2009-09-16  Eric Blake  <ebb9@byu.net>
35415
35416         unlinkdir: port to mingw
35417         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35418         on which no one can unlink a directory.
35419
35420         stdlib: sort witness names
35421         * modules/stdlib (Makefile.am): Sort replacements.
35422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35423         * lib/stdlib.in.h: Likewise.
35424
35425         parse-duration-tests: avoid link failure
35426         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35427         LIBINTL.
35428         Reported by Tom G. Christensen.
35429
35430         openat-tests: ensure unlinkat behaves like rmdir
35431         * tests/test-rmdir.c (main): Factor guts...
35432         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35433         * modules/rmdir-tests (Files): Ship new file.
35434         * modules/openat-tests: New test.
35435         * tests/test-unlinkat.c: Likewise.
35436
35437         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35438         * modules/rmdir-errno (Status, Notice): Now obsolete.
35439
35440         rmdir: work around cygwin 1.5.x and mingw bugs
35441         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35442         * lib/rmdir.c (rmdir): Work around it.
35443         * modules/rmdir (Status, Notice): No longer obsolete.
35444         (Files): Add dos.m4.
35445         (Depends-on): Add unistd.
35446         (configure.ac): Set witnesses.
35447         (License): Relax to LGPLv2+.
35448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35449         * modules/unistd (Makefile.am): Substitute witnesses.
35450         * lib/unistd.in.h (rmdir): Declare replacement.
35451         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35452         * modules/rmdir-tests: New tests.
35453         * tests/test-rmdir.c: Likewise.
35454
35455 2009-09-15  Eric Blake  <ebb9@byu.net>
35456
35457         fchdir: improve use of replacement functions
35458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35459         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35460         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35461         REPLACE_CLOSEDIR.
35462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35463         * modules/sys_stat (Makefile.am): Substitute correct witness.
35464         * modules/dirent (Makefile.am): Likewise.
35465         * modules/unistd (Makefile.am): Likewise.
35466         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35467         * lib/unistd.in.h (dup): Likewise.
35468         * lib/sys_stat.in.h (fstat): Likewise.
35469
35470         maint: ignore gnulib-tool temp files
35471         * .gitignore: Ignore files created during gnulib-tool --test.
35472
35473 2009-09-13  Jim Meyering  <meyering@redhat.com>
35474
35475         posixtm: don't reject a time that specify "60" as the number of seconds
35476         * lib/posixtm.c (posixtime): The code to reject invalid dates
35477         would also reject a time specified with the .60 suffix.
35478         But POSIX allows that, in order to accommodate leap seconds.
35479         So don't reject it.
35480         (main): Adjust tests accordingly.
35481         * modules/posixtm (Depends-on): Add stpcpy.
35482
35483 2009-09-11  Jim Meyering  <meyering@redhat.com>
35484
35485         announce-gen: include [$release_type] in emitted Subject:
35486         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35487         e.g., [stable] in the emitted Subject: line.
35488
35489 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35490
35491         Remove obsolete macros from several modules.
35492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35493         obsolete Autoconf macros with their modern counterparts.
35494         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35495         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35497         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35498         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35499         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35501         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35502         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35503         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35504         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35506         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35507         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35508         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35509         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35510         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35511         * m4/time_r.m4 (gl_TIME_R): Likewise.
35512         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35513         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35514         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35515
35516         Fix copyright header in build-aux scripts.
35517         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35518         recommendation.
35519         * build-aux/ncftpput-ftp: Likewise.
35520         * build-aux/update-copyright: Likewise.
35521
35522 2009-09-09  Eric Blake  <ebb9@byu.net>
35523
35524         test-link: allow Linux choice of errno
35525         * tests/test-link.c (main): Relax test for alternate error.
35526
35527         strndup: fix improper m4 caching
35528         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35529         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35530         (gl_PREREQ_STRNDUP): Delete.
35531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35532         * modules/string (Makefile.am): Substitute it.
35533         * lib/string.in.h (strndup): Modernize prototype.
35534
35535         getcwd: port to mingw
35536         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35537         different from the POSIX assumptions made throughout the getcwd
35538         module; fortunately, the mingw getcwd does not need replacement.
35539         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35540         * modules/getcwd-tests: New test.
35541         * tests/test-getcwd.c: Likewise.
35542
35543         link: fix platform bugs
35544         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35545         * lib/link.c (link): Work around them.  Fix related mingw bug.
35546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35547         * modules/unistd (Makefile.am): Substitute it.
35548         * lib/unistd.in.h (link): Declare replacement.
35549         * doc/posix-functions/link.texi (link): Document this.
35550         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35551
35552         test-link: consolidate into single C program, test more cases
35553         * tests/test-link.sh: Delete.
35554         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35555         at least Cygwin and Solaris.
35556         * modules/link-tests (Files): Remove unused file.
35557         (Depends-on): Add errno, sys_stat.
35558         (Makefile.am): Simplify.
35559
35560 2009-09-08  Bruno Haible  <bruno@clisp.org>
35561
35562         Work around towlower, towupper bug on mingw.
35563         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35564         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35565         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35566         * doc/posix-functions/towupper.texi: Likewise.
35567         Reported by Eric Blake.
35568
35569 2009-09-08  Jim Meyering  <meyering@redhat.com>
35570
35571         build: don't try to run autoheader if we don't use it
35572         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35573         is not used in configure.ac.
35574
35575 2009-09-08  Eric Blake  <ebb9@byu.net>
35576
35577         euidaccess: fix compilation error
35578         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35579
35580         rawmemchr: relax license
35581         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35582         okay.
35583         Reported by Jim Meyering.
35584
35585         mkfifoat: new module
35586         * modules/mkfifoat: New file.
35587         * lib/mkfifoat.c: Likewise.
35588         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35590         * modules/sys_stat (Makefile.am): Use them.
35591         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35592         * MODULES.html.sh (File system functions): Mention module.
35593         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35594         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35595         * modules/mkfifoat-tests: New test.
35596         * tests/test-mkfifoat.c: Likewise.
35597
35598         strchrnul: relax license
35599         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35600         okay.
35601         Reported by Jim Meyering.
35602
35603 2009-09-08  Eric Blake  <ebb9@byu.net>
35604
35605         fstatat: fix compilation on Solaris
35606         * lib/fstatat.c (includes): Add fcntl.h.
35607         Reported by Pádraig Brady.
35608
35609 2009-09-07  Eric Blake  <ebb9@byu.net>
35610
35611         rename: modernize replacement
35612         * modules/rename (Depends-on): Add stdio.
35613         (configure.ac): Declare witness.
35614         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35615         stdio take care of replacement.
35616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35617         * modules/stdio (Makefile.am): Substitute them.
35618         * lib/stdio.in.h (rename): Declare replacement.
35619         * lib/rename.c (includes): Allow cross-compilation to non-windows
35620         machines.
35621         * doc/posix-functions/rename.texi (rename): Improve
35622         documentation.
35623
35624         stdio: sort witness names
35625         * modules/stdio (Makefile.am): Sort replacements.
35626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35627         * lib/stdio.in.h: Likewise.
35628
35629         getcwd: minor cleanups
35630         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35631         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35632
35633         openat: provide more convenience names
35634         * modules/faccessat (configure.ac): Add C witness.
35635         * lib/unistd.in.h (readlinkat): Fix typo.
35636         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35637         convenience wrappers.
35638         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35639         wrappers in syntax checks.
35640
35641 2009-09-06  Eric Blake  <ebb9@byu.net>
35642
35643         doc: fix comments in recent patches
35644         * lib/faccessat.c: Mention correct function.
35645         * lib/fchmodat.c: Likewise.
35646         * lib/fchownat.c: Likewise.
35647         * lib/symlinkat.c: Likewise.
35648         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35649         constants.
35650
35651         faccessat, symlinkat: continue cleanup of previous patch
35652         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35653         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35654         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35656         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35657         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35658         set.
35659
35660 2009-09-06  Bruno Haible  <bruno@clisp.org>
35661
35662         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35663         (fstatat): Declare if GNULIB_FSTATAT is set.
35664         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35665         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35666         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35667         * modules/fcntl-h (Files): Remove m4/openat.m4.
35668         * modules/sys_stat (Files): Remove m4/openat.m4.
35669         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35670         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35671         * modules/unistd (Files): Remove m4/openat.m4.
35672         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35673         GNULIB_OPENAT.
35674         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35675         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35676         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35677         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35678         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35679         gl_OPENAT_DEFAULTS.
35680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35681         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35682         Don't require gl_OPENAT_DEFAULTS.
35683         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35684         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35685         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35686         (gl_OPENAT_DEFAULTS): Remove macro.
35687
35688 2009-09-06  Bruno Haible  <bruno@clisp.org>
35689
35690         * modules/openat (configure.ac): Remove unneeded witness.
35691
35692 2009-09-06  Bruno Haible  <bruno@clisp.org>
35693
35694         Set errno to ENOSYS when a function is entirely unsupported.
35695         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35696         EOPNOTSUPP.
35697         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35698         * modules/chown (Depends-on): Remove errno.
35699
35700 2009-09-06  Bruno Haible  <bruno@clisp.org>
35701
35702         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35703
35704 2009-09-06  Bruno Haible  <bruno@clisp.org>
35705
35706         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35707
35708 2009-09-06  Ben Pfaff  <blp@gnu.org>
35709             Bruno Haible  <bruno@clisp.org>
35710
35711         Work around a glibc bug in strtok_r.
35712         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35713         Undefine if UNDEFINE_STRTOK_R is set.
35714         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35716         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35717         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35718         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35719         UNDEFINE_STRTOK_R.
35720         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35721
35722 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35723
35724         exclude: minor fix
35725         * lib/exclude.c: Include wctype.h
35726
35727 2009-09-06  Akim Demaille  <demaille@gostai.com>
35728
35729         bootstrap: improve error message
35730         * build-aux/bootstrap (find_tool): Upon failure, report the list
35731         of candidates.
35732         Honor the initial value of the envvar.
35733
35734 2009-09-05  Eric Blake  <ebb9@byu.net>
35735
35736         symlinkat: new module
35737         * modules/symlinkat: New file.
35738         * lib/symlinkat.c: Likewise.
35739         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35741         * modules/unistd (Makefile.am): Use them.
35742         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35743         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35744         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35745         * MODULES.html.sh (File system functions): Mention module.
35746         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35747         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35748         * modules/symlinkat-tests: New test.
35749         * tests/test-symlinkat.c: Likewise.
35750
35751         test-openat-safer: add more checks
35752         * tests/test-openat-safer.c (main): Check more code paths.
35753
35754 2009-09-05  Jim Meyering  <meyering@redhat.com>
35755
35756         syntax-check: detect unnecessary inclusion of openat.h
35757         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35758
35759 2009-09-05  Bruno Haible  <bruno@clisp.org>
35760
35761         Support towlower, towupper.
35762         * doc/posix-functions/towlower.texi: Mention module wctype.
35763         * doc/posix-functions/towupper.texi: Likewise.
35764         * lib/wctype.in.h (towlower, towupper): New functions.
35765         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35766         (ASSERT): New macro.
35767         (e): New variable.
35768         (main): Test also towlower, towupper. Test WEOF argument.
35769         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35770
35771 2009-09-05  Bruno Haible  <bruno@clisp.org>
35772
35773         Fix conversion behaviour when the input is invalid.
35774         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35775         mark occurring in first pass of indirect conversion.
35776         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35777         input.
35778         Found by clang's static analyzer.
35779
35780 2009-09-05  Bruno Haible  <bruno@clisp.org>
35781
35782         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35783         where direct conversion is possible.
35784
35785 2009-09-04  Eric Blake  <ebb9@byu.net>
35786
35787         openat: fail with ENOENT on empty name
35788         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35789         buffer.
35790
35791         link-follow: fix logic bug in prior patch
35792         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35793         reversed sense of yes and no in prior patch.  Avoid confusing
35794         compilation failure with desired semantics.
35795
35796         link-follow: accomodate mingw and cross-compilation
35797         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35798         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35799         cross-compilation results to -1, to make linkat easier to
35800         implement when cross-compiling.  Trivially support mingw.
35801         * modules/link-follow (configure.ac): Call new name.
35802         * NEWS: Mention this.
35803
35804 2009-09-03  Eric Blake  <ebb9@byu.net>
35805
35806         faccessat: compile replacement
35807         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35808         needed.
35809
35810         fts: fix compilation error
35811         * lib/fts.c (includes): Re-add "openat.h", for
35812         openat_needs_fchdir.
35813
35814         faccessat: new module
35815         * modules/faccessat: New file.
35816         * lib/faccessat.c: Likewise.
35817         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35819         * modules/unistd (Makefile.am): Use it.
35820         * lib/unistd.in.h (faccessat): Declare it.
35821         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35822         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35823         * MODULES.html.sh (File system functions): Mention it.
35824         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35825         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35826
35827         euidaccess: prefer POSIX over non-standard implementation
35828         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35829         * lib/euidaccess.c (euidaccess): Use it if available.
35830
35831         openat: make template easier to use
35832         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35833         AT_FUNC_F2 to be undefined.
35834         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35835         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35836         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35837         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35838         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35839         Likewise.
35840         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35841         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35842         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35843         Likewise.
35844
35845         openat: declare in POSIX headers
35846         * NEWS: Mention this.
35847         * modules/openat (configure.ac): Declare witnesses.
35848         (Depends-on): Add fcntl-h, sys_stat, unistd.
35849         (Include): Mention correct headers.
35850         * modules/fcntl-h (Depends-on): Add link-warning.
35851         (Files): Add openat.m4.
35852         (Makefile.am): Substitute witnesses.
35853         * modules/sys_stat (Files, Makefile.am): Likewise.
35854         * modules/unistd (Files, Makefile.am): Likewise.
35855         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35856         (gl_OPENAT_DEFAULTS): New macro.
35857         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35860         (SYS_STAT_H): Remove unused variable.
35861         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35862         * lib/fcntl--.h (includes): Remove unneeded header.
35863         * lib/openat-safer.c (includes): Likewise.
35864         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35865         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35866         appropriate headers.
35867         (__OPENAT_PREFIX): Delete.
35868         * lib/fcntl.in.h (openat): Provide declaration.
35869         (AT_FDCWD): Fix Solaris bug.
35870         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35871         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35872         * lib/fchmodat.c (includes):  Adjust to find declaration.
35873         * lib/fchownat.c (includes): Likewise.
35874         * lib/mkdirat.c (includes): Likewise.
35875         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35876         still visible.
35877
35878 2009-09-02  Eric Blake  <ebb9@byu.net>
35879
35880         errno: use consistently
35881         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35882         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35883         * lib/canonicalize.c (ELOOP): Likewise.
35884         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35885         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35886         * lib/lchown.c (EOPNOTSUPP): Likewise.
35887         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35888         * lib/savewd.c (ESTALE): Likewise.
35889         * lib/settime.c (ENOSYS): Likewise.
35890         * lib/utimens.c (ENOSYS): Likewise.
35891         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35892         * lib/chdir-safer.c (ELOOP): Likewise.
35893         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35894         * modules/c-stack (Depends-on): Add errno.
35895         * modules/canonicalize (Depends-on): Likewise.
35896         * modules/chdir-safer (Depends-on): Likewise.
35897         * modules/fdopendir (Depends-on): Likewise.
35898         * modules/inet_ntop (Depends-on): Likewise.
35899         * modules/inet_pton (Depends-on): Likewise.
35900         * modules/lchown (Depends-on): Likewise.
35901         * modules/openat (Depends-on): Likewise.
35902         * modules/savewd (Depends-on): Likewise.
35903         * modules/settime (Depends-on): Likewise.
35904         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35905
35906         fts: avoid leaking fds
35907         * modules/fts (Depends-on): Add cloexec.
35908         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35909         flag.
35910
35911         fts: make directory fds more robust
35912         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35913         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35914
35915         backupfile, chdir-long, fts, savedir: make safer
35916         * lib/backupfile.c (includes): Use "dirent--.h", since
35917         numbered_backup can write to stderr during readdir.
35918         * lib/savedir.c (includes): Likewise.
35919         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35920         emulation can write to stderr on failure.
35921         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35922         * lib/getcwd.c: Document why opendir_safer is unused.
35923         * lib/glob.c: Likewise.
35924         * lib/scandir.c: Likewise.
35925         * lib/openat-proc.c: Likewise, for open_safer.
35926         * modules/backupfile (Depends-on): Add dirent-safer.
35927         * modules/savedir (Depends-on): Likewise.
35928         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35929         * modules/chdir-long (Depends-on): Add openat-safer.
35930
35931         openat-safer: new module
35932         * modules/openat-safer: New file.
35933         * lib/openat-safer.c: Likewise.
35934         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35935         * lib/fcntl-safer.h (openat_safer): Declare.
35936         * lib/fcntl--.h (openat): Override.
35937         * MODULES.html.sh (File descriptor based I/O): Mention it.
35938         * lib/openat.h: Add double-inclusion guards.
35939         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35940         "fcntl--.h", so we can implement openat.
35941         * modules/openat-safer-tests: New test.
35942         * tests/test-openat-safer.c: New file.
35943
35944         dirent-safer: new module
35945         * modules/dirent-safer: New file.
35946         * lib/dirent--.h: Likewise.
35947         * lib/dirent-safer.h: Likewise.
35948         * lib/opendir-safer.c: Likewise.
35949         * m4/dirent-safer.m4: Likewise.
35950         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35951         * modules/dirent-safer-tests: New test.
35952         * tests/test-dirent-safer.c: New file.
35953         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35954
35955         fdopendir: optimize on mingw
35956         * lib/unistd.in.h (_gl_directory_name): New prototype.
35957         * lib/fchdir.c (_gl_directory_name): Implement it.
35958         (fchdir): Use it to simplify implementation.
35959         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35960         fchdir, when available, to avoid calling [f]chdir().
35961
35962         fdopendir: split into its own module
35963         * lib/openat.c (fdopendir): Move...
35964         * lib/fdopendir.c: ...into new file.
35965         * modules/fdopendir: New module.
35966         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35967         * modules/openat (Depends-on): Add fdopendir.
35968         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35969         fdopendir here.
35970         * modules/savedir (Depends-on): Only need fdopendir, not full
35971         openat.
35972         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35973         * lib/openat.h (fdopendir): Drop prototype.
35974         * lib/dirent.in.h (fdopendir): Provide prototype.
35975         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35976         * modules/dirent (Makefile.am): Substitute them.
35977         * MODULES.html.sh (File system functions): Mention it.
35978         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35979         * modules/fdopendir-tests: New file.
35980         * tests/test-fdopendir.c: Likewise.
35981
35982         fchdir: use more consistent macro convention
35983         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35984         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35985         REPLACE_FCHDIR, rather than relying on config.h macros.
35986         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35987         inside a single make-time REPLACE_FCHDIR block, rather than using
35988         the config.h FCHDIR_REPLACEMENT.
35989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35990         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35991         Manage fstat replacement.
35992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35993         REPLACE_FCHDIR.
35994         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35995         (Makefile.am): Substitute REPLACE_FCHDIR.
35996         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35997         FCHDIR_REPLACEMENT.
35998         * lib/dup-safer.c (dup_safer): Likewise.
35999         * lib/dup2.c (rpl_dup2): Likewise.
36000         * lib/dup3.c (rpl_dup3): Likewise.
36001         * lib/open.c (rpl_open): Likewise.
36002
36003         fchdir: simplify error handling, and support dup3
36004         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36005         stdbool, malloc-posix, realloc-posix.
36006         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36007         (ensure_dirs_slot): Return false on allocation failure.
36008         (rpl_dup2): Delete.
36009         (_gl_register_dup): New function.
36010         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36011         (_gl_register_fd): Close fd on allocation failure.
36012         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36013         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36014         prototype.
36015         (rpl_dup2_fchdir): Delete prototype.
36016         * lib/open.c (open): Update caller.
36017         * lib/dup2.c (dup2): Track fchdir metadata.
36018         * lib/dup3.c (dup3): Likewise.
36019         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36021
36022 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36023
36024         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36025         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36026         don't pass arguments to AC_OUTPUT.
36027
36028 2009-09-02  Bruno Haible  <bruno@clisp.org>
36029
36030         * modules/mkdtemp (License): Relicense under LGPLv2+.
36031         Reported by Paolo Bonzini.
36032
36033 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36034
36035         Replace uses of obsolete autoconf macros in Jim's modules.
36036         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36037         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36038         can evoke a warning from autoconf when run with -Wobsolete
36039         enabled.  They were declared obsolete for good reasons (see
36040         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36041         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36042         should not continue using the deprecated macros.
36043         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36044         obsolete Autoconf macros with modern counterparts.
36045         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36046         * m4/dos.m4 (gl_AC_DOS): Likewise.
36047         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36048         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36049         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36050         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36051         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36053         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36054         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36055         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36056         Likewise.
36057         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36058         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36059         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36060         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36061         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36062         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36063
36064 2009-09-01  Eric Blake  <ebb9@byu.net>
36065
36066         fchdir: fix off-by-one bug in previous patch
36067         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36068         (_gl_unregister_fd): Delete useless if.
36069
36070 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36071
36072         maint.mk: sort the list of syntax-check rules
36073         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36074         easier to get a sense of progress when the rules are run sequentially
36075         and take a long time.
36076
36077 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36078
36079         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36080         * modules/netinet_in: Likewise.
36081         * modules/sys_file: Likewise.
36082         * modules/sys_ioctl: Likewise.
36083         * modules/sys_select: Likewise.
36084         * modules/sys_socket: Likewise.
36085         * modules/sys_stat: Likewise.
36086         * modules/sys_time: Likewise.
36087         * modules/sys_times: Likewise.
36088         * modules/sys_utsname: Likewise.
36089         * modules/sys_wait: Likewise.
36090
36091 2009-09-01  Jim Meyering  <meyering@redhat.com>
36092
36093         fts: help ensure that return values are not ignored
36094         * lib/fts_.h (__GNUC_PREREQ): Define.
36095         (__attribute_warn_unused_result__): Define.
36096         (fts_children, fts_close, fts_open, fts_read): Declare with
36097         __attribute_warn_unused_result__.
36098
36099         fts: fts_close now fails also when closing a dir file descriptor fails
36100         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36101         and propagate to caller, along with errno.
36102
36103         announce-gen: correct formatting in --help output
36104         * build-aux/announce-gen (usage): Move the one-line description in
36105         --help output "up", to where it belongs, just after Usage:.
36106
36107 2009-08-31  Eric Blake  <ebb9@byu.net>
36108
36109         fchdir: port to mingw
36110         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36111         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36112         opened, then use a substitute.
36113         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36114         replacement.
36115         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36116         (_gl_register_fd): No need to check stat if open already filters
36117         all directories.
36118         (fchdir): Fix error condition to match POSIX.
36119         * modules/fchdir (Depends-on): Add sys_stat.
36120         * doc/posix-functions/open.texi (open): Document the limitation.
36121         * modules/fchdir-tests: New file.
36122         * tests/test-fchdir.c: Likewise.
36123
36124         canonicalize: allow cross-testing from cygwin to mingw
36125         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36126         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36127         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36128         Likewise.
36129         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36130         target does not support symlinks.
36131         * tests/test-canonicalize-lgpl.sh: Likewise.
36132
36133         chown: avoid compilation warning on mingw
36134         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36135         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36136         mingw.
36137         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36138         * modules/chown (Depends-on): Add errno.
36139
36140 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36141
36142         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36143         command.
36144
36145 2009-08-31  Jim Meyering  <meyering@redhat.com>
36146
36147         canonicalize: remove useless initialization
36148         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36149         initialization of local, "end".
36150
36151 2009-08-30  Bruno Haible  <bruno@clisp.org>
36152
36153         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36154         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36155         ENOSYS.
36156
36157 2009-08-30  Bruno Haible  <bruno@clisp.org>
36158
36159         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36160         /usr/xpg4/bin/tr when it exists.
36161         * tests/test-pipe-filter-gi1.sh: Likewise.
36162
36163 2009-08-30  Bruno Haible  <bruno@clisp.org>
36164
36165         Work around deficient /usr/bin/id program on Solaris.
36166         * tests/test-file-has-acl.sh (ID): New variable.
36167         * tests/test-set-mode-acl.sh (ID): Likewise.
36168         * tests/test-copy-acl.sh (ID): Likewise.
36169         * tests/test-copy-file.sh (ID): Likewise.
36170
36171 2009-08-30  Bruno Haible  <bruno@clisp.org>
36172
36173         New module 'xstriconveh'.
36174         * lib/xstriconveh.h: New file.
36175         * lib/xstriconveh.c: New file.
36176         * modules/xstriconveh: New file.
36177
36178 2009-08-30  Bruno Haible  <bruno@clisp.org>
36179
36180         Make it easier to use mem_cd_iconveh.
36181         * lib/striconveh.h (iconveh_t): New type.
36182         (iconveh_open, iconveh_close): New declarations.
36183         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36184         with a single 'const iconveh_t *' argument.
36185         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36186         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36187         with a single 'const iconveh_t *' argument.
36188         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36189         * tests/test-striconveh.c (main): Update.
36190         * NEWS: Mention the change.
36191
36192 2009-08-30  Bruno Haible  <bruno@clisp.org>
36193
36194         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36195         problem.
36196
36197 2009-08-30  Bruno Haible  <bruno@clisp.org>
36198
36199         Work around iconv_open problem on Solaris.
36200         * lib/iconv_open-solaris.gperf: New file.
36201         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36202         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36203         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36204         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36205         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36206         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36207
36208 2009-08-29  Jim Meyering  <meyering@redhat.com>
36209
36210         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36211         * top/maint.mk (cvs-check): Remove target; it was just an alias
36212         to the better-named vc-diff-check.
36213         (maintainer-distcheck): Remove rule.  It was used only from
36214         the (alpha/beta/major) target, and all of its commands but one
36215         were coreutils-specific.
36216         (vc-dist): Remove rule.
36217         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36218         Run vc-diff-check, not vc-dist.
36219         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36220
36221 2009-08-27  Bruno Haible  <bruno@clisp.org>
36222
36223         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36224         of 0.
36225
36226 2009-08-27  Bruno Haible  <bruno@clisp.org>
36227
36228         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36229         compilers.
36230         * doc/func.texi: Document the SunPRO C bug.
36231
36232 2009-08-27  Bruno Haible  <bruno@clisp.org>
36233
36234         Fix link error on Solaris.
36235         * tests/test-parse-duration.c (xstrdup): Remove function.
36236
36237 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36238
36239         ignore-value: handle pointer types, too
36240         * lib/ignore-value.h (__attribute__): Remove definition.
36241         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36242         of a more concise and more-often effective "(void) i" statement.
36243         (ignore_ptr): New function to suppress warnings from functions that
36244         return pointers, and to make it explicit that one function doesn't
36245         handle all cases.
36246
36247 2009-08-25  Bruno Haible  <bruno@clisp.org>
36248
36249         dup2: work around a Linux bug.
36250         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36251         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36252         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36253         Reported by Simon Josefsson.
36254
36255 2009-08-25  Jim Meyering  <meyering@redhat.com>
36256
36257         libguestfs uses gnulib
36258         * users.txt: Add libguestfs.
36259
36260 2009-08-24  Eric Blake  <ebb9@byu.net>
36261
36262         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36263         * lib/pipe2.c (includes): Add binary-io.h.
36264         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36265
36266 2009-08-24  Bruno Haible  <bruno@clisp.org>
36267
36268         Tolerate declared but missing accept4 syscall.
36269         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36270         available.
36271         * lib/sys_socket.in.h (accept4): If the function is already present,
36272         override it.
36273         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36274         * modules/accept4 (Makefile.am): Compile accept4.c always.
36275         Reported by Paolo Bonzini and Eric Blake.
36276
36277 2009-08-23  Bruno Haible  <bruno@clisp.org>
36278
36279         New module 'accept4'.
36280         * lib/sys_socket.in.h (accept4): New declaration.
36281         * lib/accept4.c: New file.
36282         * m4/accept4.m4: New file.
36283         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36284         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36285         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36286         HAVE_ACCEPT4.
36287         * modules/accept4: New file.
36288         * doc/glibc-functions/accept4.texi: Mention the new module.
36289
36290 2009-08-24  Jim Meyering  <meyering@redhat.com>
36291
36292         progname: also set global program_invocation_name, when possible
36293         Before this change, a libtool-enabled program that calls glibc's
36294         error function would report the program name as
36295         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36296         * modules/progname (configure.ac): Check for a declaration of
36297         program_invocation_name.
36298         * lib/progname.c:  Include <errno.h>.
36299         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36300         Set program_invocation_name.
36301
36302 2009-08-23  Bruno Haible  <bruno@clisp.org>
36303
36304         * lib/dup3.c: Include <string.h>.
36305
36306 2009-08-23  Bruno Haible  <bruno@clisp.org>
36307
36308         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36309         * lib/pipe2.c (pipe2): Likewise.
36310         Suggested by Eric Blake.
36311
36312 2009-08-23  Bruno Haible  <bruno@clisp.org>
36313
36314         Tolerate declared but missing dup3 syscall.
36315         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36316         * lib/unistd.in.h (dup3): If the function is already present,
36317         override it.
36318         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36319         * modules/dup3 (Makefile.am): Compile dup3.c always.
36320         Reported by Paolo Bonzini.
36321
36322 2009-08-23  Bruno Haible  <bruno@clisp.org>
36323
36324         Tolerate declared but missing pipe2 syscall.
36325         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36326         available.
36327         * lib/unistd.in.h (pipe2): If the function is already present,
36328         override it.
36329         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36330         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36331         Reported by Paolo Bonzini.
36332
36333 2009-08-23  Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/pipe2.c (pipe2): Move #ifs inside function.
36336
36337 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36338
36339         quotearg: document limitations of quote_these_too
36340         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36341         those limitations are created.
36342         * lib/quotearg.h (set_char_quoting): Document that digits and
36343         letters that are special after backslash are not permitted.
36344         (quotearg_char): Cross-reference set_char_quoting documentation.
36345
36346 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36347
36348         quotearg: implement custom_quoting_style
36349         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36350         right_quote fields.
36351         (set_custom_quoting): New public function.
36352         (quotearg_buffer_restyled): Add left_quote and right_quote
36353         arguments, handle them very much like locale quoting, and update
36354         all uses.
36355         (quotearg_n_custom): New public function.
36356         (quotearg_n_custom_mem): New public function.
36357         (quotearg_custom): New public function.
36358         (quotearg_custom_mem): New public function.
36359         * lib/quotearg.h: Prototype and document new public functions.
36360         (enum quoting_style): For escape_quoting_style and
36361         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36362         ignored even though they're otherwise like c_quoting_style.
36363         Add custom_quoting_style member and document with comparison to
36364         clocale_quoting_style.
36365         * tests/test-quotearg.c (custom_quotes): New array.
36366         (custom_results): New array.
36367         (main): Extend to test custom quoting.
36368
36369 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36370
36371         quotearg: fix right quote escaping when it's in quote_these_too
36372         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36373         quote, be sure to prepend only one backslash.
36374         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36375         (main): Test it.
36376
36377 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36378
36379         quotearg-tests: test escaping of embedded locale quotes
36380         * tests/test-quotearg.c (struct result_strings): Add member for
36381         new input.
36382         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36383         (inputs): Add new input.
36384         (results_g): Add expected results.
36385         (flag_results): Likewise.
36386         (locale_results): Likewise.
36387         (compare_strings): Check those.
36388
36389 2009-08-23  Bruno Haible  <bruno@clisp.org>
36390
36391         Tests for module 'dup3'.
36392         * modules/dup3-tests: New file.
36393         * tests/test-dup3.c: New file.
36394
36395         New module 'dup3'.
36396         * lib/unistd.in.h (dup3): New declaration.
36397         * lib/dup3.c: New file.
36398         * m4/dup3.m4: New file.
36399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36400         HAVE_DUP3.
36401         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36402         * modules/dup3: New file.
36403         * doc/glibc-functions/dup3.texi: Mention the new module.
36404
36405 2009-08-23  Bruno Haible  <bruno@clisp.org>
36406
36407         Tweak the dup2 test.
36408         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36409         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36410         the test file is still empty. Fix argument order of lseek.
36411
36412 2009-08-23  Bruno Haible  <bruno@clisp.org>
36413
36414         Avoid test link errors when the modules getopt-gnu, gettext are used.
36415         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36417
36418 2009-08-23  Bruno Haible  <bruno@clisp.org>
36419
36420         Fix getdtablesize() on mingw.
36421         * lib/getdtablesize.c (getdtablesize): Implement differently.
36422         * lib/unistd.in.h (getdtablesize): Improve comment.
36423
36424 2009-08-23  Bruno Haible  <bruno@clisp.org>
36425
36426         New module 'mkostemp'.
36427         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36428         * lib/stdlib.in.h (mksotemp): New declaration.
36429         * lib/mkostemp.c: New file, from glibc with modifications.
36430         * lib/tempname.h (GT_FILE): Remove outdated comment.
36431         (gen_tempname): Add flags argument.
36432         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36433         (__GT_FILE): Map to 1.
36434         (small_open, large_open): Remove macros.
36435         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36436         * lib/mkstemp.c (mkstemp): Update.
36437         * lib/mkdtemp.c (mkdtemp): Likewise.
36438         * m4/mkostemp.m4: New file.
36439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36440         HAVE_MKOSTEMP.
36441         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36442         HAVE_MKOSTEMP.
36443         * modules/mkostemp: New file, based on modules/mkstemp.
36444         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36445         * NEWS: Mention the change.
36446
36447 2009-08-23  Bruno Haible  <bruno@clisp.org>
36448
36449         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36450         Reported by Eric Blake.
36451
36452 2009-08-23  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36455         Reported by Eric Blake.
36456
36457 2009-08-23  Bruno Haible  <bruno@clisp.org>
36458
36459         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36460         * modules/pipe2 (Depends-on): Likewise.
36461
36462 2009-08-23  Eric Blake  <ebb9@byu.net>
36463
36464         fcntl-h: add O_TTY_INIT support
36465         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36466         * tests/test-fcntl-h.c (o): Test it.
36467         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36468
36469         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36470         * modules/fcntl: Move <fcntl.h> header replacement...
36471         * modules/fcntl-h: ...to new name, so as not to collide with
36472         like-named function.
36473         * tests/test-fcntl.c: Rename...
36474         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36475         * modules/fcntl-tests: Rename...
36476         * modules/fcntl-h-tests: ...to this.  Update test file name.
36477         * modules/chdir-long (Depends-on): Update clients.
36478         * modules/chdir-safer (Depends-on): Likewise.
36479         * modules/fcntl-safer (Depends-on): Likewise.
36480         * modules/fts (Depends-on): Likewise.
36481         * modules/mkancesdirs (Depends-on): Likewise.
36482         * modules/mkdir-p (Depends-on): Likewise.
36483         * modules/open (Depends-on): Likewise.
36484         * modules/savewd (Depends-on): Likewise.
36485         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36486         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36487
36488 2009-08-22  Bruno Haible  <bruno@clisp.org>
36489
36490         * modules/binary-io (License): Relicense under LGPL.
36491         * modules/pipe2 (License): Likewise.
36492
36493 2009-08-22  Bruno Haible  <bruno@clisp.org>
36494
36495         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36496         return value.
36497         * lib/pipe-filter-gi.c (filter_init): Likewise.
36498         Reported by Eric Blake.
36499
36500 2009-08-22  Bruno Haible  <bruno@clisp.org>
36501
36502         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36503         * modules/pipe (Depends-on): Add pipe2.
36504
36505 2009-08-22  Bruno Haible  <bruno@clisp.org>
36506
36507         Tests for module 'pipe2'.
36508         * modules/pipe2-tests: New file.
36509         * tests/test-pipe2.c: New file.
36510
36511         New module 'pipe2'.
36512         * lib/unistd.in.h (pipe2): New declaration.
36513         * lib/pipe2.c: New file.
36514         * m4/pipe2.m4: New file.
36515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36516         HAVE_PIPE2.
36517         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36518         * modules/pipe2: New file.
36519         * doc/glibc-functions/pipe2.texi: Mention the new module.
36520
36521 2009-08-22  Bruno Haible  <bruno@clisp.org>
36522
36523         Reference some new glibc functions.
36524         * doc/glibc-functions/accept4.texi: New file.
36525         * doc/glibc-functions/dup3.texi: New file.
36526         * doc/glibc-functions/mkostemp.texi: New file.
36527         * doc/glibc-functions/pipe2.texi: New file.
36528         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36529         (Glibc sys/socket.h): Refer to accept4.
36530         (Glibc unistd.h): Refer to dup3, pipe2.
36531         Reported by Eric Blake.
36532
36533 2009-08-22  Jim Meyering  <meyering@redhat.com>
36534             Bruno Haible  <bruno@clisp.org>
36535
36536         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36537         This makes it so packages using automake-1.11's silent-rules option
36538         can print e.g., a single "GEN    configmake.h" line, rather than
36539         the 30+ statements that perform the job.  If you want to see the
36540         actual commands, you can still run "make V=1".
36541         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36542         so that make output is abbreviated when those variables are defined
36543         appropriately.
36544         * modules/argz: Likewise.
36545         * modules/arpa_inet: Likewise.
36546         * modules/byteswap: Likewise.
36547         * modules/configmake: Likewise.
36548         * modules/dirent: Likewise.
36549         * modules/errno: Likewise.
36550         * modules/fcntl: Likewise.
36551         * modules/float: Likewise.
36552         * modules/fnmatch: Likewise.
36553         * modules/getopt-posix: Likewise.
36554         * modules/glob: Likewise.
36555         * modules/iconv_open: Likewise.
36556         * modules/inttypes: Likewise.
36557         * modules/localcharset: Likewise.
36558         * modules/locale: Likewise.
36559         * modules/math: Likewise.
36560         * modules/netdb: Likewise.
36561         * modules/netinet_in: Likewise.
36562         * modules/poll: Likewise.
36563         * modules/posix_spawnp-tests: Likewise.
36564         * modules/sched: Likewise.
36565         * modules/search: Likewise.
36566         * modules/selinux-h: Likewise.
36567         * modules/signal: Likewise.
36568         * modules/spawn: Likewise.
36569         * modules/stdarg: Likewise.
36570         * modules/stdbool: Likewise.
36571         * modules/stddef: Likewise.
36572         * modules/stdint: Likewise.
36573         * modules/stdio: Likewise.
36574         * modules/stdlib: Likewise.
36575         * modules/string: Likewise.
36576         * modules/strings: Likewise.
36577         * modules/sys_file: Likewise.
36578         * modules/sys_ioctl: Likewise.
36579         * modules/sys_select: Likewise.
36580         * modules/sys_socket: Likewise.
36581         * modules/sys_stat: Likewise.
36582         * modules/sys_time: Likewise.
36583         * modules/sys_times: Likewise.
36584         * modules/sys_utsname: Likewise.
36585         * modules/sys_wait: Likewise.
36586         * modules/sysexits: Likewise.
36587         * modules/time: Likewise.
36588         * modules/unistd: Likewise.
36589         * modules/wchar: Likewise.
36590         * modules/wctype: Likewise.
36591
36592 2009-08-22  Jim Meyering  <meyering@redhat.com>
36593
36594         announce-gen: detect write failure
36595         * build-aux/announce-gen: Add Coda at end.
36596         Remove equivalent-but-more-verbose block at top.
36597
36598 2009-08-19  Akim Demaille  <demaille@gostai.com>
36599
36600         bootstrap: --help to stdout.
36601         * bootstrap (usage): Don't send --help to stderr.
36602         Use a here doc instead of a long string.
36603
36604 2009-08-21  Eric Blake  <ebb9@byu.net>
36605
36606         test-popen-safer: split from test-popen
36607         * tests/test-popen.c (main): Move...
36608         * tests/test-popen.h: ...into new file.
36609         * tests/test-popen-safer2.c: New file.
36610         * modules/popen-tests (Files): Add test-popen.h.
36611         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36612         Suggested by Bruno Haible.
36613
36614         test-fcntl-safer: split from test-open
36615         * tests/test-open.c (main): Move...
36616         * tests/test-open.h: ...into new file.
36617         * tests/test-fcntl-safer.c: New file.
36618         * modules/open-tests (Files): Add test-open.h.
36619         * modules/fcntl-safer-tests: New file.
36620         Suggested by Bruno Haible.
36621
36622         test-fopen-safer: split from test-fopen
36623         * tests/test-fopen.c (main): Move...
36624         * tests/test-fopen.h: ...into new file.
36625         * tests/test-fopen-safer.c: New file.
36626         * modules/fopen-tests (Files): Add test-fopen.h.
36627         * modules/fopen-safer-tests: New file.
36628         Suggested by Bruno Haible.
36629
36630 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36631
36632         popen-safer: test O_CLOEXEC at run-time.
36633         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36634
36635 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36636
36637         fcntl: move more flags to the header
36638         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36639         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36640         * lib/fcntl.in.h: Do both things here.
36641
36642 2009-08-21  Jim Meyering  <meyering@redhat.com>
36643
36644         consistently remove $@-t before redirecting to it
36645         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36646         * modules/alloca-opt: Likewise.
36647         * modules/byteswap: Likewise.
36648         * modules/fnmatch: Likewise.
36649         * modules/getopt-posix: Likewise.
36650         * modules/glob: Likewise.
36651         * modules/poll: Likewise.
36652         * modules/posix_spawnp-tests: Likewise.
36653         * modules/sys_socket: Likewise.
36654         * modules/sysexits: Likewise.
36655
36656 2009-08-21  Eric Blake  <ebb9@byu.net>
36657
36658         popen: simplify access to original popen
36659         * lib/popen.c (rpl_popen): No need to worry about popen being a
36660         macro.
36661         Reported by Bruno Haible.
36662
36663 2009-08-20  Eric Blake  <ebb9@byu.net>
36664
36665         build: avoid some compiler warnings
36666         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36667         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36668         type.
36669         (new_exclude_segment, excluded_file_pattern_p)
36670         (excluded_file_name_p): Reduce scope.
36671         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36672         old-style declaration.
36673
36674 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36675
36676         * tests/test-exclude1.sh: Handle Windows EOL.
36677         * tests/test-exclude2.sh: Likewise.
36678         * tests/test-exclude3.sh: Likewise.
36679         * tests/test-exclude4.sh: Likewise.
36680         * tests/test-exclude5.sh: Likewise.
36681         * tests/test-exclude6.sh: Likewise.
36682         * tests/test-exclude7.sh: Likewise.
36683
36684 2009-08-19  Akim Demaille  <demaille@gostai.com>
36685
36686         bootstrap: find sha1sum when named gsha1sum.
36687         * bootstrap (find_tool): New.
36688         ($SHA1SUM): New.
36689         Use it.
36690
36691 2009-08-20  Jim Meyering  <meyering@redhat.com>
36692
36693         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36694         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36695         expression that converts "." in a file name to "\." in the resulting
36696         regexp.  Start with a dummy statement, so that prior shell variable
36697         definitions are expanded portably.  Reported by Simon Josefsson.
36698
36699 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36700
36701         Fix polling for writeability of a screen buffer.
36702         * lib/poll.c: Distinguish input and screen buffers for the
36703         Win32 implementation.
36704         * lib/select.c: Likewise.
36705
36706 2009-08-19  Eric Blake  <ebb9@byu.net>
36707
36708         popen-safer: prevent popen from clobbering std descriptors
36709         * modules/popen-safer: New file.
36710         * lib/popen-safer.c: Likewise.
36711         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36712         * lib/stdio--.h (popen): Provide override.
36713         * lib/stdio-safer.h (popen_safer): Provide declaration.
36714         * tests/test-popen.c (includes): Partially test this.
36715         * modules/popen-safer-tests: New file, for more tests.
36716         * tests/test-popen-safer.c: Likewise.
36717         * MODULES.html.sh (file stream based Input/Output): Mention it.
36718
36719         tests: test some of the *-safer modules
36720         * modules/fopen-safer (Depends-on): Add fopen.
36721         * modules/fcntl-safer (Depends-on): Add fcntl.
36722         * modules/stdlib-safer (Depends-on): Add stdlib.
36723         (configure.ac): Set indicator.
36724         * modules/unistd-safer (configure.ac): Likewise.
36725         * modules/tmpfile-safer (configure.ac): Likewise.
36726         (Depends-on): Add tmpfile.
36727         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36728         active.
36729         * tests/test-fopen.c (includes): Test safer versions when they are
36730         in use.
36731         * tests/test-open.c (includes): Likewise.
36732
36733         popen: fix cygwin 1.5 bug when stdin closed
36734         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36735         * modules/popen: New file.
36736         * modules/popen-tests: Likewise.
36737         * tests/test-popen.c: Likewise.
36738         * m4/popen.m4: Likewise.
36739         * lib/popen.c: Likewise.
36740         * lib/stdio.in.h (popen): New declaration.
36741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36742         * modules/stdio (Makefile.am): Likewise.
36743         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36744
36745 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36746
36747         maint.mk: give full control over update-copyright exclusions
36748         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36749         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36750         (update-copyright): Don't force inclusion of top-level
36751         ChangeLog.  Don't force exclusion of all COPYING files, but make
36752         them the default exclusion instead.
36753
36754 2009-08-16  Bruno Haible  <bruno@clisp.org>
36755
36756         Fix test failures on Solaris 10.
36757         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36758         tests when Solaris iconv() is used.
36759         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36760         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36761         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36762         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36763         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36764
36765 2009-08-16  Bruno Haible  <bruno@clisp.org>
36766
36767         Fix test failures on Solaris 10.
36768         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36769         'tr' program and pass it as first argument.
36770         * tests/test-pipe-filter-gi1.sh: Likewise.
36771         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36772         program as first argument.
36773         * tests/test-pipe-filter-gi1.c (main): Likewise.
36774
36775 2009-08-16  Eric Blake  <ebb9@byu.net>
36776
36777         fpurge: fix previous commits
36778         * modules/fpurge (Makefile.am): Make replacement conditional,
36779         partially reverting 2007-04-29 change; missed in previous
36780         attempt.
36781         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36782         is missing.
36783
36784 2009-08-16  Bruno Haible  <bruno@clisp.org>
36785
36786         Clarify fpurge's effect on the file position.
36787         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36788         * tests/test-fpurge.c (main): Make a second pass for checking the file
36789         position.
36790
36791 2009-08-16  Bruno Haible  <bruno@clisp.org>
36792
36793         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36794         declaration of fpurge is missing.
36795         * tests/test-fpurge.c (main): Check that the file has not more contents
36796         than expected. Close the file before removing it.
36797
36798 2009-08-15  Eric Blake  <ebb9@byu.net>
36799
36800         fpurge: don't wrap working cygwin implementation
36801         * lib/fpurge.c (fpurge): Fix comment typo.
36802         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36803         1.7 to avoid replacement.
36804         * tests/test-fpurge.c (main): Enhance test.
36805
36806 2009-08-15  Eric Blake  <ebb9@byu.net>
36807         and Jim Meyering  <meyering@redhat.com>
36808
36809         test-update-copyright: skip if perl is insufficient
36810         * tests/test-update-copyright.sh: Failure to run maintainer tool
36811         should not cause testsuite failure on cygwin 1.5.
36812
36813 2009-08-14  Eric Blake  <ebb9@byu.net>
36814
36815         doc: mention more functions added in cygwin 1.7.0
36816         * doc/posix-headers/limits.texi (limits.h): Update for recent
36817         cygwin additions.
36818         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36819         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36820         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36821         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36822         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36823
36824 2009-08-14  Eric Blake  <ebb9@byu.net>
36825
36826         maint.mk: simplify update-copyright rule
36827         * top/maint.mk (update-copyright-local): Delete, and document how
36828         to do it in cfg.mk instead.
36829         (update-copyright-exclude-regexp): Delete, and document how to do
36830         it in .x-update-copyright instead.
36831         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36832         exclude ChangeLog.
36833
36834 2009-08-14  Bruno Haible  <bruno@clisp.org>
36835
36836         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36837
36838 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36839
36840         maint.mk: support update-copyright-env
36841         * top/maint.mk (update-copyright-env): Define place-holder.
36842         (update-copyright): Expand $(update-copyright-env) before
36843         invoking update-copyright.
36844
36845 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36846
36847         update-copyright: implement forced reformatting
36848         * build-aux/update-copyright: Implement and document
36849         UPDATE_COPYRIGHT_FORCE.
36850         * tests/test-update-copyright.sh: Test it.
36851
36852 2009-08-14  Eric Blake  <ebb9@byu.net>
36853         and Bruno Haible  <bruno@clisp.org>
36854
36855         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36856         * tests/test-locale.c: Revert previous patch related to NULL.
36857         * tests/test-stdio.c: Likewise.
36858         * tests/test-stdlib.c: Likewise.
36859         * tests/test-string.c: Likewise.
36860         * tests/test-unistd.c: Likewise.
36861         * modules/time-tests (Depends-on): Add verify.
36862         * modules/wchar-tests (Depends-on): Likewise.
36863         * tests/test-time.c: Test for NULL compliance.
36864         * tests/test-wchar.c: Likewise.
36865         * modules/locale (Depends-on): Add stddef.
36866         * modules/stdio (Depends-on): Likewise.
36867         * modules/stdlib (Depends-on): Likewise.
36868         * modules/string (Depends-on): Likewise.
36869         * modules/time (Depends-on): Likewise.
36870         * modules/unistd (Depends-on): Likewise.
36871         * modules/wchar (Depends-on): Likewise.
36872         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36873         * lib/stdlib.in.h (includes): Likewise.
36874         * lib/string.in.h (includes): Likewise.
36875         * lib/time.in.h (includes): Likewise.
36876         * lib/unistd.in.h (includes): Likewise.
36877         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36878         replaced.
36879         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36880         * m4/stddef_h.m4: New file.
36881         * modules/stddef: Likewise.
36882         * lib/stddef.in.h: Likewise.
36883         * modules/stddef-tests: Likewise.
36884         * tests/test-stddef.c: Likewise.
36885         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36886         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36887         * doc/posix-headers/locale.texi (locale.h): Likewise.
36888         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36889         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36890         * doc/posix-headers/string.texi (string.h): Likewise.
36891         * doc/posix-headers/time.texi (time.h): Likewise.
36892         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36893         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36894
36895 2009-08-14  Eric Blake  <ebb9@byu.net>
36896
36897         doc: improve git diff of texinfo files
36898         * .gitattributes: Add rule for *.texi files, with hint on how to
36899         use it.
36900         Copied from m4, and based on a report by Bruno Haible.
36901
36902 2009-08-14  Bruno Haible  <bruno@clisp.org>
36903
36904         Disable multithread support by default on Cygwin 1.5.x for real.
36905         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36906
36907 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36908
36909         update-copyright: much ado about intervals
36910         * build-aux/update-copyright: Implement and document
36911         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36912         of copyright year intervals.
36913         Also, document UPDATE_COPYRIGHT_YEAR.
36914         * tests/test-update-copyright.sh: Test it.
36915
36916         update-copyright: convert 2-digit to 4-digit years
36917         * build-aux/update-copyright: Implement and document.
36918         * tests/test-update-copyright.sh: Update.
36919
36920 2009-08-14  Jim Meyering  <meyering@redhat.com>
36921
36922         test-exclude: avoid coreutils "make check" failure
36923         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36924         just as in test-argmatch.c.
36925
36926 2009-08-13  Eric Blake  <ebb9@byu.net>
36927
36928         test-dup2: fix bad assumption
36929         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36930         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36931
36932         test-version-etc: fix CRLF portability issue
36933         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36934         recognize \r.
36935         * tests/test-argp-version-etc-1.sh: Likewise.
36936
36937         getopt: update client modules
36938         * modules/argp (Depends-on): Use getopt-gnu.
36939         * modules/git-merge-changelog (Depends-on): Likewise.
36940         * modules/long-options (Depends-on): Likewise.
36941         * modules/xstrtol (Depends-on): Likewise.
36942
36943 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36944
36945         * tests/test-version-etc.sh: Don't fail on different
36946         project/version.  Don't fail on CRLF differences.  Rewrite to use
36947         multiple -e instead of multiple sed forks, suggested by Eric Blake
36948         <ebb9@byu.net>.
36949         * tests/test-argp-version-etc-1.sh: Likewise.
36950
36951 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36952
36953         * tests/test-version-etc.sh: Don't fail on different
36954         project/version.
36955
36956 2009-08-12  Bruno Haible  <bruno@clisp.org>
36957
36958         Tests for modules 'getopt-posix', 'getopt-gnu'.
36959         * modules/getopt-posix-tests: New file.
36960         * tests/test-getopt.c: New file.
36961         * tests/test-getopt.h: New file.
36962         * tests/test-getopt_long.h: New file.
36963
36964         New modules 'getopt-posix', 'getopt-gnu'.
36965         * modules/getopt-gnu: New file, renamed from modules/getopt.
36966         * modules/getopt-posix: New file.
36967         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36968         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36969         (gl_GETOPT): Remove macro.
36970         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36971         Disable the test against BSD systems that declare optreset. Test
36972         against mingw bug. Test against lack of support of optional arguments
36973         on many platforms.
36974         * doc/glibc-headers/getopt.texi: Update module name and list of
36975         relevant platforms.
36976         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36977         'getopt-gnu' and more portability problems.
36978         * NEWS: Mention the changes.
36979
36980 2009-08-12  Bruno Haible  <bruno@clisp.org>
36981
36982         Ensure that optarg etc. get declared by <unistd.h>.
36983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36984         AC_USE_SYSTEM_EXTENSIONS.
36985         * modules/getopt (Depends-on): Add 'extensions'.
36986
36987 2009-08-12  Bruno Haible  <bruno@clisp.org>
36988
36989         Avoid test link errors.
36990         * modules/pipe-filter-ii-tests (Makefile.am): Define
36991         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36992         * modules/pipe-filter-gi-tests (Makefile.am): Define
36993         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36995
36996 2009-08-12  Bruno Haible  <bruno@clisp.org>
36997
36998         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36999         gl_GETOPT_SUBSTITUTE before.
37000         (gl_GETOPT): Use it.
37001         * m4/argp.m4 (gl_ARGP): Update.
37002         Reported by Sergey Poznyakoff.
37003
37004         * m4/getopt.m4: Reorder macros.
37005         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37006         (gl_GETOPT_SUBSTITUTE): Remove macro.
37007
37008 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37009
37010         Minor improvement in gitlog-to-changelog
37011
37012         * build-aux/gitlog-to-changelog: New option `--format' makes
37013         output format string configurable.
37014
37015 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37016
37017         Optimize exclude: use hash tables for non-wildcard patterns.
37018
37019         * lib/exclude.c: Include hash.h and mbuiter.h
37020         (struct exclude_pattern, exclude_segment): New data types.
37021         (struct exclude): Rewrite.
37022         (fnmatch_pattern_has_wildcards): New function.
37023         (new_exclude_segment, free_exclude_segment): New functions.
37024         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37025         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37026         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37027         * modules/exclude: Depend on hash and mbuiter.
37028
37029         * modules/exclude-tests: New file.
37030         * tests/test-exclude.c: New file.
37031         * tests/test-exclude1.sh: New file.
37032         * tests/test-exclude2.sh: New file.
37033         * tests/test-exclude3.sh: New file.
37034         * tests/test-exclude4.sh: New file.
37035         * tests/test-exclude5.sh: New file.
37036         * tests/test-exclude6.sh: New file.
37037         * tests/test-exclude7.sh: New file.
37038
37039 2009-08-12  Bruno Haible  <bruno@clisp.org>
37040
37041         Ensure that getopt() gets declared by <unistd.h>.
37042         * lib/unistd.in.h: Conditionally include getopt.h.
37043         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37044         Set GNULIB_UNISTD_H_GETOPT.
37045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37046         GNULIB_UNISTD_H_GETOPT.
37047         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37048
37049 2009-08-12  Bruno Haible  <bruno@clisp.org>
37050
37051         Clarify logic.
37052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37053         gl_replace_getopt instead of GETOPT_H.
37054
37055 2009-08-12  Bruno Haible  <bruno@clisp.org>
37056
37057         * m4/getopt.m4: Add comments.
37058
37059 2009-08-12  Bruno Haible  <bruno@clisp.org>
37060
37061         Disable multithread support by default on Cygwin 1.5.x.
37062         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37063         set gl_use_threads=no if not specified otherwise.
37064
37065 2009-08-11  Bruno Haible  <bruno@clisp.org>
37066
37067         Avoid compilation error on NetBSD 5.0.
37068         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37069         * tests/test-stdio.c: Likewise.
37070         * tests/test-stdlib.c: Likewise.
37071         * tests/test-string.c: Likewise.
37072         * tests/test-unistd.c: Likewise.
37073         Reported by Greg Troxel <gdt@ir.bbn.com>
37074         at <https://savannah.gnu.org/support/?106973>.
37075
37076 2009-08-11  Bruno Haible  <bruno@clisp.org>
37077
37078         * modules/dup2-tests (Depends-on): Remove close.
37079
37080         Undo 2009-07-19 commit.
37081         * modules/acl-tests (Depends-on): Remove close.
37082         * modules/binary-io-tests (Depends-on): Likewise.
37083         * modules/closein-tests (Depends-on): Likewise.
37084         * modules/flock-tests (Depends-on): Likewise.
37085         * modules/fsync-tests (Depends-on): Likewise.
37086         * modules/lseek-tests (Depends-on): Likewise.
37087         * modules/pipe-tests (Depends-on): Likewise.
37088         * modules/posix_spawn-tests (Depends-on): Likewise.
37089         * modules/posix_spawnp-tests (Depends-on): Likewise.
37090         * modules/stat-time-tests (Depends-on): Likewise.
37091         * modules/yesno-tests (Depends-on): Likewise.
37092
37093 2009-08-10  Bruno Haible  <bruno@clisp.org>
37094
37095         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37096
37097 2009-08-10  Bruno Haible  <bruno@clisp.org>
37098
37099         Fix a gcc warning.
37100         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37101
37102 2009-08-10  Bruno Haible  <bruno@clisp.org>
37103
37104         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37105         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37106         not only the first time.
37107         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37108         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37109         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37110         is 1, not only the the first time.
37111
37112 2009-08-10  Bruno Haible  <bruno@clisp.org>
37113
37114         Make it possible to use module 'gethostname' without module 'close'.
37115         * lib/unistd.in.h (close): Evoke a link error only if
37116         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37118         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37119         * modules/unistd (Makefile.am): Substitute
37120         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37121         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37122         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37123         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37124         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37125         * modules/sys_ioctl (Makefile.am): Substitute
37126         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37127         * modules/socket (configure.ac): On native Windows, set
37128         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37129         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37130         Reported by Sam Steingold <sds@gnu.org>.
37131
37132 2009-08-10  Bruno Haible  <bruno@clisp.org>
37133
37134         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37135         * modules/ioctl (configure.ac): Likewise.
37136
37137 2009-08-10  Bruno Haible  <bruno@clisp.org>
37138
37139         Avoid collision between gnulib wrapper and libintl wrapper.
37140         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37141         already defined in intl/printf.c.
37142         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37143         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37144
37145 2009-08-09  Bruno Haible  <bruno@clisp.org>
37146
37147         Make <sys/select.h> really self-contained, also on Solaris 10.
37148         * lib/sys_select.in.h: Include <string.h>.
37149         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37150         Solaris 10 problem.
37151         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37152         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37153         Reported by Jim Meyering.
37154
37155 2009-08-09  Bruno Haible  <bruno@clisp.org>
37156
37157         Avoid warnings from 'aclocal' that are due to a use of macro name
37158         AM_XGETTEXT_OPTION that is not defined in automake.
37159         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37160         automake.
37161         * modules/error (configure.ac): Likewise.
37162         * modules/propername (configure.ac): Likewise.
37163         * modules/vasprintf (configure.ac): Likewise.
37164         * modules/verror (configure.ac): Likewise.
37165         * modules/xprintf (configure.ac): Likewise.
37166         * modules/xvasprintf (configure.ac): Likewise.
37167
37168 2009-08-08  Bruno Haible  <bruno@clisp.org>
37169
37170         Avoid compilation error in C++ mode.
37171         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37172         Reported by Sam Steingold <sds@gnu.org>.
37173
37174 2009-08-08  Bruno Haible  <bruno@clisp.org>
37175
37176         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37177         for the various Unix platforms.
37178         * doc/posix-headers/limits.texi: Update platforms list regarding
37179         HOST_NAME_MAX.
37180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37181
37182 2009-08-07  Jim Meyering  <meyering@redhat.com>
37183
37184         selinux-at: fix typo in a comment
37185         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37186         Spotted by Paolo Bonzini.
37187
37188         selinux-at: remove redundant m4 code, add documentation
37189         * modules/selinux-at (configure.ac): Remove redundant code.
37190         LIB_SELINUX is already set via the dependent module, selinux-h.
37191         (Include): Add quotes around selinux-at.h.
37192         * lib/selinux-at.h: Add documentation.
37193         Reported by Bruno Haible in
37194         http://marc.info/?l=gnulib-bug&m=124958988300749
37195
37196 2009-08-07  Bruno Haible  <bruno@clisp.org>
37197
37198         Avoid link error on MacOS X 10.3 and 10.4.
37199         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37200         on non-ELF systems.
37201         * lib/argp-pv.c (argp_program_version): Likewise.
37202         Reported by Simon Josefsson.
37203
37204 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37205
37206         * tests/test-version-etc.sh: Use $EXEEXT.
37207
37208 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37209
37210         update-copyright: update documentation to point to maint.mk
37211         * build-aux/update-copyright: Here.
37212
37213 2009-08-06  Jim Meyering  <meyering@redhat.com>
37214
37215         maint.mk: support update-copyright-local
37216         * top/maint.mk (update-copyright-local): Define place-holder.
37217         (update-copyright): Depend on $(update-copyright-local).
37218
37219 2009-08-06  Jim Meyering  <meyering@redhat.com>
37220
37221         selinux-at: new module
37222         Initially written for coreutils, this module will soon be
37223         used by findutils, too.
37224         * MODULES.html.sh [Misc]: Add selinux-at.
37225         * lib/selinux-at.h: New file, from coreutils.
37226         * lib/selinux-at.c: Likewise.
37227         * modules/selinux-at: Likewise.
37228         (License): Change from LGPL to GPL, since it depends
37229         on the GPL'd openat module.
37230
37231         doc: update README
37232         * README: Remove references to cogito.
37233         Remove cvs-repo-updating instructions from 2007.
37234         Don't imply that CVS is better if you have limited disk space.
37235
37236 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37237
37238         update-copyright: support C-style comments
37239         * build-aux/update-copyright: Implement and document.
37240         * tests/test-update-copyright.sh: Test.
37241
37242 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37243
37244         update-copyright: support omitted "(C)"
37245         * build-aux/update-copyright: Implement and document.  Also,
37246         allow variable whitespace before "(C)".
37247         * tests/test-update-copyright.sh: Test.
37248
37249 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37250
37251         update-copyright: don't trip on non-FSF copyright statements
37252         * build-aux/update-copyright: Fix so that the first correctly
37253         formatted FSF copyright statement is recognized no matter what
37254         appears before it.  Update documentation.
37255         * tests/test-update-copyright.sh: Test that.
37256
37257 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37258
37259         update-copyright: clean up code a little
37260         * build-aux/update-copyright: Append "_re" to the name of any
37261         variable holding a regular expression.
37262         Replace "old" and "new" with "stmt" in variable names.
37263         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37264         handled correctly.
37265         Format code more consistently.
37266
37267 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37268
37269         update-copyright-tests: improve portability
37270         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37271         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37272
37273 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37274
37275         update-copyright: support @copyright{} and &copy;
37276         * build-aux/update-copyright: Implement and document.
37277         * tests/test-update-copyright.sh: Test.
37278
37279 2009-08-04  Jim Meyering  <meyering@redhat.com>
37280
37281         update-copyright-tests: correctly test EOL=\r\n handling
37282         * tests/test-update-copyright.sh: Put \r at the end of some lines
37283         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37284
37285         maint.mk: make update-copyright exclusion list more configurable
37286         * top/maint.mk (update-copyright): Default to excluding COPYING,
37287         but allow an override, in case someone does want to update that file.
37288
37289         maint.mk: don't update copyright date in COPYING
37290         * top/maint.mk (update-copyright): Exclude COPYING.
37291
37292         maint.mk: add a copyright-updating rule
37293         * top/maint.mk (update-copyright): New rule.
37294         Derived from coreutils/Makefile.am.
37295
37296         update-copyright: rename some variables
37297         * build-aux/update-copyright: Rename a few variables for clarity.
37298         Tweak syntax.  List Joel E. Denny as coauthor.
37299
37300 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37301
37302         update-copyright: fix bug for 2-digit last year and add tests
37303         * build-aux/update-copyright: Fix bug.
37304         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37305         specified.
37306         * modules/update-copyright-tests: New
37307         * tests/test-update-copyright.sh: New.
37308
37309 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37310
37311         update-copyright: handle leading tabs in line prefix
37312         * build-aux/update-copyright: Count leading tabs as 8 spaces
37313         when computing margin.  This helps with the formatting of
37314         ChangeLogs, for example.
37315         Fix documentation a little.
37316
37317 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37318
37319         update-copyright: support EOL=\r\n
37320         * build-aux/update-copyright: Implement that.
37321
37322 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37323
37324         update-copyright: automatically format copyright statements
37325         * build-aux/update-copyright: Implement that.
37326         Also, be a little more predictable and safer by always failing
37327         when the full copyright format is not perfectly recognized as an
37328         unbroken whole.  Discussed at
37329         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37330         Rewrite documentation.
37331
37332 2009-08-03  Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37335
37336 2009-08-02  Bruno Haible  <bruno@clisp.org>
37337
37338         Tests for module 'uname'.
37339         * modules/uname-tests: New file.
37340         * tests/test-uname.c: New file.
37341
37342         New module 'uname'.
37343         * lib/uname.c: New file.
37344         * m4/uname.m4: New file.
37345         * modules/uname: New file.
37346         * doc/posix-functions/uname.texi: Mention the new module.
37347
37348 2009-08-02  Bruno Haible  <bruno@clisp.org>
37349
37350         Tests for module 'sys_utsname'.
37351         * modules/sys_utsname-tests: New file.
37352         * tests/test-sys_utsname.c: New file.
37353
37354         New module 'sys_utsname'.
37355         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37356         * m4/sys_utsname_h.m4: New file.
37357         * modules/sys_utsname: New file.
37358         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37359
37360 2009-08-02  Bruno Haible  <bruno@clisp.org>
37361
37362         Implicitly initialize the sockets library.
37363         * lib/gethostname.c: Include sockets.h.
37364         (rpl_gethostname): Invoke gl_sockets_startup.
37365         * lib/socket.c: Include sockets.h.
37366         (rpl_socket): Invoke gl_sockets_startup.
37367         * modules/gethostname (Depends-on): Add sockets.
37368         * modules/socket (Depends-on): Likewise.
37369         * tests/test-poll.c: Don't include sockets.h.
37370         (main): Don't invoke gl_sockets_startup.
37371         * tests/test-select.c: Don't include sockets.h.
37372         (main): Don't invoke gl_sockets_startup.
37373
37374 2009-08-02  Bruno Haible  <bruno@clisp.org>
37375
37376         Allow multiple calls to gl_sockets_startup.
37377         * lib/sockets.c (initialized_sockets_version): New variable.
37378         (gl_sockets_startup): Do nothing if already called for this or a higher
37379         version.
37380         (gl_sockets_cleanup): Reset initialized_sockets_version.
37381
37382 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37383
37384         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37385         different project/version.
37386
37387 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37388             Bruno Haible  <bruno@clisp.org>
37389
37390         Tests for module 'pipe-filter-gi'.
37391         * modules/pipe-filter-gi-tests: New file.
37392         * tests/test-pipe-filter-gi1.sh: New file.
37393         * tests/test-pipe-filter-gi1.c: New file.
37394         * tests/test-pipe-filter-gi2.sh: New file.
37395         * tests/test-pipe-filter-gi2-main.c: New file.
37396         * tests/test-pipe-filter-gi2-child.c: New file.
37397
37398         New module 'pipe-filter-gi'.
37399         * lib/pipe-filter-gi.c: New file.
37400         * modules/pipe-filter-gi: New file.
37401
37402 2009-08-02  Bruno Haible  <bruno@clisp.org>
37403             Paolo Bonzini  <bonzini@gnu.org>
37404
37405         Tests for module 'pipe-filter-ii'.
37406         * modules/pipe-filter-ii-tests: New file.
37407         * tests/test-pipe-filter-ii1.sh: New file.
37408         * tests/test-pipe-filter-ii1.c: New file.
37409         * tests/test-pipe-filter-ii2.sh: New file.
37410         * tests/test-pipe-filter-ii2-main.c: New file.
37411         * tests/test-pipe-filter-ii2-child.c: New file.
37412
37413         New module 'pipe-filter-ii'.
37414         * lib/pipe-filter.h: New file.
37415         * lib/pipe-filter-ii.c: New file.
37416         * lib/pipe-filter-aux.h: New file.
37417         * modules/pipe-filter-ii: New file.
37418
37419 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37420
37421         * lib/gc-libgcrypt.c: Change copyright to FSF.
37422         * lib/gc-gnulib.c: Likewise.
37423
37424 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37425
37426         * lib/gethostname.c: Include limits.h.
37427
37428 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37429             Bruno Haible  <bruno@clisp.org>
37430
37431         Ensure HOST_NAME_MAX as part of the gethostname module.
37432         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37433         define also HOST_NAME_MAX.
37434         * tests/test-gethostname.c: Include <limits.h>.
37435         (main): Check also HOST_NAME_MAX.
37436         * doc/posix-headers/limits.texi: Document the mingw problem.
37437
37438 2009-08-02  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37441         Add comments.
37442
37443 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37444
37445         * lib/gethostname.c: Add Windows wrapper.
37446         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37447         * modules/gethostname: Depend on sys_socket & errno, for also
37448         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37449         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37450
37451 2009-07-31  Jim Meyering  <meyering@redhat.com>
37452
37453         getloadavg: fix symbol name in comment
37454         * lib/getloadavg.c: Correct a typo I introduced when adding
37455         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37456         Matt Kraai spotted the problem.
37457
37458 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37459
37460         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37461         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37462         code also if ! defined N_NAME_POINTER.
37463         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37464         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37465         but the n_name member is a 12-byte array.
37466
37467 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37468
37469         update-copyright: generalize comment handling
37470         * build-aux/update-copyright: Handle copyright statements
37471         within more comment styles.
37472         Document usage.
37473         Report any file with an external copyright holder or parse failure.
37474
37475 2009-07-29  Jim Meyering  <meyering@redhat.com>
37476
37477         mktime: correct setting of REPLACE_MKTIME
37478         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37479
37480         update-copyright: new module
37481         * modules/update-copyright: New file.
37482         * build-aux/update-copyright: New file.
37483         * MODULES.html.sh (maint+release support): Add update-copyright.
37484
37485 2009-07-27  Bruno Haible  <bruno@clisp.org>
37486
37487         Fix compilation error when <ctime> is used and mktime is replaced.
37488         * lib/time.in.h (mktime): New declaration.
37489         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37490         REPLACE_MKTIME instead of defining mktime in config.h.
37491         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37492         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37493         Reported by Ross McFarland <rwmcfa1@neces.com>.
37494
37495 2009-07-27  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37498         Reported by Matt Kraai <mkraai@beckman.com>.
37499
37500 2009-07-25  Jim Meyering  <meyering@redhat.com>
37501
37502         maint.mk: avoid warnings about missing files
37503         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37504         diagnostic when .prev-version does not exist.
37505         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37506         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37507         nonexistent cfg.mk.
37508         Suggestions from Simon Josefsson.
37509
37510 2009-07-25  Bruno Haible  <bruno@clisp.org>
37511
37512         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37513         defined as macros. Needed on QNX 6.4.1.
37514         Reported by Matt Kraai <mkraai@beckman.com>.
37515
37516 2009-07-23  Jim Meyering  <meyering@redhat.com>
37517
37518         maint.mk: invoke "make dist" with a working value of XZ_OPT
37519         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37520
37521 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37522
37523         Make fseeko.c compile on QNX.
37524         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37525
37526 2009-07-22  Peter Simons  <simons@cryp.to>
37527
37528         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37529         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37530         * lib/md4.h: Likewise.
37531         * lib/md5.h: Likewise.
37532         * lib/sha1.h: Likewise.
37533         * lib/sha256.h: Likewise.
37534         * lib/sha512.h: Likewise.
37535
37536         tests-sha1: don't assign literal string to 'char *' variable
37537         * tests/test-sha1.c (main): Declare locals with "const" to match
37538         attributes of the right hand side.
37539
37540 2009-07-21  Eric Blake  <ebb9@byu.net>
37541
37542         dup2: fix more mingw problems
37543         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37544         fd to itself.
37545         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37546         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37547         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37548         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37549         care of mingw bugs.
37550
37551 2009-07-21  Jim Meyering  <meyering@redhat.com>
37552
37553         vc-list-files: avoid failure when /bin/sh is dash
37554         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37555         On some Debian based systems, /bin/sh is a symlink to dash, and running
37556         this command would omit the "/" following each 'tests' prefix:
37557           dash -x build-aux/vc-list-files -C . tests
37558         That is because bash and dash work differently:
37559           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37560           bash ok
37561           dash odd
37562
37563 2009-07-21  Eric Blake  <ebb9@byu.net>
37564
37565         dup2-tests: test previous patch
37566         * modules/dup2-tests: New file.
37567         * tests/test-dup2.c: Likewise.
37568         * tests/test-open.c (main): Avoid unspecified behavior.
37569         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37570         test.
37571
37572         dup2: work around mingw and cygwin 1.5 bug
37573         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37575         * modules/unistd (Makefile.am): Substitute it.
37576         * lib/unistd.in.h (dup2): Declare the replacement.
37577         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37578         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37579         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37580         * modules/execute (Depends-on): Add dup2.
37581         * modules/fseterr (Depends-on): Likewise.
37582         * modules/pipe (Depends-on): Likewise.
37583         * modules/posix_spawn-internal (Depends-on): Likewise.
37584
37585 2009-07-21  Bruno Haible  <bruno@clisp.org>
37586
37587         * modules/.gitattributes: New file.
37588
37589 2009-07-20  Bruno Haible  <bruno@clisp.org>
37590
37591         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37592         (main): Use it.
37593
37594 2009-07-20  Eric Blake  <ebb9@byu.net>
37595
37596         test-pipe: make a bit more robust.
37597         * tests/test-pipe.c (myerr): Allow error messages regardless of
37598         what we do to stderr.
37599         (test_pipe): Rearrange to avoid deadlock.
37600         (child_main): Try a larger read, to ensure we avoided deadlock.
37601         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37602         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37603         if misused.
37604
37605 2009-07-19  Jim Meyering  <meyering@redhat.com>
37606
37607         fts: avoid false-positive cycle-detection
37608         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37609         for each new command line argument.
37610
37611 2009-07-19  Bruno Haible  <bruno@clisp.org>
37612
37613         Fix build error on mingw with the modules sys_select and unistd.
37614         * modules/acl-tests (Depends-on): Add close.
37615         * modules/binary-io-tests (Depends-on): Likewise.
37616         * modules/closein-tests (Depends-on): Likewise.
37617         * modules/flock-tests (Depends-on): Likewise.
37618         * modules/fsync-tests (Depends-on): Likewise.
37619         * modules/lseek-tests (Depends-on): Likewise.
37620         * modules/pipe-tests (Depends-on): Likewise.
37621         * modules/posix_spawn-tests (Depends-on): Likewise.
37622         * modules/posix_spawnp-tests (Depends-on): Likewise.
37623         * modules/stat-time-tests (Depends-on): Likewise.
37624         * modules/yesno-tests (Depends-on): Likewise.
37625
37626 2009-07-19  Bruno Haible  <bruno@clisp.org>
37627
37628         Unify conditionals.
37629         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37630         macros, not at the compiler macros.
37631         * lib/pipe.c: Likewise.
37632         * lib/execute.c: Likewise.
37633         * lib/spawni.c: Likewise.
37634
37635 2009-07-19  Bruno Haible  <bruno@clisp.org>
37636
37637         Fix handling of closed stdin/stdout/stderr on mingw.
37638         * lib/w32spawn.h: Include unistd.h.
37639         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37640         file descriptor with O_NOINHERIT flag.
37641         (fd_safer_noinherit): New function, based on fd-safer.c.
37642         (dup_safer_noinherit): New function, based on dup-safer.c.
37643         (undup_safer_noinherit): New function.
37644         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37645         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37646         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37647         instead of fd_safer.
37648         * tests/test-pipe.c: Include <windows.h>.
37649         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37650         result.
37651
37652         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37653         from main.
37654         (test_pipe): Pass an extra argument for disambiguation.
37655         (main): Invoke parent_main or child_main.
37656
37657         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37658         consistently.
37659
37660 2009-07-18  Eric Blake  <ebb9@byu.net>
37661
37662         test-pipe: fix mingw build
37663         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37664
37665 2009-07-18  Bruno Haible  <bruno@clisp.org>
37666
37667         * modules/pipe-tests (Makefile.am): Fix typo.
37668
37669 2009-07-18  Eric Blake  <ebb9@byu.net>
37670
37671         error: fix mingw build
37672         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37673         Reported by Bruno Haible.
37674
37675         error: avoid undefined use of stdout
37676         * lib/error.c (error, error_at_line): Check that fd 1 is open
37677         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37678         is handling faults and the close_stdout module wants to report the
37679         detection of closed stdout as an error.
37680
37681 2009-07-17  Eric Blake  <ebb9@byu.net>
37682
37683         pipe: be robust in face of closed fds
37684         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37685         should cause child to misbehave.
37686         * modules/pipe-tests: New module.
37687         * tests/test-pipe.c: New file.
37688         * tests/test-pipe.sh: New file.
37689         Reported by Akim Demaille.
37690
37691 2009-07-14  Bruno Haible  <bruno@clisp.org>
37692
37693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37694         Reported by anonymous kc.
37695
37696 2009-07-07  Jim Meyering  <meyering@redhat.com>
37697
37698         maint.mk: don't look for translatable strings in *.m4 or *.mk
37699         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37700         when searching for translatable strings.
37701
37702 2009-07-05  Jim Meyering  <meyering@redhat.com>
37703
37704         remove superfluous parentheses in STREQ definition
37705         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37706         * lib/getugroups.c (STREQ): Likewise.
37707         * lib/fnmatch.c (STREQ): Likewise.
37708         Spotted by Bruno Haible.
37709
37710 2009-07-04  Jim Meyering  <meyering@redhat.com>
37711
37712         argv-iter: new module
37713         * MODULES.html.sh: Add argv-iter.
37714         * lib/argv-iter.c, lib/argv-iter.h: New files.
37715         * modules/argv-iter: New file.
37716         * modules/argv-iter-tests: New file.
37717         * tests/test-argv-iter.c: Test it.
37718
37719 2009-07-04  Bruno Haible  <bruno@clisp.org>
37720
37721         Fix assertion.
37722         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37723         contains more exact copies of a given entry than file2, leave the extra
37724         copies unpaired rather than aborting.
37725         Reported by Eric Blake.
37726
37727 2009-07-02  Bruno Haible  <bruno@clisp.org>
37728
37729         Speedup git-merge-changelog for git cherry-pick.
37730         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37731         (entries_mapping_get): New function, extracted from compute_mapping.
37732         (entries_mapping_reverse_get): New function.
37733         (compute_mapping): Add a 'full' argument. Return the result in a
37734         'struct entries_mapping'.
37735         (main): Update. Access the mappings through entries_mapping_get.
37736         Reported by Eric Blake.
37737
37738 2009-07-02  Bruno Haible  <bruno@clisp.org>
37739
37740         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37741         best_i.
37742
37743 2009-07-02  Bruno Haible  <bruno@clisp.org>
37744
37745         Speed up approximate search for matching ChangeLog entries.
37746         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37747         argument. Call fstrcmp_bounded instead of fstrcmp.
37748         (compute_mapping, try_split_merged_entry, main): Update callers.
37749
37750 2009-07-02  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37753
37754 2009-06-30  Bruno Haible  <bruno@clisp.org>
37755
37756         Reduce the number of uc_is_cased calls.
37757         * lib/unicase.h (casing_suffix_context_t): Add
37758         'first_char_except_ignorable' field.
37759         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37760         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37761         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37762         Update initializer.
37763         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37764         case-ignorable characters.
37765         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37766         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37767         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37768         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37769         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37770
37771 2009-06-30  Bruno Haible  <bruno@clisp.org>
37772
37773         Tests for module 'unicase/ignorable'.
37774         * modules/unicase/ignorable-tests: New file.
37775         * tests/unicase/test-ignorable.c: New file, generated by
37776         gen-uni-tables.
37777
37778         Tests for module 'unicase/cased'.
37779         * modules/unicase/cased-tests: New file.
37780         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37781         * tests/unicase/test-predicate-part1.h: New file, derived from
37782         tests/unictype/test-predicate-part1.h.
37783         * tests/unicase/test-predicate-part2.h: New file, same as
37784         tests/unictype/test-predicate-part2.h.
37785
37786         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37787         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37788         (output_casing_properties): New function.
37789         (main): Call it.
37790         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37791         * lib/unicase/cased.c: Include unictype/bitmap.h.
37792         (uc_is_cased): Define through a bitmap lookup.
37793         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37794         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37795         (uc_is_case_ignorable): Define through a bitmap lookup.
37796         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37797         lib/unictype/bitmap.h.
37798         (Depends-on): Add inline. Clean up.
37799         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37800         lib/unictype/bitmap.h.
37801         (Depends-on): Add inline. Clean up.
37802         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37803         recognition.
37804         * tests/unicase/test-u16-tolower.c (main): Likewise.
37805         * tests/unicase/test-u32-tolower.c (main): Likewise.
37806
37807 2009-06-30  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37810         * lib/unicase/u16-casemap.c: Likewise.
37811         * lib/unicase/u32-casemap.c: Likewise.
37812
37813 2009-06-29  Bruno Haible  <bruno@clisp.org>
37814
37815         Define u32_casefold as a wrapper around u32_ct_casefold.
37816         * lib/unicase/u32-casefold.c: Update.
37817         * modules/unicase/u32-casefold (Depends-on): Add
37818         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37819         unicase/empty-suffix-context. Clean up.
37820
37821         Define u16_casefold as a wrapper around u16_ct_casefold.
37822         * lib/unicase/u16-casefold.c: Update.
37823         * modules/unicase/u16-casefold (Depends-on): Add
37824         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37825         unicase/empty-suffix-context. Clean up.
37826
37827         Define u8_casefold as a wrapper around u8_ct_casefold.
37828         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37829         * lib/unicase/u8-casefold.c: Update.
37830         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37831         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37832
37833         Define u32_totitle as a wrapper around u32_ct_totitle.
37834         * lib/unicase/u32-totitle.c: Update.
37835         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37836         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37837
37838         Define u16_totitle as a wrapper around u16_ct_totitle.
37839         * lib/unicase/u16-totitle.c: Update.
37840         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37841         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37842
37843         Define u8_totitle as a wrapper around u8_ct_totitle.
37844         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37845         functions.
37846         (FUNC): Delegate to U_CT_TOTITLE.
37847         * lib/unicase/u8-totitle.c: Update.
37848         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37849         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37850
37851         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37852         invocation.
37853         * modules/unicase/u32-tolower (Depends-on): Add
37854         unicase/empty-prefix-context, unicase/empty-suffix-context.
37855
37856         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37857         invocation.
37858         * modules/unicase/u16-tolower (Depends-on): Add
37859         unicase/empty-prefix-context, unicase/empty-suffix-context.
37860
37861         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37862         * modules/unicase/u8-tolower (Depends-on): Add
37863         unicase/empty-prefix-context, unicase/empty-suffix-context.
37864
37865         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37866         invocation.
37867         * modules/unicase/u32-toupper (Depends-on): Add
37868         unicase/empty-prefix-context, unicase/empty-suffix-context.
37869
37870         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37871         invocation.
37872         * modules/unicase/u16-toupper (Depends-on): Add
37873         unicase/empty-prefix-context, unicase/empty-suffix-context.
37874
37875         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37876         * modules/unicase/u8-toupper (Depends-on): Add
37877         unicase/empty-prefix-context, unicase/empty-suffix-context.
37878
37879         New module 'unicase/u32-ct-casefold'.
37880         * lib/unicase/u32-ct-casefold.c: New file.
37881         * modules/unicase/u32-ct-casefold: New file.
37882
37883         New module 'unicase/u16-ct-casefold'.
37884         * lib/unicase/u16-ct-casefold.c: New file.
37885         * modules/unicase/u16-ct-casefold: New file.
37886
37887         New module 'unicase/u8-ct-casefold'.
37888         * lib/unicase/u8-ct-casefold.c: New file.
37889         * lib/unicase/u-ct-casefold.h: New file, derived from
37890         lib/unicase/u-casefold.h.
37891         * modules/unicase/u8-ct-casefold: New file.
37892
37893         New module 'unicase/u32-ct-totitle'.
37894         * lib/unicase/u32-ct-totitle.c: New file.
37895         * modules/unicase/u32-ct-totitle: New file.
37896
37897         New module 'unicase/u16-ct-totitle'.
37898         * lib/unicase/u16-ct-totitle.c: New file.
37899         * modules/unicase/u16-ct-totitle: New file.
37900
37901         New module 'unicase/u8-ct-totitle'.
37902         * lib/unicase/u8-ct-totitle.c: New file.
37903         * lib/unicase/u-ct-totitle.h: New file, derived from
37904         lib/unicase/u-totitle.h.
37905         * modules/unicase/u8-ct-totitle: New file.
37906
37907         New module 'unicase/u32-ct-tolower'.
37908         * lib/unicase/u32-ct-tolower.c: New file.
37909         * modules/unicase/u32-ct-tolower: New file.
37910
37911         New module 'unicase/u16-ct-tolower'.
37912         * lib/unicase/u16-ct-tolower.c: New file.
37913         * modules/unicase/u16-ct-tolower: New file.
37914
37915         New module 'unicase/u8-ct-tolower'.
37916         * lib/unicase/u8-ct-tolower.c: New file.
37917         * modules/unicase/u8-ct-tolower: New file.
37918
37919         New module 'unicase/u32-ct-toupper'.
37920         * lib/unicase/u32-ct-toupper.c: New file.
37921         * modules/unicase/u32-ct-toupper: New file.
37922
37923         New module 'unicase/u16-ct-toupper'.
37924         * lib/unicase/u16-ct-toupper.c: New file.
37925         * modules/unicase/u16-ct-toupper: New file.
37926
37927         New module 'unicase/u8-ct-toupper'.
37928         * lib/unicase/u8-ct-toupper.c: New file.
37929         * modules/unicase/u8-ct-toupper: New file.
37930
37931         Add context arguments to u*_casemap functions.
37932         * lib/unicase/unicasemap.h: Include unicase.h.
37933         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37934         suffix_context arguments.
37935         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37936         functions.
37937         (FUNC): Add prefix_context and suffix_context arguments. Use
37938         uc_is_cased and uc_is_case_ignorable.
37939         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37940         * lib/unicase/u16-casemap.c: Likewise.
37941         * lib/unicase/u32-casemap.c: Likewise.
37942         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37943         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37944         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37945         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37946         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37947         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37948
37949         New module 'unicase/u32-suffix-context'.
37950         * lib/unicase/u32-suffix-context.c: New file.
37951         * modules/unicase/u32-suffix-context: New file.
37952
37953         New module 'unicase/u16-suffix-context'.
37954         * lib/unicase/u16-suffix-context.c: New file.
37955         * modules/unicase/u16-suffix-context: New file.
37956
37957         New module 'unicase/u8-suffix-context'.
37958         * lib/unicase/u8-suffix-context.c: New file.
37959         * lib/unicase/u-suffix-context.h: New file.
37960         * modules/unicase/u8-suffix-context: New file.
37961
37962         New module 'unicase/empty-suffix-context'.
37963         * lib/unicase/empty-suffix-context.c: New file.
37964         * modules/unicase/empty-suffix-context: New file.
37965
37966         New module 'unicase/u32-prefix-context'.
37967         * lib/unicase/u32-prefix-context.c: New file.
37968         * modules/unicase/u32-prefix-context: New file.
37969
37970         New module 'unicase/u16-prefix-context'.
37971         * lib/unicase/u16-prefix-context.c: New file.
37972         * modules/unicase/u16-prefix-context: New file.
37973
37974         New module 'unicase/u8-prefix-context'.
37975         * lib/unicase/u8-prefix-context.c: New file.
37976         * lib/unicase/u-prefix-context.h: New file.
37977         * lib/unicase/context.h: New file.
37978         * modules/unicase/u8-prefix-context: New file.
37979
37980         New module 'unicase/empty-prefix-context'.
37981         * lib/unicase/empty-prefix-context.c: New file.
37982         * modules/unicase/empty-prefix-context: New file.
37983
37984         New module 'unicase/ignorable'.
37985         * lib/unicase/ignorable.c: New file.
37986         * modules/unicase/ignorable: New file.
37987
37988         New module 'unicase/cased'.
37989         * lib/unicase/caseprop.h: New file.
37990         * lib/unicase/cased.c: New file.
37991         * modules/unicase/cased: New file.
37992
37993         New functions for case mapping of substrings.
37994         * lib/unicase.h (casing_prefix_context_t): New type.
37995         (unicase_empty_prefix_context): New variable.
37996         (u8_casing_prefix_context, u16_casing_prefix_context,
37997         u32_casing_prefix_context, u8_casing_prefixes_context,
37998         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37999         declarations.
38000         (casing_suffix_context_t): New type.
38001         (unicase_empty_suffix_context): New variable.
38002         (u8_casing_suffix_context, u16_casing_suffix_context,
38003         u32_casing_suffix_context, u8_casing_suffixes_context,
38004         u16_casing_suffixes_context, u32_casing_suffixes_context,
38005         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38006         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38007         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38008         declarations.
38009
38010 2009-06-28  Jim Meyering  <meyering@redhat.com>
38011
38012         boostrap: indent only with spaces
38013         * build-aux/bootstrap: Indent only with spaces, never TABs.
38014
38015         bootstrap: split long lines
38016         * build-aux/bootstrap: Keep line length < 80.
38017
38018         bootstrap: sync from coreutils
38019         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38020         just as autoreconf does.  Verify a list of prerequisite
38021         package-name,version-number pairs if defined in bootstrap.conf.
38022         Refer to README-prereq, if prerequisites are not satisfied.
38023
38024 2009-06-27  Eric Blake  <ebb9@byu.net>
38025
38026         tests: add test for bogus NULL definition
38027         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38028         * tests/test-stdlib.c: Likewise.
38029         * tests/test-string.c: Likewise.
38030         * tests/test-locale.c: Likewise.
38031         * tests/test-unistd.c: Likewise.
38032         * modules/stdio-tests (Depends-on): Add verify.
38033         * modules/stdlib-tests (Depends-on): Likewise.
38034         * modules/string-tests (Depends-on): Likewise.
38035         * modules/locale-tests (Depends-on): Likewise.
38036         * modules/unistd-tests (Depends-on): Likewise.
38037
38038 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38039
38040         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38041         self-explaining comment.
38042         * m4/selinux-selinux-h: Update serial.
38043         (gl_LIBSELINUX): New macro, adding a warning for missing development
38044         packages to code extracted from...
38045         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38046         Add warning for missing development packages here, too.
38047
38048 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38049
38050         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38051
38052 2009-06-25  Eric Blake  <ebb9@byu.net>
38053
38054         version-etc: fix regression
38055         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38056         gcc.
38057         (version_etc): Use it, to catch bugs with trailing NULL.
38058         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38059         (version_etc_va): Fix logic bug.
38060         * modules/version-etc-tests: Add test.
38061         * tests/test-version-etc.c: New file.
38062         * tests/test-version-etc.sh: Likewise.
38063
38064 2009-06-25  Sam Steingold  <sds@gnu.org>
38065
38066         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38067         mbtowc declaration.
38068
38069 2009-06-25  Eric Blake  <ebb9@byu.net>
38070
38071         fpurge: migrate into <stdio.h>
38072         * lib/fpurge.h: Delete...
38073         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38074         * lib/fpurge.c (fpurge): Change declaring header.
38075         * modules/fpurge (Files): Drop deleted file.
38076         (Depends-on): Add stdio.
38077         (configure.ac): Set witness.
38078         * modules/stdio (Makefile.am): Support fpurge macros.
38079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38080         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38081         * lib/fflush.c: Update client.
38082         * tests/test-fpurge.c: Likewise.
38083         * NEWS: Mention the change.
38084
38085 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38086
38087         * lib/argp-version-etc.c (program_authors): Add const
38088         qualifier.
38089         * lib/version-etc.c: Fix typos in the comments.
38090         * modules/argp-version-etc: Depends on version-etc.
38091
38092 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38093
38094         argp-version-etc: new module.
38095
38096         * lib/argp-version-etc.c: New file.
38097         * lib/argp-version-etc.h: New file.
38098         * modules/argp-version-etc: New file.
38099         * modules/argp-version-etc-tests: New file.
38100         * tests/test-argp-version-etc.c: New test.
38101         * tests/test-argp-version-etc-1.sh: New test.
38102
38103 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38104
38105         Provide additional interfaces and documentation for version-etc
38106         module.
38107
38108         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38109         interfaces.
38110         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38111         prototypes.
38112
38113 2009-06-24  Bruno Haible  <bruno@clisp.org>
38114
38115         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38116         HAVE_LIB${NAME} macro.
38117         Reported by Sam Steingold <sds@gnu.org>.
38118
38119 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38120
38121         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38122         needed.
38123
38124 2009-06-21  Bruno Haible  <bruno@clisp.org>
38125
38126         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38127         work.
38128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38129         together with LIB${NAME}, LTLIB${NAME}.
38130         Reported by Sam Steingold <sds@gnu.org>.
38131
38132 2009-06-20  Jim Meyering  <meyering@redhat.com>
38133
38134         tests: make sc_require_test_exit_idiom more generic
38135         * top/maint.mk (Exit_witness_file): New overridable variable.
38136         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38137         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38138
38139 2009-06-19  Jim Meyering  <meyering@redhat.com>
38140
38141         hash: reverse order of src/dst parameters in an internal interface
38142         * lib/hash.c (transfer_entries): Reverse order of parameters to
38143         put DST before SRC.  Adjust callers.
38144
38145         tests: test-hash: avoid wholesale duplication
38146         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38147         Instead, use a loop and add a single conditional.
38148
38149         tests: test-hash: allow seed selection via a command line argument
38150         * tests/test-hash.c (get_seed): New function.
38151         (main): Use it.
38152
38153 2009-06-19  Eric Blake  <ebb9@byu.net>
38154
38155         hash: avoid memory leak on allocation failure
38156         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38157         failure.  Factor repeated algorithm...
38158         (transfer_entries): ...into new helper routine.
38159         (hash_delete): React to hash_rehash return value.
38160
38161         hash: reduce memory pressure in hash_rehash no-op case
38162         * lib/hash.c (next_prime): Avoid overflow.
38163         (hash_initialize): Factor bucket size computation...
38164         (compute_bucket_size): ...into new helper function.
38165         (hash_rehash): Use new function and open coding to reduce memory
38166         pressure, and avoid a memory leak in USE_OBSTACK code.
38167         Reported by Jim Meyering.
38168
38169 2009-06-18  Eric Blake  <ebb9@byu.net>
38170
38171         hash: make rotation more obvious
38172         * modules/hash (Depends-on): Add bitrotate and stdint.
38173         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38174         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38175         (SIZE_MAX): Rely on headers for definition.
38176         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38177         (raw_hasher): Use rotr_sz.
38178         Suggested by Jim Meyering.
38179
38180         hash: fix memory leak in last patch
38181         * lib/hash.c (hash_rehash): Avoid memory leak.
38182
38183         hash: avoid no-op rehashing
38184         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38185
38186         hash: provide default callback functions
38187         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38188         (hash_initialize): Use them as defaults.
38189         * tests/test-hash.c (main): Test this.
38190
38191         hash: minor optimization
38192         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38193         when possible.
38194         (hash_initialize): Document this promise.
38195         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38196         * tests/test-hash.c (hash_compare_strings): Test this.
38197
38198 2009-06-18  Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38201         going to be replaced anyway.
38202
38203 2009-06-18  Bruno Haible  <bruno@clisp.org>
38204
38205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38206         in one place.
38207         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38208         be replaced anyway.
38209
38210 2009-06-18  Eric Blake  <ebb9@byu.net>
38211
38212         hash: check for resize before insertion
38213         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38214         threshold before insertion, so that a pathological hash_rehash
38215         that fills every bucket can still trigger another rehash.
38216
38217 2009-06-18  Jim Meyering  <meyering@redhat.com>
38218
38219         hash-tests: add a loop around the small tests
38220         * tests/test-hash.c (main): Repeat small tests with selected
38221         small initial table sizes.
38222
38223 2009-06-17  Eric Blake  <ebb9@byu.net>
38224
38225         hash: minor cleanups
38226         * lib/hash.h (hash_entry): Make opaque, by moving...
38227         * lib/hash.c (hash_entry): ...here.
38228         (hash_insert): Clarify restrictions on what can be inserted.
38229         (hash_get_next): Clarify when it is safe to remove an element
38230         during traversal.
38231         (check_tuning): Skip verification when tuning is known safe.
38232         (hash_initialize): Clarify restrictions on tuning.
38233
38234 2009-06-17  Jim Meyering  <jim@meyering.net>
38235         and Eric Blake  <ebb9@byu.net>
38236
38237         hash-tests: new module
38238         * modules/hash-tests: New file.
38239         * tests/test-hash.c: New file.
38240
38241 2009-06-17  Eric Blake  <ebb9@byu.net>
38242
38243         strstr-simple: document new module
38244         * MODULES.html.sh: Document new module.
38245
38246         strstr, strcasestr: replace on platforms with broken memchr
38247         * modules/strstr: Split into...
38248         * modules/strstr-simple: ...new module that does not care about
38249         performance, but does care about glibc bug.
38250         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38251         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38252         if platform memchr is broken, per Debian bug 521737.
38253         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38254         memchr.
38255         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38256         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38257         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38258         * modules/mountlist (Depends-on): Add strstr-simple.
38259         * modules/gen-uni-tables (Depends-on): Likewise.
38260         * modules/argz (Depends-on): Add strstr.
38261
38262 2009-06-17  Bruno Haible  <bruno@clisp.org>
38263
38264         * modules/posix_spawn-internal (Depends-on): Add errno.
38265
38266 2009-06-17  Bruno Haible  <bruno@clisp.org>
38267
38268         Define missing ESTALE on Interix 3.5.
38269         * lib/errno.in.h (ESTALE): Assign a value if missing.
38270         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38271         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38272         missing.
38273         * doc/posix-headers/errno.texi: Mention the Interix bug.
38274         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38275
38276 2009-06-15  Eric Blake  <ebb9@byu.net>
38277
38278         memchr, memchr2: add valgrind exception
38279         * lib/memchr.valgrind: New file.
38280         * lib/memchr2.valgrind: New file.
38281         * modules/memchr (Files): Distribute valgrind file.
38282         * modules/memchr2 (Files): Likewise.
38283
38284         docs: memchr is no longer obsolete
38285         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38286         * lib/string.in.h (memchr): Simplify logic.
38287
38288 2009-06-14  Jim Meyering  <meyering@redhat.com>
38289
38290         link-follow: fix the "checking..." message to not mention trailing slash
38291         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38292         never considered trailing slashes.
38293
38294 2009-06-14  Bruno Haible  <bruno@clisp.org>
38295
38296         * m4/memchr.m4: Mention also the bug on IA-64.
38297         * doc/posix-functions/memchr.texi: Likewise.
38298
38299 2009-06-12  Eric Blake  <ebb9@byu.net>
38300
38301         memchr: detect broken x86_64 and alpha implementations
38302         * modules/memchr-tests (Depends-on): Move mmap detection...
38303         * modules/memchr (Depends-on): ...here.
38304         (configure.ac): Set indicator.
38305         * lib/string.in.h (memchr): Declare replacement.
38306         * modules/string (Makefile.am): Trigger replacement.
38307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38308         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38309         bugs.
38310         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38311         * modules/getpagesize (License): Relax license.
38312
38313 2009-06-11  Bruno Haible  <bruno@clisp.org>
38314
38315         * lib/idpriv.h: Add more references.
38316
38317 2009-06-08  Bruno Haible  <bruno@clisp.org>
38318
38319         Tests for module 'idpriv-droptemp'.
38320         * modules/idpriv-droptemp-tests: New file.
38321         * tests/test-idpriv-droptemp.sh: New file.
38322         * tests/test-idpriv-droptemp.su.sh: New file.
38323         * tests/test-idpriv-droptemp.c: New file.
38324
38325         New module 'idpriv-droptemp'.
38326         * lib/idpriv-droptemp.c: New file.
38327         * modules/idpriv-droptemp: New file.
38328
38329 2009-06-08  Bruno Haible  <bruno@clisp.org>
38330
38331         Tests for module 'idpriv-drop'.
38332         * modules/idpriv-drop-tests: New file.
38333         * tests/test-idpriv-drop.sh: New file.
38334         * tests/test-idpriv-drop.su.sh: New file.
38335         * tests/test-idpriv-drop.c: New file.
38336
38337         New module 'idpriv-drop'.
38338         * lib/idpriv.h: New file.
38339         * lib-idpriv-drop.c: New file.
38340         * m4/idpriv.m4: New file.
38341         * modules/idpriv-drop: New file.
38342
38343 2009-06-08  Bruno Haible  <bruno@clisp.org>
38344
38345         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38347         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38348         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38350         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38352
38353 2009-06-08  Eric Blake  <ebb9@byu.net>
38354
38355         test-strstr: use memory fence, when possible
38356         * tests/test-strstr.c (main): Use memory fence, in order to be
38357         more likely to trigger Debian bug 521737.
38358         * modules/strstr-tests (Files): Pull in additional files.
38359
38360         memchr: no longer obsolete, for wider field testing
38361         * modules/memchr (Status, Notice): Delete, this module is no
38362         longer obsolete.
38363         * modules/vasnprintf (Depends-on): Add memchr.
38364
38365 2009-06-07  Jim Meyering  <meyering@redhat.com>
38366
38367         hash: declare some functions with the warn_unused_result attribute
38368         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38369
38370 2009-06-07  Bruno Haible  <bruno@clisp.org>
38371
38372         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38373         Reported by Eric Blake.
38374
38375 2009-06-06  Eric Blake  <ebb9@byu.net>
38376
38377         test-alignof: fix typo with long double
38378         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38379         compiler error.
38380
38381 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38382
38383         Escape non-texinfo { and }s.
38384         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38385         markup error.
38386
38387 2009-06-04  Jim Meyering  <meyering@redhat.com>
38388
38389         gitlog-to-changelog: don't infloop on an empty commit log
38390         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38391         Reported by Boris Petersen <transacid@centerim.org>.
38392
38393 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38394
38395         version-etc: extend for packagers
38396         Add three new configure options, intended for packagers:
38397           --with-packager="packager name"
38398           --with-packager-version="packager-specific version"
38399           --with-packager-bug-reports="packager bug reporting"
38400         An example with coreutils:
38401           $ ./configure \
38402             --with-packager=Gentoo \
38403             --with-packager-bug-report=http://bugs.gentoo.org/ \
38404             --with-packager-version="patchset 1.6"
38405           $ ./src/ls --version | head -n2
38406           ls (GNU coreutils) 7.1-dirty
38407           Packaged by Gentoo (patchset 1.6)
38408         Note that the bug reporting info via --help doesn't show up because
38409         coreutils uses its own custom emit_bug_reporting_address() implementation
38410         in src/system.h.  If it didn't, it'd look like:
38411           $ ./src/ls --help | tail -n4
38412           Report bugs to <bug-coreutils@gnu.org>.
38413           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38414           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38415           General help using GNU software: <http://www.gnu.org/gethelp/>.
38416         * lib/version-etc.c: Print new information, if provided.
38417         * m4/version-etc.m4: New file.
38418         * modules/version-etc (Files): Add m4/version-etc.m4.
38419         (configure.ac): Add gl_VERSION_ETC.
38420
38421 2009-05-31  Bruno Haible  <bruno@clisp.org>
38422
38423         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38424         and 'int64_t'.
38425         * modules/alignof-tests (Dependencies): Add stdint.
38426         Reported by Eric Blake.
38427
38428 2009-05-31  Bruno Haible  <bruno@clisp.org>
38429
38430         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38431         restriction due to compiler bugs.
38432         Reported by Eric Blake.
38433
38434 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38435             Bruno Haible  <bruno@clisp.org>
38436
38437         Fix test-alignof failure.
38438         * lib/alignof.h (alignof_slot): New macro.
38439         (alignof_type): New macro, with the same semantics as the previous
38440         'alignof'.
38441         (alignof): Alias to alignof_slot.
38442         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38443         check that the results are usable as constant expressions.
38444
38445 2009-05-31  Bruno Haible  <bruno@clisp.org>
38446
38447         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38448         * tests/test-memchr.c (main): Check that memchr does not read past the
38449         first occurrence of the byte.
38450         * tests/test-strstr.c (main): Update comment.
38451         Suggested by Eric Blake.
38452
38453 2009-05-30  Bruno Haible  <bruno@clisp.org>
38454
38455         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38456         detail how to use dumpbin.
38457         Reported by David Byron <dbyron@dbyron.com>.
38458
38459 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38460
38461         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38462
38463 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38464
38465         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38466
38467 2009-05-28  Bruno Haible  <bruno@clisp.org>
38468
38469         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38470         build-aux/ files.
38471
38472 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38473
38474         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38475
38476 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38477
38478         * gnulib-tool (sed_transform_main_lib_file)
38479         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38480         regexps.
38481
38482 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38483
38484         * tests/test-strstr.c: Add another self-test.
38485         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38486         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38487
38488 2009-05-23  Bruno Haible  <bruno@clisp.org>
38489
38490         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38491         change.
38492
38493 2009-05-21  Bruno Haible  <bruno@clisp.org>
38494
38495         Simplify use of mode_t varargs.
38496         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38497         uses 'mode_t' or 'int'.
38498         * lib/openat.c (openat): Likewise.
38499         * lib/open-safer.c (open_safer): Likewise.
38500         * m4/mode_t.m4: New file.
38501         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38502         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38503         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38504         * modules/open (Files): Add m4/mode_t.m4.
38505         * modules/openat (Files): Likewise.
38506         * modules/fcntl-safer (Files): Likewise.
38507         Suggested by Eric Blake.
38508
38509 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38510
38511         * doc/glibc-functions/fallocate.texi: New file.
38512         * doc/gnulib.texi: Include it.
38513
38514 2009-05-21  Eric Blake  <ebb9@byu.net>
38515             Bruno Haible  <bruno@clisp.org>
38516
38517         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38518         invocations.
38519         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38520
38521 2009-05-21  Eric Blake  <ebb9@byu.net>
38522             Bruno Haible  <bruno@clisp.org>
38523
38524         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38525         include_next. Fix of 2008-11-20 commit.
38526         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38527         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38528         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38529         NEXT_MATH_H.
38530         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38531         instead of NEXT_MATH_H.
38532
38533 2009-05-21  Bruno Haible  <bruno@clisp.org>
38534
38535         Avoid redefinition warnings for SIZE_MAX.
38536         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38537         Reported by Simon Josefsson.
38538
38539 2009-05-21  Bruno Haible  <bruno@clisp.org>
38540
38541         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38542         AC_CACHE_VAL.
38543
38544 2009-05-20  Bruno Haible  <bruno@clisp.org>
38545
38546         Make zeroptr.h work on mingw.
38547         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38548         mprotect.
38549         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38550         * modules/memchr2-tests (configure.ac): Likewise.
38551         * modules/memcmp-tests (configure.ac): Likewise.
38552         * modules/memmem-tests (configure.ac): Likewise.
38553         * modules/memrchr-tests (configure.ac): Likewise.
38554         Reported by Simon Josefsson.
38555
38556 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38557
38558         * tests/test-glob.c: Include string.h for strcmp prototype.
38559
38560 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38561
38562         * modules/getdelim (Depends-on): Add explicit stdint, although it
38563         was implicitly already pulled in via realloc-posix.
38564         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38565
38566 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38567
38568         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38569         G. Christensen" <tgc@jupiterrise.com>.
38570         * m4/sys_socket_h.m4: Check for sa_family_t.
38571         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38572         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38573         * tests/test-sys_socket.c: Check that sa_family_t works.
38574
38575 2009-05-18  Eric Blake  <ebb9@byu.net>
38576
38577         maint.mk: allow gnulib_dir in VPATH build
38578         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38579
38580 2009-05-15  Jim Meyering  <meyering@redhat.com>
38581
38582         maint.mk: Give gnulib_dir a default definition.
38583         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38584         Thus, most packages no longer need to specify this variable in cfg.mk
38585
38586 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38587
38588         rename.m4: fix typos that would make non-mingw cross-configure fail
38589         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38590
38591 2009-05-13  Eric Blake  <ebb9@byu.net>
38592
38593         mmap-anon: avoid out-of-order autoconf expansion
38594         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38595         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38596         * modules/memchr-tests (Depends-on): Add extensions.
38597         * modules/memchr2-tests (Depends-on): Add extensions.
38598         * modules/memcmp-tests (Depends-on): Add extensions.
38599         * modules/memmem-tests (Depends-on): Add extensions.
38600         * modules/memrchr-tests (Depends-on): Add extensions.
38601
38602 2009-05-13  Bruno Haible  <bruno@clisp.org>
38603
38604         Make some tests ISO C 99 compliant.
38605         * tests/zerosize-ptr.h: New file.
38606         * tests/test-memchr.c: Include zerosize-ptr.h.
38607         (main): Use a zero-size object pointer instead of NULL.
38608         * tests/test-memchr2.c: Include zerosize-ptr.h.
38609         (main): Use a zero-size object pointer instead of NULL.
38610         * tests/test-memcmp.c: Include zerosize-ptr.h.
38611         (main): Use a zero-size object pointer instead of NULL.
38612         * tests/test-memmem.c: Include zerosize-ptr.h.
38613         (main): Use a zero-size object pointer instead of NULL.
38614         * tests/test-memrchr.c: Include zerosize-ptr.h.
38615         (main): Use a zero-size object pointer instead of NULL.
38616         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38617         m4/mmap-anon.m4.
38618         (Depends-on): Add getpagesize.
38619         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38620         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38621         m4/mmap-anon.m4.
38622         (Depends-on): Add getpagesize.
38623         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38624         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38625         m4/mmap-anon.m4.
38626         (Depends-on): Add getpagesize.
38627         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38628         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38629         m4/mmap-anon.m4.
38630         (Depends-on): Add getpagesize.
38631         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38632         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38633         m4/mmap-anon.m4.
38634         (Depends-on): Add getpagesize.
38635         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38636
38637 2009-05-12  Bruno Haible  <bruno@clisp.org>
38638
38639         Tests for module 'alignof'.
38640         * modules/alignof-tests: New file.
38641         * tests/test-alignof.c: New file.
38642
38643 2009-05-12  Bruno Haible  <bruno@clisp.org>
38644
38645         Fix alignof macro.
38646         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38647         vendor compilers that are always correct.
38648
38649 2009-05-12  Bruno Haible  <bruno@clisp.org>
38650
38651         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38652         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38653         not whether its fully works.
38654
38655 2009-05-12  Bruno Haible  <bruno@clisp.org>
38656
38657         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38658
38659 2009-05-12  Jim Meyering  <meyering@redhat.com>
38660
38661         * top/maint.mk: Adjust backslash alignment.
38662
38663 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38664
38665         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38666
38667 2009-05-11  Eric Blake  <ebb9@byu.net>
38668
38669         argp: avoid undefined behavior
38670         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38671         macros.
38672
38673 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38674
38675         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38676         user.name to prevent git commit from complaining.
38677
38678 2009-05-10  Bruno Haible  <bruno@clisp.org>
38679
38680         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38681         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38682         it rewrites every file name only once.
38683         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38684
38685 2009-05-08  Bruno Haible  <bruno@clisp.org>
38686
38687         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38688         instead of 'max'.
38689
38690 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38691
38692         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38693         sockaddr_storage test.
38694
38695 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38696
38697         * modules/sys_socket (Makefile.am): Substitute
38698         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38699         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38700         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38701         * tests/test-sys_socket.c: Check sockaddr_storage.
38702
38703 2009-05-08  Bruno Haible  <bruno@clisp.org>
38704
38705         New module 'alignof'.
38706         * lib/alignof.h: New file.
38707         * modules/alignof: New file.
38708
38709 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38710             Bruno Haible  <bruno@clisp.org>
38711
38712         Fix test-file-has-acl on FreeBSD.
38713         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38714         mask is implicitly added.
38715         * tests/test-file-has-acl.c: Include <signal.h>.
38716         (main): Terminate the test after 5 seconds.
38717         * modules/acl-tests (configure.ac): Check for alarm function.
38718
38719 2009-05-04  Bruno Haible  <bruno@clisp.org>
38720
38721         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38722         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38723         * modules/errno (configure.ac): Drop AC_REQUIRE.
38724         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38725         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38726
38727 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38728
38729         * modules/glob-tests: New module.
38730         * tests/test-glob.c: Add.
38731
38732 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38733
38734         * modules/fnmatch-tests: New module.
38735         * tests/test-fnmatch.c: Add.
38736
38737 2009-05-04  Eric Blake  <ebb9@byu.net>
38738
38739         maint: make the new no-submodule-changes rule VPATH-safe
38740         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38741
38742 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38743             Bruno Haible  <bruno@clisp.org>
38744
38745         acl: Fix infinite loop on FreeBSD.
38746         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38747         of return value from acl_get_entry.
38748         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38749         Likewise.
38750
38751 2009-05-03  Bruno Haible  <bruno@clisp.org>
38752
38753         * lib/acl-internal.h (acl_entries): Clarify return value.
38754         * lib/acl_entries.c (acl_entries): Likewise.
38755
38756 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38757
38758         Bug fix in acl module.
38759         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38760
38761 2009-05-03  Bruno Haible  <bruno@clisp.org>
38762
38763         Create gperf-generated file in the source dir, not in the build dir.
38764         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38765         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38766         * modules/unicase/locale-language (unicase/locale-languages.h):
38767         Likewise.
38768         * modules/unicase/special-casing (unicase/special-casing-table.h):
38769         Likewise.
38770         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38771         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38772         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38773         Reported by Ralf Wildenhues.
38774
38775 2009-05-03  Bruno Haible  <bruno@clisp.org>
38776
38777         * modules/fnmatch (Description, configure.ac): Taken from
38778         fnmatch-posix.
38779         * modules/fnmatch-posix: Turn into a symbolic reference to the
38780         'fnmatch' module, and deprecate.
38781         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38782
38783 2009-05-03  Bruno Haible  <bruno@clisp.org>
38784
38785         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38786         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38787         Reported by Ralf Wildenhues.
38788
38789 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38790
38791         * m4/fnmatch.m4: Fix fnmatch re-define.
38792
38793 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38794
38795         priv-set: new module and tests; adapt write-any-file
38796         * lib/priv-set.c: New file.
38797         * lib/priv-set.h: New file.
38798         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38799         * lib/write-any-file.c: Simplify by using priv-set module.
38800         * m4/priv-set.m4: New file.
38801         * modules/priv-set: New file.
38802         * modules/unlinkdir: Add dependency on priv-set module.
38803         * modules/write-any-file: Likewise.
38804
38805         Tests for module 'priv-set'.
38806         * modules/priv-set-tests: New file.
38807         * tests/test-priv-set.c: New file.
38808
38809 2009-05-03  Jim Meyering  <meyering@redhat.com>
38810             Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38813         use the converted UTF-8 variant of the name instead.
38814
38815 2009-05-03  Jim Meyering  <meyering@redhat.com>
38816
38817         tests: tighten some getdate tests
38818         * tests/test-getdate.c (main): Tighten tests: require equality,
38819         not just greater than.  Set TZ envvar to UTC0.
38820
38821 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38822
38823         getdate: correctly interpret "next monday" when run on a Monday
38824         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38825         that e.g., "next tues" (when run on a tuesday) results in a date
38826         that is one week in the future, and not today's date.
38827         I.e., add a week when the wday is the same as the current one.
38828         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38829         and earlier by Martin Bernreuther and Jan Minář.
38830         * tests/test-getdate.c (main): Check that "next DAY" is always in
38831         the future and that "last DAY" is always in the past.
38832
38833 2009-05-02  Jim Meyering  <meyering@redhat.com>
38834
38835         build: ensure that a release build fails when a submodule is unclean
38836         * top/maint.mk (no-submodule-changes): New rule.
38837         (alpha beta major): Depend on it.
38838
38839 2009-05-02  Bruno Haible  <bruno@clisp.org>
38840
38841         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38842         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38843         shell variable gl_fnmatch_required to detect which variant is
38844         requested.
38845         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38846         gl_FUNC_FNMATCH_POSIX.
38847         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38848         exclude fnmatch-posix.
38849
38850 2009-05-02  Bruno Haible  <bruno@clisp.org>
38851
38852         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38853         * modules/mbsrtowcs (License): Change to LGPLv2+.
38854         * modules/strnlen1 (License): Likewise.
38855         Reported by Simon Josefsson.
38856
38857 2009-05-02  Bruno Haible  <bruno@clisp.org>
38858
38859         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38860         "cross".
38861         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38862         gnulib-tool was called with option --source-base=lib.
38863
38864 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38865
38866         Use automake *-local hooks without commands, for extensibility.
38867         * modules/localcharset (Makefile.am): Rename install-exec-local
38868         rule to install-exec-localcharset, and make it a prerequisite of
38869         install-exec-local.  Likewise, rename the uninstall-local rule to
38870         uninstall-localcharset, and make it a prerequisite of the former.
38871
38872 2009-05-01  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38875         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38876         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38878         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38879         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38880         m4/locale-zh.m4, m4/codeset.m4.
38881
38882         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38883         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38884         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38885         m4/locale-zh.m4.
38886
38887         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38888         REPLACE_WCRTOMB if mbstate_t must be replaced.
38889         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38890         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38891
38892 2009-05-01  Bruno Haible  <bruno@clisp.org>
38893
38894         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38895         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38896         dngettext, dcngettext, textdomain, bindtextdomain,
38897         bind_textdomain_codeset): Undefine before redefining.
38898
38899 2009-04-30  Bruno Haible  <bruno@clisp.org>
38900
38901         Fix bug introduced on 2009-04-25.
38902         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38903         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38904         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38905         is defined.
38906         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38907         is defined.
38908         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38909         is defined.
38910         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38911
38912 2009-04-28  Bruno Haible  <bruno@clisp.org>
38913
38914         Comment tweaks.
38915         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38916         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38917         * lib/unicase.h (u*_casexfrm): Likewise.
38918         Reported by Paolo Bonzini.
38919
38920 2009-04-28  Bruno Haible  <bruno@clisp.org>
38921
38922         Fix a compilation error.
38923         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38924         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38925         Reported by Jim Meyering.
38926
38927 2009-04-27  Bruno Haible  <bruno@clisp.org>
38928
38929         New module 'libunistring'.
38930         * modules/libunistring: New file.
38931         * m4/libunistring.m4: New file.
38932         * MODULES.html.sh (Unicode string functions): Add it.
38933
38934 2009-04-27  Eric Blake  <ebb9@byu.net>
38935
38936         maint.mk: allow package-specific header to provide <config.h>
38937         * top/maint.mk (sc_require_config_h): New variable.
38938         (sc_require_config_h, sc_require_config_h_first): Use it.
38939
38940 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38941
38942         * top/maint.mk (sc_avoid_if_before_free): Except
38943         useless-if-before-free script.
38944
38945 2009-04-27  Eric Blake  <ebb9@byu.net>
38946
38947         maintainer-makefile: depend on all required helper scripts
38948         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38949         useless-if-before-free.
38950         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38951         version, rather than assuming gnulib checkout is available.
38952         Reported by Simen Josefsson.
38953
38954 2009-04-26  Bruno Haible  <bruno@clisp.org>
38955
38956         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38957         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38958         "../" or "..".
38959
38960 2009-04-26  Bruno Haible  <bruno@clisp.org>
38961
38962         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38963         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38964         AC_LIB_HAVE_LINKFLAGS.
38965
38966 2009-04-26  Bruno Haible  <bruno@clisp.org>
38967
38968         Simplify calling convention of u*_conv_from_encoding.
38969         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38970         u32_conv_from_encoding): Expect a resultbuf argument and return the
38971         result directly as a pointer.
38972         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38973         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38974         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38975         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38976         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38977         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38978         Update.
38979         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38980         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38981         * lib/vasnprintf.c (VASNPRINTF): Update.
38982         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38983         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38984         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38985         * NEWS: Mention the change.
38986
38987 2009-04-26  Bruno Haible  <bruno@clisp.org>
38988
38989         Simplify calling convention of u*_conv_to_encoding.
38990         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38991         u32_conv_to_encoding): Expect a resultbuf argument and return the
38992         result directly as a pointer.
38993         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38994         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38995         freeing scaled_offsets if mem_iconveha failed.
38996         * lib/unicase/u-casexfrm.h (FUNC): Update.
38997         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38998         * lib/vasnprintf.c (VASNPRINTF): Update.
38999         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39000         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39001         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39002         * NEWS: Mention the change.
39003
39004 2009-04-26  Bruno Haible  <bruno@clisp.org>
39005
39006         Avoid test failures on AIX and OSF/1.
39007         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39008         malloc(0).
39009         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39010         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39011         Likewise.
39012         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39013         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39014         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39015         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39016         * doc/posix-functions/malloc.texi: Document the portability problem
39017         related to malloc(0).
39018
39019 2009-04-26  Bruno Haible  <bruno@clisp.org>
39020
39021         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39022         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39023         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39024
39025 2009-04-25  Bruno Haible  <bruno@clisp.org>
39026
39027         Avoid link error when creating a namespace clean library.
39028         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39029         as macro with arguments if already defined as an alias.
39030         * lib/signbitf.c (gl_signbitf): Don't undefine.
39031         * lib/signbitd.c (gl_signbitd): Don't undefine.
39032         * lib/signbitl.c (gl_signbitl): Don't undefine.
39033
39034 2009-04-25  Jim Meyering  <meyering@redhat.com>
39035
39036         vc-list-files: fix another quoting bug
39037         * build-aux/vc-list-files: Avoid sed backslash expansion
39038         of pathological directory names.
39039
39040 2009-04-25  Eric Blake  <ebb9@byu.net>
39041
39042         vc-list-files: fix shell quoting error
39043         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39044         timestamp.
39045
39046 2009-04-25  Jim Meyering  <meyering@redhat.com>
39047
39048         vc-list-files: restore lost functionality with subdir argument
39049         * build-aux/vc-list-files: When given a non-"." sub-directory
39050         argument, substitute the $dir/ prefix back onto each resulting name.
39051         Otherwise, coreutils' root_tests check would fail.
39052
39053 2009-04-24  Eric Blake  <ebb9@byu.net>
39054
39055         vc-list-files: ignore git symlinks
39056         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39057         than ls-files, to ignore git symlinks.
39058
39059         maint.mk: import improvements from m4
39060         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39061         (move_if_change): Delete unused macro.
39062         (news-date-check, vc-diff-check): Support VPATH builds.
39063         (announcement): Likewise.  Split --bootstrap-tools list...
39064         (boostrap-tools): ...into separate list, which can be overridden
39065         in cfg.mk.
39066         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39067         requiring dependency on useless-if-before-free module.
39068         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39069         Support VPATH builds.
39070
39071 2009-04-24  Jim Meyering  <meyering@redhat.com>
39072
39073         maint.mk: remove coreutils-specific rules and variables
39074         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39075         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39076         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39077
39078         maint.mk: remove obsolete rule
39079         * top/maint.mk (rel-check): Remove rule.
39080         (WGET, WGETFLAGS): Remove now-unused variables.
39081
39082 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39083
39084         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39085         consistency.
39086
39087         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39088         '$(PATH_SEPARATOR)' instead of ':'.
39089
39090 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39091
39092         * lib/getopt1.c (main): Use 'const' for static array.
39093
39094 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39095
39096         * top/maint.mk: Sync with coreutils.
39097         * NEWS: Explain incompatibilities.
39098
39099 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39100             Bruno Haible  <bruno@clisp.org>
39101
39102         Fix cross-compilation results.
39103         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39104         statement, as third argument of AC_TRY_RUN.
39105         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39106         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39107         Likewise.
39108         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39109         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39110         Likewise.
39111         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39112         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39113         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39114
39115 2009-04-20  Bruno Haible  <bruno@clisp.org>
39116
39117         Avoid test failure on mingw.
39118         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39119
39120 2009-04-20  Bruno Haible  <bruno@clisp.org>
39121
39122         Avoid compilation error on mingw.
39123         * modules/localename-tests (Depends-on): Add locale.
39124
39125 2009-04-19  Bruno Haible  <bruno@clisp.org>
39126
39127         Support for building a shared library on Windows platforms.
39128         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39129         (main): Test the presence of UNINORM_NFC here.
39130         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39131         (main): Test the presence of UNINORM_NFD here.
39132         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39133         (main): Test the presence of UNINORM_NFKC here.
39134         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39135         (main): Test the presence of UNINORM_NFKD here.
39136
39137 2009-04-19  Bruno Haible  <bruno@clisp.org>
39138
39139         Avoid a compiler warning.
39140         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39141         Change type of variable 'sequence'.
39142
39143 2009-04-19  Bruno Haible  <bruno@clisp.org>
39144
39145         * modules/configmake (Makefile.am): When the contents of configmake.h
39146         does not change, arrange to preserve its modification time.
39147
39148 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39149
39150         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39151         gettext domain.
39152
39153 2009-04-16  Jim Meyering  <meyering@redhat.com>
39154
39155         useless-if-before-free: improve conversion code
39156         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39157         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39158
39159 2009-04-14  Bruno Haible  <bruno@clisp.org>
39160
39161         * modules/fcntl (Depends-on): Add extensions.
39162         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39163
39164 2009-04-12  Ben Pfaff  <blp@gnu.org>
39165
39166         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39167         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39168
39169 2009-03-20  Ben Pfaff  <blp@gnu.org>
39170
39171         Make rename replace existing destinations on Windows.
39172         * m4/rename.m4: Add test for Mingw.
39173         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39174         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39175         * doc/posix-functions/rename.texi: Document.
39176
39177 2009-04-10  Bruno Haible  <bruno@clisp.org>
39178
39179         New include file "iconveh.h".
39180         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39181         * lib/striconveh.h: Include it.
39182         (enum iconv_ilseq_handler): Remove definition.
39183         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39184         striconveh.h.
39185         * lib/striconveha.c: Include striconveh.h.
39186         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39187         * modules/striconveh (Files): Add lib/iconveh.h.
39188         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39189         lib/striconveh.h.
39190
39191 2009-04-10  Bruno Haible  <bruno@clisp.org>
39192
39193         * lib/uniconv.h: Update comment.
39194
39195 2009-04-10  Bruno Haible  <bruno@clisp.org>
39196
39197         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39198         always.
39199         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39200         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39201         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39202         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39203         "unistring-notinline.h", so that the function gets defined always.
39204         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39205         * lib/unistr/u8-uctomb.c: Likewise.
39206         * lib/unistr/u16-mbtouc.c: Likewise.
39207         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39208         * lib/unistr/u16-uctomb.c: Likewise.
39209         * lib/unistr/u32-mbtouc.c: Likewise.
39210         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39211         * lib/unistr/u32-uctomb.c: Likewise.
39212
39213 2009-04-10  Bruno Haible  <bruno@clisp.org>
39214
39215         Mark 'utime' obsolete.
39216         * modules/utime (Status, Notice): New sections.
39217         Suggested by Jim Meyering.
39218
39219         Fix cross-compile guess for utime test.
39220         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39221         autoconf.
39222         * doc/posix-functions/utime.texi: Give more precisions.
39223         Reported by Jan <ipif@ymail.com>.
39224
39225 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39226
39227         filevercmp: correct today's change
39228         * lib/filevercmp.c: Also handle coreutils' test inputs.
39229         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39230
39231         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39232         for reporting it.
39233         * lib/filevercmp.c: Special handle for "", "." and "..".
39234         * tests/test-filevercmp.c: Enlarge the set suite.
39235
39236 2009-04-07  Jim Meyering  <meyering@redhat.com>
39237
39238         useless-if-before-free: show how to remove braced useless free, too
39239         * build-aux/useless-if-before-free: still only in a comment, though.
39240
39241 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39242
39243         maint.mk: import changes to syntax-check macros from coreutils
39244         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39245         Use them in the relevant macros.
39246
39247 2009-04-06  Bruno Haible  <bruno@clisp.org>
39248
39249         Fix unportable use of bit-fields.
39250         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39251         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39252         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39253
39254 2009-04-06  Bruno Haible  <bruno@clisp.org>
39255
39256         Avoid test failures on AIX and OSF/1.
39257         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39258         that malloc(0) = NULL.
39259         * tests/unicase/test-u8-tolower.c (check): Likewise.
39260         * tests/unicase/test-u8-totitle.c (check): Likewise.
39261         * tests/unicase/test-u8-toupper.c (check): Likewise.
39262         * tests/unicase/test-u16-casefold.c (check): Likewise.
39263         * tests/unicase/test-u16-tolower.c (check): Likewise.
39264         * tests/unicase/test-u16-totitle.c (check): Likewise.
39265         * tests/unicase/test-u16-toupper.c (check): Likewise.
39266         * tests/unicase/test-u32-casefold.c (check): Likewise.
39267         * tests/unicase/test-u32-tolower.c (check): Likewise.
39268         * tests/unicase/test-u32-totitle.c (check): Likewise.
39269         * tests/unicase/test-u32-toupper.c (check): Likewise.
39270         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39271         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39272         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39273         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39274         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39275         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39276         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39277         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39278         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39279         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39280         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39281         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39282
39283 2009-04-05  Bruno Haible  <bruno@clisp.org>
39284
39285         Work around an autoconf limitation.
39286         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39287         comment line if it would be longer than 3 KB.
39288
39289 2009-04-05  Bruno Haible  <bruno@clisp.org>
39290
39291         Avoid test failure with libiconv-1.13.
39292         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39293         of the expected test results.
39294
39295 2009-04-05  Bruno Haible  <bruno@clisp.org>
39296
39297         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39298         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39299         that it should be installed.
39300
39301 2009-04-05  Bruno Haible  <bruno@clisp.org>
39302
39303         * gnulib-tool: New option --copy-file.
39304         (func_usage): Document it.
39305         (func_dest_tmpfilename): Moved out of func_import.
39306         (func_add_file, func_update_file): New functions, extracted from
39307         func_import.
39308         (func_import): Update.
39309
39310 2009-04-05  Karl Berry  <karl@gnu.org>
39311
39312         * README: prominently mention gnulib-tool.
39313         Rearrange sections so getting the code is near the top.
39314
39315 2009-04-05  Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/unicase.h: Mention u*_cmp2.
39318         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39319         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39320         * lib/unicase/ulc-casecmp.c: Likewise.
39321         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39322         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39323         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39324         unistr/u8-cmp.
39325         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39326         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39327         unistr/u16-cmp.
39328         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39329         unistr/u32-cmp.
39330
39331         * lib/uninorm.h: Mention u*_cmp2.
39332         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39333         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39334         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39335         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39336         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39337         unistr/u8-cmp.
39338         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39339         unistr/u16-cmp.
39340         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39341         unistr/u32-cmp.
39342
39343         New module 'unistr/u32-cmp2'.
39344         * lib/unistr/u32-cmp2.c: New file.
39345         * modules/unistr/u32-cmp2: New file.
39346
39347         New module 'unistr/u16-cmp2'.
39348         * lib/unistr/u16-cmp2.c: New file.
39349         * modules/unistr/u16-cmp2: New file.
39350
39351         New module 'unistr/u8-cmp2'.
39352         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39353         * lib/unistr/u8-cmp2.c: New file.
39354         * lib/unistr/u-cmp2.h: New file.
39355         * modules/unistr/u8-cmp2: New file.
39356
39357 2009-04-05  Bruno Haible  <bruno@clisp.org>
39358
39359         * lib/unictype.h (uc_property_is_valid): New macro.
39360         * tests/unictype/test-pr_byname.c (main): Use it.
39361
39362         * lib/unistr.h: Doc fixes.
39363         * lib/uniconv.h: Doc fixes.
39364         * lib/unictype.h: Doc fixes.
39365
39366 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39367
39368         Port coreutils 7.2 to Solaris 8.
39369
39370         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39371         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39372         for Solaris 8.  This is a bit of a hack, as it means it's the
39373         caller's responsibility to add -lnsl if needed, but most likely it
39374         won't be needed since only getaddrinfo uses this and getaddrinfo
39375         isn't needed on Solaris 8.
39376
39377         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39378         problem to Solaris 8 encountered with coreutils 7.2, which
39379         resulted in a message "fnmatch.c:292: warning: passing argument 4
39380         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39381         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39382
39383 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39384
39385         * m4/ld-version-script.m4: Add FIXME comment.
39386
39387 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39388
39389         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39390         SOVERSION variable.
39391
39392 2009-04-02  Bruno Haible  <bruno@clisp.org>
39393
39394         * Makefile (info, html, dvi, pdf): Combine the rules.
39395         Suggested by Jim Meyering.
39396
39397 2009-04-01  Bruno Haible  <bruno@clisp.org>
39398
39399         * Makefile (info, html, dvi, pdf): New targets.
39400         Reported by Reuben Thomas <rrt@sc3d.org>.
39401
39402 2009-04-01  Bruno Haible  <bruno@clisp.org>
39403
39404         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39405         can be put into PATH.
39406         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39407
39408 2009-04-01  Bruno Haible  <bruno@clisp.org>
39409
39410         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39411
39412 2009-04-01  Bruno Haible  <bruno@clisp.org>
39413
39414         Rename module 'visibility'.
39415         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39416         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39417         * doc/gnulib.texi: Update.
39418         * MODULES.html.sh (Misc): Update.
39419         * NEWS: Mention the change.
39420
39421 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39422
39423         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39424         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39425         Eric Blake <ebb9@byu.net> for review.
39426         * MODULES.html.sh: Add lib-msvc-compat.
39427         * doc/gnulib.texi: Link to new section.
39428         * m4/ld-output-def.m4: New file.
39429         * doc/ld-output-def.texi: New file.
39430
39431 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39432
39433         Rename ld-version-script to lib-symbol-versions.  Suggested by
39434         Bruno Haible <bruno@clisp.org>.
39435         * modules/ld-version-script: Renamed to lib-symbol-versions.
39436         * doc/ld-version-script.texi: Fix module name.
39437         * MODULES.html.sh: Add lib-symbol-versions.
39438
39439 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39440
39441         * modules/u64-tests: New file.
39442         * tests/test-u64.c: New file.
39443
39444 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39445
39446         * MODULES.html.sh: Mention u64.
39447         * modules/u64: New module.
39448         * modules/crypto/sha512: Depend on u64 module instead of providing
39449         u64.h.
39450
39451 2009-03-27  Eric Blake  <ebb9@byu.net>
39452
39453         test-strerror: make debugging EAI_SYSTEM easier
39454         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39455         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39456         failure was EAI_SYSTEM.
39457
39458 2009-03-25  Bruno Haible  <bruno@clisp.org>
39459
39460         Fix a problem with --enable-relocatable on Solaris 7.
39461         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39462         since 2008-02-24.
39463
39464 2009-03-25  Eric Blake  <ebb9@byu.net>
39465
39466         test-sockets: avoid gcc warning
39467         * tests/test-sockets.c (main): Silence compiler warning.
39468
39469 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39470
39471         New modules nproc, pthread, contributed by Glen Lenker.
39472
39473         * MODULES.html.sh: Add pthread, nproc.
39474         * lib/nproc.c: New file.
39475         * lib/nproc.h: New file.
39476         * lib/pthread.in.h: New file.
39477         * m4/pthread.m4: New file.
39478         * modules/nproc: New file.
39479         * modules/pthread: New file.
39480
39481 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39482
39483         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39484         New variable.
39485
39486 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39487
39488         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39489         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39490         * tests/test-filevercmp.c: Add tests for backup suffixes.
39491
39492 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39493
39494         * modules/stdlib (Depends-on): Add stdint, needed when defining
39495         struct random_data on, for example, HP-UX 10.20.  Reported by
39496         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39497
39498 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39499
39500         * lib/readline.c (readline): Call fflush on stdout after printing
39501         prompt.
39502
39503 2009-03-20  Bruno Haible  <bruno@clisp.org>
39504
39505         Remove dependency from 'close' module to -lws2_32 on native Windows.
39506         * lib/close-hook.h: New file.
39507         * lib/close-hook.c: New file.
39508         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39509         w32sock.h.
39510         (_gl_close_fd_maybe_socket): Remove function.
39511         (rpl_close): Invoke execute_all_close_hooks instead of
39512         _gl_close_fd_maybe_socket.
39513         * lib/sockets.c: Include close-hook.h, w32sock.h.
39514         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39515         (close_sockets_hook): New variable.
39516         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39517         (gl_sockets_cleanup): Unregister it.
39518         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39519         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39520         * modules/close-hook: New file.
39521         * modules/close (Files): Remove lib/w32sock.h.
39522         (Depends-on): Add close-hook.
39523         (Link): Remove section.
39524         * modules/sockets (Files): Add lib/w32sock.h.
39525         (Depends-on): Add close-hook.
39526         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39527         invocation.
39528         * NEWS: Mention that LIB_CLOSE is gone.
39529
39530 2009-03-23  Eric Blake  <ebb9@byu.net>
39531
39532         signal-tests: test previous patch
39533         * tests/test-signal.c: New file.
39534         * modules/signal-tests: Likewise.
39535
39536         signal.h: always support 'volatile sig_atomic_t'
39537         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39538         (gl_SIGNAL_H_DEFAULTS): Add a default.
39539         * modules/signal (Makefile.am): Substitute if needed.
39540         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39541         users can blindly add volatile.
39542         * doc/posix-headers/signal.texi (signal.h): Document it.
39543         Reported by Matthew Woehlke.
39544
39545 2009-03-23  Jim Meyering  <meyering@redhat.com>
39546
39547         pathmax: PATH_MAX: use pathconf only when available
39548         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39549         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39550         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39551         This avoids a link failure in a PSP cross-compilation environment
39552         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39553
39554         * lib/vasnprintf.c (divide): Fix typo in comment.
39555
39556 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39557
39558         * gnulib-tool (func_filter_filelist): Fix comment.
39559
39560 2009-03-20  Bruno Haible  <bruno@clisp.org>
39561
39562         Make sockets.h self-contained.
39563         * lib/sockets.c: Include sockets.h first.
39564         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39565
39566 2009-03-19  Eric Blake  <ebb9@byu.net>
39567
39568         doc: mention more functions added in cygwin 1.7.0
39569         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39570         addition.
39571         * doc/posix-functions/log2f.texi: Likewise.
39572
39573 2009-03-19  Jim Meyering  <meyering@redhat.com>
39574
39575         fsusage: avoid syntax error due to statement-before-declaration
39576         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39577         after all declarations.  Reported by Matthew Woehlke in
39578         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39579
39580 2009-03-18  Eric Blake  <ebb9@byu.net>
39581
39582         build-aux/compile: sync from automake
39583         * build-aux/compile: New file, from automake.
39584         * config/srclist.txt: Mention build-aux/compile.
39585
39586 2009-03-17  Bruno Haible  <bruno@clisp.org>
39587
39588         * lib/git-merge-changelog.c: Fix typo in comment.
39589         Reported by Reuben Thomas <rrt@sc3d.org>.
39590
39591 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39592
39593         * m4/regex.m4: update and improve help for
39594         --without-included-regex.
39595
39596 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39597
39598         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39599         failure on missing include files.
39600
39601 2009-03-17  Eric Blake  <ebb9@byu.net>
39602
39603         doc: mention more functions added in cygwin 1.7.0
39604         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39605         addition.
39606         * doc/posix-functions/fwscanf.texi: Likewise.
39607         * doc/posix-functions/swprintf.texi: Likewise.
39608         * doc/posix-functions/swscanf.texi: Likewise.
39609         * doc/posix-functions/vfwprintf.texi: Likewise.
39610         * doc/posix-functions/vfwscanf.texi: Likewise.
39611         * doc/posix-functions/vswprintf.texi: Likewise.
39612         * doc/posix-functions/vswscanf.texi: Likewise.
39613         * doc/posix-functions/vwprintf.texi: Likewise.
39614         * doc/posix-functions/vwscanf.texi: Likewise.
39615         * doc/posix-functions/wcscasecmp.texi: Likewise.
39616         * doc/posix-functions/wcsdup.texi: Likewise.
39617         * doc/posix-functions/wcsftime.texi: Likewise.
39618         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39619         * doc/posix-functions/wprintf.texi: Likewise.
39620         * doc/posix-functions/wscanf.texi: Likewise.
39621         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39622
39623 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39624
39625         maint.mk: really add $(AM_MAKEFLAGS)
39626         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39627         was inadvertently omitted in the last commit.
39628         Spotted by Bruno Haible.
39629
39630         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39631         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39632         $(AM_MAKEFLAGS)' rather than plain `make'.
39633
39634         gnulib-tool: execute $MAKE not make
39635         * gnulib-tool: Default $MAKE to 'make'.
39636         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39637         than make.  Initialize $MAKE in the do-autobuild script.
39638
39639         gnulib-tool: use $MAKE not make in generated files
39640         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39641         make, in generated files.  Initialize $MAKE in the do-autobuild
39642         script.
39643
39644         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39645
39646         GNUmakefile: disable parallelism only for multiple, recursive targets
39647         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39648         additions in the Makefile.
39649         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39650         by Automake.
39651         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39652         are listed on the command line and at least one of them is
39653         listed in $(ALL_RECURSIVE_TARGETS).
39654
39655 2009-03-14  Bruno Haible  <bruno@clisp.org>
39656
39657         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39658         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39659         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39660         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39661         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39662         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39663         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39664         unistr/u8-uctomb.
39665         * modules/unistr/u8-strchr (Depends-on): Likewise.
39666         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39667         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39668         unistr/u16-uctomb.
39669         * modules/unistr/u16-strchr (Depends-on): Likewise.
39670         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39671
39672 2009-03-12  Bruno Haible  <bruno@clisp.org>
39673
39674         Work around select() bug on Interix 3.5.
39675         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39676         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39677         * m4/select.m4: New file.
39678         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39679         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39680         * modules/select (Files): Add m4/select.m4.
39681         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39682         * modules/nanosleep (Depends-on): Add select.
39683         * modules/poll (Depends-on): Likewise.
39684         * doc/posix-functions/select.texi: Mention the Interix bug.
39685         Reported by Markus Duft <mduft@gentoo.org>.
39686
39687         * lib/select.c: Renamed from lib/winsock-select.c.
39688         * modules/select (Files): Add lib/select.c, remove
39689         lib/winsock-select.c.
39690         (configure.ac): Update.
39691
39692 2009-03-12  Jim Meyering  <meyering@redhat.com>
39693
39694         avoid gcc warnings about unused macro definitions
39695         * lib/readtokens.c (STREQ): Remove unused definition.
39696         * lib/xmalloc.c (SIZE_MAX): Likewise.
39697         * lib/openat-die.c (N_): Likewise.
39698         * lib/mountlist.c (SIZE_MAX): Remove definition.
39699         Instead, include <stdint.h>.
39700         * lib/readutmp.c: Likewise.
39701         * modules/readutmp (Depends-on): Add stdint.
39702         * modules/mountlist (Depends-on): Add stdint.
39703         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39704
39705 2009-03-10  Bruno Haible  <bruno@clisp.org>
39706
39707         Tests for module 'mbmemcasecoll'.
39708         * modules/mbmemcasecoll-tests: New file.
39709         * tests/test-mbmemcasecoll1.sh: New file.
39710         * tests/test-mbmemcasecoll2.sh: New file.
39711         * tests/test-mbmemcasecoll3.sh: New file.
39712         * tests/test-mbmemcasecoll.c: New file.
39713
39714         New module 'mbmemcasecoll'.
39715         * lib/mbmemcasecoll.h: New file.
39716         * lib/mbmemcasecoll.c: New file.
39717         * modules/mbmemcasecoll: New file.
39718
39719         * tests/test-mbmemcasecmp.h: New file, extracted from
39720         tests/test-mbmemcasecmp.c.
39721         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39722         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39723         (main): Update.
39724         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39725
39726 2009-03-09  Bruno Haible  <bruno@clisp.org>
39727
39728         Tests for module 'mbmemcasecmp'.
39729         * modules/mbmemcasecmp-tests: New file.
39730         * tests/test-mbmemcasecmp1.sh: New file.
39731         * tests/test-mbmemcasecmp2.sh: New file.
39732         * tests/test-mbmemcasecmp3.sh: New file.
39733         * tests/test-mbmemcasecmp.c: New file.
39734
39735         New module 'mbmemcasecmp'.
39736         * lib/mbmemcasecmp.h: New file.
39737         * lib/mbmemcasecmp.c: New file.
39738         * modules/mbmemcasecmp: New file.
39739
39740 2009-03-09  Bruno Haible  <bruno@clisp.org>
39741
39742         Tests for module 'unicase/ulc-casecoll'.
39743         * modules/unicase/ulc-casecoll-tests: New file.
39744         * tests/unicase/test-ulc-casecoll1.sh: New file.
39745         * tests/unicase/test-ulc-casecoll2.sh: New file.
39746         * tests/unicase/test-ulc-casecoll.c: New file.
39747
39748         New module 'unicase/ulc-casecoll'.
39749         * lib/unicase.h (ulc_casecoll): New declaration.
39750         * lib/unicase/ulc-casecoll.c: New file.
39751         * modules/unicase/ulc-casecoll: New file.
39752
39753         New module 'unicase/ulc-casexfrm'.
39754         * lib/unicase.h (ulc_casexfrm): New declaration.
39755         * lib/unicase/ulc-casexfrm.c: New file.
39756         * modules/unicase/ulc-casexfrm: New file.
39757
39758 2009-03-09  Bruno Haible  <bruno@clisp.org>
39759
39760         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39761         invocations.
39762
39763         * m4/mbscasecmp.m4: Remove file.
39764         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39765         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39766
39767         * m4/mbscasestr.m4: Remove file.
39768         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39769         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39770
39771         * m4/mbschr.m4: Remove file.
39772         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39773         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39774
39775         * m4/mbscspn.m4: Remove file.
39776         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39777         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39778
39779         * m4/mbslen.m4: Remove file.
39780         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39781         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39782
39783         * m4/mbsncasecmp.m4: Remove file.
39784         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39785         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39786
39787         * m4/mbsnlen.m4: Remove file.
39788         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39789         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39790
39791         * m4/mbspbrk.m4: Remove file.
39792         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39793         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39794
39795         * m4/mbspcasecmp.m4: Remove file.
39796         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39797         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39798
39799         * m4/mbsrchr.m4: Remove file.
39800         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39801         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39802
39803         * m4/mbssep.m4: Remove file.
39804         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39805         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39806
39807         * m4/mbsspn.m4: Remove file.
39808         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39809         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39810
39811         * m4/mbsstr.m4: Remove file.
39812         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39813         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39814
39815         * m4/mbstok_r.m4: Remove file.
39816         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39817         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39818
39819         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39820
39821         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39822         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39823
39824         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39825
39826 2009-03-08  Bruno Haible  <bruno@clisp.org>
39827
39828         Tests for module 'unicase/ulc-casecmp'.
39829         * modules/unicase/ulc-casecmp-tests: New file.
39830         * tests/unicase/test-ulc-casecmp1.sh: New file.
39831         * tests/unicase/test-ulc-casecmp2.sh: New file.
39832         * tests/unicase/test-ulc-casecmp.c: New file.
39833
39834         New module 'unicase/ulc-casecmp'.
39835         * lib/unicase.h (ulc_casecmp): New declaration.
39836         * lib/unicase/ulc-casecmp.c: New file.
39837         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39838         'const SRC_UNIT *'.
39839         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39840         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39841         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39842         * modules/unicase/ulc-casecmp: New file.
39843
39844         Tests for module 'unicase/u32-is-cased'.
39845         * modules/unicase/u32-is-cased-tests: New file.
39846         * tests/unicase/test-u32-is-cased.c: New file.
39847
39848         Tests for module 'unicase/u16-is-cased'.
39849         * modules/unicase/u16-is-cased-tests: New file.
39850         * tests/unicase/test-u16-is-cased.c: New file.
39851
39852         Tests for module 'unicase/u8-is-cased'.
39853         * modules/unicase/u8-is-cased-tests: New file.
39854         * tests/unicase/test-u8-is-cased.c: New file.
39855         * tests/unicase/test-is-cased.h: New file.
39856
39857         New module 'unicase/u32-is-cased'.
39858         * lib/unicase/u32-is-cased.c: New file.
39859         * modules/unicase/u32-is-cased: New file.
39860
39861         New module 'unicase/u16-is-cased'.
39862         * lib/unicase/u16-is-cased.c: New file.
39863         * modules/unicase/u16-is-cased: New file.
39864
39865         New module 'unicase/u8-is-cased'.
39866         * lib/unicase/u8-is-cased.c: New file.
39867         * lib/unicase/u-is-cased.h: New file.
39868         * modules/unicase/u8-is-cased: New file.
39869
39870         Tests for module 'unicase/u32-is-casefolded'.
39871         * modules/unicase/u32-is-casefolded-tests: New file.
39872         * tests/unicase/test-u32-is-casefolded.c: New file.
39873
39874         Tests for module 'unicase/u16-is-casefolded'.
39875         * modules/unicase/u16-is-casefolded-tests: New file.
39876         * tests/unicase/test-u16-is-casefolded.c: New file.
39877
39878         Tests for module 'unicase/u8-is-casefolded'.
39879         * modules/unicase/u8-is-casefolded-tests: New file.
39880         * tests/unicase/test-u8-is-casefolded.c: New file.
39881         * tests/unicase/test-is-casefolded.h: New file.
39882
39883         New module 'unicase/u32-is-casefolded'.
39884         * lib/unicase/u32-is-casefolded.c: New file.
39885         * modules/unicase/u32-is-casefolded: New file.
39886
39887         New module 'unicase/u16-is-casefolded'.
39888         * lib/unicase/u16-is-casefolded.c: New file.
39889         * modules/unicase/u16-is-casefolded: New file.
39890
39891         New module 'unicase/u8-is-casefolded'.
39892         * lib/unicase/u8-is-casefolded.c: New file.
39893         * modules/unicase/u8-is-casefolded: New file.
39894
39895         Tests for module 'unicase/u32-is-titlecase'.
39896         * modules/unicase/u32-is-titlecase-tests: New file.
39897         * tests/unicase/test-u32-is-titlecase.c: New file.
39898
39899         Tests for module 'unicase/u16-is-titlecase'.
39900         * modules/unicase/u16-is-titlecase-tests: New file.
39901         * tests/unicase/test-u16-is-titlecase.c: New file.
39902
39903         Tests for module 'unicase/u8-is-titlecase'.
39904         * modules/unicase/u8-is-titlecase-tests: New file.
39905         * tests/unicase/test-u8-is-titlecase.c: New file.
39906         * tests/unicase/test-is-titlecase.h: New file.
39907
39908         New module 'unicase/u32-is-titlecase'.
39909         * lib/unicase/u32-is-titlecase.c: New file.
39910         * modules/unicase/u32-is-titlecase: New file.
39911
39912         New module 'unicase/u16-is-titlecase'.
39913         * lib/unicase/u16-is-titlecase.c: New file.
39914         * modules/unicase/u16-is-titlecase: New file.
39915
39916         New module 'unicase/u8-is-titlecase'.
39917         * lib/unicase/u8-is-titlecase.c: New file.
39918         * modules/unicase/u8-is-titlecase: New file.
39919
39920         Tests for module 'unicase/u32-is-lowercase'.
39921         * modules/unicase/u32-is-lowercase-tests: New file.
39922         * tests/unicase/test-u32-is-lowercase.c: New file.
39923
39924         Tests for module 'unicase/u16-is-lowercase'.
39925         * modules/unicase/u16-is-lowercase-tests: New file.
39926         * tests/unicase/test-u16-is-lowercase.c: New file.
39927
39928         Tests for module 'unicase/u8-is-lowercase'.
39929         * modules/unicase/u8-is-lowercase-tests: New file.
39930         * tests/unicase/test-u8-is-lowercase.c: New file.
39931         * tests/unicase/test-is-lowercase.h: New file.
39932
39933         New module 'unicase/u32-is-lowercase'.
39934         * lib/unicase/u32-is-lowercase.c: New file.
39935         * modules/unicase/u32-is-lowercase: New file.
39936
39937         New module 'unicase/u16-is-lowercase'.
39938         * lib/unicase/u16-is-lowercase.c: New file.
39939         * modules/unicase/u16-is-lowercase: New file.
39940
39941         New module 'unicase/u8-is-lowercase'.
39942         * lib/unicase/u8-is-lowercase.c: New file.
39943         * modules/unicase/u8-is-lowercase: New file.
39944
39945         Tests for module 'unicase/u32-is-uppercase'.
39946         * modules/unicase/u32-is-uppercase-tests: New file.
39947         * tests/unicase/test-u32-is-uppercase.c: New file.
39948
39949         Tests for module 'unicase/u16-is-uppercase'.
39950         * modules/unicase/u16-is-uppercase-tests: New file.
39951         * tests/unicase/test-u16-is-uppercase.c: New file.
39952
39953         Tests for module 'unicase/u8-is-uppercase'.
39954         * modules/unicase/u8-is-uppercase-tests: New file.
39955         * tests/unicase/test-u8-is-uppercase.c: New file.
39956         * tests/unicase/test-is-uppercase.h: New file.
39957
39958         New module 'unicase/u32-is-uppercase'.
39959         * lib/unicase/u32-is-uppercase.c: New file.
39960         * modules/unicase/u32-is-uppercase: New file.
39961
39962         New module 'unicase/u16-is-uppercase'.
39963         * lib/unicase/u16-is-uppercase.c: New file.
39964         * modules/unicase/u16-is-uppercase: New file.
39965
39966         New module 'unicase/u8-is-uppercase'.
39967         * lib/unicase/u8-is-uppercase.c: New file.
39968         * modules/unicase/u8-is-uppercase: New file.
39969
39970         New module 'unicase/u32-is-invariant'.
39971         * lib/unicase/u32-is-invariant.c: New file.
39972         * modules/unicase/u32-is-invariant: New file.
39973
39974         New module 'unicase/u16-is-invariant'.
39975         * lib/unicase/u16-is-invariant.c: New file.
39976         * modules/unicase/u16-is-invariant: New file.
39977
39978         New module 'unicase/u8-is-invariant'.
39979         * lib/unicase/u8-is-invariant.c: New file.
39980         * lib/unicase/invariant.h: New file.
39981         * lib/unicase/u-is-invariant.h: New file.
39982         * modules/unicase/u8-is-invariant: New file.
39983
39984         Tests for module 'unicase/u32-casecoll'.
39985         * modules/unicase/u32-casecoll-tests: New file.
39986         * tests/unicase/test-u32-casecoll.c: New file.
39987
39988         Tests for module 'unicase/u16-casecoll'.
39989         * modules/unicase/u16-casecoll-tests: New file.
39990         * tests/unicase/test-u16-casecoll.c: New file.
39991
39992         Tests for module 'unicase/u8-casecoll'.
39993         * modules/unicase/u8-casecoll-tests: New file.
39994         * tests/unicase/test-u8-casecoll.c: New file.
39995
39996         New module 'unicase/u32-casecoll'.
39997         * lib/unicase/u32-casecoll.c: New file.
39998         * modules/unicase/u32-casecoll: New file.
39999
40000         New module 'unicase/u16-casecoll'.
40001         * lib/unicase/u16-casecoll.c: New file.
40002         * modules/unicase/u16-casecoll: New file.
40003
40004         New module 'unicase/u8-casecoll'.
40005         * lib/unicase/u8-casecoll.c: New file.
40006         * lib/unicase/u-casecoll.h: New file.
40007         * modules/unicase/u8-casecoll: New file.
40008
40009         New module 'unicase/u32-casexfrm'.
40010         * lib/unicase/u32-casexfrm.c: New file.
40011         * modules/unicase/u32-casexfrm: New file.
40012
40013         New module 'unicase/u16-casexfrm'.
40014         * lib/unicase/u16-casexfrm.c: New file.
40015         * modules/unicase/u16-casexfrm: New file.
40016
40017         New module 'unicase/u8-casexfrm'.
40018         * lib/unicase/u8-casexfrm.c: New file.
40019         * lib/unicase/u-casexfrm.h: New file.
40020         * modules/unicase/u8-casexfrm: New file.
40021
40022         Tests for module 'unicase/u32-casecmp'.
40023         * modules/unicase/u32-casecmp-tests: New file.
40024         * tests/unicase/test-u32-casecmp.c: New file.
40025
40026         Tests for module 'unicase/u16-casecmp'.
40027         * modules/unicase/u16-casecmp-tests: New file.
40028         * tests/unicase/test-u16-casecmp.c: New file.
40029
40030         Tests for module 'unicase/u8-casecmp'.
40031         * modules/unicase/u8-casecmp-tests: New file.
40032         * tests/unicase/test-u8-casecmp.c: New file.
40033         * tests/unicase/test-casecmp.h: New file.
40034
40035         New module 'unicase/u32-casecmp'.
40036         * lib/unicase/u32-casecmp.c: New file.
40037         * modules/unicase/u32-casecmp: New file.
40038
40039         New module 'unicase/u16-casecmp'.
40040         * lib/unicase/u16-casecmp.c: New file.
40041         * modules/unicase/u16-casecmp: New file.
40042
40043         New module 'unicase/u8-casecmp'.
40044         * lib/unicase/u8-casecmp.c: New file.
40045         * lib/unicase/u-casecmp.h: New file.
40046         * modules/unicase/u8-casecmp: New file.
40047
40048         Tests for module 'unicase/u32-casefold'.
40049         * modules/unicase/u32-casefold-tests: New file.
40050         * tests/unicase/test-u32-casefold.c: New file.
40051
40052         Tests for module 'unicase/u16-casefold'.
40053         * modules/unicase/u16-casefold-tests: New file.
40054         * tests/unicase/test-u16-casefold.c: New file.
40055
40056         Tests for module 'unicase/u8-casefold'.
40057         * modules/unicase/u8-casefold-tests: New file.
40058         * tests/unicase/test-u8-casefold.c: New file.
40059
40060         New module 'unicase/u32-casefold'.
40061         * lib/unicase/u32-casefold.c: New file.
40062         * modules/unicase/u32-casefold: New file.
40063
40064         New module 'unicase/u16-casefold'.
40065         * lib/unicase/u16-casefold.c: New file.
40066         * modules/unicase/u16-casefold: New file.
40067
40068         New module 'unicase/u8-casefold'.
40069         * lib/unicase/u8-casefold.c: New file.
40070         * lib/unicase/u-casefold.h: New file.
40071         * modules/unicase/u8-casefold: New file.
40072
40073         New module 'unicase/tocasefold'.
40074         * lib/unicase/casefold.h: New file.
40075         * lib/unicase/tocasefold.c: New file.
40076         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40077         * modules/unicase/tocasefold: New file.
40078
40079         Tests for module 'unicase/u32-totitle'.
40080         * modules/unicase/u32-totitle-tests: New file.
40081         * tests/unicase/test-u32-totitle.c: New file.
40082
40083         Tests for module 'unicase/u16-totitle'.
40084         * modules/unicase/u16-totitle-tests: New file.
40085         * tests/unicase/test-u16-totitle.c: New file.
40086
40087         Tests for module 'unicase/u8-totitle'.
40088         * modules/unicase/u8-totitle-tests: New file.
40089         * tests/unicase/test-u8-totitle.c: New file.
40090
40091         New module 'unicase/u32-totitle'.
40092         * lib/unicase/u32-totitle.c: New file.
40093         * modules/unicase/u32-totitle: New file.
40094
40095         New module 'unicase/u16-totitle'.
40096         * lib/unicase/u16-totitle.c: New file.
40097         * modules/unicase/u16-totitle: New file.
40098
40099         New module 'unicase/u8-totitle'.
40100         * lib/unicase/u8-totitle.c: New file.
40101         * lib/unicase/u-totitle.h: New file.
40102         * modules/unicase/u8-totitle: New file.
40103
40104         Tests for module 'unicase/u32-tolower'.
40105         * modules/unicase/u32-tolower-tests: New file.
40106         * tests/unicase/test-u32-tolower.c: New file.
40107
40108         Tests for module 'unicase/u16-tolower'.
40109         * modules/unicase/u16-tolower-tests: New file.
40110         * tests/unicase/test-u16-tolower.c: New file.
40111
40112         Tests for module 'unicase/u8-tolower'.
40113         * modules/unicase/u8-tolower-tests: New file.
40114         * tests/unicase/test-u8-tolower.c: New file.
40115
40116         New module 'unicase/u32-tolower'.
40117         * lib/unicase/u32-tolower.c: New file.
40118         * modules/unicase/u32-tolower: New file.
40119
40120         New module 'unicase/u16-tolower'.
40121         * lib/unicase/u16-tolower.c: New file.
40122         * modules/unicase/u16-tolower: New file.
40123
40124         New module 'unicase/u8-tolower'.
40125         * lib/unicase/u8-tolower.c: New file.
40126         * modules/unicase/u8-tolower: New file.
40127
40128         Tests for module 'unicase/u32-toupper'.
40129         * modules/unicase/u32-toupper-tests: New file.
40130         * tests/unicase/test-u32-toupper.c: New file.
40131
40132         Tests for module 'unicase/u16-toupper'.
40133         * modules/unicase/u16-toupper-tests: New file.
40134         * tests/unicase/test-u16-toupper.c: New file.
40135
40136         Tests for module 'unicase/u8-toupper'.
40137         * modules/unicase/u8-toupper-tests: New file.
40138         * tests/unicase/test-u8-toupper.c: New file.
40139
40140         New module 'unicase/u32-toupper'.
40141         * lib/unicase/u32-toupper.c: New file.
40142         * modules/unicase/u32-toupper: New file.
40143
40144         New module 'unicase/u16-toupper'.
40145         * lib/unicase/u16-toupper.c: New file.
40146         * modules/unicase/u16-toupper: New file.
40147
40148         New module 'unicase/u8-toupper'.
40149         * lib/unicase/u8-toupper.c: New file.
40150         * modules/unicase/u8-toupper: New file.
40151
40152         New module 'unicase/u32-casemap'.
40153         * lib/unicase/u32-casemap.c: New file.
40154         * modules/unicase/u32-casemap: New file.
40155
40156         New module 'unicase/u16-casemap'.
40157         * lib/unicase/u16-casemap.c: New file.
40158         * modules/unicase/u16-casemap: New file.
40159
40160         New module 'unicase/u8-casemap'.
40161         * lib/unicase/unicasemap.h: New file.
40162         * lib/unicase/u8-casemap.c: New file.
40163         * lib/unicase/u-casemap.h: New file.
40164         * modules/unicase/u8-casemap: New file.
40165
40166         New module 'unicase/special-casing'.
40167         * lib/unicase/special-casing.h: New file.
40168         * lib/unicase/special-casing.c: New file.
40169         * lib/unicase/special-casing-table.gperf: New file, generated by
40170         gen-uni-tables.c.
40171         * modules/unicase/special-casing: New file.
40172
40173         Tests for module 'unicase/locale-language'.
40174         * modules/unicase/locale-language-tests: New file.
40175         * tests/unicase/test-locale-language.sh: New file.
40176         * tests/unicase/test-locale-language.c: New file.
40177
40178         New module 'unicase/locale-language'.
40179         * lib/unicase/locale-language.c: New file.
40180         * lib/unicase/locale-languages.gperf: New file.
40181         * modules/unicase/locale-language: New file.
40182
40183         Generate more tables for case conversion and case folding.
40184         * lib/gen-uni-tables.c (SCC_*): New enum items.
40185         (struct special_casing_rule): New type.
40186         (casing_rules, num_casing_rules, allocated_casing_rules): New
40187         variables.
40188         (add_casing_rule, fill_casing_rules): New functions.
40189         (struct casefold_rule): New type.
40190         (casefolding_rules, num_casefolding_rules,
40191         allocated_casefolding_rules): New variables.
40192         (fill_casefolding_rules): New function.
40193         (unicode_casefold): New variable.
40194         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40195         sort_casing_rules, output_casing_rules): New functions.
40196         (main): Accept to more arguments: SpecialCasing.txt and
40197         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40198         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40199         Output mapping for casefolding.
40200
40201         * lib/unicase.h: Include stdbool.h, uninorm.h.
40202         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40203         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40204         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40205         arguments.
40206         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40207         resultp arguments.
40208         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40209         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40210         resultp arguments.
40211         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40212         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40213         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40214         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40215         declarations.
40216         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40217
40218 2009-03-08  Bruno Haible  <bruno@clisp.org>
40219
40220         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40221         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40222         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40223         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40224
40225 2009-03-07  Bruno Haible  <bruno@clisp.org>
40226
40227         Adjust u*_normcmp, u*_normcoll API.
40228         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40229         u16_normcoll, u32_normcoll): Change failure conventions.
40230         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40231         errno and return -1.
40232         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40233
40234 2009-03-07  Bruno Haible  <bruno@clisp.org>
40235
40236         Tests for module 'uninorm/u32-normcoll'.
40237         * modules/uninorm/u32-normcoll-tests: New file.
40238         * tests/uninorm/test-u32-normcoll.c: New file.
40239
40240         Tests for module 'uninorm/u16-normcoll'.
40241         * modules/uninorm/u16-normcoll-tests: New file.
40242         * tests/uninorm/test-u16-normcoll.c: New file.
40243
40244         Tests for module 'uninorm/u8-normcoll'.
40245         * modules/uninorm/u8-normcoll-tests: New file.
40246         * tests/uninorm/test-u8-normcoll.c: New file.
40247
40248 2009-03-07  Bruno Haible  <bruno@clisp.org>
40249
40250         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40251         tests/uninorm/test-u32-normcmp.c.
40252         * tests/uninorm/test-u32-normcmp.c: Include it.
40253         (test_nonascii): New function, extracted from main. Add some more
40254         tests.
40255         (main): Invoke test_ascii and test_nonascii.
40256         * modules/uninorm/u32-normcmp-tests (Files): Add
40257         tests/uninorm/test-u32-normcmp.h.
40258         (Depends-on): Remove uninorm/u32-normcmp.
40259
40260         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40261         tests/uninorm/test-u16-normcmp.c.
40262         * tests/uninorm/test-u16-normcmp.c: Include it.
40263         (test_nonascii): New function, extracted from main. Add some more
40264         tests.
40265         (main): Invoke test_ascii and test_nonascii.
40266         * modules/uninorm/u16-normcmp-tests (Files): Add
40267         tests/uninorm/test-u16-normcmp.h.
40268         (Depends-on): Remove uninorm/u16-normcmp.
40269
40270         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40271         tests/uninorm/test-u8-normcmp.c.
40272         * tests/uninorm/test-u8-normcmp.c: Include it.
40273         (test_nonascii): New function, extracted from main. Add some more
40274         tests.
40275         (main): Invoke test_ascii and test_nonascii.
40276         * modules/uninorm/u8-normcmp-tests (Files): Add
40277         tests/uninorm/test-u8-normcmp.h.
40278         (Depends-on): Remove uninorm/u8-normcmp.
40279
40280 2009-03-07  Bruno Haible  <bruno@clisp.org>
40281
40282         New module 'uninorm/u32-normcoll'.
40283         * lib/uninorm/u32-normcoll.c: New file.
40284         * modules/uninorm/u32-normcoll: New file.
40285
40286         New module 'uninorm/u16-normcoll'.
40287         * lib/uninorm/u16-normcoll.c: New file.
40288         * modules/uninorm/u16-normcoll: New file.
40289
40290         New module 'uninorm/u8-normcoll'.
40291         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40292         declarations.
40293         * lib/uninorm/u8-normcoll.c: New file.
40294         * lib/uninorm/u-normcoll.h: New file.
40295         * modules/uninorm/u8-normcoll: New file.
40296
40297         New module 'uninorm/u32-normxfrm'.
40298         * lib/uninorm/u32-normxfrm.c: New file.
40299         * modules/uninorm/u32-normxfrm: New file.
40300
40301         New module 'uninorm/u16-normxfrm'.
40302         * lib/uninorm/u16-normxfrm.c: New file.
40303         * modules/uninorm/u16-normxfrm: New file.
40304
40305         New module 'uninorm/u8-normxfrm'.
40306         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40307         declarations.
40308         * lib/uninorm/u8-normxfrm.c: New file.
40309         * lib/uninorm/u-normxfrm.h: New file.
40310         * modules/uninorm/u8-normxfrm: New file.
40311
40312 2009-03-07  Bruno Haible  <bruno@clisp.org>
40313
40314         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40315         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40316         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40317
40318 2009-03-07  Bruno Haible  <bruno@clisp.org>
40319
40320         New module 'memxfrm'.
40321         * lib/memxfrm.h: New file.
40322         * lib/memxfrm.c: New file.
40323         * modules/memxfrm: New file.
40324
40325 2009-03-07  Bruno Haible  <bruno@clisp.org>
40326
40327         New module 'memcmp2'.
40328         * lib/memcmp2.h: New file.
40329         * lib/memcmp2.c: New file.
40330         * modules/memcmp2: New file.
40331
40332 2009-03-07  Bruno Haible  <bruno@clisp.org>
40333
40334         Tests for module 'uninorm/decomposing-form'.
40335         * modules/uninorm/decomposing-form-tests: New file.
40336         * tests/uninorm/test-decomposing-form.c: New file.
40337
40338         New module 'uninorm/decomposing-form'.
40339         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40340         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40341         Add 'decomposing_variant' field.
40342         * lib/uninorm/decomposing-form.c: New file.
40343         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40344         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40345         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40346         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40347         * modules/uninorm/decomposing-form: New file.
40348         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40349         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40350
40351 2009-03-07  Bruno Haible  <bruno@clisp.org>
40352
40353         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40354         strings.
40355
40356 2009-03-06  Bruno Haible  <bruno@clisp.org>
40357
40358         Tests for module 'uninorm/u32-normcmp'.
40359         * tests/uninorm/test-u32-normcmp.c: New file.
40360         * modules/uninorm/u32-normcmp-tests: New file.
40361
40362         Tests for module 'uninorm/u16-normcmp'.
40363         * tests/uninorm/test-u16-normcmp.c: New file.
40364         * modules/uninorm/u16-normcmp-tests: New file.
40365
40366         Tests for module 'uninorm/u8-normcmp'.
40367         * tests/uninorm/test-u8-normcmp.c: New file.
40368         * modules/uninorm/u8-normcmp-tests: New file.
40369
40370         New module 'uninorm/u32-normcmp'.
40371         * lib/uninorm/u32-normcmp.c: New file.
40372         * modules/uninorm/u32-normcmp: New file.
40373
40374         New module 'uninorm/u16-normcmp'.
40375         * lib/uninorm/u16-normcmp.c: New file.
40376         * modules/uninorm/u16-normcmp: New file.
40377
40378         New module 'uninorm/u8-normcmp'.
40379         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40380         declarations.
40381         * lib/uninorm/u8-normcmp.c: New file.
40382         * lib/uninorm/u-normcmp.h: New file.
40383         * modules/uninorm/u8-normcmp: New file.
40384
40385 2009-03-06  Bruno Haible  <bruno@clisp.org>
40386
40387         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40388         Reported by Eric Blake.
40389
40390 2009-03-06  Eric Blake  <ebb9@byu.net>
40391             Bruno Haible  <bruno@clisp.org>
40392
40393         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40394         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40395         condition.
40396         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40397         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40398         condition.
40399         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40400
40401 2009-03-06  Eric Blake  <ebb9@byu.net>
40402
40403         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40404         to avoid compiler warnings.
40405         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40406
40407 2009-03-05  Bruno Haible  <bruno@clisp.org>
40408
40409         * tests/test-ftell.c (main): Disable test beyond end of file on
40410         FreeMiNT.
40411         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40412
40413 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40414
40415         * lib/filevercmp.c: Move hidden files up in ordering.
40416         * tests/test-filevercmp.c: Add tests for hidden files.
40417
40418 2009-03-04  Bruno Haible  <bruno@clisp.org>
40419
40420         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40421         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40422         AM_CFLAGS.
40423         Reported by Simon Josefsson.
40424
40425 2009-03-03  Bruno Haible  <bruno@clisp.org>
40426
40427         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40428         Reported by Simon Josefsson.
40429
40430         * doc/ld-version-script.texi: Update node reference.
40431
40432 2009-03-03  Bruno Haible  <bruno@clisp.org>
40433
40434         * modules/visibility (License): Change to 'unlimited'.
40435         Suggested by Simon Josefsson.
40436
40437 2009-03-03  Jim Meyering  <meyering@redhat.com>
40438
40439         unlinkdir: cannot_unlink_dir may modify process state
40440         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40441         it's neither thread-safe nor appropriate for use in a library.
40442
40443 2009-03-03  Eric Blake  <ebb9@byu.net>
40444
40445         test-closein: silence test under Darwin
40446         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40447         care if it dies from EPIPE or EBADF.
40448
40449 2009-03-03  Bruno Haible  <bruno@clisp.org>
40450
40451         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40452         earlier.
40453         * doc/visibility.texi: Fix @node and @section.
40454
40455 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40456
40457         * doc/gnulib.texi: Link to sections for ld version script and
40458         visibility.
40459         * doc/visibility.texi: Add @node and @section.
40460         * modules/ld-version-script: New module.
40461         * m4/ld-version-script.m4: New file.
40462         * doc/ld-version-script.texi: New file.
40463
40464 2009-03-02  David Lutterkort  <lutter@redhat.com>
40465
40466         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40468
40469 2009-03-02  Bruno Haible  <bruno@clisp.org>
40470
40471         * doc/visibility.texi: Mention libtool's -export-symbols option.
40472
40473 2009-03-02  Jim Meyering  <meyering@redhat.com>
40474
40475         announce-gen: new option: --no-print-checksums
40476         * build-aux/announce-gen (usage): Describe it.
40477         (print_checksums): Print a newline here, not in the [*] footnote.
40478         (main): Honor it.
40479
40480 2009-03-01  Bruno Haible  <bruno@clisp.org>
40481
40482         Use socklen_t in the native Windows replacements prototypes.
40483         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40484         instead of 'int'.
40485         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40486         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40487         * modules/getsockopt (Depends-on): Add socklen.
40488         * modules/setsockopt (Depends-on): Add socklen.
40489
40490 2009-03-01  Bruno Haible  <bruno@clisp.org>
40491
40492         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40493         least 4.2.
40494
40495 2009-03-01  Eric Blake  <ebb9@byu.net>
40496             Bruno Haible  <bruno@clisp.org>
40497
40498         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40499         error messages.
40500         * lib/wait-process.c (wait_subprocess): Omit error message about
40501         deadly signal sent to the child of termsigp != NULL.
40502
40503 2009-03-01  Eric Blake  <ebb9@byu.net>
40504
40505         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40506
40507 2009-03-01  Bruno Haible  <bruno@clisp.org>
40508
40509         Avoid a gcc warning.
40510         * tests/test-sched.c (b): Make global.
40511         Reported by Eric Blake.
40512
40513 2009-01-19  Martin Lambers  <marlam@marlam.de>
40514
40515         Provide POSIX semantics for socket timeout options on W32.
40516         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40517         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40518         * modules/setsockopt: Depend on sys_time module for struct timeval.
40519         * modules/getsockopt: Depend on sys_time module for struct timeval.
40520
40521 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40522
40523         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40524         __USE_GNU, for consistency with netdb.in.h.
40525         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40526
40527 2009-03-01  Bruno Haible  <bruno@clisp.org>
40528
40529         More support for FreeMiNT.
40530         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40531         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40532
40533 2009-03-01  Bruno Haible  <bruno@clisp.org>
40534
40535         More support for FreeMiNT.
40536         * lib/fpurge.c (fpurge): Correct last commit.
40537         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40538
40539 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40540
40541         Fix unportable awk script in vc-list-files.
40542         * build-aux/vc-list-files: In the replacement awk script, use
40543         substr with a second argument of 1, not zero.
40544         Report by Simon Josefsson.
40545
40546 2009-02-28  Bruno Haible  <bruno@clisp.org>
40547
40548         More support for FreeMiNT.
40549         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40550         to FreeMiNT today.
40551         * lib/fwriting.c (fwriting): Likewise.
40552         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40553
40554 2009-02-28  Bruno Haible  <bruno@clisp.org>
40555
40556         * tests/test-freadseek.c (main): Disable test beyond end of file on
40557         FreeMiNT.
40558         * tests/test-ftello.c (main): Likewise.
40559         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40560
40561 2009-02-28  Bruno Haible  <bruno@clisp.org>
40562
40563         Add tentative support for FreeMiNT.
40564         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40565         * lib/fpurge.c (fpurge): Likewise.
40566         * lib/freadable.c (freadable): Likewise.
40567         * lib/freading.c (freading): Likewise.
40568         * lib/freadptr.c (freadptr): Likewise.
40569         * lib/freadseek.c (freadptrinc): Likewise.
40570         * lib/fseeko.c (rpl_fseeko): Likewise.
40571         * lib/fseterr.c (fseterr): Likewise.
40572         * lib/fwritable.c (fwritable): Likewise.
40573         * lib/fwriting.c (fwriting): Likewise.
40574         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40575         Hourihane.
40576         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40577
40578 2009-02-28  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40581         SIGCHLD.
40582         Reported by Jim Meyering.
40583
40584 2009-02-28  Bruno Haible  <bruno@clisp.org>
40585
40586         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40587         Mention the results of these tests on various platforms.
40588         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40589         order.
40590         * doc/posix-functions/printf.texi: Likewise.
40591         * doc/posix-functions/snprintf.texi: Likewise.
40592         * doc/posix-functions/sprintf.texi: Likewise.
40593         * doc/posix-functions/vfprintf.texi: Likewise.
40594         * doc/posix-functions/vprintf.texi: Likewise.
40595         * doc/posix-functions/vsnprintf.texi: Likewise.
40596         * doc/posix-functions/vsprintf.texi: Likewise.
40597         * doc/glibc-functions/obstack_printf.texi: Likewise.
40598         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40599
40600 2009-02-28  Bruno Haible  <bruno@clisp.org>
40601
40602         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40603         Reported by Loïc Minier <lool@dooz.org>.
40604
40605 2009-02-27  Bruno Haible  <bruno@clisp.org>
40606
40607         * gnulib-tool (func_import): Make the sed expression used to create the
40608         sed script for updating the .gitignore file POSIX compliant.
40609         Reported by Eric Blake.
40610
40611 2009-02-27  Bruno Haible  <bruno@clisp.org>
40612
40613         * gnulib-tool (sed): Don't alias as "sed --posix".
40614         Reported by Eric Blake.
40615
40616 2009-02-27  Bruno Haible  <bruno@clisp.org>
40617
40618         Avoid test link errors.
40619         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40620         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40621         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40622         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40624
40625 2009-02-27  Bruno Haible  <bruno@clisp.org>
40626
40627         Avoid spurious "(cached)" in configure output.
40628         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40629         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40630         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40631         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40632         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40633         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40634         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40635         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40636         Reported by Eric Blake.
40637
40638 2009-02-27  Eric Blake  <ebb9@byu.net>
40639
40640         printf: fix regression in previous patch
40641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40642
40643 2009-02-27  Bruno Haible  <bruno@clisp.org>
40644
40645         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40646         value.
40647         * lib/stdint.in.h: Likewise.
40648         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40649
40650 2009-02-27  Eric Blake  <ebb9@byu.net>
40651
40652         doc: mention more functions added in cygwin 1.7.0
40653         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40654         addition.
40655         * doc/posix-functions/open_wmemstream.texi: Likewise.
40656         * doc/posix-functions/wcsnlen.texi: Likewise.
40657         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40658         * doc/posix-functions/wcstod.texi: Likewise.
40659         * doc/posix-functions/wcstof.texi: Likewise.
40660         * doc/posix-functions/wcstoimax.texi: Likewise.
40661         * doc/posix-functions/wcstok.texi: Likewise.
40662         * doc/posix-functions/wcstoumax.texi: Likewise.
40663
40664         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40666         * doc/posix-functions/fprintf.texi: Update.
40667         * doc/posix-functions/printf.texi: Update.
40668         * doc/posix-functions/snprintf.texi: Update.
40669         * doc/posix-functions/sprintf.texi: Update.
40670         * doc/posix-functions/vfprintf.texi: Update.
40671         * doc/posix-functions/vprintf.texi: Update.
40672         * doc/posix-functions/vsnprintf.texi: Update.
40673         * doc/posix-functions/vsprintf.texi: Update.
40674         * doc/glibc-functions/obstack_printf.texi: Update.
40675         * doc/glibc-functions/obstack_vprintf.texi: Update.
40676
40677 2009-02-26  Eric Blake  <ebb9@byu.net>
40678
40679         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40680         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40681         compilation bug by using runtime conversion.
40682         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40683         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40684         * modules/ceill-tests (Files): Use nan.h.
40685         * modules/floorl-tests (Files): Likewise.
40686         * modules/frexpl-tests (Files): Likewise.
40687         * modules/isnanl-tests (Files): Likewise.
40688         * modules/ldexpl-tests (Files): Likewise.
40689         * modules/roundl-tests (Files): Likewise.
40690         * modules/truncl-tests (Files): Likewise.
40691         * tests/test-ceill.c (main): Use a working NaN.
40692         * tests/test-floorl.c (main): Likewise.
40693         * tests/test-frexpl.c (main): Likewise.
40694         * tests/test-isnan.c (test_long_double): Likewise.
40695         * tests/test-isnanl.h (main): Likewise.
40696         * tests/test-ldexpl.h (main): Likewise.
40697         * tests/test-roundl.h (main): Likewise.
40698         * tests/test-truncl.h (main): Likewise.
40699         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40700
40701 2009-02-26  Eric Blake  <ebb9@byu.net>
40702             Bruno Haible  <bruno@clisp.org>
40703
40704         Work around a *printf bug with %ls on Solaris.
40705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40706         precision is specified, sprintf stops converting the wide string
40707         argument when the number of bytes that have been produced by this
40708         conversion equals or exceeds the precision.
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         stdlib: favor compiler check of random.h
40723         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40724         to avoid an ObjC random.h installed by Swarm.
40725
40726 2009-02-26  Bruno Haible  <bruno@clisp.org>
40727
40728         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40729         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40730         Reported by Gary V. Vaughan <gary@gnu.org>.
40731
40732 2009-02-26  Bruno Haible  <bruno@clisp.org>
40733
40734         Fix *printf behaviour regarding the %ls directive.
40735         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40736         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40737         NEED_PRINTF_DIRECTIVE_LS.
40738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40739         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40740         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40741         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40742         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40743         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40744         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40745         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40749         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40753         * doc/posix-functions/fprintf.texi: Update.
40754         * doc/posix-functions/printf.texi: Update.
40755         * doc/posix-functions/snprintf.texi: Update.
40756         * doc/posix-functions/sprintf.texi: Update.
40757         * doc/posix-functions/vfprintf.texi: Update.
40758         * doc/posix-functions/vprintf.texi: Update.
40759         * doc/posix-functions/vsnprintf.texi: Update.
40760         * doc/posix-functions/vsprintf.texi: Update.
40761         * doc/glibc-functions/obstack_printf.texi: Update.
40762         * doc/glibc-functions/obstack_vprintf.texi: Update.
40763         Reported by Eric Blake.
40764
40765 2009-02-25  Bruno Haible  <bruno@clisp.org>
40766
40767         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40768         with known value.
40769         Reported by Gary V. Vaughan <gary@gnu.org>.
40770
40771 2009-02-25  Bruno Haible  <bruno@clisp.org>
40772
40773         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40774         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40775         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40776         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40777         Reported by Gary V. Vaughan <gary@gnu.org>.
40778
40779 2009-02-25  Bruno Haible  <bruno@clisp.org>
40780
40781         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40782         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40783         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40784         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40785         Reported by Gary V. Vaughan <gary@gnu.org>.
40786
40787 2009-02-25  Eric Blake  <ebb9@byu.net>
40788
40789         tests: skip fseek/ftell tests if ungetc is broken
40790         * m4/ungetc.m4: New file.
40791         * modules/fseek-tests: Split test, so ungetc dependency is
40792         separate from rest of test.
40793         * modules/fseeko-tests: Likewise.
40794         * modules/ftell-tests: Likewise.
40795         * modules/ftello-tests: Likewise.
40796         * tests/test-fseek.c (main): Isolate ungetc dependency.
40797         * tests/test-fseeko.c (main): Likewise.
40798         * tests/test-ftell.c (main): Likewise.
40799         * tests/test-ftello.c (main): Likewise.
40800         * tests/test-fseek2.sh: New file.
40801         * tests/test-fseeko2.sh: Likewise.
40802         * tests/test-ftell2.sh: Likewise.
40803         * tests/test-ftello2.sh: Likewise.
40804
40805 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
40806
40807         test-getaddrinfo: fix usage of skip return code 77
40808         * tests/test-gettaddrinfo.c: Return skip code 77 only
40809         for first occurance of skip (4x77 is not 77)
40810
40811 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40812
40813         strtod: avoid C99 decl-after-statement
40814         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40815
40816 2009-02-24  Eric Blake  <ebb9@byu.net>
40817
40818         strtod: detect HP-UX 11.31 bug
40819         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40820         Reported by Gary V. Vaughan.
40821
40822 2009-02-23  Bruno Haible  <bruno@clisp.org>
40823
40824         Fix invalid read past end of memory block.
40825         * lib/vasnprintf.c (DCHAR_SET): Define.
40826         (local_wcslen): Define only when needed.
40827         (local_strnlen, local_wcsnlen): New functions.
40828         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40829         directives that involve a conversion ourselves.
40830         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40831         wcsnlen, mbrtowc, wcrtomb.
40832         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40833         * tests/test-vasprintf-posix.c (test_function): Likewise.
40834         * tests/test-snprintf-posix.h (test_function): Likewise.
40835         * tests/test-sprintf-posix.h (test_function): Likewise.
40836         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40837
40838 2009-02-22  Bruno Haible  <bruno@clisp.org>
40839
40840         Implement new clarified decomposition of Hangul syllables.
40841         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40842         of type LTV, return only a pairwise decomposition.
40843         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40844         Likewise.
40845         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40846         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40847         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40848
40849 2009-02-22  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40852         zero-length results and shrink excess allocated memory.
40853         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40854         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40855         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40856         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40857         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40858         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40859         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40860         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40861         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40862         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40863         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40864         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40865
40866 2009-02-21  Bruno Haible  <bruno@clisp.org>
40867
40868         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40869         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40870         spaces after a period. Put a space between a macro name and its
40871         argument list. Trivial rewordings.
40872         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40873         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40874         (main): Return 0 explicitly.
40875
40876 2009-02-21  Bruno Haible  <bruno@clisp.org>
40877
40878         Tests for module 'uninorm/filter'.
40879         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40880         * modules/uninorm/filter-tests: New file.
40881
40882         New module 'uninorm/filter'.
40883         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40884         uninorm_filter_flush, uninorm_filter_free): New declarations.
40885         * lib/uninorm/uninorm-filter.c: New file.
40886         * modules/uninorm/filter: New file.
40887
40888 2009-02-21  Bruno Haible  <bruno@clisp.org>
40889
40890         Tests for module 'uninorm/nfkc'.
40891         * tests/uninorm/test-nfkc.c: New file.
40892         * tests/uninorm/test-u8-nfkc.c: New file.
40893         * tests/uninorm/test-u16-nfkc.c: New file.
40894         * tests/uninorm/test-u32-nfkc.c: New file.
40895         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40896         * tests/uninorm/test-u32-nfkc-big.c: New file.
40897         * modules/uninorm/nfkc-tests: New file.
40898
40899         New module 'uninorm/nfkc'.
40900         * lib/uninorm/nfkc.c: New file.
40901         * modules/uninorm/nfkc: New file.
40902
40903         Tests for module 'uninorm/nfkd'.
40904         * tests/uninorm/test-nfkd.c: New file.
40905         * tests/uninorm/test-u8-nfkd.c: New file.
40906         * tests/uninorm/test-u16-nfkd.c: New file.
40907         * tests/uninorm/test-u32-nfkd.c: New file.
40908         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40909         * tests/uninorm/test-u32-nfkd-big.c: New file.
40910         * modules/uninorm/nfkd-tests: New file.
40911
40912         New module 'uninorm/nfkd'.
40913         * lib/uninorm/nfkd.c: New file.
40914         * modules/uninorm/nfkd: New file.
40915
40916         Tests for module 'uninorm/nfc'.
40917         * tests/uninorm/test-nfc.c: New file.
40918         * tests/uninorm/test-u8-nfc.c: New file.
40919         * tests/uninorm/test-u16-nfc.c: New file.
40920         * tests/uninorm/test-u32-nfc.c: New file.
40921         * tests/uninorm/test-u32-nfc-big.sh: New file.
40922         * tests/uninorm/test-u32-nfc-big.c: New file.
40923         * modules/uninorm/nfc-tests: New file.
40924
40925         New module 'uninorm/nfc'.
40926         * lib/uninorm/nfc.c: New file.
40927         * modules/uninorm/nfc: New file.
40928
40929         Tests for module 'uninorm/nfd'.
40930         * tests/uninorm/test-nfd.c: New file.
40931         * tests/uninorm/test-u8-nfd.c: New file.
40932         * tests/uninorm/test-u16-nfd.c: New file.
40933         * tests/uninorm/test-u32-nfd.c: New file.
40934         * tests/uninorm/test-u32-nfd-big.sh: New file.
40935         * tests/uninorm/test-u32-nfd-big.c: New file.
40936         * tests/uninorm/test-u32-normalize-big.h: New file.
40937         * tests/uninorm/test-u32-normalize-big.c: New file.
40938         * tests/uninorm/NormalizationTest.txt: New file, created from
40939         Unicode 5.1.0 NormalizationTest.txt.
40940         * modules/uninorm/nfd-tests: New file.
40941
40942         New module 'uninorm/nfd'.
40943         * lib/uninorm/nfd.c: New file.
40944         * modules/uninorm/nfd: New file.
40945
40946         New module 'uninorm/u32-normalize'.
40947         * lib/uninorm/u32-normalize.c: New file.
40948         * modules/uninorm/u32-normalize: New file.
40949
40950         New module 'uninorm/u16-normalize'.
40951         * lib/uninorm/u16-normalize.c: New file.
40952         * modules/uninorm/u16-normalize: New file.
40953
40954         New module 'uninorm/u8-normalize'.
40955         * lib/uninorm/u8-normalize.c: New file.
40956         * lib/uninorm/normalize-internal.h: New file.
40957         * lib/uninorm/u-normalize-internal.h: New file.
40958         * modules/uninorm/u8-normalize: New file.
40959
40960         New module 'uninorm/decompose-internal'.
40961         * lib/uninorm/decompose-internal.c: New file.
40962         * modules/uninorm/decompose-internal: New file.
40963
40964         Tests for module 'uninorm/composition'.
40965         * tests/uninorm/test-composition.c: New file.
40966         * modules/uninorm/composition-tests: New file.
40967
40968         New module 'uninorm/composition'.
40969         * lib/uninorm/composition.c: New file.
40970         * lib/uninorm/composition-table.gperf: New file, generated by
40971         gen-uni-tables.
40972         * modules/uninorm/composition: New file.
40973
40974         Tests for module 'uninorm/compat-decomposition'.
40975         * tests/uninorm/test-compat-decomposition.c: New file.
40976         * modules/uninorm/compat-decomposition-tests: New file.
40977
40978         New module 'uninorm/compat-decomposition'.
40979         * lib/uninorm/decompose-internal.h: New file.
40980         * lib/uninorm/compat-decomposition.c: New file.
40981         * modules/uninorm/compat-decomposition: New file.
40982
40983         Tests for module 'uninorm/canonical-decomposition'.
40984         * tests/uninorm/test-canonical-decomposition.c: New file.
40985         * modules/uninorm/canonical-decomposition-tests: New file.
40986
40987         New module 'uninorm/canonical-decomposition'.
40988         * lib/uninorm/canonical-decomposition.c: New file.
40989         * modules/uninorm/canonical-decomposition: New file.
40990
40991         Tests for module 'uninorm/decomposition'.
40992         * tests/uninorm/test-decomposition.c: New file.
40993         * modules/uninorm/decomposition-tests: New file.
40994
40995         New module 'uninorm/decomposition'.
40996         * lib/uninorm/decomposition.c: New file.
40997         * modules/uninorm/decomposition: New file.
40998
40999         New module 'uninorm/decomposition-table'.
41000         * lib/uninorm/decomposition-table.h: New file.
41001         * lib/uninorm/decomposition-table.c: New file.
41002         * lib/uninorm/decomposition-table1.h: New file, generated by
41003         gen-uni-tables.
41004         * lib/uninorm/decomposition-table2.h: New file, generated by
41005         gen-uni-tables.
41006         * modules/uninorm/decomposition-table: New file.
41007
41008         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41009         (UC_DECOMP_*): New enumeration items.
41010         (get_decomposition): New function.
41011         (struct decomp_table): New type.
41012         (output_decomposition, output_decomposition_tables): New functions.
41013         (unicode_composition_exclusions): New variable.
41014         (fill_composition_exclusions, debug_output_composition_tables): New
41015         functions.
41016         (main): Accept one more argument. Invoke fill_composition_exclusions.
41017         Output decomposition and composition tables.
41018
41019         New module 'uninorm/base'.
41020         * lib/uninorm.h: New file.
41021         * lib/unictype.h: Update comment.
41022         * modules/uninorm/base: New file.
41023
41024 2009-02-21  David Lutterkort  <lutter@redhat.com>
41025
41026         Tests for module 'safe-alloc'.
41027         * tests/test-safe-alloc.c: New file.
41028         * modules/safe-alloc-tests: New file.
41029
41030         New module 'safe-alloc'.
41031         * lib/safe-alloc.h: New file.
41032         * lib/safe-alloc.c: New file.
41033         * m4/safe-alloc.m4: New file.
41034         * modules/safe-alloc: New file.
41035         * doc/safe-alloc.texi: New file.
41036         * doc/gnulib.texi: Include it.
41037         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41038         safe-alloc.
41039
41040 2009-02-18  Bruno Haible  <bruno@clisp.org>
41041
41042         Fix link error on non-glibc systems.
41043         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41044         variable.
41045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41046
41047 2009-02-18  Jim Meyering  <meyering@redhat.com>
41048
41049         fts: avoid used-uninitialized error due to recent change
41050         * lib/fts.c (fts_read): Guard uses of the new member,
41051         parent->fts_n_dirs_remaining, since it's not relevant for
41052         the parent of a directory specified on the command-line.
41053
41054 2009-02-17  James Youngman  <jay@gnu.org>
41055             Bruno Haible  <bruno@clisp.org>
41056
41057         * m4/include_next.m4: Reformulate comment.
41058
41059 2009-02-16  Jim Meyering  <meyering@redhat.com>
41060
41061         fts: add #if guards so that the fts_lgpl module still builds
41062         * lib/fts.c: Guard just-added hash-table-using parts with
41063         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41064         Reported by Simon Josefsson.
41065
41066 2009-02-15  Bruno Haible  <bruno@clisp.org>
41067
41068         * modules/array-mergesort-tests: New file.
41069         * tests/test-array-mergesort.c: New file.
41070
41071         New module 'array-mergesort'.
41072         * modules/array-mergesort: New file.
41073         * lib/array-mergesort.h: New file.
41074
41075 2009-02-15  Bruno Haible  <bruno@clisp.org>
41076
41077         Fix 2009-02-07 commit.
41078         * lib/gen-uni-tables.c (output_predicate, output_category,
41079         output_combclass, output_bidi_category, output_decimal_digit,
41080         output_digit, output_numeric, output_mirror, output_scripts,
41081         output_ident_category, output_simple_mapping): Fix format directives.
41082         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41083
41084 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41085
41086         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41087         fixes are available from IBM.
41088
41089 2009-02-13  Jim Meyering  <meyering@redhat.com>
41090
41091         fts: arrange not to stat non-directories in more cases
41092         This makes GNU find (when it doesn't need to stat each file)
41093         *much* more efficient at traversing reiserfs file systems.
41094         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41095         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41096         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41097         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41098         (leaf_optimization_applies): New function.
41099         (LCO_hash, LCO_compare): New helper functions.
41100         (link_count_optimize_ok): New function.
41101         (fts_stat): Initialize new member (if dir).
41102         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41103         we've just stat'ed a directory.  Skip the stat call when possible.
41104         ---
41105         Note this AFS-related exchange:
41106         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41107         and note find's pioctl call in find/fstype.c.
41108         But that is necessary only if you want to enable the
41109         optimization for AFS, and for now, I don't.
41110
41111         fts: move a function definition "up" (no semantic change)
41112         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41113         "up" to precede upcoming use of a related function.
41114
41115 2009-02-11  Jim Meyering  <meyering@redhat.com>
41116
41117         fts: correct internal computation of nlinks (optimization-related)
41118         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41119         whether the current entry is a directory, so don't test it.
41120
41121 2009-02-10  Bruno Haible  <bruno@clisp.org>
41122
41123         Tests for module 'uniwbrk/ulc-wordbreaks'.
41124         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41125         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41126         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41127
41128         Tests for module 'uniwbrk/u32-wordbreaks'.
41129         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41130         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41131
41132         Tests for module 'uniwbrk/u16-wordbreaks'.
41133         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41134         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41135
41136         Tests for module 'uniwbrk/u8-wordbreaks'.
41137         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41138         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41139
41140 2009-02-10  Bruno Haible  <bruno@clisp.org>
41141
41142         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41143         property.
41144         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41145         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41146         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41147
41148 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41149
41150         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41151         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41152
41153 2009-02-10  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41156         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41157         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41158         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41159         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41160         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41161
41162 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41163
41164         * lib/sockets.h (gl_fd_to_handle): New function.
41165
41166         * tests/test-sockets.c: Call gl_fd_to_handle.
41167
41168 2009-02-09  Bruno Haible  <bruno@clisp.org>
41169
41170         * doc/havelib.texi: Document the conventions on bi-arch systems.
41171
41172 2009-02-08  Bruno Haible  <bruno@clisp.org>
41173
41174         Document the AC_LIB_LINKFLAGS macro.
41175         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41176         * doc/gnulib.texi: Include it.
41177
41178 2009-02-08  Bruno Haible  <bruno@clisp.org>
41179
41180         Fix wrong order of sections, compared to TOC.
41181         * doc/gnulib.texi: Include relocatable-maint.texi after the
41182         "Regular expressions" node, not before.
41183
41184 2009-02-08  Bruno Haible  <bruno@clisp.org>
41185
41186         Tests for module 'unicase/totitle'.
41187         * modules/unicase/totitle-tests: New file.
41188
41189         Tests for module 'unicase/tolower'.
41190         * modules/unicase/tolower-tests: New file.
41191
41192         Tests for module 'unicase/toupper'.
41193         * modules/unicase/toupper-tests: New file.
41194         * tests/unicase/test-mapping-part1.h: New file.
41195         * tests/unicase/test-mapping-part2.h: New file.
41196
41197         New module 'unicase/totitle'.
41198         * modules/unicase/totitle: New file.
41199         * lib/unicase/totitle.c: New file.
41200
41201         New module 'unicase/tolower'.
41202         * modules/unicase/tolower: New file.
41203         * lib/unicase/tolower.c: New file.
41204
41205         New module 'unicase/toupper'.
41206         * modules/unicase/toupper: New file.
41207         * lib/unicase/toupper.c: New file.
41208         * lib/unicase/simple-mapping.h: New file.
41209
41210         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41211         (mapping_table): New structure.
41212         (output_simple_mapping): New function.
41213         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41214         * modules/gen-uni-tables (Description): Update.
41215         * lib/unicase/toupper.h: New file, automatically generated by
41216         gen-uni-tables.
41217         * lib/unicase/tolower.h: New file, automatically generated by
41218         gen-uni-tables.
41219         * lib/unicase/totitle.h: New file, automatically generated by
41220         gen-uni-tables.
41221         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41222         gen-uni-tables.
41223         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41224         gen-uni-tables.
41225         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41226         gen-uni-tables.
41227
41228         New module 'unicase/base'.
41229         * modules/unicase/base: New file.
41230         * lib/unicase.h: New file.
41231
41232 2009-02-08  Bruno Haible  <bruno@clisp.org>
41233
41234         New module 'uniwbrk/ulc-wordbreaks'.
41235         * modules/uniwbrk/ulc-wordbreaks: New file.
41236         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41237
41238         New module 'uniwbrk/u32-wordbreaks'.
41239         * modules/uniwbrk/u32-wordbreaks: New file.
41240         * lib/uniwbrk/u32-wordbreaks.c: New file.
41241
41242         New module 'uniwbrk/u16-wordbreaks'.
41243         * modules/uniwbrk/u16-wordbreaks: New file.
41244         * lib/uniwbrk/u16-wordbreaks.c: New file.
41245
41246         New module 'uniwbrk/u8-wordbreaks'.
41247         * modules/uniwbrk/u8-wordbreaks: New file.
41248         * lib/uniwbrk/u8-wordbreaks.c: New file.
41249         * lib/uniwbrk/u-wordbreaks.h: New file.
41250
41251         New module 'uniwbrk/table'.
41252         * modules/uniwbrk/table: New file.
41253         * lib/uniwbrk/wbrktable.h: New file.
41254         * lib/uniwbrk/wbrktable.c: New file.
41255
41256         New module 'uniwbrk/wordbreak-property'.
41257         * modules/uniwbrk/wordbreak-property: New file.
41258         * lib/uniwbrk/wordbreak-property.c: New file.
41259
41260         * lib/gen-uni-tables.c (WBP_*): New enum items.
41261         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41262         (unicode_org_wbp): New variable.
41263         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41264         New functions.
41265         (wbp_table): New structure.
41266         (output_wbp, output_wbrk_tables): New functions.
41267         (main): Accept additional argument. Invoke fill_org_wbp,
41268         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41269         output_wbrk_tables.
41270         * modules/gen-uni-tables (Description): Update.
41271         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41272         gen-uni-tables.
41273
41274         New module 'uniwbrk/base'.
41275         * modules/uniwbrk/base: New file.
41276         * lib/uniwbrk.h: New file.
41277
41278 2009-02-08  Bruno Haible  <bruno@clisp.org>
41279
41280         Update to Unicode 5.1.0.
41281         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41282         U+2185..U+2188.
41283         (is_property_default_ignorable_code_point): Don't include characters
41284         of category Cc or Cs and not-a-characters.
41285         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41286         U+0D79, U+109E, U+109F, U+A60C.
41287         * lib/unictype/bidi_of.h: Regenerated.
41288         * lib/unictype/blocks.h: Regenerated.
41289         * lib/unictype/categ_C.h: Regenerated.
41290         * lib/unictype/categ_Cf.h: Regenerated.
41291         * lib/unictype/categ_Cn.h: Regenerated.
41292         * lib/unictype/categ_L.h: Regenerated.
41293         * lib/unictype/categ_Ll.h: Regenerated.
41294         * lib/unictype/categ_Lm.h: Regenerated.
41295         * lib/unictype/categ_Lo.h: Regenerated.
41296         * lib/unictype/categ_Lu.h: Regenerated.
41297         * lib/unictype/categ_M.h: Regenerated.
41298         * lib/unictype/categ_Mc.h: Regenerated.
41299         * lib/unictype/categ_Me.h: Regenerated.
41300         * lib/unictype/categ_Mn.h: Regenerated.
41301         * lib/unictype/categ_N.h: Regenerated.
41302         * lib/unictype/categ_Nd.h: Regenerated.
41303         * lib/unictype/categ_Nl.h: Regenerated.
41304         * lib/unictype/categ_No.h: Regenerated.
41305         * lib/unictype/categ_P.h: Regenerated.
41306         * lib/unictype/categ_Pd.h: Regenerated.
41307         * lib/unictype/categ_Pe.h: Regenerated.
41308         * lib/unictype/categ_Pf.h: Regenerated.
41309         * lib/unictype/categ_Pi.h: Regenerated.
41310         * lib/unictype/categ_Po.h: Regenerated.
41311         * lib/unictype/categ_Ps.h: Regenerated.
41312         * lib/unictype/categ_S.h: Regenerated.
41313         * lib/unictype/categ_Sk.h: Regenerated.
41314         * lib/unictype/categ_Sm.h: Regenerated.
41315         * lib/unictype/categ_So.h: Regenerated.
41316         * lib/unictype/categ_of.h: Regenerated.
41317         * lib/unictype/combining.h: Regenerated.
41318         * lib/unictype/ctype_alnum.h: Regenerated.
41319         * lib/unictype/ctype_alpha.h: Regenerated.
41320         * lib/unictype/ctype_graph.h: Regenerated.
41321         * lib/unictype/ctype_lower.h: Regenerated.
41322         * lib/unictype/ctype_print.h: Regenerated.
41323         * lib/unictype/ctype_punct.h: Regenerated.
41324         * lib/unictype/ctype_upper.h: Regenerated.
41325         * lib/unictype/decdigit.h: Regenerated.
41326         * lib/unictype/digit.h: Regenerated.
41327         * lib/unictype/mirror.h: Regenerated.
41328         * lib/unictype/numeric.h: Regenerated.
41329         * lib/unictype/pr_alphabetic.h: Regenerated.
41330         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41331         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41332         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41333         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41334         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41335         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41336         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41337         * lib/unictype/pr_combining.h: Regenerated.
41338         * lib/unictype/pr_dash.h: Regenerated.
41339         * lib/unictype/pr_decimal_digit.h: Regenerated.
41340         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41341         * lib/unictype/pr_deprecated.h: Regenerated.
41342         * lib/unictype/pr_diacritic.h: Regenerated.
41343         * lib/unictype/pr_extender.h: Regenerated.
41344         * lib/unictype/pr_format_control.h: Regenerated.
41345         * lib/unictype/pr_grapheme_base.h: Regenerated.
41346         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41347         * lib/unictype/pr_grapheme_link.h: Regenerated.
41348         * lib/unictype/pr_id_continue.h: Regenerated.
41349         * lib/unictype/pr_id_start.h: Regenerated.
41350         * lib/unictype/pr_ideographic.h: Regenerated.
41351         * lib/unictype/pr_ignorable_control.h: Regenerated.
41352         * lib/unictype/pr_lowercase.h: Regenerated.
41353         * lib/unictype/pr_math.h: Regenerated.
41354         * lib/unictype/pr_numeric.h: Regenerated.
41355         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41356         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41357         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41358         * lib/unictype/pr_other_id_continue.h: Regenerated.
41359         * lib/unictype/pr_other_lowercase.h: Regenerated.
41360         * lib/unictype/pr_other_math.h: Regenerated.
41361         * lib/unictype/pr_punctuation.h: Regenerated.
41362         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41363         * lib/unictype/pr_soft_dotted.h: Regenerated.
41364         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41365         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41366         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41367         * lib/unictype/pr_uppercase.h: Regenerated.
41368         * lib/unictype/pr_xid_continue.h: Regenerated.
41369         * lib/unictype/pr_xid_start.h: Regenerated.
41370         * lib/unictype/pr_zero_width.h: Regenerated.
41371         * lib/unictype/scripts.h: Regenerated.
41372         * lib/unictype/scripts_byname.gperf: Regenerated.
41373         * lib/unictype/sy_java_ident.h: Regenerated.
41374         * lib/unilbrk/lbrkprop1.h: Regenerated.
41375         * lib/unilbrk/lbrkprop2.h: Regenerated.
41376         * tests/unictype/test-categ_C.c: Regenerated.
41377         * tests/unictype/test-categ_Cf.c: Regenerated.
41378         * tests/unictype/test-categ_Cn.c: Regenerated.
41379         * tests/unictype/test-categ_L.c: Regenerated.
41380         * tests/unictype/test-categ_Ll.c: Regenerated.
41381         * tests/unictype/test-categ_Lm.c: Regenerated.
41382         * tests/unictype/test-categ_Lo.c: Regenerated.
41383         * tests/unictype/test-categ_Lu.c: Regenerated.
41384         * tests/unictype/test-categ_M.c: Regenerated.
41385         * tests/unictype/test-categ_Mc.c: Regenerated.
41386         * tests/unictype/test-categ_Me.c: Regenerated.
41387         * tests/unictype/test-categ_Mn.c: Regenerated.
41388         * tests/unictype/test-categ_N.c: Regenerated.
41389         * tests/unictype/test-categ_Nd.c: Regenerated.
41390         * tests/unictype/test-categ_Nl.c: Regenerated.
41391         * tests/unictype/test-categ_No.c: Regenerated.
41392         * tests/unictype/test-categ_P.c: Regenerated.
41393         * tests/unictype/test-categ_Pd.c: Regenerated.
41394         * tests/unictype/test-categ_Pe.c: Regenerated.
41395         * tests/unictype/test-categ_Pf.c: Regenerated.
41396         * tests/unictype/test-categ_Pi.c: Regenerated.
41397         * tests/unictype/test-categ_Po.c: Regenerated.
41398         * tests/unictype/test-categ_Ps.c: Regenerated.
41399         * tests/unictype/test-categ_S.c: Regenerated.
41400         * tests/unictype/test-categ_Sk.c: Regenerated.
41401         * tests/unictype/test-categ_Sm.c: Regenerated.
41402         * tests/unictype/test-categ_So.c: Regenerated.
41403         * tests/unictype/test-ctype_alnum.c: Regenerated.
41404         * tests/unictype/test-ctype_alpha.c: Regenerated.
41405         * tests/unictype/test-ctype_graph.c: Regenerated.
41406         * tests/unictype/test-ctype_lower.c: Regenerated.
41407         * tests/unictype/test-ctype_print.c: Regenerated.
41408         * tests/unictype/test-ctype_punct.c: Regenerated.
41409         * tests/unictype/test-ctype_upper.c: Regenerated.
41410         * tests/unictype/test-decdigit.h: Regenerated.
41411         * tests/unictype/test-digit.h: Regenerated.
41412         * tests/unictype/test-numeric.h: Regenerated.
41413         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41414         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41415         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41416         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41417         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41418         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41419         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41420         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41421         * tests/unictype/test-pr_combining.c: Regenerated.
41422         * tests/unictype/test-pr_dash.c: Regenerated.
41423         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41424         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41425         * tests/unictype/test-pr_deprecated.c: Regenerated.
41426         * tests/unictype/test-pr_diacritic.c: Regenerated.
41427         * tests/unictype/test-pr_extender.c: Regenerated.
41428         * tests/unictype/test-pr_format_control.c: Regenerated.
41429         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41430         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41431         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41432         * tests/unictype/test-pr_id_continue.c: Regenerated.
41433         * tests/unictype/test-pr_id_start.c: Regenerated.
41434         * tests/unictype/test-pr_ideographic.c: Regenerated.
41435         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41436         * tests/unictype/test-pr_lowercase.c: Regenerated.
41437         * tests/unictype/test-pr_math.c: Regenerated.
41438         * tests/unictype/test-pr_numeric.c: Regenerated.
41439         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41440         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41441         Regenerated.
41442         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41443         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41444         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41445         * tests/unictype/test-pr_other_math.c: Regenerated.
41446         * tests/unictype/test-pr_punctuation.c: Regenerated.
41447         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41448         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41449         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41450         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41451         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41452         * tests/unictype/test-pr_uppercase.c: Regenerated.
41453         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41454         * tests/unictype/test-pr_xid_start.c: Regenerated.
41455         * tests/unictype/test-pr_zero_width.c: Regenerated.
41456
41457         Update to Unicode 5.1.0.
41458         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41459         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41460         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41461         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41462         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41463         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41464         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41465         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41466         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41467         (nonspacing_table_ind): Update.
41468         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41469
41470         Update to Unicode 5.1.0.
41471         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41472         code transform.
41473         * lib/uniname/uniname.c (unicode_character_name,
41474         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41475         * lib/uniname/uninames.h: Regenerated.
41476         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41477
41478 2009-02-07  Bruno Haible  <bruno@clisp.org>
41479
41480         Merge gen-ctype and gen-lbrk into a single program.
41481         * lib/gen-uni-tables.c: New file, incorporating
41482         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41483         Add directory prefixes to the names of the generated files.
41484         * lib/unictype/gen-ctype.c: Remove file.
41485         * lib/unilbrk/gen-lbrk.c: Remove file.
41486         * modules/gen-uni-tables: New file.
41487         * modules/unictype/gen-ctype: Remove file.
41488         * modules/unilbrk/gen-lbrk: Remove file.
41489
41490 2009-02-07  Bruno Haible  <bruno@clisp.org>
41491
41492         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41493
41494         New module 'unistr/u32-strcoll'.
41495         * modules/unistr/u32-strcoll: New file.
41496         * lib/unistr/u32-strcoll.c: New file.
41497
41498         New module 'unistr/u16-strcoll'.
41499         * modules/unistr/u16-strcoll: New file.
41500         * lib/unistr/u16-strcoll.c: New file.
41501
41502         New module 'unistr/u8-strcoll'.
41503         * modules/unistr/u8-strcoll: New file.
41504         * lib/unistr/u8-strcoll.c: New file.
41505         * lib/unistr/u-strcoll.h: New file.
41506
41507 2009-02-07  Bruno Haible  <bruno@clisp.org>
41508
41509         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41510         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41511         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41512         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41513         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41514         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41515
41516 2009-02-07  Bruno Haible  <bruno@clisp.org>
41517
41518         Make 64-bit clean.
41519         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41520         output_combclass, output_bidi_category, output_decimal_digit,
41521         output_digit, output_numeric, output_mirror, output_scripts,
41522         output_ident_category): Use proper width specifier in format strings.
41523
41524 2009-02-07  Bruno Haible  <bruno@clisp.org>
41525
41526         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41527         failure behaviour.
41528
41529 2009-02-07  Jim Meyering  <meyering@redhat.com>
41530
41531         regex: avoid compilation failure with upcoming gcc-4.4
41532         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41533         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41534         "... error: integer overflow in preprocessor expression".
41535
41536 2009-02-05  Ben Pfaff  <blp@gnu.org>
41537
41538         Fix link errors on Windows when close module is used.
41539         * modules/close: Add $(LIB_CLOSE) to Link section.
41540         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41541         $(LIB_CLOSE) on Windows.
41542
41543 2009-02-05  Jim Meyering  <meyering@redhat.com>
41544
41545         still avoid unused-parameter warnings, but do it cleanly
41546         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41547         (get_fs_usage): Cast to void instead.
41548         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41549         (dev_from_mount_options, read_file_system_list): Cast to void.
41550         Prompted by Bruno Haible.
41551
41552 2009-02-04  Jim Meyering  <meyering@redhat.com>
41553
41554         fsusage.c: correct copyright year
41555         * lib/fsusage.c: Reflect year in which the change is pushed into
41556
41557         avoid misc. warnings
41558         * lib/fsusage.c (UNUSED_PARAM): Define.
41559         (get_fs_usage): Mark parameter "disk" as unused.
41560         * lib/getugroups.c (getgrent): Use "void" in prototype.
41561         * lib/mountlist.c: Mark unused parameters.
41562         (read_file_system_list): Declare a local with "const".
41563         * lib/nanosleep.c (getnow): Declare static.
41564         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41565
41566         dirfd: set errno upon failure
41567         * lib/dirfd.c: Include <errno.h>.
41568         Set errno to ENOTSUP when returning -1.
41569         * modules/dirfd (Depends-on): Add errno.
41570         Suggested by John Kodis <kodis@comcast.net>.
41571
41572 2009-02-01  Bruno Haible  <bruno@clisp.org>
41573
41574         Don't assume sizeof (long) >= sizeof (void *).
41575         * lib/memcmp.c: Include stdint.h.
41576         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41577         srcp2 to 'const byte *'.
41578         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41579         types to uintptr_t.
41580         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41581         * modules/memcmp (Depends-on): Add stdint.
41582         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41583
41584 2009-01-30  Eric Blake  <ebb9@byu.net>
41585
41586         fix more require-before-expand issues
41587         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41588         expand, AC_PROG_AWK.
41589         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41590
41591 2009-01-28  Eric Blake  <ebb9@byu.net>
41592
41593         version-etc: use consistent URL formatting
41594         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41595         Improve formatting.  Use fputs for string without %.
41596
41597 2009-01-28  Jim Meyering  <meyering@redhat.com>
41598
41599         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41600         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41601         "underquoted definition of NAME" from autoconf-2.59.
41602
41603 2009-01-28  Bruno Haible  <bruno@clisp.org>
41604
41605         * doc/gnulib.texi: Add "Obsolete modules" to index.
41606
41607 2009-01-28  Jim Meyering  <meyering@redhat.com>
41608
41609         useless-if-before-free: recognize more variants
41610         * build-aux/useless-if-before-free: Also recognize e.g.,
41611         if (NULL != p) free (p);
41612
41613 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41614
41615         test-getaddrinfo: skip (don't fail) this test when there's no network
41616         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41617         on the presumption that it means you lack network access.
41618
41619 2009-01-26  Jim Meyering  <meyering@redhat.com>
41620
41621         fflush: avoid warnings on modern systems
41622         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41623         pos and result, into scopes where they're used.
41624
41625 2009-01-26  Eric Blake  <ebb9@byu.net>
41626
41627         Silence warning reintroduced by recent extensions patch.
41628         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41629         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41630         autoconf.
41631
41632         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41633         * m4/00gnulib.m4: New file.
41634         * gnulib-tool (func_get_filelist): Always use it.
41635         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41636         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41637
41638 2009-01-25  Bruno Haible  <bruno@clisp.org>
41639
41640         Make test-quotearg work on MacOS X and AIX.
41641         * tests/test-quotearg.sh: New file.
41642         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41643         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41644         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41645         include <libintl.h>.
41646         (fake_locale): Remove variable.
41647         (gettext, dgettext, dcgettext): Remove functions.
41648         (main): Instead of setting a fake locale, set a real locale. Call
41649         textdomain and bindtextdomain.
41650         * modules/quotearg-tests (Files): Add the new files.
41651         (Depends-on): Add gettext, setenv, unsetenv.
41652         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41653         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41654         Augment TESTS_ENVIRONMENT.
41655
41656 2009-01-25  Bruno Haible  <bruno@clisp.org>
41657
41658         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41659         fr_FR.ISO8859-1 locale on MacOS X.
41660         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41661         ja_JP.eucJP locale on MacOS X.
41662         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41663         zh_CN.GB18030 locale on MacOS X.
41664
41665 2009-01-25  Bruno Haible  <bruno@clisp.org>
41666
41667         Avoid link errors on MacOS X 10.3.
41668         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41669         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41670
41671 2009-01-25  Bruno Haible  <bruno@clisp.org>
41672
41673         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41674         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41675         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41676         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41677         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41678         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41679         posix_spawnattr_init, posix_spawnattr_setsigmask,
41680         posix_spawnattr_setflags, posix_spawnattr_destroy.
41681
41682         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41683         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41684         * modules/execute (Files): Remove m4/posix_spawn.m4.
41685         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41686         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41687         posix_spawnattr_init, posix_spawnattr_setsigmask,
41688         posix_spawnattr_setflags, posix_spawnattr_destroy.
41689
41690 2009-01-25  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/glthread/threadlib.c: Include <stdlib.h>.
41693
41694 2009-01-25  Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/glthread/threadlib.c (dummy): New declaration.
41697
41698 2009-01-25  Bruno Haible  <bruno@clisp.org>
41699
41700         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41701         multibyte characters also for the GB18030 encoding. Don't crash when
41702         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41703
41704 2009-01-25  Bruno Haible  <bruno@clisp.org>
41705
41706         Avoid redefining 'struct random_data' on OSF/1 5.1.
41707         * lib/stdlib.in.h: Include <random.h> if it exists.
41708         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41709         HAVE_RANDOM_H. Include <random.h> when testing whether
41710         'struct random_data' exists.
41711         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41712
41713 2009-01-25  Bruno Haible  <bruno@clisp.org>
41714
41715         Don't install charset.alias on MacOS X >= 10.3.
41716         * lib/localcharset.c (DARWIN7): New macro.
41717         (get_charset_aliases): Hardcode the result for Darwin7.
41718         * modules/localcharset (install-exec-local): Don't install
41719         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41720
41721 2009-01-25  Bruno Haible  <bruno@clisp.org>
41722
41723         Don't install charset.alias on mingw and Cygwin.
41724         * modules/localcharset (install-exec-local): Don't install
41725         charset.alias on mingw and Cygwin, if the file does not yet exist.
41726         The result for these platforms is hardcoded in localcharset.c.
41727
41728 2009-01-25  Bruno Haible  <bruno@clisp.org>
41729
41730         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41732         before requiring AC_USE_SYSTEM_EXTENSIONS.
41733
41734 2009-01-25  Jim Meyering  <meyering@redhat.com>
41735
41736         c-strtod: avoid warnings
41737         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41738         "assignment discards qualifiers from pointer target type" warnings.
41739
41740 2009-01-24  Bruno Haible  <bruno@clisp.org>
41741
41742         Add support for non-UTF-8 locales on MacOS X.
41743         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41744         canonical encodings. For Darwin 7 and newer, don't map traditional
41745         encodings to UTF-8.
41746         Reported by Vincent Lefevre <vincent@vinc17.org>
41747         at <http://savannah.gnu.org/bugs/?25235>.
41748
41749 2009-01-24  Bruno Haible  <bruno@clisp.org>
41750
41751         * doc/gnulib.texi (Obsolete modules): New section.
41752         Reported by Mike Frysinger <vapier@gentoo.org>.
41753
41754 2009-01-24  Bruno Haible  <bruno@clisp.org>
41755
41756         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41757         (%.dvi): New rule.
41758
41759 2009-01-24  Bruno Haible  <bruno@clisp.org>
41760
41761         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41762         Reported by Eric Blake.
41763
41764 2009-01-24  Bruno Haible  <bruno@clisp.org>
41765
41766         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41767         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41768         Reported by Gary V. Vaughan <gary@gnu.org>.
41769
41770 2009-01-24  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41773
41774 2009-01-23  Bruno Haible  <bruno@clisp.org>
41775
41776         Make c-strtod, c-strtold usable in libraries.
41777         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41778         (C_STRTOD): Call strdup instead of xstrdup.
41779         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41780         * modules/c-strtold (Depends-on): Likewise.
41781         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41782         * NEWS: Mention the change.
41783         Reported by Michael Gold <mgold@ncf.ca>.
41784
41785 2009-01-23  Jim Meyering  <meyering@redhat.com>
41786
41787         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41788         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41789         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41790
41791 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41792
41793         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41794         GNU CoreUtils.
41795         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41796         * modules/version-etc (Description): Update.
41797
41798 2009-01-22  Bruno Haible  <bruno@clisp.org>
41799
41800         Cache the C locale object.
41801         * lib/c-strtod.c (c_locale_cache): New variable.
41802         (c_locale): New function.
41803         (C_STRTOD): Use it, and don't call freelocale.
41804         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41805         Suggested by Paolo Bonzini.
41806
41807 2009-01-21  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41810         conditions other than overflow.
41811
41812 2009-01-21  Bruno Haible  <bruno@clisp.org>
41813
41814         * lib/c-strtod.c: Include errno.h.
41815         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41816         value from STRTOD_L and STRTOD.
41817
41818 2009-01-21  Bruno Haible  <bruno@clisp.org>
41819         and Jim Meyering  <meyering@redhat.com>
41820
41821         nanosleep: skip configure test (fail it) for apple universal builds
41822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41823         universal builds, assume that nanosleep does not work.
41824         * modules/nanosleep (Depends-on): Add multiarch.
41825
41826         mktime: skip configure test (fail it) for apple universal builds
41827         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41828         universal builds, assume that mktime does not work.
41829         * modules/mktime (Depends-on): Add multiarch.
41830
41831 2009-01-21  Eric Blake  <ebb9@byu.net>
41832
41833         multiarch: avoid expand-before-require warning
41834         * modules/multiarch (configure.ac): Require, rather than expand,
41835         gl_MULTIARCH.
41836         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41837         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41838         enforce that all clients require it.  Partial reversion of
41839         2008-12-29 patch.
41840
41841         error: avoid expand-before-require warning
41842         * modules/errno (configure.ac): Require, rather than expand,
41843         gl_HEADER_ERRNO_H.
41844         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41845         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41846         enforce that all clients require it.
41847
41848         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41849         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41850         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41851         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41852
41853 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41854
41855         Revert:
41856         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41857
41858         regex: do not depend on obsolete modules.
41859         * modules/regex: Remove memcmp and memmove.
41860
41861 2009-01-20  Bruno Haible  <bruno@clisp.org>
41862
41863         Make the 'link' module link on Windows NT 4.
41864         * lib/link.c (_WIN32_WINNT): Don't define.
41865         (CreateHardLinkFuncType): New type.
41866         (CreateHardLinkFunc, initialized): New variables.
41867         (initialize): New function.
41868         (link): Invoke CreateHardLink indirectly through the function pointer.
41869
41870 2009-01-20  Bruno Haible  <bruno@clisp.org>
41871
41872         Fix compilation failure on mingw.
41873         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41874
41875 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41876
41877         * doc/c-strtod.texi: Mention a couple of restrictions.
41878
41879 2009-01-20  Jim Meyering  <meyering@redhat.com>
41880
41881         gettimeofday: move more declarations out of functions
41882         * lib/gettimeofday.c: Move extern declarations of tzset and
41883         gmtime out of containing functions.  Prompted by Bruno Haible.
41884
41885 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41886
41887         regex: do not depend on obsolete modules.
41888         * modules/regex: Remove memcmp and memmove.
41889
41890 2009-01-19  Bruno Haible  <bruno@clisp.org>
41891
41892         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41893         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41894         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41895         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41896         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41897
41898 2009-01-19  Bruno Haible  <bruno@clisp.org>
41899
41900         * tests/test-link.c: Include <errno.h>.
41901         (main): Exit with code 77 when a hard link cannot be created due to
41902         the file system.
41903         * tests/test-link.sh: Skip test when a hard link cannot be created due
41904         to the file system.
41905         Suggested by Eric Blake.
41906
41907 2009-01-19  Martin Lambers  <marlam@marlam.de>
41908
41909         * modules/link-tests: New file.
41910         * tests/test-link.sh: New file.
41911         * tests/test-link.c: New file.
41912
41913 2009-01-19  Eric Blake  <ebb9@byu.net>
41914
41915         doc: mention another function added in cygwin 1.7.0
41916         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41917         Another new function in cygwin 1.7.
41918
41919 2009-01-19  Bruno Haible  <bruno@clisp.org>
41920
41921         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41922         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41923         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41924         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41925         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41926         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41927         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41928         * m4/md4.m4 (gl_MD4): Likewise.
41929         * m4/md5.m4 (gl_MD5): Likewise.
41930         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41931         * m4/sha1.m4 (gl_SHA1): Likewise.
41932         * m4/sha256.m4 (gl_SHA256): Likewise.
41933         * m4/sha512.m4 (gl_SHA512): Likewise.
41934
41935 2009-01-19  Bruno Haible  <bruno@clisp.org>
41936
41937         * modules/uniname/uniname-tests (Depends-on): Add progname.
41938         * tests/uniname/test-uninames.c: Include progname.h.
41939         (main): Call set_program_name.
41940
41941         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41942         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41943         (main): Call set_program_name.
41944
41945         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41946         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41947         (main): Call set_program_name.
41948
41949         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41950         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41951         (main): Call set_program_name.
41952
41953         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41954         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41955         (main): Call set_program_name.
41956
41957         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41958         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41959         (main): Call set_program_name.
41960
41961         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41962         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41963         (main): Call set_program_name.
41964
41965         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41966         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41967         (main): Call set_program_name.
41968
41969         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41970         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41971         (main): Call set_program_name.
41972
41973 2009-01-19  Eric Blake  <ebb9@byu.net>
41974
41975         test-unistd: test previous patch
41976         * tests/test-unistd.c: Test *_FILENO macros.
41977
41978         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41979         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41980         Guarantee a definition.
41981         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41982         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41983         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41984         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41985         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41986         Likewise.
41987         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41988         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41989         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41990         Likewise.
41991         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41992         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41993         (STDERR_FILENO): Likewise.
41994         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41995         (STDERR_FILENO): Likewise.
41996         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41997         (STDERR_FILENO): Likewise.
41998         Reported by Elbert Pol.
41999
42000 2009-01-19  Eric Blake  <ebb9@byu.net>
42001
42002         doc: mention more functions added in cygwin 1.7.0
42003         * doc/posix-functions/abort.texi (abort): Update wording related
42004         to cygwin.
42005         * doc/posix-functions/daylight.texi (daylight): Likewise.
42006         * doc/posix-functions/optarg.texi (optarg): Likewise.
42007         * doc/posix-functions/optarg.texi (opterr): Likewise.
42008         * doc/posix-functions/optarg.texi (optind): Likewise.
42009         * doc/posix-functions/optarg.texi (optopt): Likewise.
42010         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42011         worked in 1.5.x, and was withdrawn in 1.7.
42012         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42013         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42014         cygwin versions.
42015         * doc/posix-functions/perror.texi (perror): Likewise.
42016         * doc/posix-functions/printf.texi (printf): Likewise.
42017         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42018         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42019         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42020         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42021         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42022         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42023         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42024         Likewise.
42025         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42026         Likewise.
42027         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42028         this function.
42029         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42030         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42031         Likewise.
42032         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42033         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42034         * doc/posix-functions/confstr.texi (confstr): Likewise.
42035         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42036         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42037         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42038         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42039         * doc/posix-functions/fputws.texi (fputws): Likewise.
42040         * doc/posix-functions/fwide.texi (fwide): Likewise.
42041         * doc/posix-functions/getwc.texi (getwc): Likewise.
42042         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42043         * doc/posix-functions/putwc.texi (putwc): Likewise.
42044         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42045         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42046         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42047         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42048         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42049         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42050         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42051         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42052         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42053         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42054         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42055
42056 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42057
42058         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42059         * lib/ioctl.c: Include <sys/ioctl.h>.
42060
42061 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42062
42063         * modules/getdate-tests (Depends-on): Add progname.
42064         * tests/test-getdate.c: Use progname module, to avoid link errors
42065         on non-glibc systems.
42066
42067 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42068
42069         * modules/filenamecat-tests (Depends-on): Add progname.
42070         * modules/fstrcmp-tests (Depends-on): Likewise.
42071
42072         * tests/test-filenamecat.c: Use progname module, to avoid link
42073         errors on non-glibc systems.
42074         * tests/test-fstrcmp.c: Likewise.
42075
42076 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42077
42078         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42079         * lib/gettimeofday.c: Move extern declaration out of function.
42080
42081 2009-01-18  Bruno Haible  <bruno@clisp.org>
42082
42083         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42084         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42085         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42086
42087 2009-01-18  Bruno Haible  <bruno@clisp.org>
42088
42089         * lib/strftime.c (MEMPCPY): Remove unused macro.
42090         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42091
42092 2009-01-18  Martin Lambers  <marlam@marlam.de>
42093
42094         New module 'link'.
42095         * lib/unistd.in.h (link): New declaration.
42096         * lib/link.c: New file.
42097         * m4/link.m4: New file.
42098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42099         HAVE_LINK.
42100         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42101         * modules/link: New file.
42102         * doc/posix-functions/link.texi: Mention the new module.
42103
42104 2009-01-18  Bruno Haible  <bruno@clisp.org>
42105
42106         * tests/test-avltree_list.c (main): Call set_program_name.
42107         * tests/test-avltree_oset.c (main): Likewise.
42108         * tests/test-obstack-printf.c: Include progname.h.
42109         (main): Call set_program_name.
42110         * tests/test-quotearg.c: Include progname.h.
42111         (main): Call set_program_name.
42112         * tests/test-xmemdup0.c: Include progname.h.
42113         (main): Call set_program_name.
42114
42115 2009-01-18  Bruno Haible  <bruno@clisp.org>
42116
42117         New module 'alphasort'.
42118         * lib/dirent.in.h (alphasort): New declaration.
42119         * lib/alphasort.c: New file, from glibc with modifications.
42120         * m4/alphasort.m4: New file.
42121         * modules/alphasort: New file.
42122         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42123         HAVE_ALPHASORT.
42124         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42125         HAVE_ALPHASORT.
42126         * doc/posix-functions/alphasort.texi: Mention the new module and the
42127         portability problems.
42128
42129 2009-01-18  Bruno Haible  <bruno@clisp.org>
42130
42131         New module 'scandir'.
42132         * lib/dirent.in.h (scandir): New declaration.
42133         * lib/scandir.c: New file, from glibc with modifications.
42134         * m4/scandir.m4: New file.
42135         * modules/scandir: New file.
42136         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42137         HAVE_SCANDIR.
42138         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42139         HAVE_SCANDIR.
42140         * doc/posix-functions/scandir.texi: Mention the new module and the
42141         portability problems.
42142
42143 2009-01-17  Bruno Haible  <bruno@clisp.org>
42144
42145         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42146         Update documentation.
42147         (func_remove_suffix): Escape all dots in the suffix. Update
42148         documentation.
42149         (func_filter_filelist): Update documentation.
42150         Reported by Ralf Wildenhues.
42151
42152 2009-01-17  Bruno Haible  <bruno@clisp.org>
42153
42154         * modules/dprintf-posix-tests: New file.
42155         * tests/test-dprintf-posix.sh: New file.
42156         * tests/test-dprintf-posix.c: New file.
42157
42158         New modules 'dprintf', 'dprintf-posix'.
42159         * lib/stdio.in.h (dprintf): New declaration.
42160         * lib/dprintf.c: New file.
42161         * m4/dprintf.m4: New file.
42162         * m4/dprintf-posix.m4: New file.
42163         * modules/dprintf: New file.
42164         * modules/dprintf-posix: New file.
42165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42166         HAVE_DPRINTF, REPLACE_DPRINTF.
42167         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42168         HAVE_DPRINTF, REPLACE_DPRINTF.
42169         * doc/posix-functions/dprintf.texi: Mention the new modules.
42170
42171 2009-01-17  Bruno Haible  <bruno@clisp.org>
42172
42173         * modules/vdprintf-posix-tests: New file.
42174         * tests/test-vdprintf-posix.sh: New file.
42175         * tests/test-vdprintf-posix.c: New file.
42176
42177         New modules 'vdprintf', 'vdprintf-posix'.
42178         * lib/stdio.in.h (vdprintf): New declaration.
42179         * lib/vdprintf.c: New file.
42180         * m4/vdprintf.m4: New file.
42181         * m4/vdprintf-posix.m4: New file.
42182         * modules/vdprintf: New file.
42183         * modules/vdprintf-posix: New file.
42184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42185         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42186         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42187         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42188         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42189
42190 2009-01-17  Bruno Haible  <bruno@clisp.org>
42191
42192         Fix replacement of fopen on mingw.
42193         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42194         mingw.
42195
42196 2009-01-17  Bruno Haible  <bruno@clisp.org>
42197
42198         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42199         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42200
42201 2009-01-17  Bruno Haible  <bruno@clisp.org>
42202
42203         Avoid test-fflush2.sh failure on mingw.
42204         * tests/test-fflush2.c: Include binary-io.h.
42205         (main): Put standard input into binary mode.
42206         * modules/fflush-tests (Depends-on): Add binary-io.
42207
42208 2009-01-17  Bruno Haible  <bruno@clisp.org>
42209
42210         * lib/wchar.in.h: In another particular situation, include only the
42211         system's <wchar.h> file.
42212         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42213         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42214         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42215
42216 2009-01-17  Bruno Haible  <bruno@clisp.org>
42217
42218         Support for stripping executables in --enable-relocatable.
42219         * build-aux/install-reloc: Expect one more argument, or an environment
42220         variable RELOC_STRIP_PROG. If set, strip the destination program and
42221         its wrapper.
42222         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42223         RELOC_STRIP_PROG.
42224         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42225         to set RELOCATABLE_STRIP.
42226         * NEWS: Mention the new Makefile requirement.
42227
42228 2009-01-17  Bruno Haible  <bruno@clisp.org>
42229
42230         * build-aux/install-reloc: Remove debugging information left over by
42231         C compiler on MacOS X.
42232
42233 2009-01-17  Bruno Haible  <bruno@clisp.org>
42234
42235         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42236         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42237         _NSGetExecutablePath.
42238
42239 2009-01-16  Jim Meyering  <meyering@redhat.com>
42240
42241         strerror: avoid warnings about discarding "const"
42242         * lib/strerror.c (rpl_strerror): Instead of returning a const
42243         string from each and every "case", use a variable, and add a single
42244         cast after the switch.
42245
42246 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42247
42248         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42249
42250 2009-01-16  Bruno Haible  <bruno@clisp.org>
42251
42252         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42253         array initializer syntax that also works in C++ mode.
42254         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42255
42256 2009-01-16  Jim Meyering  <meyering@redhat.com>
42257
42258         poll: suppress a warning
42259         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42260         to ignore "...unsigned expression < 0 is always false" warnings.
42261
42262 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42263
42264         poll: remove declarations of unused variables
42265         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42266         sockbuf and optlen.
42267
42268 2009-01-15  Bruno Haible  <bruno@clisp.org>
42269
42270         Make fflush-after-ungetc POSIX compliant on BSD systems.
42271         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42272         (clear_ungetc_buffer): Implement also for other systems.
42273         (rpl_fflush): On glibc systems, invoke
42274         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42275         clear_ungetc_buffer after fetching the stream's position, not before.
42276
42277 2009-01-15  Bruno Haible  <bruno@clisp.org>
42278
42279         Make fflush-after-ungetc POSIX compliant on glibc systems.
42280         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42281         after ungetc.
42282         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42283         (rpl_fflush): On glibc systems, simply call the system's fflush
42284         function after clearing the ungetc buffer.
42285         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42286         Instead, lseek only to the end of file, then use the system's fseeko
42287         for the rest. On glibc systems, reset the EOF indicator bit.
42288
42289 2009-01-15  Jim Meyering  <meyering@redhat.com>
42290
42291         openmp.m4: revert quote-adding change, for portability to older autoconf
42292         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42293         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42294         Simon Josefsson noticed the problem when using autoconf-2.61.
42295
42296 2009-01-15  Bruno Haible  <bruno@clisp.org>
42297
42298         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42299         * tests/test-fflush2.c (ASSERT): Always fail.
42300         (main): Add two tests for fflush() after ungetc(), taking into account
42301         the Austin Group's clarification.
42302         Suggested by Eric Blake.
42303
42304 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42305
42306         mktime.m4: remove K&R-style function prototypes
42307         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42308         for the Sun C++ compiler.
42309
42310 2009-01-14  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42313         while including <wchar.h>.
42314         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42315         the system's <wchar.h> file.
42316         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42317
42318 2009-01-14  Bruno Haible  <bruno@clisp.org>
42319
42320         * m4/csharp.m4: Don't mention gettext on the serial number line.
42321         * m4/csharpexec.m4: Likewise.
42322         * m4/eaccess.m4: Likewise.
42323         * m4/javaexec.m4: Likewise.
42324         * m4/sig_atomic_t.m4: Likewise.
42325         * m4/tmpdir.m4: Likewise.
42326         * m4/intldir.m4: Bump gettext version.
42327         * m4/lib-ld.m4: Likewise.
42328
42329 2009-01-14  Bruno Haible  <bruno@clisp.org>
42330
42331         * lib/progname.c (set_program_name): Add more comments.
42332         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42333
42334 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42335
42336         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42337         were sys/stat.h does not define it.
42338
42339 2009-01-14  Jim Meyering  <meyering@redhat.com>
42340
42341         many *.m4 files: improve m4 quoting
42342         99% of this change was performed by running the following commands:
42343         git ls-files | grep '\.m4$' | xargs perl -pi \
42344           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42345           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42346           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42347           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42348         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42349         The remainder were to add Copyright dates, increment serial numbers,
42350         undo some changes in comments, exclude m4/intl.m4, and add quotes
42351         around the "1" in ",1" where the unusual spacing prohibited the
42352         above regexps from doing the job.  For more details, see
42353         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42354         * m4/acl.m4: Modified.
42355         * m4/afs.m4: Likewise.
42356         * m4/alloca.m4: Likewise.
42357         * m4/argp.m4: Likewise.
42358         * m4/argz.m4: Likewise.
42359         * m4/atexit.m4: Likewise.
42360         * m4/bison-i18n.m4: Likewise.
42361         * m4/bison.m4: Likewise.
42362         * m4/byteswap.m4: Likewise.
42363         * m4/c-stack.m4: Likewise.
42364         * m4/c-strtod.m4: Likewise.
42365         * m4/calloc.m4: Likewise.
42366         * m4/canonicalize-lgpl.m4: Likewise.
42367         * m4/chown.m4: Likewise.
42368         * m4/clock_time.m4: Likewise.
42369         * m4/codeset.m4: Likewise.
42370         * m4/copy-file.m4: Likewise.
42371         * m4/csharp.m4: Likewise.
42372         * m4/csharpcomp.m4: Likewise.
42373         * m4/csharpexec.m4: Likewise.
42374         * m4/d-ino.m4: Likewise.
42375         * m4/d-type.m4: Likewise.
42376         * m4/dirfd.m4: Likewise.
42377         * m4/double-slash-root.m4: Likewise.
42378         * m4/eaccess.m4: Likewise.
42379         * m4/eealloc.m4: Likewise.
42380         * m4/environ.m4: Likewise.
42381         * m4/errno_h.m4: Likewise.
42382         * m4/euidaccess.m4: Likewise.
42383         * m4/execute.m4: Likewise.
42384         * m4/fatal-signal.m4: Likewise.
42385         * m4/fchdir.m4: Likewise.
42386         * m4/fcntl_h.m4: Likewise.
42387         * m4/fileblocks.m4: Likewise.
42388         * m4/filenamecat.m4: Likewise.
42389         * m4/findprog.m4: Likewise.
42390         * m4/flexmember.m4: Likewise.
42391         * m4/fnmatch.m4: Likewise.
42392         * m4/fopen.m4: Likewise.
42393         * m4/fpending.m4: Likewise.
42394         * m4/fprintf-posix.m4: Likewise.
42395         * m4/free.m4: Likewise.
42396         * m4/frexp.m4: Likewise.
42397         * m4/frexpl.m4: Likewise.
42398         * m4/fsusage.m4: Likewise.
42399         * m4/ftruncate.m4: Likewise.
42400         * m4/gc-camellia.m4: Likewise.
42401         * m4/gc-random.m4: Likewise.
42402         * m4/gc.m4: Likewise.
42403         * m4/getaddrinfo.m4: Likewise.
42404         * m4/getcwd-abort-bug.m4: Likewise.
42405         * m4/getcwd-path-max.m4: Likewise.
42406         * m4/getdate.m4: Likewise.
42407         * m4/getdomainname.m4: Likewise.
42408         * m4/getgroups.m4: Likewise.
42409         * m4/gethostname.m4: Likewise.
42410         * m4/gethrxtime.m4: Likewise.
42411         * m4/getline.m4: Likewise.
42412         * m4/getloadavg.m4: Likewise.
42413         * m4/getndelim2.m4: Likewise.
42414         * m4/getpass.m4: Likewise.
42415         * m4/gettext.m4: Likewise.
42416         * m4/gettime.m4: Likewise.
42417         * m4/gettimeofday.m4: Likewise.
42418         * m4/gnulib-common.m4: Likewise.
42419         * m4/group-member.m4: Likewise.
42420         * m4/host-os.m4: Likewise.
42421         * m4/iconv.m4: Likewise.
42422         * m4/iconv_open.m4: Likewise.
42423         * m4/inet_ntop.m4: Likewise.
42424         * m4/inet_pton.m4: Likewise.
42425         * m4/inline.m4: Likewise.
42426         * m4/intldir.m4: Likewise.
42427         * m4/intlmacosx.m4: Likewise.
42428         * m4/intmax.m4: Likewise.
42429         * m4/intmax_t.m4: Likewise.
42430         * m4/inttypes.m4: Likewise.
42431         * m4/inttypes_h.m4: Likewise.
42432         * m4/inttypes-pri.m4: Likewise.
42433         * m4/isapipe.m4: Likewise.
42434         * m4/isnand.m4: Likewise.
42435         * m4/isnanf.m4: Likewise.
42436         * m4/isnanl.m4: Likewise.
42437         * m4/javacomp.m4: Likewise.
42438         * m4/javaexec.m4: Likewise.
42439         * m4/jm-winsz1.m4: Likewise.
42440         * m4/jm-winsz2.m4: Likewise.
42441         * m4/lchown.m4: Likewise.
42442         * m4/lcmessage.m4: Likewise.
42443         * m4/ldexpl.m4: Likewise.
42444         * m4/lib-ld.m4: Likewise.
42445         * m4/lib-link.m4: Likewise.
42446         * m4/libsigsegv.m4: Likewise.
42447         * m4/link-follow.m4: Likewise.
42448         * m4/localcharset.m4: Likewise.
42449         * m4/locale-fr.m4: Likewise.
42450         * m4/locale-ja.m4: Likewise.
42451         * m4/locale-tr.m4: Likewise.
42452         * m4/locale-zh.m4: Likewise.
42453         * m4/lock.m4: Likewise.
42454         * m4/longlong.m4: Likewise.
42455         * m4/ls-mntd-fs.m4: Likewise.
42456         * m4/lstat.m4: Likewise.
42457         * m4/malloc.m4: Likewise.
42458         * m4/mathl.m4: Likewise.
42459         * m4/mbrtowc.m4: Likewise.
42460         * m4/mbstate_t.m4: Likewise.
42461         * m4/mbswidth.m4: Likewise.
42462         * m4/memchr.m4: Likewise.
42463         * m4/memcmp.m4: Likewise.
42464         * m4/memcpy.m4: Likewise.
42465         * m4/memmem.m4: Likewise.
42466         * m4/memmove.m4: Likewise.
42467         * m4/mempcpy.m4: Likewise.
42468         * m4/memrchr.m4: Likewise.
42469         * m4/memset.m4: Likewise.
42470         * m4/minmax.m4: Likewise.
42471         * m4/mkdir-slash.m4: Likewise.
42472         * m4/mkdtemp.m4: Likewise.
42473         * m4/mktime.m4: Likewise.
42474         * m4/mmap-anon.m4: Likewise.
42475         * m4/mountlist.m4: Likewise.
42476         * m4/nanosleep.m4: Likewise.
42477         * m4/nls.m4: Likewise.
42478         * m4/nocrash.m4: Likewise.
42479         * m4/open.m4: Likewise.
42480         * m4/openat.m4: Likewise.
42481         * m4/openmp.m4: Likewise.
42482         * m4/pathmax.m4: Likewise.
42483         * m4/perl.m4: Likewise.
42484         * m4/physmem.m4: Likewise.
42485         * m4/pipe.m4: Likewise.
42486         * m4/po.m4: Likewise.
42487         * m4/poll.m4: Likewise.
42488         * m4/posixtm.m4: Likewise.
42489         * m4/posixver.m4: Likewise.
42490         * m4/printf-frexp.m4: Likewise.
42491         * m4/printf-frexpl.m4: Likewise.
42492         * m4/printf-posix.m4: Likewise.
42493         * m4/printf-posix-rpl.m4: Likewise.
42494         * m4/printf.m4: Likewise.
42495         * m4/progtest.m4: Likewise.
42496         * m4/putenv.m4: Likewise.
42497         * m4/readline.m4: Likewise.
42498         * m4/readlink.m4: Likewise.
42499         * m4/readutmp.m4: Likewise.
42500         * m4/realloc.m4: Likewise.
42501         * m4/regex.m4: Likewise.
42502         * m4/relocatable.m4: Likewise.
42503         * m4/relocatable-lib.m4: Likewise.
42504         * m4/rename-dest-slash.m4: Likewise.
42505         * m4/rename.m4: Likewise.
42506         * m4/rmdir-errno.m4: Likewise.
42507         * m4/rmdir.m4: Likewise.
42508         * m4/roundf.m4: Likewise.
42509         * m4/roundl.m4: Likewise.
42510         * m4/rpmatch.m4: Likewise.
42511         * m4/save-cwd.m4: Likewise.
42512         * m4/selinux-selinux-h.m4: Likewise.
42513         * m4/setenv.m4: Likewise.
42514         * m4/settime.m4: Likewise.
42515         * m4/sig2str.m4: Likewise.
42516         * m4/sig_atomic_t.m4: Likewise.
42517         * m4/signalblocking.m4: Likewise.
42518         * m4/signbit.m4: Likewise.
42519         * m4/sigpipe.m4: Likewise.
42520         * m4/sockets.m4: Likewise.
42521         * m4/sockpfaf.m4: Likewise.
42522         * m4/st_dm_mode.m4: Likewise.
42523         * m4/stat-time.m4: Likewise.
42524         * m4/stdbool.m4: Likewise.
42525         * m4/stdint.m4: Likewise.
42526         * m4/stdint_h.m4: Likewise.
42527         * m4/stpcpy.m4: Likewise.
42528         * m4/stpncpy.m4: Likewise.
42529         * m4/strcase.m4: Likewise.
42530         * m4/strchrnul.m4: Likewise.
42531         * m4/strcspn.m4: Likewise.
42532         * m4/strdup.m4: Likewise.
42533         * m4/strftime.m4: Likewise.
42534         * m4/strndup.m4: Likewise.
42535         * m4/strnlen.m4: Likewise.
42536         * m4/strpbrk.m4: Likewise.
42537         * m4/strptime.m4: Likewise.
42538         * m4/strsep.m4: Likewise.
42539         * m4/strtod.m4: Likewise.
42540         * m4/strtoimax.m4: Likewise.
42541         * m4/strtok_r.m4: Likewise.
42542         * m4/strtol.m4: Likewise.
42543         * m4/strtoll.m4: Likewise.
42544         * m4/strtoul.m4: Likewise.
42545         * m4/strtoull.m4: Likewise.
42546         * m4/strtoumax.m4: Likewise.
42547         * m4/strverscmp.m4: Likewise.
42548         * m4/threadlib.m4: Likewise.
42549         * m4/timegm.m4: Likewise.
42550         * m4/tm_gmtoff.m4: Likewise.
42551         * m4/tmpdir.m4: Likewise.
42552         * m4/tmpfile.m4: Likewise.
42553         * m4/tzset.m4: Likewise.
42554         * m4/uintmax_t.m4: Likewise.
42555         * m4/unlinkdir.m4: Likewise.
42556         * m4/unlocked-io.m4: Likewise.
42557         * m4/uptime.m4: Likewise.
42558         * m4/userspec.m4: Likewise.
42559         * m4/utimbuf.m4: Likewise.
42560         * m4/utime.m4: Likewise.
42561         * m4/utimes-null.m4: Likewise.
42562         * m4/utimes.m4: Likewise.
42563         * m4/vararrays.m4: Likewise.
42564         * m4/vasnprintf.m4: Likewise.
42565         * m4/vfprintf-posix.m4: Likewise.
42566         * m4/vprintf-posix.m4: Likewise.
42567         * m4/wait-process.m4: Likewise.
42568         * m4/wchar_t.m4: Likewise.
42569         * m4/wint_t.m4: Likewise.
42570         * m4/write-any-file.m4: Likewise.
42571         * m4/yield.m4: Likewise.
42572
42573 2009-01-13  Bruno Haible  <bruno@clisp.org>
42574
42575         Avoid test-copy-file.sh failures when ACL support insufficient.
42576         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42577         TESTS_ENVIRONMENT.
42578         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42579         Reported by Jim Meyering.
42580
42581 2009-01-13  Bruno Haible  <bruno@clisp.org>
42582
42583         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42584         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42585         * modules/unistdio/u8-printf-parse (Files): Likewise.
42586         * modules/unistdio/u32-printf-parse (Files): Likewise.
42587         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42588
42589 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42590
42591         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42592         and m4/inttypes_h.m4 too.
42593
42594 2009-01-12  Eric Blake  <ebb9@byu.net>
42595
42596         tests: IRIX 6.2 cc can't compile -0.0 into .data
42597         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42598         rather than at compile-time.
42599         * tests/test-floorl.c (minus_zero): Likewise.
42600         * tests/test-frexpl.c (minus_zero): Likewise.
42601         * tests/test-isnan.c (minus_zerol): Likewise.
42602         * tests/test-isnanl.h (minus_zero): Likewise.
42603         * tests/test-ldexpl.c (minus_zero): Likewise.
42604         * tests/test-roundl.c (minus_zero): Likewise.
42605         * tests/test-signbit.c (minus_zerol): Likewise.
42606         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42607         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42608         * tests/test-truncl.c (minus_zero): Likewise.
42609         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42610         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42611         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42612
42613 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42614
42615         regex: fix glibc bug 9697
42616         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42617         handling.
42618
42619 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42620
42621         regex: fix glibc bug 697
42622         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42623         being NULL also if there are no backreferences.
42624
42625 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42626
42627         regex: merge glibc changes
42628         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42629         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42630         re_string_skip_chars, re_string_reconstruct): Likewise.
42631         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42632
42633 2009-01-07  Jim Meyering  <meyering@redhat.com>
42634
42635         poll: filter through cppi
42636         * lib/poll.c: Indent cpp directives to reflect nesting.
42637
42638 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42639
42640         poll: don't return uninitialized
42641         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42642
42643 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42644
42645         avoid compile failure on AIX 6.1
42646         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42647         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42648
42649 2009-01-04  Jim Meyering  <meyering@redhat.com>
42650
42651         remove duplicate inclusion of <stdio.h>
42652         * tests/test-fprintf-posix.c: Likewise.
42653         * tests/test-printf-posix.c: Likewise.
42654         * tests/test-snprintf-posix.c: Likewise.
42655         * tests/test-sprintf-posix.c: Likewise.
42656         * tests/test-vasprintf-posix.c: Likewise.
42657         * tests/test-vfprintf-posix.c: Likewise.
42658         * tests/test-vprintf-posix.c: Likewise.
42659         * tests/test-vsnprintf-posix.c: Likewise.
42660         * tests/test-vsprintf-posix.c: Likewise.
42661
42662 2009-01-03  Jim Meyering  <meyering@redhat.com>
42663
42664         gnulib-tool: fix sed-based filtering
42665         * gnulib-tool (func_filter_filelist): Remove extra backslash
42666         in sed_fff_filter definition.
42667
42668 2009-01-02  Jim Meyering  <meyering@redhat.com>
42669
42670         strftime: avoid compilation failure on Solaris 2.6
42671         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42672         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42673         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42674         be available.  Reported by Tom G. Christensen.  Details in
42675         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42676
42677 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42678             Bruno Haible  <bruno@clisp.org>
42679
42680         Speed up gnulib-tool by doing more string processing through shell
42681         built-ins.
42682         * gnulib-tool (fast_func_append): New variable.
42683         (func_remove_prefix, func_remove_suffix): New functions.
42684         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42685         (func_filter_filelist): New function.
42686         (func_get_dependencies): Use func_remove_suffix instead of sed.
42687         (func_get_automake_snippet): Use func_filter_filelist instead of a
42688         subshell and sed invocation.
42689
42690 2009-01-01  Bruno Haible  <bruno@clisp.org>
42691
42692         Fix a security bug.
42693         * gnulib-tool (func_import, import, update): Don't allow the characters
42694         '"', '$', '`', '\' in macro arguments that become part of commands that
42695         are evaluated.
42696
42697 2009-01-01  Bruno Haible  <bruno@clisp.org>
42698
42699         * gnulib-tool (func_reset_sigpipe): Add more comments.
42700
42701 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42702
42703         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42704         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42705         already know the answer.
42706
42707 2009-01-01  Jim Meyering  <meyering@redhat.com>
42708
42709         * lib/version-etc.c (version_etc_va): Update copyright year.
42710
42711 2008-12-30  Bruno Haible  <bruno@clisp.org>
42712
42713         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42714         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42715         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42716
42717 2008-12-29  Eric Blake  <ebb9@byu.net>
42718
42719         multiarch: avoid autoconf AC_REQUIRE bug
42720         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42721         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42722         2.63 and older.
42723         Reported by Bruno Haible, and analyzed in
42724         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42725
42726 2008-12-29  Bruno Haible  <bruno@clisp.org>
42727
42728         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42729         files in subdirectories correctly.
42730         Reported by Ralf Wildenhues.
42731
42732 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42733
42734         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42735         rather than 'join FILE -', for Solaris join.
42736
42737 2008-12-29  Bruno Haible  <bruno@clisp.org>
42738
42739         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42740         quoting.
42741         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42742         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42743         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42744         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42745         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42746         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42747         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42748         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42749         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42750         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42751         * m4/nls.m4 (AM_NLS): Likewise.
42752         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42753         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42754         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42755         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42756         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42757         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42758         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42759         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42760         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42761         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42762         * m4/xsize.m4 (gl_XSIZE): Likewise.
42763         Suggested by Jim Meyering.
42764
42765 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42766
42767         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42768         * lib/parse-duration.c: use a switch instead of cascading if's.
42769
42770 2008-12-29  Eric Blake  <ebb9@byu.net>
42771
42772         wchar.h: supply WEOF on Irix 5.3
42773         * lib/wchar.in.h (wint_t): Also supply WEOF.
42774         * lib/wctype.in.h (wint_t): Likewise.
42775         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42776         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42777         Reported by Tom G. Christensen.
42778
42779 2008-12-26  Bruno Haible  <bruno@clisp.org>
42780
42781         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42782         i486, i586, i686.
42783
42784 2008-12-26  Bruno Haible  <bruno@clisp.org>
42785
42786         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42787
42788 2008-12-26  Bruno Haible  <bruno@clisp.org>
42789
42790         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42791         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42792         not __STDC_CONSTANT_MACROS.
42793         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42794
42795 2008-12-25  Bruno Haible  <bruno@clisp.org>
42796
42797         Add support for universal builds to vasnprintf.
42798         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42799         universal builds, guess no.
42800         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42801         * modules/vasprintf-posix (Depends-on): Likewise.
42802         * modules/fprintf-posix (Depends-on): Likewise.
42803         * modules/vfprintf-posix (Depends-on): Likewise.
42804         * modules/snprintf-posix (Depends-on): Likewise.
42805         * modules/vsnprintf-posix (Depends-on): Likewise.
42806         * modules/sprintf-posix (Depends-on): Likewise.
42807         * modules/vsprintf-posix (Depends-on): Likewise.
42808         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42809         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42810         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42811         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42812         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42813         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42814         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42815
42816         Add support for universal builds to <inttypes.h>.
42817         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42818         _SCNu64_PREFIX): In Apple
42819         universal builds, define directly, using _LP64.
42820         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42821         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42822         * modules/inttypes (Depends-on): Add multiarch.
42823         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42824
42825         Add support for universal builds to <stdint.h>.
42826         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42827         universal builds, define directly, using _LP64.
42828         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42829         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42830         and size_t.
42831         * modules/stdint (Depends-on): Add multiarch.
42832         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42833
42834         New module 'multiarch'.
42835         * modules/multiarch: New file.
42836         * m4/multiarch.m4: New file.
42837
42838 2008-12-25  Bruno Haible  <bruno@clisp.org>
42839
42840         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42841
42842 2008-12-25  Bruno Haible  <bruno@clisp.org>
42843
42844         * modules/btowc (License): Relicense under LGPLv2+.
42845         * modules/mbsinit (License): Likewise.
42846         * modules/mbrtowc (License): Likewise.
42847         * modules/wcrtomb (License): Likewise.
42848         * modules/streq (License): Likewise.
42849         Reported by David Lutterkort <lutter@redhat.com>.
42850
42851 2008-12-23  Bruno Haible  <bruno@clisp.org>
42852
42853         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42854
42855 2008-12-23  Bruno Haible  <bruno@clisp.org>
42856
42857         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42858         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42859         GETADDRINFO_LIB, not in LIBS.
42860         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42861         * modules/canon-host (Link): Likewise.
42862         * NEWS: Mention the change.
42863         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42864         GETADDRINFO_LIB.
42865
42866 2008-12-22  Bruno Haible  <bruno@clisp.org>
42867
42868         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42869         * doc/posix-functions/iswalpha_l.texi: Likewise.
42870         * doc/posix-functions/iswblank_l.texi: Likewise.
42871         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42872         * doc/posix-functions/iswctype_l.texi: Likewise.
42873         * doc/posix-functions/iswdigit_l.texi: Likewise.
42874         * doc/posix-functions/iswgraph_l.texi: Likewise.
42875         * doc/posix-functions/iswlower_l.texi: Likewise.
42876         * doc/posix-functions/iswprint_l.texi: Likewise.
42877         * doc/posix-functions/iswpunct_l.texi: Likewise.
42878         * doc/posix-functions/iswspace_l.texi: Likewise.
42879         * doc/posix-functions/iswupper_l.texi: Likewise.
42880         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42881         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42882         * doc/posix-functions/open_wmemstream.texi: Likewise.
42883         * doc/posix-functions/swscanf.texi: Likewise.
42884         * doc/posix-functions/towctrans_l.texi: Likewise.
42885         * doc/posix-functions/towlower.texi: Likewise.
42886         * doc/posix-functions/towlower_l.texi: Likewise.
42887         * doc/posix-functions/towupper.texi: Likewise.
42888         * doc/posix-functions/towupper_l.texi: Likewise.
42889         * doc/posix-functions/vfwprintf.texi: Likewise.
42890         * doc/posix-functions/vfwscanf.texi: Likewise.
42891         * doc/posix-functions/vswscanf.texi: Likewise.
42892         * doc/posix-functions/vwprintf.texi: Likewise.
42893         * doc/posix-functions/vwscanf.texi: Likewise.
42894         * doc/posix-functions/wcpcpy.texi: Likewise.
42895         * doc/posix-functions/wcpncpy.texi: Likewise.
42896         * doc/posix-functions/wcscasecmp.texi: Likewise.
42897         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42898         * doc/posix-functions/wcscoll_l.texi: Likewise.
42899         * doc/posix-functions/wcsdup.texi: Likewise.
42900         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42901         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42902         * doc/posix-functions/wcsnlen.texi: Likewise.
42903         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42904         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42905         * doc/posix-functions/wctrans_l.texi: Likewise.
42906         * doc/posix-functions/wctype_l.texi: Likewise.
42907         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42908         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42909         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42910         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42911         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42912         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42913         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42914         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42915         * doc/glibc-functions/wcschrnul.texi: Likewise.
42916         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42917         * doc/glibc-functions/wcstod_l.texi: Likewise.
42918         * doc/glibc-functions/wcstof_l.texi: Likewise.
42919         * doc/glibc-functions/wcstol_l.texi: Likewise.
42920         * doc/glibc-functions/wcstold_l.texi: Likewise.
42921         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42922         * doc/glibc-functions/wcstoq.texi: Likewise.
42923         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42924         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42925         * doc/glibc-functions/wcstouq.texi: Likewise.
42926         * doc/glibc-functions/wmempcpy.texi: Likewise.
42927
42928 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42929             Eric Blake  <ebb9@byu.net>
42930             Paolo Bonzini  <bonzini@gnu.org>
42931             Bruno Haible  <bruno@clisp.org>
42932
42933         Make c-stack work on Haiku.
42934         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42935         (c_stack_action): Use SA_ONSTACK flag.
42936
42937 2008-12-22  Bruno Haible  <bruno@clisp.org>
42938
42939         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42940
42941 2008-12-22  Bruno Haible  <bruno@clisp.org>
42942
42943         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42944         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42945         being overridden.
42946         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42947         New macros.
42948         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42950         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42951         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42952
42953 2008-12-22  Bruno Haible  <bruno@clisp.org>
42954
42955         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42956         from test code.
42957
42958 2008-12-22  Eric Blake  <ebb9@byu.net>
42959
42960         Avoid gcc warnings on cygwin.
42961         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42962         Avoid unused variable.
42963         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42964         Likewise.
42965
42966 2008-12-22  Bruno Haible  <bruno@clisp.org>
42967
42968         Remove HAVE_MBRTOWC conditionals.
42969         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42970         (mbscasecmp): Assume mbrtowc function.
42971         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42972         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42973         * lib/mbschr.c: Include mbuiter.h unconditionally.
42974         (mbschr): Assume mbrtowc function.
42975         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42976         (mbscspn): Assume mbrtowc function.
42977         * lib/mbslen.c: Include mbuiter.h unconditionally.
42978         (mbslen): Assume mbrtowc function.
42979         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42980         (mbsncasecmp): Assume mbrtowc function.
42981         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42982         (mbsnlen): Assume mbrtowc function.
42983         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42984         (mbspbrk): Assume mbrtowc function.
42985         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42986         (mbspcasecmp): Assume mbrtowc function.
42987         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42988         (mbsrchr): Assume mbrtowc function.
42989         * lib/mbssep.c: Include mbuiter.h unconditionally.
42990         (mbssep): Assume mbrtowc function.
42991         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42992         (mbsspn): Assume mbrtowc function.
42993         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42994         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42995         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42996         (mbstok_r): Assume mbrtowc function.
42997         * lib/propername.c: Include mbuiter.h unconditionally.
42998         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42999         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43000         (trim2): Assume mbrtowc function.
43001         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43002         (mbsnwidth): Assume mbrtowc function.
43003         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43004         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43005         fallback definitions.
43006         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43007
43008 2008-12-22  Bruno Haible  <bruno@clisp.org>
43009
43010         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43011
43012 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43013
43014         * modules/regex: Request emulations for the mb*/wc* functions we need.
43015         * m4/regex.m4: Don't look for those functions here.
43016         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43017
43018 2008-12-22  Bruno Haible  <bruno@clisp.org>
43019
43020         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43021
43022 2008-12-21  Bruno Haible  <bruno@clisp.org>
43023
43024         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43025         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43026         (Include): Remove conditionalization.
43027         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43028         (Include): Remove conditionalization.
43029         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43030         (Include): Remove conditionalization.
43031         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43032         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43033         * NEWS: Mention the change.
43034         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43035         via Sergey Poznyakoff <gray@gnu.org.ua>.
43036
43037 2008-12-21  Bruno Haible  <bruno@clisp.org>
43038
43039         * MODULES.html.sh (Extended multibyte and wide character utilities
43040         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43041         wcrtomb, wcsrtombs.
43042         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43043         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43044         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43045         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43046
43047 2008-12-21  Bruno Haible  <bruno@clisp.org>
43048
43049         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43050
43051 2008-12-21  Bruno Haible  <bruno@clisp.org>
43052
43053         * modules/wcsnrtombs-tests: New file.
43054         * tests/test-wcsnrtombs1.sh: New file.
43055         * tests/test-wcsnrtombs2.sh: New file.
43056         * tests/test-wcsnrtombs3.sh: New file.
43057         * tests/test-wcsnrtombs4.sh: New file.
43058         * tests/test-wcsnrtombs.c: New file.
43059
43060         New module 'wcsnrtombs'.
43061         * lib/wchar.in.h (wcsnrtombs): New declaration.
43062         * lib/wcsnrtombs.c: New file.
43063         * lib/wcsrtombs-state.c: New file.
43064         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43065         (internal_state): Remove variable.
43066         * m4/wcsnrtombs.m4: New file.
43067         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43068         compilation units.
43069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43070         HAVE_WCSNRTOMBS.
43071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43072         HAVE_WCSNRTOMBS.
43073         * modules/wcsnrtombs: New file.
43074         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43075         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43076
43077 2008-12-21  Bruno Haible  <bruno@clisp.org>
43078
43079         * modules/wcsrtombs-tests: New file.
43080         * tests/test-wcsrtombs1.sh: New file.
43081         * tests/test-wcsrtombs2.sh: New file.
43082         * tests/test-wcsrtombs3.sh: New file.
43083         * tests/test-wcsrtombs4.sh: New file.
43084         * tests/test-wcsrtombs.c: New file.
43085
43086         New module 'wcsrtombs'.
43087         * lib/wchar.in.h (wcsrtombs): New declaration.
43088         * lib/wcsrtombs.c: New file.
43089         * m4/wcsrtombs.m4: New file.
43090         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43091         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43092         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43093         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43094         * modules/wcsrtombs: New file.
43095         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43096         bugs.
43097
43098 2008-12-21  Bruno Haible  <bruno@clisp.org>
43099
43100         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43101         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43102         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43103         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43104         if not correct.
43105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43106         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43107         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43108         m4/locale-zh.m4, m4/codeset.m4.
43109         * doc/posix-functions/wcrtomb.texi: Document the bug.
43110
43111 2008-12-21  Bruno Haible  <bruno@clisp.org>
43112
43113         Work around a btowc() bug on IRIX 6.5.
43114         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43115         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43116         REPLACE_WTOBC if not.
43117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43118         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43119         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43120
43121 2008-12-21  Bruno Haible  <bruno@clisp.org>
43122
43123         * modules/wcrtomb-tests: New file.
43124         * tests/test-wcrtomb.sh: New file.
43125         * tests/test-wcrtomb.c: New file.
43126
43127         New module 'wcrtomb'.
43128         * lib/wchar.in.h (wcrtomb): New declaration.
43129         * lib/wcrtomb.c: New file.
43130         * m4/wcrtomb.m4: New file.
43131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43132         HAVE_WCRTOMB.
43133         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43134         HAVE_WCRTOMB.
43135         * modules/wcrtomb: New file.
43136         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43137
43138 2008-12-21  Bruno Haible  <bruno@clisp.org>
43139
43140         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43141         * modules/mbsrtowcs (Files): Likewise.
43142         * modules/wctob (Files): Likewise.
43143         * modules/c-strcase-tests (Files): Likewise.
43144         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43145         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43146         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43147         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43148         * modules/vasnprintf-posix-tests (Files): Likewise.
43149
43150 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43151
43152         gitlog-to-changelog: pass all command-line arguments to git-log
43153         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43154         it is sometimes convenient to filter the commits in various ways.
43155         gitlog-to-changelog only allows --since to specify a start date,
43156         but git-log itself supports many other filtering mechanisms.
43157         At the moment, I want to filter by branch name.  Rather than
43158         adding a --branch option to gitlog-to-changelog, it seems more
43159         flexible to simply pass all options directly to git-log and let
43160         git do the work.  Notice that this effectively makes --since a
43161         redundant option for gitlog-to-changelog, but removing it would
43162         require current usage to change since calls would then require
43163         an additional '--'.
43164
43165 2008-12-21  Bruno Haible  <bruno@clisp.org>
43166
43167         * modules/mbsnrtowcs-tests: New file.
43168         * tests/test-mbsnrtowcs1.sh: New file.
43169         * tests/test-mbsnrtowcs2.sh: New file.
43170         * tests/test-mbsnrtowcs3.sh: New file.
43171         * tests/test-mbsnrtowcs4.sh: New file.
43172         * tests/test-mbsnrtowcs.c: New file.
43173
43174         New module 'mbsnrtowcs'.
43175         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43176         * lib/mbsnrtowcs.c: New file.
43177         * lib/mbsrtowcs-state.c: New file.
43178         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43179         (internal_state): Remove variable.
43180         * m4/mbsnrtowcs.m4: New file.
43181         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43182         compilation units.
43183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43184         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43185         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43186         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43187         * modules/mbsnrtowcs: New file.
43188         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43189         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43190         portability problem.
43191
43192 2008-12-21  Bruno Haible  <bruno@clisp.org>
43193
43194         Work around mbsrtowcs bug.
43195         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43196         (gl_FUNC_MBSRTOWCS): Invoke it.
43197         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43198         m4/locale-zh.m4.
43199         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43200
43201 2008-12-21  Bruno Haible  <bruno@clisp.org>
43202
43203         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43204
43205 2008-12-21  Bruno Haible  <bruno@clisp.org>
43206
43207         Update doc for AIX.
43208         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43209         16-bit wchar_t type.
43210         * doc/posix-functions/btowc.texi: Likewise.
43211         * doc/posix-functions/fgetwc.texi: Likewise.
43212         * doc/posix-functions/fgetws.texi: Likewise.
43213         * doc/posix-functions/fputwc.texi: Likewise.
43214         * doc/posix-functions/fputws.texi: Likewise.
43215         * doc/posix-functions/fwide.texi: Likewise.
43216         * doc/posix-functions/fwprintf.texi: Likewise.
43217         * doc/posix-functions/fwscanf.texi: Likewise.
43218         * doc/posix-functions/getwchar.texi: Likewise.
43219         * doc/posix-functions/getwc.texi: Likewise.
43220         * doc/posix-functions/iswalnum.texi: Likewise.
43221         * doc/posix-functions/iswalpha.texi: Likewise.
43222         * doc/posix-functions/iswblank.texi: Likewise.
43223         * doc/posix-functions/iswcntrl.texi: Likewise.
43224         * doc/posix-functions/iswctype.texi: Likewise.
43225         * doc/posix-functions/iswdigit.texi: Likewise.
43226         * doc/posix-functions/iswgraph.texi: Likewise.
43227         * doc/posix-functions/iswlower.texi: Likewise.
43228         * doc/posix-functions/iswprint.texi: Likewise.
43229         * doc/posix-functions/iswpunct.texi: Likewise.
43230         * doc/posix-functions/iswspace.texi: Likewise.
43231         * doc/posix-functions/iswupper.texi: Likewise.
43232         * doc/posix-functions/iswxdigit.texi: Likewise.
43233         * doc/posix-functions/mbrtowc.texi: Likewise.
43234         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43235         * doc/posix-functions/mbstowcs.texi: Likewise.
43236         * doc/posix-functions/mbtowc.texi: Likewise.
43237         * doc/posix-functions/putwchar.texi: Likewise.
43238         * doc/posix-functions/putwc.texi: Likewise.
43239         * doc/posix-functions/swprintf.texi: Likewise.
43240         * doc/posix-functions/tolower.texi: Likewise.
43241         * doc/posix-functions/toupper.texi: Likewise.
43242         * doc/posix-functions/towctrans.texi: Likewise.
43243         * doc/posix-functions/ungetwc.texi: Likewise.
43244         * doc/posix-functions/vswprintf.texi: Likewise.
43245         * doc/posix-functions/wcrtomb.texi: Likewise.
43246         * doc/posix-functions/wcscat.texi: Likewise.
43247         * doc/posix-functions/wcschr.texi: Likewise.
43248         * doc/posix-functions/wcscmp.texi: Likewise.
43249         * doc/posix-functions/wcscoll.texi: Likewise.
43250         * doc/posix-functions/wcscpy.texi: Likewise.
43251         * doc/posix-functions/wcscspn.texi: Likewise.
43252         * doc/posix-functions/wcsftime.texi: Likewise.
43253         * doc/posix-functions/wcslen.texi: Likewise.
43254         * doc/posix-functions/wcsncat.texi: Likewise.
43255         * doc/posix-functions/wcsncmp.texi: Likewise.
43256         * doc/posix-functions/wcsncpy.texi: Likewise.
43257         * doc/posix-functions/wcspbrk.texi: Likewise.
43258         * doc/posix-functions/wcsrchr.texi: Likewise.
43259         * doc/posix-functions/wcsrtombs.texi: Likewise.
43260         * doc/posix-functions/wcsspn.texi: Likewise.
43261         * doc/posix-functions/wcsstr.texi: Likewise.
43262         * doc/posix-functions/wcstod.texi: Likewise.
43263         * doc/posix-functions/wcstof.texi: Likewise.
43264         * doc/posix-functions/wcstoimax.texi: Likewise.
43265         * doc/posix-functions/wcstok.texi: Likewise.
43266         * doc/posix-functions/wcstold.texi: Likewise.
43267         * doc/posix-functions/wcstoll.texi: Likewise.
43268         * doc/posix-functions/wcstol.texi: Likewise.
43269         * doc/posix-functions/wcstombs.texi: Likewise.
43270         * doc/posix-functions/wcstoull.texi: Likewise.
43271         * doc/posix-functions/wcstoul.texi: Likewise.
43272         * doc/posix-functions/wcstoumax.texi: Likewise.
43273         * doc/posix-functions/wcswidth.texi: Likewise.
43274         * doc/posix-functions/wcsxfrm.texi: Likewise.
43275         * doc/posix-functions/wctob.texi: Likewise.
43276         * doc/posix-functions/wctomb.texi: Likewise.
43277         * doc/posix-functions/wctrans.texi: Likewise.
43278         * doc/posix-functions/wctype.texi: Likewise.
43279         * doc/posix-functions/wcwidth.texi: Likewise.
43280         * doc/posix-functions/wmemchr.texi: Likewise.
43281         * doc/posix-functions/wmemcmp.texi: Likewise.
43282         * doc/posix-functions/wmemcpy.texi: Likewise.
43283         * doc/posix-functions/wmemmove.texi: Likewise.
43284         * doc/posix-functions/wmemset.texi: Likewise.
43285         * doc/posix-functions/wprintf.texi: Likewise.
43286         * doc/posix-functions/wscanf.texi: Likewise.
43287
43288 2008-12-21  Bruno Haible  <bruno@clisp.org>
43289
43290         Update doc for HP-UX 11.11.
43291         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43292         in HP-UX version 11.00, not in all versions of HP-UX 11.
43293         * doc/posix-functions/fwide.texi: Likewise.
43294         * doc/posix-functions/fwprintf.texi: Likewise.
43295         * doc/posix-functions/fwscanf.texi: Likewise.
43296         * doc/posix-functions/inet_ntop.texi: Likewise.
43297         * doc/posix-functions/inet_pton.texi: Likewise.
43298         * doc/posix-functions/mbrlen.texi: Likewise.
43299         * doc/posix-functions/mbrtowc.texi: Likewise.
43300         * doc/posix-functions/mbsinit.texi: Likewise.
43301         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43302         * doc/posix-functions/swprintf.texi: Likewise.
43303         * doc/posix-functions/swscanf.texi: Likewise.
43304         * doc/posix-functions/towctrans.texi: Likewise.
43305         * doc/posix-functions/vfwprintf.texi: Likewise.
43306         * doc/posix-functions/vswprintf.texi: Likewise.
43307         * doc/posix-functions/vwprintf.texi: Likewise.
43308         * doc/posix-functions/wcrtomb.texi: Likewise.
43309         * doc/posix-functions/wcsrtombs.texi: Likewise.
43310         * doc/posix-functions/wcsstr.texi: Likewise.
43311         * doc/posix-functions/wctob.texi: Likewise.
43312         * doc/posix-functions/wctrans.texi: Likewise.
43313         * doc/posix-functions/wmemchr.texi: Likewise.
43314         * doc/posix-functions/wmemcmp.texi: Likewise.
43315         * doc/posix-functions/wmemcpy.texi: Likewise.
43316         * doc/posix-functions/wmemmove.texi: Likewise.
43317         * doc/posix-functions/wmemset.texi: Likewise.
43318         * doc/posix-functions/wprintf.texi: Likewise.
43319         * doc/posix-functions/wscanf.texi: Likewise.
43320
43321 2008-12-21  Bruno Haible  <bruno@clisp.org>
43322
43323         Work around a portability problem.
43324         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43325         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43326
43327 2008-12-20  Bruno Haible  <bruno@clisp.org>
43328
43329         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43330         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43331         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43333         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43334
43335         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43336         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43337         set.
43338         (GNULIB_defined_mbstate_t): New macro.
43339         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43340         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43341         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43342         reuses the system's mbrtowc function but works around the bugs.
43343         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43344         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43345         macros.
43346         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43347         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43348         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43349         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43350         REPLACE_MBSINIT if mbsinit needs to be overridden.
43351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43352         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43353         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43354         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43355         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43356         m4/locale-zh.m4.
43357         (Depends): Add mbsinit.
43358         * modules/mbsinit (Depends): Add mbrtowc.
43359         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43360
43361 2008-12-20  Bruno Haible  <bruno@clisp.org>
43362
43363         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43364         so that there are no conversion errors on AIX.
43365         * tests/test-mbsrtowcs.c (main): LIkewise.
43366
43367 2008-12-20  Bruno Haible  <bruno@clisp.org>
43368
43369         Work around wctob bug on Solaris <= 9.
43370         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43371         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43373         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43374         * modules/wctob (Files): Add m4/locale-fr.m4.
43375         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43376
43377 2008-12-20  Bruno Haible  <bruno@clisp.org>
43378
43379         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43380         /dev/null.
43381         * tests/test-select-in.sh: Likewise.
43382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43383
43384 2008-12-20  Bruno Haible  <bruno@clisp.org>
43385
43386         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43387         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43388         Cygwin 1.5.x.
43389
43390 2008-12-20  Bruno Haible  <bruno@clisp.org>
43391
43392         Ensure mbstate_t is defined on HP-UX 11.11.
43393         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43394         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43395         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43396         AC_USE_SYSTEM_EXTENSIONS.
43397         * modules/fnmatch (Depends-on): Add extensions.
43398         * modules/mbrlen (Depends-on): Likewise.
43399         * modules/mbrtowc (Depends-on): Likewise.
43400         * modules/mbsinit (Depends-on): Likewise.
43401         * modules/mbsrtowcs (Depends-on): Likewise.
43402         * modules/mbswidth (Depends-on): Likewise.
43403         * modules/quotearg (Depends-on): Likewise.
43404         * modules/strftime (Depends-on): Likewise.
43405
43406 2008-12-20  Bruno Haible  <bruno@clisp.org>
43407
43408         Ensure wctob is declared on IRIX 6.5.
43409         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43410         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43411         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43413         of HAVE_WCTOB.
43414         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43415         HAVE_WCTOB.
43416         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43417
43418 2008-12-19  Bruno Haible  <bruno@clisp.org>
43419
43420         * modules/mbsrtowcs-tests: New file.
43421         * tests/test-mbsrtowcs1.sh: New file.
43422         * tests/test-mbsrtowcs2.sh: New file.
43423         * tests/test-mbsrtowcs3.sh: New file.
43424         * tests/test-mbsrtowcs4.sh: New file.
43425         * tests/test-mbsrtowcs.c: New file.
43426
43427         New module 'mbsrtowcs'.
43428         * lib/wchar.in.h (mbsrtowcs): New declaration.
43429         * lib/mbsrtowcs.c: New file.
43430         * m4/mbsrtowcs.m4: New file.
43431         * modules/mbsrtowcs: New file.
43432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43433         HAVE_MBSRTOWCS.
43434         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43435         HAVE_MBSRTOWCS.
43436         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43437
43438 2008-12-19  Bruno Haible  <bruno@clisp.org>
43439
43440         New module 'mbrlen'.
43441         * lib/wchar.in.h (mbrlen): New declaration.
43442         * lib/mbrlen.c: New file.
43443         * m4/mbrlen.m4: New file.
43444         * modules/mbrlen: New file.
43445         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43446         HAVE_MBRLEN.
43447         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43448         HAVE_MBRLEN.
43449         * doc/posix-functions/mbrlen.texi: Document the new module.
43450
43451 2008-12-19  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43454         * modules/mbrtowc (Depends-on): Add verify.
43455         Suggested by Paul Eggert.
43456
43457 2008-12-18  Bruno Haible  <bruno@clisp.org>
43458
43459         * modules/mbsinit-tests: New file.
43460         * tests/test-mbsinit.sh: New file.
43461         * tests/test-mbsinit.c: New file.
43462
43463 2008-12-18  Bruno Haible  <bruno@clisp.org>
43464
43465         * modules/mbrtowc-tests: New file.
43466         * tests/test-mbrtowc1.sh: New file.
43467         * tests/test-mbrtowc2.sh: New file.
43468         * tests/test-mbrtowc3.sh: New file.
43469         * tests/test-mbrtowc4.sh: New file.
43470         * tests/test-mbrtowc.c: New file.
43471
43472         New module 'mbrtowc'.
43473         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43474         mbsinit and mbrtowc.
43475         (mbrtowc): New declaration.
43476         * lib/mbrtowc.c: New file.
43477         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43478         * modules/mbrtowc: New file.
43479         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43480         HAVE_MBRTOWC.
43481         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43482         HAVE_MBRTOWC.
43483         * doc/posix-functions/mbrtowc.texi: Document the new module.
43484
43485 2008-12-18  Bruno Haible  <bruno@clisp.org>
43486
43487         New module 'wctob'.
43488         * lib/wchar.in.h (wctob): New declaration.
43489         * lib/wctob.c: New file.
43490         * m4/wctob.m4: New file.
43491         * modules/wctob: New file.
43492         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43493         HAVE_WCTOB.
43494         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43495         * doc/posix-functions/wctob.texi: Document the new module.
43496
43497 2008-12-18  Bruno Haible  <bruno@clisp.org>
43498
43499         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43500         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43501
43502 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43503
43504         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43505         G. Christensen" <tgc@jupiterrise.com>.
43506
43507         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43508         G. Christensen" <tgc@jupiterrise.com>.
43509
43510         * lib/flock.c: Need to include string.h.  Reported by "Tom
43511         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43512         <ebb9@byu.net>.
43513
43514 2008-12-18  Bruno Haible  <bruno@clisp.org>
43515
43516         * m4/locale-ja.m4: New file, from GNU gettext.
43517
43518 2008-12-17  Bruno Haible  <bruno@clisp.org>
43519
43520         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43521         Suggested by Eric Blake.
43522
43523 2008-12-17  Bruno Haible  <bruno@clisp.org>
43524
43525         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43526
43527 2008-12-17  Bruno Haible  <bruno@clisp.org>
43528
43529         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43530         * modules/mbsinit (Depends-on): Add verify.
43531         Suggested by Paul Eggert.
43532
43533 2008-12-17  Bruno Haible  <bruno@clisp.org>
43534
43535         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43536         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43537         gl_FUNC_MBRTOWC.
43538         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43539         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43540         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43541         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43542         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43543         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43544         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43545         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43546         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43547         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43548         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43549         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43550         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43551         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43552         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43553         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43554         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43555         * modules/trim (configure.ac): Likewise.
43556
43557 2008-12-17  Bruno Haible  <bruno@clisp.org>
43558
43559         * modules/btowc-tests: New file.
43560         * tests/test-btowc1.sh: New file.
43561         * tests/test-btowc2.sh: New file.
43562         * tests/test-btowc.c: New file.
43563
43564         New module 'btowc'.
43565         * lib/wchar.in.h (btowc): New declaration.
43566         * lib/btowc.c: New file.
43567         * m4/btowc.m4: New file.
43568         * modules/btowc: New file.
43569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43570         HAVE_BTOWC.
43571         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43572         * doc/posix-functions/btowc.texi: Document the new module.
43573
43574 2008-12-17  Bruno Haible  <bruno@clisp.org>
43575
43576         New module 'mbsinit'.
43577         * lib/wchar.in.h (mbsinit): New declaration.
43578         * lib/mbsinit.c: New file.
43579         * m4/mbsinit.m4: New file.
43580         * modules/mbsinit: New file.
43581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43582         HAVE_MBSINIT.
43583         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43584         HAVE_MBSINIT.
43585         * doc/posix-functions/mbsinit.texi: Document the new module.
43586
43587 2008-12-16  Bruno Haible  <bruno@clisp.org>
43588
43589         * lib/unistd.in.h: Add comment.
43590         * tests/test-environ.c: Don't include <stdlib.h>.
43591
43592 2008-12-16  Bruno Haible  <bruno@clisp.org>
43593
43594         * lib/parse-duration.h (parse_duration): Document return value
43595         convention.
43596         * lib/parse-duration.c: Include specification header first. Add
43597         comments.
43598         (_): Remove macro.
43599         (parse_year_month_day, parse_hour_minute_second): Move side effects
43600         outside of strchr call.
43601         (parse_non_iso8601): Move side effects outside of isspace call.
43602         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43603         call.
43604
43605 2008-12-16  Bruno Haible  <bruno@clisp.org>
43606
43607         * tests/test-parse-duration.sh: Produce no output when the test
43608         succeeds.
43609
43610 2008-12-16  Bruno Haible  <bruno@clisp.org>
43611
43612         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43613         expressions.
43614
43615 2008-12-15  Bruno Haible  <bruno@clisp.org>
43616
43617         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43618         * doc/glibc-functions/flistxattr.texi: Likewise.
43619         * doc/glibc-functions/fopencookie.texi: Likewise.
43620         * doc/glibc-functions/fremovexattr.texi: Likewise.
43621         * doc/glibc-functions/fsetxattr.texi: Likewise.
43622         * doc/glibc-functions/getxattr.texi: Likewise.
43623         * doc/glibc-functions/lgetxattr.texi: Likewise.
43624         * doc/glibc-functions/listxattr.texi: Likewise.
43625         * doc/glibc-functions/llistxattr.texi: Likewise.
43626         * doc/glibc-functions/lremovexattr.texi: Likewise.
43627         * doc/glibc-functions/lsetxattr.texi: Likewise.
43628         * doc/glibc-functions/removexattr.texi: Likewise.
43629         * doc/glibc-functions/setxattr.texi: Likewise.
43630         * doc/posix-functions/open_memstream.texi: Likewise.
43631
43632 2008-12-15  Eric Blake  <ebb9@byu.net>
43633
43634         Update doc for cygwin 1.7.
43635         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43636         functions.
43637         * doc/posix-functions/fchmodat.texi: Likewise.
43638         * doc/posix-functions/fchownat.texi: Likewise.
43639         * doc/posix-functions/fdopendir.texi: Likewise.
43640         * doc/posix-functions/fmemopen.texi: Likewise.
43641         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43642         * doc/posix-functions/fstatat.texi: Likewise.
43643         * doc/posix-functions/futimens.texi: Likewise.
43644         * doc/posix-functions/gai_strerror.texi: Likewise.
43645         * doc/posix-functions/getaddrinfo.texi: Likewise.
43646         * doc/posix-functions/getnameinfo.texi: Likewise.
43647         * doc/posix-functions/if_freenameindex.texi: Likewise.
43648         * doc/posix-functions/if_indextoname.texi: Likewise.
43649         * doc/posix-functions/if_nameindex.texi: Likewise.
43650         * doc/posix-functions/if_nametoindex.texi: Likewise.
43651         * doc/posix-functions/insque.texi: Likewise.
43652         * doc/posix-functions/linkat.texi: Likewise.
43653         * doc/posix-functions/llrint.texi: Likewise.
43654         * doc/posix-functions/llrintf.texi: Likewise.
43655         * doc/posix-functions/llrintl.texi: Likewise.
43656         * doc/posix-functions/lockf.texi: Likewise.
43657         * doc/posix-functions/lrintl.texi: Likewise.
43658         * doc/posix-functions/mkdirat.texi: Likewise.
43659         * doc/posix-functions/mkfifoat.texi: Likewise.
43660         * doc/posix-functions/mknodat.texi: Likewise.
43661         * doc/posix-functions/mq_close.texi: Likewise.
43662         * doc/posix-functions/mq_getattr.texi: Likewise.
43663         * doc/posix-functions/mq_notify.texi: Likewise.
43664         * doc/posix-functions/mq_open.texi: Likewise.
43665         * doc/posix-functions/mq_receive.texi: Likewise.
43666         * doc/posix-functions/mq_send.texi: Likewise.
43667         * doc/posix-functions/mq_setattr.texi: Likewise.
43668         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43669         * doc/posix-functions/mq_timedsend.texi: Likewise.
43670         * doc/posix-functions/mq_unlink.texi: Likewise.
43671         * doc/posix-functions/open_memstream.texi: Likewise.
43672         * doc/posix-functions/openat.texi: Likewise.
43673         * doc/posix-functions/posix_fadvise.texi: Likewise.
43674         * doc/posix-functions/posix_fallocate.texi: Likewise.
43675         * doc/posix-functions/posix_madvise.texi: Likewise.
43676         * doc/posix-functions/posix_memalign.texi: Likewise.
43677         * doc/posix-functions/posix_openpt.texi: Likewise.
43678         * doc/posix-functions/readlinkat.texi: Likewise.
43679         * doc/posix-functions/remque.texi: Likewise.
43680         * doc/posix-functions/renameat.texi: Likewise.
43681         * doc/posix-functions/rintl.texi: Likewise.
43682         * doc/posix-functions/sem_unlink.texi: Likewise.
43683         * doc/posix-functions/shm_open.texi: Likewise.
43684         * doc/posix-functions/shm_unlink.texi: Likewise.
43685         * doc/posix-functions/signgam.texi: Likewise.
43686         * doc/posix-functions/sigset.texi: Likewise.
43687         * doc/posix-functions/stpcpy.texi: Likewise.
43688         * doc/posix-functions/stpncpy.texi: Likewise.
43689         * doc/posix-functions/strerror.texi: Likewise.
43690         * doc/posix-functions/strtod.texi: Likewise.
43691         * doc/posix-functions/symlinkat.texi: Likewise.
43692         * doc/posix-functions/unlinkat.texi: Likewise.
43693         * doc/posix-functions/utimensat.texi: Likewise.
43694         * doc/glibc-functions/bindresvport.texi: Likewise.
43695         * doc/glibc-functions/dn_expand.texi: Likewise.
43696         * doc/glibc-functions/exp10.texi: Likewise.
43697         * doc/glibc-functions/exp10f.texi: Likewise.
43698         * doc/glibc-functions/fgetxattr.texi: Likewise.
43699         * doc/glibc-functions/flistxattr.texi: Likewise.
43700         * doc/glibc-functions/fopencookie.texi: Likewise.
43701         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43702         * doc/glibc-functions/fremovexattr.texi: Likewise.
43703         * doc/glibc-functions/fsetxattr.texi: Likewise.
43704         * doc/glibc-functions/getifaddrs.texi: Likewise.
43705         * doc/glibc-functions/getxattr.texi: Likewise.
43706         * doc/glibc-functions/lgetxattr.texi: Likewise.
43707         * doc/glibc-functions/listxattr.texi: Likewise.
43708         * doc/glibc-functions/llistxattr.texi: Likewise.
43709         * doc/glibc-functions/lremovexattr.texi: Likewise.
43710         * doc/glibc-functions/lsetxattr.texi: Likewise.
43711         * doc/glibc-functions/pow10.texi: Likewise.
43712         * doc/glibc-functions/pow10f.texi: Likewise.
43713         * doc/glibc-functions/rcmd_af.texi: Likewise.
43714         * doc/glibc-functions/removexattr.texi: Likewise.
43715         * doc/glibc-functions/res_init.texi: Likewise.
43716         * doc/glibc-functions/res_mkquery.texi: Likewise.
43717         * doc/glibc-functions/res_query.texi: Likewise.
43718         * doc/glibc-functions/res_querydomain.texi: Likewise.
43719         * doc/glibc-functions/res_send.texi: Likewise.
43720         * doc/glibc-functions/rresvport_af.texi: Likewise.
43721         * doc/glibc-functions/setxattr.texi: Likewise.
43722         * doc/glibc-functions/strcasestr.texi: Likewise.
43723
43724 2008-12-15  Bruno Haible  <bruno@clisp.org>
43725
43726         Fix compilation error on OSF/1 4.0.
43727         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43728         <sys/time.h>, simply delegate to the system header.
43729         Reported by Daniel Richard G. <oss@teragram.com>.
43730
43731 2008-12-15  Bruno Haible  <bruno@clisp.org>
43732
43733         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43734         * doc/posix-functions/fchmodat.texi: Likewise.
43735         * doc/posix-functions/fchownat.texi: Likewise.
43736         * doc/posix-functions/fdopendir.texi: Likewise.
43737         * doc/posix-functions/fstatat.texi: Likewise.
43738         * doc/posix-functions/mkdirat.texi: Likewise.
43739         * doc/posix-functions/unlinkat.texi: Likewise.
43740
43741 2008-12-14  Bruno Haible  <bruno@clisp.org>
43742
43743         Update doc for POSIX:2008.
43744         * doc/posix-functions/faccessat.texi: New file.
43745         * doc/posix-functions/fchmodat.texi: New file.
43746         * doc/posix-functions/fchownat.texi: New file.
43747         * doc/posix-functions/fdopendir.texi: New file.
43748         * doc/posix-functions/fstatat.texi: New file.
43749         * doc/posix-functions/futimens.texi: New file.
43750         * doc/posix-functions/linkat.texi: New file.
43751         * doc/posix-functions/mkdirat.texi: New file.
43752         * doc/posix-functions/mkfifoat.texi: New file.
43753         * doc/posix-functions/mknodat.texi: New file.
43754         * doc/posix-functions/open_wmemstream.texi: New file.
43755         * doc/posix-functions/openat.texi: New file.
43756         * doc/posix-functions/psiginfo.texi: New file.
43757         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43758         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43759         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43760         * doc/posix-functions/readlinkat.texi: New file.
43761         * doc/posix-functions/renameat.texi: New file.
43762         * doc/posix-functions/strerror_l.texi: New file.
43763         * doc/posix-functions/symlinkat.texi: New file.
43764         * doc/posix-functions/unlinkat.texi: New file.
43765         * doc/posix-functions/utimensat.texi: New file.
43766         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43767
43768 2008-12-14  Bruno Haible  <bruno@clisp.org>
43769
43770         Update doc for POSIX:2008.
43771         * doc/posix-functions/alphasort.texi: Renamed from
43772         doc/glibc-functions/alphasort.texi.
43773         * doc/posix-functions/dirfd.texi: Renamed from
43774         doc/glibc-functions/dirfd.texi.
43775         * doc/posix-functions/dprintf.texi: Renamed from
43776         doc/glibc-functions/dprintf.texi.
43777         * doc/posix-functions/duplocale.texi: Renamed from
43778         doc/glibc-functions/duplocale.texi.
43779         * doc/posix-functions/fexecve.texi: Renamed from
43780         doc/glibc-functions/fexecve.texi.
43781         * doc/posix-functions/fmemopen.texi: Renamed from
43782         doc/glibc-functions/fmemopen.texi.
43783         * doc/posix-functions/freelocale.texi: Renamed from
43784         doc/glibc-functions/freelocale.texi.
43785         * doc/posix-functions/getdate_err.texi: Renamed from
43786         doc/glibc-functions/getdate_err.texi.
43787         * doc/posix-functions/isalnum_l.texi: Renamed from
43788         doc/glibc-functions/isalnum_l.texi.
43789         * doc/posix-functions/isalpha_l.texi: Renamed from
43790         doc/glibc-functions/isalpha_l.texi.
43791         * doc/posix-functions/isblank_l.texi: Renamed from
43792         doc/glibc-functions/isblank_l.texi.
43793         * doc/posix-functions/iscntrl_l.texi: Renamed from
43794         doc/glibc-functions/iscntrl_l.texi.
43795         * doc/posix-functions/isdigit_l.texi: Renamed from
43796         doc/glibc-functions/isdigit_l.texi.
43797         * doc/posix-functions/isgraph_l.texi: Renamed from
43798         doc/glibc-functions/isgraph_l.texi.
43799         * doc/posix-functions/islower_l.texi: Renamed from
43800         doc/glibc-functions/islower_l.texi.
43801         * doc/posix-functions/isprint_l.texi: Renamed from
43802         doc/glibc-functions/isprint_l.texi.
43803         * doc/posix-functions/ispunct_l.texi: Renamed from
43804         doc/glibc-functions/ispunct_l.texi.
43805         * doc/posix-functions/isspace_l.texi: Renamed from
43806         doc/glibc-functions/isspace_l.texi.
43807         * doc/posix-functions/isupper_l.texi: Renamed from
43808         doc/glibc-functions/isupper_l.texi.
43809         * doc/posix-functions/iswalnum_l.texi: Renamed from
43810         doc/glibc-functions/iswalnum_l.texi.
43811         * doc/posix-functions/iswalpha_l.texi: Renamed from
43812         doc/glibc-functions/iswalpha_l.texi.
43813         * doc/posix-functions/iswblank_l.texi: Renamed from
43814         doc/glibc-functions/iswblank_l.texi.
43815         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43816         doc/glibc-functions/iswcntrl_l.texi.
43817         * doc/posix-functions/iswctype_l.texi: Renamed from
43818         doc/glibc-functions/iswctype_l.texi.
43819         * doc/posix-functions/iswdigit_l.texi: Renamed from
43820         doc/glibc-functions/iswdigit_l.texi.
43821         * doc/posix-functions/iswgraph_l.texi: Renamed from
43822         doc/glibc-functions/iswgraph_l.texi.
43823         * doc/posix-functions/iswlower_l.texi: Renamed from
43824         doc/glibc-functions/iswlower_l.texi.
43825         * doc/posix-functions/iswprint_l.texi: Renamed from
43826         doc/glibc-functions/iswprint_l.texi.
43827         * doc/posix-functions/iswpunct_l.texi: Renamed from
43828         doc/glibc-functions/iswpunct_l.texi.
43829         * doc/posix-functions/iswspace_l.texi: Renamed from
43830         doc/glibc-functions/iswspace_l.texi.
43831         * doc/posix-functions/iswupper_l.texi: Renamed from
43832         doc/glibc-functions/iswupper_l.texi.
43833         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43834         doc/glibc-functions/iswxdigit_l.texi.
43835         * doc/posix-functions/isxdigit_l.texi: Renamed from
43836         doc/glibc-functions/isxdigit_l.texi.
43837         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43838         doc/glibc-functions/mbsnrtowcs.texi.
43839         * doc/posix-functions/mkdtemp.texi: Renamed from
43840         doc/glibc-functions/mkdtemp.texi.
43841         * doc/posix-functions/newlocale.texi: Renamed from
43842         doc/glibc-functions/newlocale.texi.
43843         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43844         doc/glibc-functions/nl_langinfo_l.texi.
43845         * doc/posix-functions/open_memstream.texi: Renamed from
43846         doc/glibc-functions/open_memstream.texi.
43847         * doc/posix-functions/opterr.texi: Renamed from
43848         doc/glibc-functions/opterr.texi.
43849         * doc/posix-functions/optind.texi: Renamed from
43850         doc/glibc-functions/optind.texi.
43851         * doc/posix-functions/optopt.texi: Renamed from
43852         doc/glibc-functions/optopt.texi.
43853         * doc/posix-functions/psignal.texi: Renamed from
43854         doc/glibc-functions/psignal.texi.
43855         * doc/posix-functions/scandir.texi: Renamed from
43856         doc/glibc-functions/scandir.texi.
43857         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43858         doc/glibc-functions/sched_get_priority_min.texi.
43859         * doc/posix-functions/signgam.texi: Renamed from
43860         doc/glibc-functions/signgam.texi.
43861         * doc/posix-functions/stpcpy.texi: Renamed from
43862         doc/glibc-functions/stpcpy.texi.
43863         * doc/posix-functions/stpncpy.texi: Renamed from
43864         doc/glibc-functions/stpncpy.texi.
43865         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43866         doc/glibc-functions/strcasecmp_l.texi.
43867         * doc/posix-functions/strcoll_l.texi: Renamed from
43868         doc/glibc-functions/strcoll_l.texi.
43869         * doc/posix-functions/strfmon_l.texi: Renamed from
43870         doc/glibc-functions/strfmon_l.texi.
43871         * doc/posix-functions/strftime_l.texi: Renamed from
43872         doc/glibc-functions/strftime_l.texi.
43873         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43874         doc/glibc-functions/strncasecmp_l.texi.
43875         * doc/posix-functions/strndup.texi: Renamed from
43876         doc/glibc-functions/strndup.texi.
43877         * doc/posix-functions/strnlen.texi: Renamed from
43878         doc/glibc-functions/strnlen.texi.
43879         * doc/posix-functions/strsignal.texi: Renamed from
43880         doc/glibc-functions/strsignal.texi.
43881         * doc/posix-functions/strxfrm_l.texi: Renamed from
43882         doc/glibc-functions/strxfrm_l.texi.
43883         * doc/posix-functions/timer_gettime.texi: Renamed from
43884         doc/glibc-functions/timer_gettime.texi.
43885         * doc/posix-functions/tolower_l.texi: Renamed from
43886         doc/glibc-functions/tolower_l.texi.
43887         * doc/posix-functions/toupper_l.texi: Renamed from
43888         doc/glibc-functions/toupper_l.texi.
43889         * doc/posix-functions/towctrans_l.texi: Renamed from
43890         doc/glibc-functions/towctrans_l.texi.
43891         * doc/posix-functions/towlower_l.texi: Renamed from
43892         doc/glibc-functions/towlower_l.texi.
43893         * doc/posix-functions/towupper_l.texi: Renamed from
43894         doc/glibc-functions/towupper_l.texi.
43895         * doc/posix-functions/uselocale.texi: Renamed from
43896         doc/glibc-functions/uselocale.texi.
43897         * doc/posix-functions/vdprintf.texi: Renamed from
43898         doc/glibc-functions/vdprintf.texi.
43899         * doc/posix-functions/wcpcpy.texi:
43900         Renamed from doc/glibc-functions/wcpcpy.texi.
43901         * doc/posix-functions/wcpncpy.texi: Renamed from
43902         doc/glibc-functions/wcpncpy.texi.
43903         * doc/posix-functions/wcscasecmp.texi: Renamed from
43904         doc/glibc-functions/wcscasecmp.texi.
43905         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43906         doc/glibc-functions/wcscasecmp_l.texi.
43907         * doc/posix-functions/wcscoll_l.texi: Renamed from
43908         doc/glibc-functions/wcscoll_l.texi.
43909         * doc/posix-functions/wcsdup.texi: Renamed from
43910         doc/glibc-functions/wcsdup.texi.
43911         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43912         doc/glibc-functions/wcsncasecmp.texi.
43913         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43914         doc/glibc-functions/wcsncasecmp_l.texi.
43915         * doc/posix-functions/wcsnlen.texi: Renamed from
43916         doc/glibc-functions/wcsnlen.texi.
43917         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43918         doc/glibc-functions/wcsnrtombs.texi.
43919         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43920         doc/glibc-functions/wcsxfrm_l.texi.
43921         * doc/posix-functions/wctrans_l.texi: Renamed from
43922         doc/glibc-functions/wctrans_l.texi.
43923         * doc/posix-functions/wctype_l.texi: Renamed from
43924         doc/glibc-functions/wctype_l.texi.
43925         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43926         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43927         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43928         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43929         these subsections.
43930         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43931         Remove sections.
43932
43933 2008-12-14  Bruno Haible  <bruno@clisp.org>
43934
43935         Update doc for POSIX:2008.
43936         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43937
43938 2008-12-14  Bruno Haible  <bruno@clisp.org>
43939
43940         Update doc for POSIX:2008.
43941         * doc/pastposix-functions/bcmp.texi: Renamed from
43942         doc/posix-functions/bcmp.texi.
43943         * doc/pastposix-functions/bcopy.texi: Renamed from
43944         doc/posix-functions/bcopy.texi.
43945         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43946         doc/posix-functions/bsd_signal.texi.
43947         * doc/pastposix-functions/bzero.texi: Renamed from
43948         doc/posix-functions/bzero.texi.
43949         * doc/pastposix-functions/ecvt.texi: Renamed from
43950         doc/posix-functions/ecvt.texi.
43951         * doc/pastposix-functions/fcvt.texi: Renamed from
43952         doc/posix-functions/fcvt.texi.
43953         * doc/pastposix-functions/ftime.texi: Renamed from
43954         doc/posix-functions/ftime.texi.
43955         * doc/pastposix-functions/gcvt.texi: Renamed from
43956         doc/posix-functions/gcvt.texi.
43957         * doc/pastposix-functions/getcontext.texi: Renamed from
43958         doc/posix-functions/getcontext.texi.
43959         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43960         doc/posix-functions/gethostbyaddr.texi.
43961         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43962         doc/posix-functions/gethostbyname.texi.
43963         * doc/pastposix-functions/getwd.texi: Renamed from
43964         doc/posix-functions/getwd.texi.
43965         * doc/pastposix-functions/h_errno.texi: Renamed from
43966         doc/posix-functions/h_errno.texi.
43967         * doc/pastposix-functions/index.texi: Renamed from
43968         doc/posix-functions/index.texi.
43969         * doc/pastposix-functions/makecontext.texi: Renamed from
43970         doc/posix-functions/makecontext.texi.
43971         * doc/pastposix-functions/mktemp.texi: Renamed from
43972         doc/posix-functions/mktemp.texi.
43973         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43974         doc/posix-functions/pthread_attr_getstackaddr.texi.
43975         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43976         doc/posix-functions/pthread_attr_setstackaddr.texi.
43977         * doc/pastposix-functions/rindex.texi: Renamed from
43978         doc/posix-functions/rindex.texi.
43979         * doc/pastposix-functions/scalb.texi: Renamed from
43980         doc/posix-functions/scalb.texi.
43981         * doc/pastposix-functions/setcontext.texi: Renamed from
43982         doc/posix-functions/setcontext.texi.
43983         * doc/pastposix-functions/swapcontext.texi: Renamed from
43984         doc/posix-functions/swapcontext.texi.
43985         * doc/pastposix-functions/ualarm.texi: Renamed from
43986         doc/posix-functions/ualarm.texi.
43987         * doc/pastposix-functions/usleep.texi: Renamed from
43988         doc/posix-functions/usleep.texi.
43989         * doc/pastposix-functions/vfork.texi: Renamed from
43990         doc/posix-functions/vfork.texi.
43991         * doc/pastposix-functions/wcswcs.texi: Renamed from
43992         doc/posix-functions/wcswcs.texi.
43993         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43994         (Function Substitutes): Update.
43995
43996 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43997
43998         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43999         m4/strerror.m4.
44000
44001 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44002             Bruno Haible  <bruno@clisp.org>
44003
44004         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44005
44006 2008-12-13  Bruno Haible  <bruno@clisp.org>
44007
44008         * modules/strtoull (Depends-on): Remove unistd.
44009
44010 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44011
44012         * modules/strtoull (Depends-on): Add stdlib.
44013
44014 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44015
44016         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44017
44018 2008-12-10  Jim Meyering  <meyering@redhat.com>
44019
44020         gl_ASSERT: don't say assertions are disabled when they're not
44021         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44022         "checking whether to enable assertions... no", when they are in
44023         fact enabled.  This is solely a bug in the output of configure.
44024         In spite of saying "no", NDEBUG was not defined in that case.
44025         Also, as noted by Eric Blake, leave assertions enabled upon
44026         --enable-assert=INVALID.
44027
44028 2008-12-10  Bruno Haible  <bruno@clisp.org>
44029
44030         Change MODULES.html to refer to POSIX:2008 where possible.
44031         * MODULES.html.sh (POSIX2008_URL): New variable.
44032         (posix_headers): Remove sys/timeb, ucontext.
44033         (posix2001_headers): New variable.
44034         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44035         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44036         index, makecontext, mktemp, pthread_attr_getstackaddr,
44037         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44038         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44039         (posix2001_functions): New variable.
44040         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44041         otherwise.
44042
44043 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44044
44045         add missing include to parse-duration.c
44046         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44047         * modules/parse-duration (Depends-on): Add xalloc.
44048
44049         fix sed script reading maint.mk
44050         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44051         (syntax-check-rules): Use it.
44052
44053 2008-12-09  Bruno Haible  <bruno@clisp.org>
44054
44055         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44056         MacOS X 10.4/PowerPC.
44057         Reported by Simon Josefsson.
44058
44059 2008-12-08  Jim Meyering  <meyering@redhat.com>
44060
44061         work around mingw's lack of some S_IF definitions
44062         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44063         Reported by Simon Josefsson.
44064
44065 2008-12-08  Bruno Haible  <bruno@clisp.org>
44066
44067         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44068         applied to variables. Needed on MacOS X 10.4/PowerPC.
44069         Reported by Simon Josefsson.
44070
44071 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44072         and Eric Blake  <ebb9@byu.net>
44073
44074         assert: honor --enable-assert
44075         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44076         order to honor --enable-assert, rather than treating it as a
44077         synonym for --disable-assert.
44078
44079 2008-12-08  Jim Meyering  <meyering@redhat.com>
44080
44081         * lib/posixtm.c: Remove now-useless declaration of mktime.
44082
44083         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44084
44085 2008-12-07  Bruno Haible  <bruno@clisp.org>
44086
44087         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44088         test_once): Mark functions as static.
44089         * tests/test-tls.c (test_tls): Likewise.
44090
44091 2008-12-07  Bruno Haible  <bruno@clisp.org>
44092
44093         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44094         iconv_register_autodetect.
44095
44096 2008-12-07  Jim Meyering  <meyering@redhat.com>
44097
44098         posixtm.c: avoid a warning
44099         * lib/posixtm.c (posixtime): Don't initialize tm0.
44100         It's no longer needed to placate gcc4's -Wuninitialized,
44101         and the attempt to placate would elicit a new warning.
44102
44103         unicodeio.c: mark unused parameters
44104         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44105         (fallback_failure_callback): Likewise.
44106
44107 2008-12-07  Bruno Haible  <bruno@clisp.org>
44108
44109         * gnulib-tool (func_create_testdir): When building the tests
44110         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44111         Reported by Simon Josefsson.
44112
44113 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44114
44115         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44116
44117 2008-12-06  Bruno Haible  <bruno@clisp.org>
44118
44119         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44120         Suggested by Eric Blake.
44121
44122 2008-12-06  Bruno Haible  <bruno@clisp.org>
44123
44124         Fix a c-stack test failure on MacOS X.
44125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44126         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44127         handler for SIGBUS as well.
44128         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44129         install a signal handler for SIGBUS as well.
44130         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44131
44132 2008-12-06  Bruno Haible  <bruno@clisp.org>
44133
44134         Advocacy documentation.
44135         * doc/gnulib-intro.texi (Benefits): New section.
44136         * doc/gnulib.texi: Update.
44137
44138 2008-12-06  Bruno Haible  <bruno@clisp.org>
44139
44140         Document the 'manywarnings' module.
44141         * doc/manywarnings.texi: New file.
44142         * doc/gnulib.texi: Include it.
44143
44144 2008-12-05  Eric Blake  <ebb9@byu.net>
44145
44146         tests: silence some gcc warnings
44147         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44148         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44149         type mismatches.
44150
44151 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44152             Bruno Haible  <bruno@clisp.org>
44153
44154         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44155
44156 2008-11-29  Jim Meyering  <meyering@redhat.com>
44157
44158         unicodeio.c: mark unused parameters
44159         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44160         (fallback_failure_callback): Likewise.
44161
44162         fts: fix a thinko
44163         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44164         (set_stat_type): Return S_IF*-valued "type" directly.
44165         Prompted by James Youngman's spotting a related bug.
44166         Confirmed by further testing through find.
44167
44168         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44169         * lib/fts.c (D_TYPE): Define.
44170         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44171         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44172         (s_ifmt_shift_bits): New function.
44173         (set_stat_type): New function.
44174         (fts_build): When not calling fts_stat, call set_stat_type
44175         to propagate dirent.d_type info to fts_read caller.
44176         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44177         fts_statp->st_mode type information may be valid.
44178
44179 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44180
44181         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44182         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44183         <sds@gnu.org>.
44184
44185 2008-11-20  Bruno Haible  <bruno@clisp.org>
44186
44187         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44188         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44189         INCLUDE_NEXT.
44190         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44191         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44192         * modules/math (Makefile.am): Substitute
44193         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44194         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44195
44196 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44197             Bruno Haible  <bruno@clisp.org>
44198
44199         * lib/stdint.in.h: Define all type macros so that their expansion is
44200         a single typedef'ed token. Fixes a compilation failure in Boost which
44201         does "using ::int8_t;".
44202
44203 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44204
44205         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44206         gl_MANYWARN_ALL_GCC.
44207         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44208         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44209         * modules/manywarnings: New file.
44210         * MODULES.html.sh: Mention manywarnings module.
44211
44212 2008-11-18  Bruno Haible  <bruno@clisp.org>
44213
44214         * doc/gnulib-tool.texi (Unit tests): New section.
44215
44216 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44217
44218         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44219         paths like 'lib/po/foo.po'.
44220
44221 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44222
44223         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44224         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44225
44226 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44227
44228         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44229         parameter works.
44230
44231 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44232
44233         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44234
44235 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44236
44237         * modules/parse-duration-tests: New file.
44238         * tests/test-parse-duration.sh: New file.
44239         * tests/test-parse-duration.c: New file.
44240
44241         New module 'parse-duration'.
44242         * lib/parse-duration.h: New file.
44243         * lib/parse-duration.c: New file.
44244         * modules/parse-duration: New file.
44245
44246 2008-11-17  Bruno Haible  <bruno@clisp.org>
44247
44248         * tests/test-select-out.sh: Comment out the first pipe test.
44249         Reported by Simon Josefsson.
44250
44251 2008-11-17  Bruno Haible  <bruno@clisp.org>
44252
44253         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44254         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44255         gl_HOSTENT.
44256
44257 2008-11-17  Bruno Haible  <bruno@clisp.org>
44258
44259         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44260         -lnetwork and -lnet. Needed for Haiku and BeOS.
44261
44262 2008-11-16  Bruno Haible  <bruno@clisp.org>
44263
44264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44265
44266 2008-11-16  Bruno Haible  <bruno@clisp.org>
44267
44268         Avoid test failure on Haiku.
44269         * tests/test-fsync.c: Include <errno.h>.
44270         (main): Don't require that fsync (0) fails.
44271
44272 2008-11-15  Bruno Haible  <bruno@clisp.org>
44273
44274         New module 'hostent'.
44275         * modules/hostent: New file.
44276         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44277
44278 2008-11-15  Bruno Haible  <bruno@clisp.org>
44279
44280         New module 'servent'.
44281         * modules/servent: New file.
44282         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44283
44284 2008-11-15  Bruno Haible  <bruno@clisp.org>
44285
44286         Avoid generating same test program with two different rules.
44287         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44288         test-frexp to test-frexp-nolibm.
44289         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44290         test-frexpl to test-frexpl-nolibm.
44291
44292 2008-11-15  Bruno Haible  <bruno@clisp.org>
44293
44294         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44295         $(FREXPL_LIBM).
44296
44297 2008-11-15  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/netdb.in.h: Activate the definitions also when the system's
44300         <netdb.h> has 'struct addrinfo'.
44301         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44302         EAI_OVERFLOW or AI_NUMERICSERV.
44303         * doc/posix-headers/netdb.texi: Document the problem.
44304
44305 2008-11-15  Bruno Haible  <bruno@clisp.org>
44306
44307         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44308
44309         Make the 'sched' module work on platforms where <sched.h> exists but
44310         is incomplete (such as Haiku).
44311         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44312         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44313         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44314         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44315         HAVE_STRUCT_SCHED_PARAM.
44316         * modules/sched (Depends-on): Add include_next.
44317         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44318         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44319         * doc/posix-headers/sched.texi: Document the issue.
44320
44321 2008-11-13  Jim Meyering  <meyering@redhat.com>
44322
44323         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44324         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44325         test would fail due to the difference in the Report bugs to ...
44326         line.  The expected address is empty, "<>", while the actual
44327         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44328
44329 2008-11-12  Bruno Haible  <bruno@clisp.org>
44330
44331         lstat: don't compile lstat.c on systems lacking lstat
44332         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44333         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44334         Reported by Daniel P. Berrange via Jim Meyering.
44335
44336 2008-11-12  Jim Meyering  <meyering@redhat.com>
44337
44338         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44339
44340 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44341
44342         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44343         instead.
44344
44345 2008-11-12  Bruno Haible  <bruno@clisp.org>
44346
44347         * lib/unicodeio.c: Include unistr.h.
44348         (utf8_wctomb): Remove function.
44349         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44350
44351 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44352
44353         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44354         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44355         <bruno@clisp.org>.
44356         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44357
44358 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44359
44360         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44361         * doc/gnulib.texi: Add section for warnings.
44362
44363 2008-11-11  Bruno Haible  <bruno@clisp.org>
44364
44365         * lib/sockets.h: Add a comment.
44366
44367 2008-11-11  Karl Berry  <karl@gnu.org>
44368
44369         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44370
44371 2008-11-11  Eric Blake  <ebb9@byu.net>
44372
44373         fdl.texi: avoid git symlinks
44374         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44375
44376 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44377
44378         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44379
44380 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44381
44382         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44383         (gl_WARN_ADD): Substitute $2 if literal.
44384
44385 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44386
44387         * m4/warning.m4: Remove.
44388
44389 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44390
44391         * m4/warnings.m4: Almost complete rewrite. :-)
44392
44393 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44394
44395         * modules/warnings: New module.
44396         * m4/warnings.m4: New file.
44397         * MODULES.html.sh: Mention warnings module.
44398         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44399         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44400
44401 2008-11-10  Eric Blake  <ebb9@byu.net>
44402
44403         fdl.texi: make a symlink to the latest version
44404         * doc/standards.texi: Revert today's earlier change.
44405         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44406         * doc/fdl.texi: ...and replace this with a symlink to the newer
44407         fdl-1.3.texi.
44408
44409 2008-11-10  Bruno Haible  <bruno@clisp.org>
44410
44411         * tests/test-select-fd.c (main): Accept the result file name as fourth
44412         argument.
44413         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44414         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44415
44416 2008-11-10  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44419         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44420         as autoconf-substituted macros.
44421         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44422         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44423         gl_NETDB_H_DEFAULTS. Set these variables.
44424         * modules/netdb (Makefile.am): Substitute these variables.
44425
44426 2008-11-10  Eric Blake  <ebb9@byu.net>
44427
44428         standards.texi: include correct file for FDL 1.3
44429         * doc/standards.texi (GNU Free Documentation License): Change
44430         include file to pull in FDL 1.3, not 1.2.
44431
44432         fdl.texi: revert accidental change to license
44433         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44434
44435 2008-11-10  Bruno Haible  <bruno@clisp.org>
44436
44437         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44438         cross-compiling guesses also when the native compile gives no result.
44439
44440 2008-11-10  Bruno Haible  <bruno@clisp.org>
44441
44442         * lib/spawni.c (__spawni): Force variable into the stack.
44443
44444 2008-11-10  Bruno Haible  <bruno@clisp.org>
44445
44446         Add support for Haiku.
44447         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44448         glibc and BeOS, but also on Haiku.
44449         * lib/fpurge.c (fpurge): Likewise.
44450         * lib/freadable.c (freadable): Likewise.
44451         * lib/freadahead.c (freadahead): Likewise.
44452         * lib/freading.c (freading): Likewise.
44453         * lib/freadptr.c (freadptr): Likewise.
44454         * lib/freadseek.c (freadptrinc): Likewise.
44455         * lib/fseeko.c (rpl_fseeko): Likewise.
44456         * lib/fseterr.c (fseterr): Likewise.
44457         * lib/fwritable.c (fwritable): Likewise.
44458         * lib/fwriting.c (fwriting): Likewise.
44459         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44460
44461 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44462
44463         * lib/config.charset: Treat Haiku like BeOS.
44464
44465 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44466
44467         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44468         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44469
44470 2008-11-08  Bruno Haible  <bruno@clisp.org>
44471
44472         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44473         AC_CACHE_CHECK.
44474
44475 2008-11-08  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44478
44479 2008-11-08  Bruno Haible  <bruno@clisp.org>
44480
44481         * tests/test-select-fd.c: New file.
44482         * tests/test-select-in.sh: New file.
44483         * tests/test-select-out.sh: New file.
44484         * tests/test-select-stdin.c: New file.
44485         * modules/select-tests (Files): Add the new files.
44486         (Depends-on): Add gettimeofday.
44487         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44488         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44489         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44490
44491 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44492             Bruno Haible  <bruno@clisp.org>
44493
44494         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44495
44496 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44497
44498         * build-aux/pmccabe2html: Added support for C++ source files.
44499
44500 2008-11-05  Ben Pfaff  <blp@gnu.org>
44501
44502         Fix lib/close.c build on Windows.
44503         * modules/close (Files): Add lib/w32sock.h.
44504
44505 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44506
44507         Accept Bison's NEWS format.
44508         * build-aux/announce-gen (print_news_deltas): Tweak
44509         $re_prefix.
44510
44511 2008-11-04  Bruno Haible  <bruno@clisp.org>
44512
44513         * modules/random_r (Maintainer): Add glibc.
44514
44515 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44516
44517         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44518         by karl@freefriends.org (Karl Berry).
44519         * doc/alloca.texi: Likewise.
44520         * doc/c-ctype.texi: Likewise.
44521         * doc/c-strcase.texi: Likewise.
44522         * doc/c-strcaseeq.texi: Likewise.
44523         * doc/c-strcasestr.texi: Likewise.
44524         * doc/c-strstr.texi: Likewise.
44525         * doc/c-strtod.texi: Likewise.
44526         * doc/c-strtold.texi: Likewise.
44527         * doc/ctime.texi: Likewise.
44528         * doc/error.texi: Likewise.
44529         * doc/fdl.texi: Likewise.
44530         * doc/gcd.texi: Likewise.
44531         * doc/getdate.texi: Likewise.
44532         * doc/gnulib-intro.texi: Likewise.
44533         * doc/gnulib-tool.texi: Likewise.
44534         * doc/gnulib.texi: Likewise.
44535         * doc/inet_ntoa.texi: Likewise.
44536         * doc/maintain.texi: Likewise.
44537         * doc/make-stds.texi: Likewise.
44538         * doc/quote.texi: Likewise.
44539         * doc/regexprops-generic.texi: Likewise.
44540         * doc/standards.texi: Likewise.
44541         * doc/verify.texi: Likewise.
44542         * doc/visibility.texi: Likewise.
44543         * doc/gnulib.texi (GNU Free Documentation License): Include
44544         fdl-1.3.texi instead of fdl.texi.
44545
44546 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44547
44548         * doc/fdl-1.3.texi: New file, from
44549         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44550         * modules/fdl-1.3: Add.
44551         * MODULES.html.sh: Add fdl-1.3.
44552
44553 2008-11-03  Bruno Haible  <bruno@clisp.org>
44554
44555         Make determination of absolute name of header file work with AIX xlc.
44556         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44557         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44558         preprocessing.
44559         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44560         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44561
44562 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44563
44564         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44565         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44566         <ludo@gnu.org>.
44567
44568 2008-11-02  Bruno Haible  <bruno@clisp.org>
44569
44570         Mark 'strpbrk' obsolete.
44571         * modules/strpbrk (Status, Notice): New sections.
44572         * modules/strtok_r (Depends-on): Add strpbrk.
44573
44574 2008-11-02  Bruno Haible  <bruno@clisp.org>
44575
44576         Mark 'strdup' obsolete.
44577         * modules/strdup (Status, Notice): New sections.
44578         * modules/findprog (Depends-on): Add strdup.
44579         * modules/getaddrinfo (Depends-on): Likewise.
44580         * modules/localename (Depends-on): Likewise.
44581         * modules/relocatable-lib (Depends-on): Likewise.
44582         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44583         * modules/relocatable-prog (Depends-on): Likewise.
44584         * modules/trim (Depends-on): Likewise.
44585         * modules/unictype/gen-ctype (Depends-on): Likewise.
44586         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44587
44588 2008-11-02  Bruno Haible  <bruno@clisp.org>
44589
44590         Mark 'strcspn' obsolete.
44591         * modules/strcspn (Status, Notice): New sections.
44592
44593 2008-11-02  Bruno Haible  <bruno@clisp.org>
44594
44595         Mark 'rmdir' obsolete.
44596         * modules/rmdir (Status, Notice): New sections.
44597         * modules/clean-temp (Depends-on): Add rmdir.
44598         * modules/openat (Depends-on): Likewise.
44599
44600 2008-11-02  Bruno Haible  <bruno@clisp.org>
44601
44602         Mark 'raise' obsolete.
44603         * modules/raise (Status, Notice): New sections.
44604         (Include): Specify <signal.h>.
44605         * modules/stdio (Depends-on): Add raise.
44606         * modules/write (Depends-on): Likewise.
44607
44608 2008-11-02  Bruno Haible  <bruno@clisp.org>
44609
44610         Mark 'memset' obsolete.
44611         * modules/memset (Status, Notice): New sections.
44612
44613 2008-11-02  Bruno Haible  <bruno@clisp.org>
44614
44615         Mark 'memmove' obsolete.
44616         * modules/memmove (Status, Notice): New sections.
44617         * modules/argp (Depends-on): Add memmove.
44618         * modules/argz (Depends-on): Likewise.
44619         * modules/canonicalize (Depends-on): Likewise.
44620         * modules/canonicalize-lgpl (Depends-on): Likewise.
44621         * modules/fts (Depends-on): Likewise.
44622         * modules/getcwd (Depends-on): Likewise.
44623         * modules/human (Depends-on): Likewise.
44624         * modules/regex (Depends-on): Likewise.
44625         * modules/striconveh (Depends-on): Likewise.
44626         * modules/trim (Depends-on): Likewise.
44627         * modules/unistr/u8-move (Depends-on): Likewise.
44628         * modules/unistr/u16-move (Depends-on): Likewise.
44629         * modules/unistr/u32-move (Depends-on): Likewise.
44630
44631 2008-11-02  Bruno Haible  <bruno@clisp.org>
44632
44633         Mark 'memcpy' obsolete.
44634         * modules/memcpy (Status, Notice): New sections.
44635
44636 2008-11-02  Bruno Haible  <bruno@clisp.org>
44637
44638         Mark 'memcmp' obsolete.
44639         * modules/memcmp (Status, Notice): New sections.
44640         * modules/argmatch (Depends-on): Add memchr.
44641         * modules/backupfile (Depends-on): Likewise.
44642         * modules/c-strcasestr (Depends-on): Likewise.
44643         * modules/crypto/des (Depends-on): Likewise.
44644         * modules/csharpcomp (Depends-on): Likewise.
44645         * modules/fnmatch (Depends-on): Likewise.
44646         * modules/git-merge-changelog (Depends-on): Likewise.
44647         * modules/isnand (Depends-on): Likewise.
44648         * modules/isnand-nolibm (Depends-on): Likewise.
44649         * modules/isnanf (Depends-on): Likewise.
44650         * modules/isnanf-nolibm (Depends-on): Likewise.
44651         * modules/isnanl (Depends-on): Likewise.
44652         * modules/isnanl-nolibm (Depends-on): Likewise.
44653         * modules/mbchar (Depends-on): Likewise.
44654         * modules/memcoll (Depends-on): Likewise.
44655         * modules/quotearg (Depends-on): Likewise.
44656         * modules/regex (Depends-on): Likewise.
44657         * modules/relocatable-prog (Depends-on): Likewise.
44658         * modules/same (Depends-on): Likewise.
44659         * modules/signbit (Depends-on): Likewise.
44660         * modules/strcasestr-simple (Depends-on): Likewise.
44661         * modules/unictype/gen-ctype (Depends-on): Likewise.
44662         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44663         * modules/uniname/uniname (Depends-on): Likewise.
44664         * modules/unistr/u8-cmp (Depends-on): Likewise.
44665
44666 2008-11-02  Bruno Haible  <bruno@clisp.org>
44667
44668         Mark 'memchr' obsolete.
44669         * modules/memchr (Status, Notice): New sections.
44670         * modules/argp (Depends-on): Add memchr.
44671         * modules/base64 (Depends-on): Likewise.
44672         * modules/c-strcasestr (Depends-on): Likewise.
44673         * modules/chdir-long (Depends-on): Likewise.
44674         * modules/fnmatch (Depends-on): Likewise.
44675         * modules/getsubopt (Depends-on): Likewise.
44676         * modules/git-merge-changelog (Depends-on): Likewise.
44677         * modules/glob (Depends-on): Likewise.
44678         * modules/strcasestr-simple (Depends-on): Likewise.
44679         * modules/strnlen (Depends-on): Likewise.
44680
44681 2008-11-02  Bruno Haible  <bruno@clisp.org>
44682
44683         Mark 'atexit' obsolete.
44684         * modules/atexit (Status, Notice): New sections.
44685         * modules/chdir-long (Depends-on): Add atexit.
44686         * modules/wait-process (Depends-on): Likewise.
44687
44688 2008-11-02  Bruno Haible  <bruno@clisp.org>
44689
44690         * gnulib-tool: New option --with-obsolete.
44691         (func_usage): Document it.
44692         (func_modules_transitive_closure): Drop obsolete dependencies if
44693         incobsolete is not true.
44694         (func_import): Read and save the incobsolete variable to the cache.
44695
44696 2008-11-02  Bruno Haible  <bruno@clisp.org>
44697
44698         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44699         * gnulib-tool: New option --extract-status.
44700         (func_usage): Document it.
44701         (sed_extract_prog): Recognize it.
44702         (func_get_status): New function.
44703
44704 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44705
44706         * modules/sockets (License): Change from LGPL to LGPLv2+.
44707
44708 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44709
44710         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44711
44712 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44713
44714         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44715         Mention times and sys_times.
44716         * modules/sys_times, modules/sys_times-tests: New modules.
44717         * modules/times, modules/times-tests: Likewise
44718         * m4/sys_times_h.m4: New file.
44719         * lib/sys_times.in.h: Likewise
44720         * lib/times.c: Likewise.
44721         * tests/test-sys_times.c: Likewise.
44722         * tests/test-times.c: Likewise.
44723         * doc/posix-headers/sys_times.texi: Update.
44724         * doc/posix-functions/times.texi: Update.
44725
44726 2008-10-28  Jim Meyering  <meyering@redhat.com>
44727
44728         * modules/tempname (Depends-on): Add lstat.
44729
44730         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44731
44732 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44733
44734         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44735         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44736         using idiom used elsewhere in gnulib.
44737
44738 2008-10-27  Jim Meyering  <meyering@redhat.com>
44739
44740         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44741
44742 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44743
44744         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44745         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44746         programs.
44747         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44748
44749 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44750
44751         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44752
44753 2008-10-27  Bruno Haible  <bruno@clisp.org>
44754
44755         * tests/test-lstat.c: Include <stdio.h>.
44756
44757 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44758
44759         * modules/lstat-tests: New module.
44760         * tests/test-lstat.c: New file.
44761
44762 2008-10-26  Jim Meyering  <meyering@redhat.com>
44763
44764         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44765
44766 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44767             Bruno Haible  <bruno@clisp.org>
44768
44769         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44770         * modules/configmake (Include): Add a note that the include must come
44771         after all system headers.
44772         * lib/javaversion.c: Include configmake.h after all other includes.
44773
44774 2008-10-26  Bruno Haible  <bruno@clisp.org>
44775
44776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44777         HAVE_STRUCT_RANDOM_DATA to 1.
44778         (gl_STDLIB_H): Simplify.
44779
44780 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44781
44782         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44783         substitute HAVE_STRUCT_RANDOM_DATA.
44784         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44785         random_data.
44786         * modules/stdlib (Makefile.am): Substitute
44787         HAVE_STRUCT_RANDOM_DATA.
44788
44789 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44790
44791         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44792         * doc/gnulib-intro.texi (Copyright): Likewise.
44793
44794 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44795
44796         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44797         findings.
44798
44799 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44800             Bruno Haible  <bruno@clisp.org>
44801
44802         * lib/unistd.in.h: Include <winsock2.h>.
44803         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44804         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44805         Provide dummy declarations.
44806         (gethostname): Override.
44807         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44808         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44809         gl_PREREQ_SYS_H_WINSOCK2.
44810         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44811         * doc/posix-functions/gethostname.texi: More details.
44812
44813 2008-10-25  Bruno Haible  <bruno@clisp.org>
44814
44815         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44816         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44817         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44818
44819         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44820         here ...
44821         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44822         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44823         gl_UNISTD_H_DEFAULTS.
44824
44825 2008-10-25  Eric Blake  <ebb9@byu.net>
44826
44827         signbit: avoid spurious compiler failure
44828         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44829         declarations inside function.
44830
44831 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44832             Bruno Haible  <bruno@clisp.org>
44833
44834         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44835         * modules/random_r (Depends-on): Add stdint.
44836
44837 2008-10-24  Bruno Haible  <bruno@clisp.org>
44838
44839         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44840         Eggert.
44841         * modules/strerror (License): Likewise.
44842
44843 2008-10-24  Jim Meyering  <meyering@redhat.com>
44844
44845         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44846         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44847
44848 2008-10-24  Eric Blake  <ebb9@byu.net>
44849
44850         getgroups: fix compilation when getgroups is available
44851         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44852         but with <config.h> override of getgroups disabled.
44853
44854 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44855
44856         * doc/gnulib.texi (Header files): Add note about C++ problems.
44857         Explained by Bruno Haible <bruno@clisp.org>.
44858
44859 2008-10-23  Bruno Haible  <bruno@clisp.org>
44860
44861         Define a dummy SA_NODEFER macro on Interix.
44862         * lib/signal.in.h (SA_NODEFER): Define fallback.
44863         Reported by Aleksey Cheusov <cheusov@tut.by> via
44864         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44865
44866 2008-10-23  Bruno Haible  <bruno@clisp.org>
44867
44868         * modules/freadahead (License): Change to LGPLv2+.
44869         Suggested by Simon Josefsson.
44870
44871 2008-10-23  Jim Meyering  <meyering@redhat.com>
44872
44873         random_r: new module
44874         * modules/random_r: New file.
44875         * m4/random_r.m4: New file.
44876         * lib/random_r.c: New file, from glibc.
44877         * modules/random_r-tests: New file.
44878         * tests/test-random_r.c: New file.
44879         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44880          Declare.
44881         (RAND_MAX): Define.
44882         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44883         * modules/stdlib: Substitute them, too.
44884         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44885         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44886         * doc/glibc-functions/random_r.texi: Likewise.
44887         * doc/glibc-functions/setstate_r.texi: Likewise.
44888         * doc/glibc-functions/srandom_r.texi: Likewise.
44889         * config/srclist.txt: Mention it.
44890
44891 2008-10-23  David Lutterkort  <lutter@redhat.com>
44892
44893         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44894         link requirement
44895
44896 2008-10-23  Jim Meyering  <meyering@redhat.com>
44897
44898         selinux-h: mark parameters of stub functions as intentionally unused
44899         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44900         * lib/se-context.in.h: Likewise.
44901
44902 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44903
44904         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44905
44906 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44907
44908         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44909
44910 2008-10-22  Eric Blake  <ebb9@byu.net>
44911
44912         glthread/thread: avoid compiler warning
44913         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44914         Add unreachable abort to silence compiler.
44915
44916 2008-10-22  Eric Blake  <ebb9@byu.net>
44917
44918         netdb: also supply struct addrinfo for cygwin 1.5.x
44919         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44920         older cygwin.
44921         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44922         cygwin.
44923         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44924
44925 2008-10-22  Bruno Haible  <bruno@clisp.org>
44926
44927         * users.txt: Update entry about pspp.
44928
44929 2008-10-21  Bruno Haible  <bruno@clisp.org>
44930
44931         Simplification.
44932         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44933         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44934
44935         Simplification.
44936         * lib/ioctl.c (ioctl): Don't undefine.
44937         * lib/socket.c (socket): Don't undefine.
44938
44939         Remove unused module indicator macros.
44940         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44941         GNULIB_$1 as a C macro.
44942
44943         * doc/posix-functions/close.texi: Undo last change.
44944         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44945         Windows platforms.
44946
44947 2008-10-21  Bruno Haible  <bruno@clisp.org>
44948
44949         Add gethostname() declaration to <unistd.h>.
44950         * lib/unistd.in.h (gethostname): New declaration.
44951         * lib/gethostname.c: Include <unistd.h>.
44952         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44953         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44955         and HAVE_GETHOSTNAME.
44956         * modules/gethostname (Depends-on): Add unistd.
44957         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44958         (Include): Specify <unistd.h>.
44959         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44960         HAVE_GETHOSTNAME.
44961         * tests/test-gethostname.c: Include <unistd.h> first.
44962
44963 2008-10-21  Bruno Haible  <bruno@clisp.org>
44964
44965         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44966         * modules/select-tests (Depends-on): Likewise.
44967         Reported by Simon Josefsson.
44968
44969 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44970
44971         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44972         * lib/accept.c: New file, based on winsock.c.
44973         * lib/bind.c: New file, based on winsock.c.
44974         * lib/connect.c: New file, based on winsock.c.
44975         * lib/getpeername.c: New file, based on winsock.c.
44976         * lib/getsockname.c: New file, based on winsock.c.
44977         * lib/getsockopt.c: New file, based on winsock.c.
44978         * lib/ioctl.c: New file, based on winsock.c.
44979         * lib/listen.c: New file, based on winsock.c.
44980         * lib/recv.c: New file, based on winsock.c.
44981         * lib/recvfrom.c: New file, based on winsock.c.
44982         * lib/send.c: New file, based on winsock.c.
44983         * lib/sendto.c: New file, based on winsock.c.
44984         * lib/setsockopt.c: New file, based on winsock.c.
44985         * lib/shutdown.c: New file, based on winsock.c.
44986         * lib/socket.c: New file, based on winsock.c.
44987         * lib/w32sock.h: New file, based on winsock.c.
44988         * lib/winsock.c: Remove file.
44989         * modules/accept: Likewise.
44990         * modules/bind: Likewise.
44991         * modules/connect: Likewise.
44992         * modules/getpeername: Likewise.
44993         * modules/getsockname: Likewise.
44994         * modules/getsockopt: Likewise.
44995         * modules/ioctl: Likewise.
44996         * modules/listen: Likewise.
44997         * modules/recv: Likewise.
44998         * modules/recvfrom: Likewise.
44999         * modules/send: Likewise.
45000         * modules/sendto: Likewise.
45001         * modules/setsockopt: Likewise.
45002         * modules/shutdown: Likewise.
45003         * modules/socket: Use socket.c instead of winsock.c.
45004         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45005         * doc/posix-functions/accept.texi: Doc fix.
45006         * doc/posix-functions/bind.texi: Doc fix.
45007         * doc/posix-functions/close.texi: Doc fix.
45008         * doc/posix-functions/connect.texi: Doc fix.
45009         * doc/posix-functions/getpeername.texi: Doc fix.
45010         * doc/posix-functions/getsockname.texi: Doc fix.
45011         * doc/posix-functions/getsockopt.texi: Doc fix.
45012         * doc/posix-functions/ioctl.texi: Doc fix.
45013         * doc/posix-functions/listen.texi: Doc fix.
45014         * doc/posix-functions/recv.texi: Doc fix.
45015         * doc/posix-functions/recvfrom.texi: Doc fix.
45016         * doc/posix-functions/send.texi: Doc fix.
45017         * doc/posix-functions/sendto.texi: Doc fix.
45018         * doc/posix-functions/setsockopt.texi: Doc fix.
45019         * doc/posix-functions/shutdown.texi: Doc fix.
45020         * doc/posix-functions/socket.texi: Doc fix.
45021
45022 2008-10-20  Bruno Haible  <bruno@clisp.org>
45023
45024         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45025         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45026         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45027         as an alias for SIGABRT.
45028         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45029         (sigaction): Map it to SIGABRT.
45030         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45031
45032 2008-10-20  Bruno Haible  <bruno@clisp.org>
45033
45034         * lib/fts.c: Don't include lstat.h.
45035         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45036
45037         Move the lstat() declaration to <sys/stat.h>.
45038         * lib/lstat.h: Remove file.
45039         * lib/sys_stat.in.h: Add special invocation convention.
45040         (lstat): New declaration.
45041         * lib/lstat.c (orig_lstat): New function.
45042         (rpl_lstat): Use orig_lstat instead of lstat.
45043         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45044         AC_C_INLINE. Set REPLACE_LSTAT.
45045         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45046         and REPLACE_LSTAT.
45047         * modules/lstat (Files): Remove lib/lstat.h.
45048         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45049         (Include): Specify <sys/stat.h> instead of lstat.h.
45050         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45051         REPLACE_LSTAT.
45052         * NEWS: Mention the change.
45053
45054 2008-10-20  Bruno Haible  <bruno@clisp.org>
45055
45056         * modules/posix_spawn-tests: New file.
45057         * tests/test-posix_spawn3.c: New file.
45058
45059 2008-10-20  Bruno Haible  <bruno@clisp.org>
45060
45061         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45062         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45063         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45064         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45065         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45066
45067 2008-10-20  Bruno Haible  <bruno@clisp.org>
45068
45069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45070         of posix_spawn on AIX 5.3.
45071
45072 2008-10-20  Bruno Haible  <bruno@clisp.org>
45073
45074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45075
45076 2008-10-20  Bruno Haible  <bruno@clisp.org>
45077
45078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45079         of AC_LANG_PROGRAM.
45080
45081 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45082
45083         * lib/netdb.in.h: Don't define GNU specific constants until they
45084         are supported or needed.  Reported by Bruno Haible
45085         <bruno@clisp.org>.
45086
45087 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45088
45089         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45090
45091 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45092
45093         * lib/getaddrinfo.h: Remove file.
45094         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45095         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45096         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45097         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45098         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45099         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45100         * tests/test-getaddrinfo.c: Likewise.
45101         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45102         * NEWS: Mention change.
45103
45104 2008-10-19  Bruno Haible  <bruno@clisp.org>
45105
45106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45107
45108 2008-10-19  Bruno Haible  <bruno@clisp.org>
45109
45110         * lib/wait-process.c: Include simply <sys/wait.h>.
45111         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45112         WIFSTOPPED): Remove fallback definitions.
45113         * modules/wait-process (Depends-on): Add sys_wait.
45114
45115         New module 'sys_wait'.
45116         * modules/sys_wait: New file.
45117         * lib/sys_wait.in.h: New file, partially copied from
45118         lib/wait-process.c.
45119         * m4/sys_wait_h.m4: New file.
45120         * doc/posix-headers/sys_wait.texi: Mention the new module.
45121
45122 2008-10-19  Bruno Haible  <bruno@clisp.org>
45123
45124         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45125
45126 2008-10-19  Bruno Haible  <bruno@clisp.org>
45127
45128         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45129         * lib/wait-process.c (WAIT_T): Remove type.
45130         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45131         (wait_subprocess): Update.
45132
45133 2008-10-19  Bruno Haible  <bruno@clisp.org>
45134
45135         New module 'atoll'.
45136         * modules/atoll: New file.
45137         * lib/stdlib.in.h (atoll): New declaration.
45138         * lib/atoll.c: New file, from glibc with modifications.
45139         * m4/atoll.m4: New file.
45140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45141         HAVE_ATOLL.
45142         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45143         * doc/posix-functions/atoll.texi: Mention the new module.
45144
45145 2008-10-19  Bruno Haible  <bruno@clisp.org>
45146
45147         Add strtoull() declaration to <stdlib.h>.
45148         * lib/stdlib.in.h (strtoull): New declaration.
45149         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45150         Set HAVE_STRTOULL.
45151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45152         HAVE_STRTOULL.
45153         * modules/strtoull (Depends-on): Add stdlib.
45154         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45155         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45156         HAVE_STRTOULL.
45157
45158 2008-10-19  Bruno Haible  <bruno@clisp.org>
45159
45160         Add strtoll() declaration to <stdlib.h>.
45161         * lib/stdlib.in.h (strtoll): New declaration.
45162         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45163         Set HAVE_STRTOLL.
45164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45165         HAVE_STRTOLL.
45166         * modules/strtoll (Depends-on): Add stdlib.
45167         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45168         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45169
45170 2008-10-19  Bruno Haible  <bruno@clisp.org>
45171
45172         * modules/bcopy (Depends-on): Add strings.
45173         (Include): Specify <strings.h>.
45174
45175 2008-10-19  Bruno Haible  <bruno@clisp.org>
45176
45177         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45178
45179 2008-10-19  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45182         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45183         mingw.
45184
45185 2008-10-19  Bruno Haible  <bruno@clisp.org>
45186
45187         * lib/atanl.c: Don't include isnanl.h.
45188         * lib/cosl.c: Likewise.
45189         * lib/ldexpl.c: Likewise.
45190         * lib/logl.c: Likewise.
45191         * lib/sinl.c: Likewise.
45192         * lib/sqrtl.c: Likewise.
45193         * lib/tanl.c: Likewise.
45194
45195         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45196         * lib/isnanf.h: Remove file.
45197         * lib/isnand.h: Remove file.
45198         * lib/isnanl.h: Remove file.
45199         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45200         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45201         macros.
45202         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45203         HAVE_ISNANF, don't define it as a C macro.
45204         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45205         HAVE_ISNAND, don't define it as a C macro.
45206         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45207         HAVE_ISNANL, don't define it as a C macro.
45208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45209         HAVE_ISNAN[FDL].
45210         * modules/isnanf (Files): Remove lib/isnanf.h.
45211         (Depends-on): Add math.
45212         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45213         (Include): Specify <math.h> instead of isnanf.h.
45214         * modules/isnand (Files): Remove lib/isnand.h.
45215         (Depends-on): Add math.
45216         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45217         (Include): Specify <math.h> instead of isnand.h.
45218         * modules/isnanl (Files): Remove lib/isnanl.h.
45219         (Depends-on): Add math.
45220         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45221         (Include): Specify <math.h> instead of isnanl.h.
45222         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45223         HAVE_ISNAN[FDL].
45224         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45225         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45226         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45227         * NEWS: Mention the change.
45228
45229 2008-10-18  Bruno Haible  <bruno@clisp.org>
45230
45231         Add getusershell(), setusershell(), endusershell() declarations to
45232         <unistd.h>.
45233         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45234         declarations.
45235         * lib/getusershell.c: Include unistd.h.
45236         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45237         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45238         HAVE_GETUSERSHELL.
45239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45240         and HAVE_GETUSERSHELL.
45241         * modules/getusershell (Depends-on): Add unistd, extensions.
45242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45243         (Include): Specify <unistd.h>.
45244         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45245         HAVE_GETUSERSHELL.
45246
45247 2008-10-18  Bruno Haible  <bruno@clisp.org>
45248
45249         Add a getloadavg() declaration to <stdlib.h>.
45250         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45251         getloadavg declaration.
45252         (getloadavg): New declaration.
45253         * lib/getloadavg.c: Include <stdlib.h> first.
45254         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45255         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45256         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45258         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45259         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45260         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45261         (Include): Specify <stdlib.h>.
45262         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45263         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45264
45265 2008-10-18  Bruno Haible  <bruno@clisp.org>
45266
45267         * lib/dirchownmod.c: Don't include lchmod.h.
45268
45269         Move the lchmod() declaration to <sys/stat.h>.
45270         * lib/lchmod.h: Remove file.
45271         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45272         (lchmod): New declaration, moved here from lib/lchown.h.
45273         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45274         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45275         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45276         and HAVE_LCHMOD.
45277         * modules/lchmod (Files): Remove lib/lchmod.h.
45278         (Depends-on): Add sys_stat, extensions.
45279         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45280         (Include): Specify <sys/stat.h> instead of lchmod.h.
45281         * modules/sys_stat (Depends-on): Add link-warning.
45282         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45283         definition of GL_LINK_WARNING.
45284         * NEWS: Mention the change.
45285
45286 2008-10-18  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/fchdir.c: Don't include dirfd.h.
45289         * lib/fts.c: Likewise.
45290         * lib/getcwd.c: Likewise.
45291         * lib/glob.c: Likewise.
45292
45293         Move the dirfd() declaration to <dirent.h>.
45294         * lib/dirfd.h: Remove file.
45295         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45296         (dirfd): New declaration.
45297         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45299         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45300         HAVE_DECL_DIRFD.
45301         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45302         HAVE_DECL_DIRFD.
45303         * modules/dirfd (Files): Remove lib/dirfd.h.
45304         (Depends-on): Add dirent, extensions.
45305         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45306         (Include): Specify <dirent.h> instead of dirfd.h.
45307         * modules/dirent (Depends-on): Add link-warning.
45308         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45309         definition of GL_LINK_WARNING.
45310         * NEWS: Mention the change.
45311
45312 2008-10-18  Bruno Haible  <bruno@clisp.org>
45313
45314         Move the euidaccess() declaration to <unistd.h>.
45315         * lib/euidaccess.h: Remove file.
45316         * lib/unistd.in.h (euidaccess): New declaration.
45317         * lib/euidaccess.c: Don't include euidaccess.h.
45318         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45319         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45321         and HAVE_EUIDACCESS.
45322         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45323         (Depends-on): Add unistd.
45324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45325         (Include): Specify <unistd.h> instead of euidaccess.h.
45326         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45327         HAVE_EUIDACCESS.
45328         * NEWS: Mention the change.
45329
45330 2008-10-18  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45333
45334         Move the getdomainname() declaration to <unistd.h>.
45335         * lib/getdomainname.h: Remove file.
45336         * lib/unistd.in.h (getdomainname): New declaration.
45337         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45338         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45339         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45340         HAVE_GETDOMAINNAME.
45341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45342         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45343         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45344         (Depends-on): Add unistd, extensions.
45345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45346         (Includes): Specify <unistd.h> instead of getdomainname.h.
45347         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45348         HAVE_GETDOMAINNAME.
45349         * NEWS: Mention the change.
45350
45351 2008-10-18  Bruno Haible  <bruno@clisp.org>
45352
45353         * modules/dirent: New file.
45354         * m4/dirent_h.m4: New file.
45355         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45356         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45357         * modules/fchdir (Files): Remove lib/dirent.in.h.
45358         (Depends-on): Add dirent.
45359         (Makefile.am): Move rules to modules/dirent.
45360         * doc/posix-headers/dirent.texi: Mention the new module.
45361
45362 2008-10-18  Bruno Haible  <bruno@clisp.org>
45363
45364         Avoid -Wunused-parameter warnings in public gnulib header files.
45365         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45366         macro.
45367         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45368
45369 2008-10-18  Bruno Haible  <bruno@clisp.org>
45370
45371         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45372         * doc/glibc-functions/error.texi: Mention the module 'error'.
45373         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45374         * doc/glibc-functions/getdomainname.texi: Mention the module
45375         'getdomainname'.
45376         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45377         * doc/glibc-functions/getpagesize.texi: Mention the module
45378         'getpagesize'.
45379         * doc/glibc-functions/getusershell.texi: Mention the module
45380         'getusershell'.
45381         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45382         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45383         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45384         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45385         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45386         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45387         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45388         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45389         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45390         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45391         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45392         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45393         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45394         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45395
45396 2008-10-17  Bruno Haible  <bruno@clisp.org>
45397
45398         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45399         HP-UX and IRIX, use -0.0L.
45400         * tests/test-ceill.c (minus_zero): Likewise.
45401         * tests/test-floorl.c (minus_zero): Likewise.
45402         * tests/test-frexpl.c (minus_zero): Likewise.
45403         * tests/test-isnan.c (minus_zerol): Likewise.
45404         * tests/test-isnanl.h (minus_zero): Likewise.
45405         * tests/test-ldexpl.c (minus_zero): Likewise.
45406         * tests/test-roundl.c (minus_zero): Likewise.
45407         * tests/test-signbit.c (minus_zerol): Likewise.
45408         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45409         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45410         * tests/test-truncl.c (minus_zero): Likewise.
45411         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45412         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45413         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45414         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45415
45416 2008-10-17  Bruno Haible  <bruno@clisp.org>
45417
45418         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45419         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45420         that it gets activated only for gcc >= 3.0.
45421         * lib/dirent.in.h: Likewise.
45422         * lib/errno.in.h: Likewise.
45423         * lib/fcntl.in.h: Likewise.
45424         * lib/float.in.h: Likewise.
45425         * lib/iconv.in.h: Likewise.
45426         * lib/inttypes.in.h: Likewise.
45427         * lib/locale.in.h: Likewise.
45428         * lib/math.in.h: Likewise.
45429         * lib/netdb.in.h: Likewise.
45430         * lib/netinet_in.in.h: Likewise.
45431         * lib/search.in.h: Likewise.
45432         * lib/signal.in.h: Likewise.
45433         * lib/spawn.in.h: Likewise.
45434         * lib/stdarg.in.h: Likewise.
45435         * lib/stdint.in.h: Likewise.
45436         * lib/stdio.in.h: Likewise.
45437         * lib/stdlib.in.h: Likewise.
45438         * lib/string.in.h: Likewise.
45439         * lib/strings.in.h: Likewise.
45440         * lib/sys_file.in.h: Likewise.
45441         * lib/sys_ioctl.in.h: Likewise.
45442         * lib/sys_select.in.h: Likewise.
45443         * lib/sys_socket.in.h: Likewise.
45444         * lib/sys_stat.in.h: Likewise.
45445         * lib/sys_time.in.h: Likewise.
45446         * lib/sysexits.in.h: Likewise.
45447         * lib/time.in.h: Likewise.
45448         * lib/unistd.in.h: Likewise.
45449         * lib/wchar.in.h: Likewise.
45450         * lib/wctype.in.h: Likewise.
45451         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45452
45453 2008-10-17  Jim Meyering  <meyering@redhat.com>
45454
45455         ignore-value: don't depend on inline module
45456         * modules/ignore-value (Depends-on): Remove 'inline'.
45457         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45458         Suggestion from Bruno Haible.
45459
45460 2008-10-17  Bruno Haible  <bruno@clisp.org>
45461
45462         New implementation of condition variables for Win32.
45463         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45464         (gl_linked_waitqueue_t): New type.
45465         (gl_cond_t): Use it.
45466         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45467         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45468         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45469         (glthread_cond_init_func, glthread_cond_wait_func,
45470         glthread_cond_timedwait_func, glthread_cond_signal_func,
45471         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45472         Reimplemented on the basis of gl_linked_waitqueue_t.
45473         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45474         gl_waitqueue_t.
45475         (gl_rwlock_t): Update.
45476         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45477
45478 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45479
45480         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45481         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45482
45483 2008-10-17  Jim Meyering  <meyering@redhat.com>
45484
45485         ignore-value: new module
45486         * modules/ignore-value: New file.
45487         * lib/ignore-value.h: New file.
45488         * MODULES.html.sh (Compiler warning management): New section,
45489         just for this module.  More to come.
45490
45491 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45492
45493         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45494         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45495         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45496
45497 2008-10-16  Jim Meyering  <meyering@redhat.com>
45498
45499         openat-die.c: avoid 'no previous prototype' warning
45500         * lib/openat-die.c: Include "openat.h".
45501         Reported by Reuben Thomas <rrt@sc3d.org>.
45502
45503 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45504
45505         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45506         * lib/netdb.in.h: Fix typo.
45507         Reported by Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/netdb.in.h: Include sys/socket.h for platforms without
45510         netdb.h, to get structures like hostent on MinGW.
45511         * modules/netdb (Depends-on): Add sys_socket.
45512
45513 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45514
45515         * modules/netdb, modules/netdb-tests: New file.
45516         * m4/netdb_h.m4: New file.
45517         * lib/netdb.in.h: Add, currently just an empty file pending
45518         definitions.
45519         * tests/test-netdb.c: New file.
45520         * doc/posix-headers/netdb.texi: Mention that we replace it if
45521         needed.
45522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45523         netdb.
45524
45525 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45526
45527         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45528         with code.
45529
45530 2008-10-13  Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/glthread/cond.c (glthread_cond_wait_func,
45533         glthread_cond_timedwait_func): Add a comment.
45534
45535 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45536
45537         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45538         * tests/test-select.c: Likewise,
45539
45540 2008-10-13  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/glthread/cond.c (glthread_cond_wait_func,
45543         glthread_cond_timedwait_func): Fix variable name.
45544         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45545
45546 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45547
45548         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45550         struct sockaddr.sa_len.
45551         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45552
45553 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45554
45555         * build-aux/pmccabe2html: Add css and css_url parameters.
45556
45557 2008-10-12  Bruno Haible  <bruno@clisp.org>
45558
45559         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45560         calling aclx_get.
45561         Reported by Rainer Tammer <tammer@tammer.net>.
45562
45563 2008-10-12  Bruno Haible  <bruno@clisp.org>
45564
45565         Use msvcrt aware primitives for creation/termination of Win32 threads.
45566         * lib/glthread/thread.c: Include <process.h>.
45567         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45568         (wrapper_func): Update signature.
45569         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45570
45571 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45572             Bruno Haible  <bruno@clisp.org>
45573
45574         Provide a Win32 implementation of the 'cond' module.
45575         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45576         * lib/glthread/cond.c (glthread_cond_init_func,
45577         glthread_cond_wait_func, glthread_cond_timedwait_func,
45578         glthread_cond_signal_func, glthread_cond_broadcast_func,
45579         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45580         * modules/cond (Dependencies): Add gettimeofday.
45581
45582 2008-10-11  Bruno Haible  <bruno@clisp.org>
45583
45584         Make sleep work on older versions of mingw.
45585         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45586         only whether it exists.
45587         * doc/posix-functions/sleep.texi: Mention the problem with older
45588         versions of mingw.
45589
45590 2008-10-11  Bruno Haible  <bruno@clisp.org>
45591
45592         New module 'shutdown'.
45593         * modules/shutdown: New file.
45594         * lib/sys_socket.in.h (shutdown): New declaration.
45595         * lib/winsock.c (shutdown): New function.
45596         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45597         GNULIB_SHUTDOWN.
45598         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45599         * doc/posix-functions/shutdown.texi: Document the new module.
45600
45601 2008-10-11  Jim Meyering  <meyering@redhat.com>
45602
45603         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45604
45605 2008-10-11  Bruno Haible  <bruno@clisp.org>
45606
45607         New module 'fclose'.
45608         * modules/fclose: New file.
45609         * lib/stdio.in.h (fclose): New declaration.
45610         * lib/fclose.c: New file.
45611         * m4/fclose.m4: New file.
45612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45613         REPLACE_FCLOSE.
45614         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45615         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45616         REPLACE_FCLOSE.
45617         * modules/close (Depends-on): fclose.
45618         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45619
45620 2008-10-11  Bruno Haible  <bruno@clisp.org>
45621
45622         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45623         set errno and don't call _close.
45624
45625 2008-10-10  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45628         ACL, not afterwards. Fixes test failure on Cygwin.
45629
45630 2008-10-09  Ben Pfaff  <blp@gnu.org>
45631
45632         * build-aux/announce-gen: Fix gnulib version related part of usage
45633         message.  Die with a useful error message if no tarballs are
45634         found.
45635
45636 2008-10-10  Jim Meyering  <meyering@redhat.com>
45637
45638         bootstrap: use git's --depth=N option only if it's supported
45639         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45640         recognize the --depth option.  Reported by Pádraig Brady.
45641
45642 2008-10-09  Bruno Haible  <bruno@clisp.org>
45643
45644         New module 'ioctl'.
45645         * modules/ioctl: New file.
45646         * lib/sys_socket.in.h (ioctl): Remove declaration.
45647         * lib/winsock.c: Include <sys/ioctl.h>.
45648         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45649         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45650         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45651         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45652         * doc/posix-functions/ioctl.texi: Mention the new module.
45653
45654 2008-10-09  Bruno Haible  <bruno@clisp.org>
45655
45656         New module 'sys_ioctl'.
45657         * lib/sys_ioctl.in.h: New file.
45658         * m4/sys_ioctl_h.m4: New file.
45659         * modules/sys_ioctl: New file.
45660         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45661
45662 2008-10-09  Bruno Haible  <bruno@clisp.org>
45663
45664         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45665         * lib/winsock.c: Include <stdarg.h>.
45666         (rpl_ioctl): Change to second argument 'int' and then varargs.
45667
45668 2008-10-09  Bruno Haible  <bruno@clisp.org>
45669
45670         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45671         when the sys_socket module is present and the system has <winsock2.h>.
45672
45673 2008-10-09  Bruno Haible  <bruno@clisp.org>
45674
45675         * doc/posix-functions/close.texi: Mention module 'close' instead of
45676         module 'sys_socket'.
45677
45678 2008-10-09  Bruno Haible  <bruno@clisp.org>
45679
45680         * doc/glibc-headers/sys_ioctl.texi: New file.
45681         * doc/gnulib.texi: Include it.
45682
45683 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45684             Bruno Haible  <bruno@clisp.org>
45685
45686         Combine the two replacements of 'close'.
45687         * lib/sys_socket.in.h (close): Define to a reminder to include
45688         <unistd.h>.
45689         (_gl_close_fd_maybe_socket): New declaration.
45690         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45691         * lib/winsock.c (close): Remove undefinition.
45692         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45693         needed for the gnulib module 'close'.
45694         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45695         define to an error symbol or to a warning, if suitable.
45696         * lib/close.c: Include <sys/socket.h>.
45697         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45698         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45699         UNISTD_H_HAVE_WINSOCK2_H.
45700         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45702         UNISTD_H_HAVE_WINSOCK2_H.
45703         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45704         (configure.ac): Set a module indicator.
45705         (Makefile.am): Substitute GNULIB_CLOSE.
45706         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45707         * modules/poll-tests (Depends-on): Add close.
45708         * modules/select-tests (Depends-on): Likewise.
45709
45710 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45711             Bruno Haible  <bruno@clisp.org>
45712
45713         New module 'close'.
45714         * modules/close: New file.
45715         * lib/unistd.in.h (close): Move declaration out of the
45716         FCHDIR_REPLACEMENT scope.
45717         (_gl_unregister_fd): New declaration.
45718         * lib/close.c: New file.
45719         * lib/fchdir.c (rpl_close): Remove function.
45720         * m4/close.m4: New file.
45721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45722         close.
45723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45724         REPLACE_CLOSE.
45725         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45726         REPLACE_CLOSE.
45727         * modules/fchdir (Depends-on): Add close.
45728
45729 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45730             Bruno Haible  <bruno@clisp.org>
45731
45732         * lib/fcntl.in.h (open): Simplify conditionals.
45733         (_gl_register_fd): New declaration.
45734         * lib/fchdir.c (rpl_open): Remove function.
45735         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45736         also.
45737         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45739         open.
45740
45741 2008-10-09  Jim Meyering  <meyering@redhat.com>
45742
45743         GNUmakefile: use the more name-space-friendly "_version"
45744         * top/GNUmakefile (_dummy): Update.
45745         (_version): Rename from "version".
45746
45747 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45748             Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45751         rpl_close.
45752         (_gl_register_fd): New function, extracted from rpl_open.
45753         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45754         (rpl_open, rpl_opendir): Use _gl_register_fd.
45755
45756 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45757
45758         Fix organization of 'open' replacement.
45759         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45760         (gl_FUNC_OPEN): Use it.
45761         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45762
45763 2008-10-08  Bruno Haible  <bruno@clisp.org>
45764
45765         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45766
45767 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45768
45769         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45770         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45771         listen).
45772
45773 2008-10-08  Eric Blake  <ebb9@byu.net>
45774
45775         GNUmakefile: add 'make version' target
45776         * top/GNUmakefile (_curr-ver): Split version update rules...
45777         (version): ...into a target.
45778
45779 2008-10-07  Bruno Haible  <bruno@clisp.org>
45780
45781         Use a more portable replacement expression for -0.0L.
45782         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45783         instead of -0.0L. Fix m4 quotation.
45784
45785         * tests/test-signbit.c: Include <float.h>.
45786         (minus_zero): New variable.
45787         (test_signbitl): Use minus_zero instead of -zero.
45788         * modules/signbit-tests (Depends-on): Add float.
45789
45790         * tests/test-ceill.c: Include <float.h>.
45791         (zero): Remove variable.
45792         (minus_zero): New variable.
45793         (main): Use minus_zero instead of -zero.
45794         * modules/ceill-tests (Depends-on): Add float.
45795
45796         * tests/test-floorl.c: Include <float.h>.
45797         (zero): Remove variable.
45798         (minus_zero): New variable.
45799         (main): Use minus_zero instead of -zero.
45800         * modules/floorl-tests (Depends-on): Add float.
45801
45802         * tests/test-roundl.c: Include <float.h>.
45803         (zero): Remove variable.
45804         (minus_zero): New variable.
45805         (main): Use minus_zero instead of -zero.
45806         * modules/roundl-tests (Depends-on): Add float.
45807
45808         * tests/test-truncl.c: Include <float.h>.
45809         (zero): Remove variable.
45810         (minus_zero): New variable.
45811         (main): Use minus_zero instead of -zero.
45812         * modules/truncl-tests (Depends-on): Add float.
45813
45814         * tests/test-frexpl.c (zero): Remove variable.
45815         (minus_zero): New variable.
45816         (main): Use minus_zero instead of -zero.
45817         * modules/frexpl-tests (Depends-on): Add float.
45818
45819         * tests/test-isnan.c (zerol): Remove variable.
45820         (minus_zerol): New variable.
45821         (test_long_double): Use minus_zerol instead of -zerol.
45822         * modules/isnan-tests (Depends-on): Add float.
45823
45824         * tests/test-isnanl.h (zero): Remove variable.
45825         (minus_zero): New variable.
45826         (main): Use minus_zero instead of -zero.
45827         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45828         * modules/isnanl-tests (Depends-on): Add float.
45829
45830         * tests/test-ldexpl.c (zero): Remove variable.
45831         (minus_zero): New variable.
45832         (main): Use minus_zero instead of -zero.
45833         * modules/ldexpl-tests (Depends-on): Add float.
45834
45835         * tests/test-snprintf-posix.h (zerol): Remove variable.
45836         (minus_zerol): New variable.
45837         (test_function): Use minus_zerol instead of -zerol.
45838         * modules/snprintf-posix-tests (Depends-on): Add float.
45839         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45840
45841         * tests/test-sprintf-posix.h (zerol): Remove variable.
45842         (minus_zerol): New variable.
45843         (test_function): Use minus_zerol instead of -zerol.
45844         * modules/sprintf-posix-tests (Depends-on): Add float.
45845         * modules/vsprintf-posix-tests (Depends-on): Add float.
45846
45847         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45848         (minus_zerol): New variable.
45849         (test_function): Use minus_zerol instead of -zerol.
45850         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45851
45852         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45853         (minus_zerol): New variable.
45854         (test_function): Use minus_zerol instead of -zerol.
45855         * modules/vasprintf-posix-tests (Depends-on): Add float.
45856
45857 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45858
45859         * MODULES.html.sh (Support for building documentation): Mention
45860         pmccabe2html.  Sort entries.
45861
45862         Add pmccabe2html module, from gnupdf.
45863         * build-aux/pmccabe.css: New file.
45864         * build-aux/pmccabe2html: New file.
45865         * m4/pmccabe2html.m4: New file.
45866         * modules/pmccabe2html: New file.
45867
45868 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45869
45870         flock: new module
45871         * MODULES.html.sh: Add to list of modules.
45872         * lib/flock.c: flock implementation for Windows and Unix systems
45873         which have fcntl.
45874         * doc/glibc-functions/flock.texi: Update documentation.
45875         * lib/sys_file.in.h: <sys/file.h> header file.
45876         * m4/flock.m4: M4 macros.
45877         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45878         * modules/flock: flock module.
45879         * modules/flock-tests: flock tests module.
45880         * modules/sys_file: sys/file.h module.
45881         * tests/test-flock.c: test suite for flock.
45882
45883 2008-10-06  Jim Meyering  <meyering@redhat.com>
45884
45885         bootstrap: check for LT_INIT more portably still ;-)
45886         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45887         Spotted by Bruno Haible.
45888
45889 2008-10-06  Eric Blake  <ebb9@byu.net>
45890
45891         test-signbit: avoid tripping Irix cc bug on -0.0L
45892         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45893         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45894         entire testsuite consistent and avoids an Irix 6.2 bug.
45895
45896 2008-10-05  Bruno Haible  <bruno@clisp.org>
45897             Jim Meyering  <jim@meyering.net>
45898
45899         Add an option for ignoring EPIPE during close_stdout.
45900         * lib/closeout.h: Include <stdbool.h>.
45901         (close_stdout_set_ignore_EPIPE): New declaration.
45902         * lib/closeout.c: Include <stdbool.h>.
45903         (ignore_EPIPE): New variable.
45904         (close_stdout_set_ignore_EPIPE): New function.
45905         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45906         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45907         failure.
45908         * modules/closeout (Depends-on): Add stdbool.
45909
45910 2008-10-05  Bruno Haible  <bruno@clisp.org>
45911
45912         * modules/accept: New file.
45913         * modules/bind: New file.
45914         * modules/connect: New file.
45915         * modules/getpeername: New file.
45916         * modules/getsockname: New file.
45917         * modules/getsockopt: New file.
45918         * modules/listen: New file.
45919         * modules/recv: New file.
45920         * modules/recvfrom: New file.
45921         * modules/send: New file.
45922         * modules/sendto: New file.
45923         * modules/setsockopt: New file.
45924         * modules/socket: New file.
45925         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45926         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45927         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45928         the particular module is requested. Add a link warning when the
45929         particular module is not requested.
45930         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45931         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45932         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45933         the particular module is requested.
45934         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45935         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45936         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45937         * modules/sys_socket (Depends-on): Add link-warning.
45938         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45939         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45940         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45941         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45942         GL_LINK_WARNING.
45943         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45944         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45945         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45946         * doc/posix-functions/getpeername.texi: Mention the new module
45947         'getpeername'.
45948         * doc/posix-functions/getsockname.texi: Mention the new module
45949         'getsockname'.
45950         * doc/posix-functions/getsockopt.texi: Mention the new module
45951         'getsockopt'.
45952         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45953         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45954         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45955         * doc/posix-functions/send.texi: Mention the new module 'send'.
45956         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45957         * doc/posix-functions/setsockopt.texi: Mention the new module
45958         'setsockopt'.
45959         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45960         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45961         listen, connect, accept.
45962         * modules/select-tests (Depends-on): Likewise.
45963
45964 2008-10-05  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/winsock.c (strerror): Remove unused #undef.
45967         (rpl_close): Remove unused local variable.
45968
45969         * modules/sys_socket (Depends-on); Add errno.
45970
45971 2008-10-05  Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45974         (select): Add a link warning when the 'select' module is not used.
45975         * modules/sys_select (Depends-on): Add link-warning.
45976         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45977         Suggested by Paolo Bonzini.
45978
45979 2008-10-05  Jim Meyering  <meyering@redhat.com>
45980
45981         bootstrap: check for LT_INIT more portably
45982         * build-aux/bootstrap: Avoid using grep -E, since it's not
45983         portable enough.  Suggestion from Bruno Haible.
45984
45985 2008-10-05  Bruno Haible  <bruno@clisp.org>
45986
45987         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45988         as being fixed by gnulib.
45989
45990 2008-10-05  Bruno Haible  <bruno@clisp.org>
45991
45992         * modules/select-tests: New file, mostly copied from
45993         modules/sys_select-tests.
45994         * tests/test-select.c: New file, mostly copied from
45995         tests/test-sys_select.c.
45996         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45997         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45998         (Makefile.am): Remove test_sys_select_LDADD.
45999
46000         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46001         to an undefined symbol, for an error message.
46002         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46003         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46004         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46005         winsock-select.c here.
46006         * modules/sys_select (Files): Remove lib/winsock-select.c.
46007         (Depends-on): Remove alloca.
46008         (Makefile.am): Substitute GNULIB_SELECT.
46009         * modules/select: New file.
46010         * doc/posix-functions/select.texi: Update.
46011
46012 2008-10-05  Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46015         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46016         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46017         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46018         getdtablesize.
46019         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46020         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46021
46022 2008-10-05  Bruno Haible  <bruno@clisp.org>
46023
46024         * modules/getdtablesize-tests: New file.
46025         * tests/test-getdtablesize.c: New file.
46026
46027         New module 'getdtablesize'.
46028         * lib/unistd.in.h (getdtablesize): New declaration.
46029         * lib/getdtablesize.c: New file.
46030         * m4/getdtablesize.m4: New file.
46031         * modules/getdtablesize: New file.
46032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46033         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46034         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46035         HAVE_GETDTABLESIZE.
46036         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46037
46038 2008-10-05  Bruno Haible  <bruno@clisp.org>
46039
46040         * modules/sched (Makefile.am): Fix typo.
46041         Reported by Simon Josefsson.
46042
46043 2008-10-05  Jim Meyering  <meyering@redhat.com>
46044
46045         bootstrap: check for LT_INIT, too
46046         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46047         are deprecated.  Suggestion from Ralf Wildenhues.
46048
46049 2008-10-05  Bruno Haible  <bruno@clisp.org>
46050
46051         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46052         overriding them by ours.
46053         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46054
46055 2008-10-05  Jim Meyering  <meyering@redhat.com>
46056
46057         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46058         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46059         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46060
46061 2008-10-04  Bruno Haible  <bruno@clisp.org>
46062
46063         * modules/dup2 (License): Change to LGPLv2+.
46064         * modules/sleep (License): Likewise.
46065         * modules/perror (License): Likewise.
46066         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46067         Blake.
46068         * modules/signal (License): Likewise.
46069         * modules/sigprocmask (License): Likewise.
46070         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46071         Meyering.
46072
46073 2008-10-04  Bruno Haible  <bruno@clisp.org>
46074
46075         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46076         Reported by Rainer Tammer <tammer@tammer.net>.
46077
46078 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46079             Bruno Haible  <bruno@clisp.org>
46080
46081         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46082         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46083         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46084
46085 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46086
46087         filevercmp: new module
46088         * lib/filevercmp.h: New function filevercmp comparing version strings.
46089         * lib/filevercmp.c: Implementation of filevercmp function.
46090         * modules/filevercmp: Module metadata.
46091         * tests/test-filevercmp.c: Unit test for new module.
46092         * modules/filevercmp-tests: Unit test metadata.
46093         * MODULES.html.sh: Add filevercmp module.
46094
46095 2008-10-03  Bruno Haible  <bruno@clisp.org>
46096
46097         * lib/c-ctype.h: Add comment.
46098         Reported by Jim Meyering.
46099
46100 2008-10-02  Bruno Haible  <bruno@clisp.org>
46101
46102         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46103
46104 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46105
46106         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46107         name of bootstrap.conf accordingly.
46108
46109 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46110
46111         * build-aux/bootstrap: Install git-merge-changelog configuration
46112         items into .gitconfig if needed.
46113
46114 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46115
46116         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46117         git repository, and initialize/update it accordingly.
46118
46119 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46120
46121         * modules/fsync-tests: New file.
46122         * tests/test-fsync.c: New file.
46123
46124         New module 'fsync'.
46125         * lib/fsync.c: New file.
46126         * m4/fsync.m4: New file.
46127         * modules/fsync: New file.
46128         * lib/unistd.in.h (fsync): New declaration.
46129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46130         GNULIB_FSYNC and HAVE_FSYNC.
46131         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46132         * MODULES.html.sh (posix_functions): Add fsync.
46133         * doc/posix-functions/fsync.texi: Mention the new module.
46134
46135 2008-10-02  Jim Meyering  <meyering@redhat.com>
46136
46137         fts.c: sync with similar code from coreutils' remove.c
46138         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46139         Guard also with "#if defined __linux__", since for now at least,
46140         this code is Linux-kernel-specific.
46141
46142 2008-10-02  Jim Meyering  <meyering@redhat.com>
46143
46144         fts: bug fixes
46145         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46146         Include <sys/vfs.h>, not <sys/statfs.h>.
46147
46148         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46149         Include <sys/vfs.h>, not <sys/statfs.h>.
46150
46151 2008-10-01  Bruno Haible  <bruno@clisp.org>
46152
46153         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46154         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46155         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46156         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46157         * doc/posix-functions/posix_spawnp.texi: Likewise.
46158         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46159         whether posix_spawn actually works.
46160         * m4/pipe.m4 (gl_PIPE): Likewise.
46161         * modules/execute (Files): Add m4/posix_spawn.m4.
46162         * modules/pipe (Files): Add m4/posix_spawn.m4.
46163         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46164
46165 2008-10-01  Jim Meyering  <meyering@redhat.com>
46166
46167         remove trailing spaces
46168         * NEWS: Likewise.
46169         * lib/poll.c (poll): Likewise.
46170         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46171         * lib/winsock.c (rpl_close): Likewise.
46172         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46173         * modules/yield: Likewise.
46174         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46175         * tests/test-sys_select.c (connect_to_socket): Likewise.
46176
46177         fts.c: adjust a new interface to be more generally useful
46178         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46179         (fts_build): Adjust caller.
46180
46181 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46182
46183         * modules/cond-tests: New file.
46184         * tests/test-cond.c: New file.
46185
46186 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46187             Bruno Haible  <bruno@clisp.org>
46188
46189         * modules/cond (Dependencies): Add errno, time.
46190         * lib/glthread/cond.h: Include <time.h>.
46191         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46192         across platforms.
46193
46194 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46195             Bruno Haible  <bruno@clisp.org>
46196
46197         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46198
46199 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46200             Bruno Haible  <bruno@clisp.org>
46201
46202         * modules/tls-tests (Depends-on): Add thread, yield.
46203         (configure.ac): Remove all checks.
46204         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46205         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46206         gl_thread_self): Remove definitions. Include glthread/thread.h and
46207         glthread/yield.h instead.
46208         (test_tls): Pass an additional NULL argument to gl_thread_join.
46209
46210 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46211             Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/lock-tests (Depends-on): Add thread, yield.
46214         (configure.ac): Remove all checks.
46215         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46216         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46217         gl_thread_self): Remove definitions. Include glthread/thread.h and
46218         glthread/yield.h instead.
46219         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46220         additional NULL argument to gl_thread_join.
46221
46222 2008-09-30  Bruno Haible  <bruno@clisp.org>
46223
46224         Fix the Win32 implementation of the 'thread' module.
46225         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46226         pointer type.
46227         (gl_thread_self): Invoke gl_thread_self_func.
46228         (gl_thread_self_func): New declaration.
46229         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46230         (do_init_self_key, init_self_key): New functions.
46231         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46232         Remove some fields.
46233         (running_threads, running_lock): Remove variables.
46234         (get_current_thread_handle): New function.
46235         (gl_thread_self_func, wrapper_func, glthread_create_func,
46236         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46237         simplified.
46238
46239 2008-09-30  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46242         files.
46243
46244 2008-09-30  Jim Meyering  <meyering@redhat.com>
46245
46246         fts.m4: correct the test for statfs.f_type
46247         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46248         when checking for statfs.f_type.
46249
46250 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46251
46252         tests: avoid some compiler warnings
46253         * tests/test-memchr.c (main): Pass NULL indirectly.
46254         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46255
46256 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46257
46258         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46259         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46260         exactly specified dayshifts.
46261         (dayshift): New rule.
46262         (rel): Add dayshift.
46263         (relative_time_table) [tomorrow, yesterday, today, now]:
46264         Use tDAY_SHIFT in place of tDAY_UNIT.
46265         * tests/test-getdate.c: Add tests for now-disallowed countable
46266         dayshifts, e.g., "4 yesterday ago".
46267
46268 2008-09-29  Bruno Haible  <bruno@clisp.org>
46269
46270         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46271         * tests/test-posix_spawn1.in.sh: Renamed from
46272         tests/test-posix_spawn.in.sh.
46273         * tests/test-posix_spawn2.c: New file.
46274         * tests/test-posix_spawn2.in.sh: New file.
46275         * modules/posix_spawnp-tests (Files): Update.
46276         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46277
46278 2008-09-29  Bruno Haible  <bruno@clisp.org>
46279
46280         Propagate effects of putenv/setenv/unsetenv to child processes.
46281         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46282         * lib/pipe.c (create_pipe): Likewise.
46283
46284 2008-09-29  Bruno Haible  <bruno@clisp.org>
46285
46286         Enable use of shell scripts as executables in mingw.
46287         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46288         run the program as a shell script.
46289         * lib/pipe.c (create_pipe): Likewise.
46290         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46291         resulting array.
46292
46293 2008-09-29  Eric Blake  <ebb9@byu.net>
46294
46295         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46296
46297 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46298
46299         * doc/posix-functions/accept.texi: Update mingw problems.
46300         * doc/posix-functions/bind.texi: Update mingw problems.
46301         * doc/posix-functions/close.texi: Update mingw problems.
46302         * doc/posix-functions/connect.texi: Update mingw problems.
46303         * doc/posix-functions/getpeername.texi: Update mingw problems.
46304         * doc/posix-functions/getsockname.texi: Update mingw problems.
46305         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46306         * doc/posix-functions/ioctl.texi: Update mingw problems.
46307         * doc/posix-functions/listen.texi: Update mingw problems.
46308         * doc/posix-functions/recv.texi: Update mingw problems.
46309         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46310         * doc/posix-functions/select.texi: Update mingw problems.
46311         * doc/posix-functions/send.texi: Update mingw problems.
46312         * doc/posix-functions/sendto.texi: Update mingw problems.
46313         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46314         * doc/posix-functions/socket.texi: Update mingw problems.
46315
46316 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46317             Bruno Haible  <bruno@clisp.org>
46318
46319         * lib/sys_select.in.h: Include sys/time.h.
46320         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46321         * modules/sys_select: Depend on sys_time.
46322         * tests/test-sys_select.c: Test that sys/select.h defines struct
46323         timeval fully.
46324
46325 2008-09-29  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46328         * lib/sys_select.in.h: Likewise.
46329
46330 2008-09-29  Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46333
46334 2008-09-29  Bruno Haible  <bruno@clisp.org>
46335
46336         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46337         Set LIBSOCKET instead of augmenting LIBS.
46338         * modules/sockets (Link): New section.
46339         * modules/sockets-tests (test_sockets_LDADD): New variable.
46340         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46341         * modules/poll-tests (test_poll_LDADD): New variable.
46342         * NEWS: Document the change.
46343
46344 2008-09-29  Bruno Haible  <bruno@clisp.org>
46345
46346         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46347         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46348         ARPA_INET_H directly.
46349         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46350
46351 2008-09-28  Bruno Haible  <bruno@clisp.org>
46352
46353         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46354         from gl_HEADER_SYS_SOCKET.
46355         (gl_HEADER_SYS_SOCKET): Invoke it.
46356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46357
46358 2008-09-28  Bruno Haible  <bruno@clisp.org>
46359
46360         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46361         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46362         Needed on OSF/1 4.0.
46363
46364 2008-09-28  Bruno Haible  <bruno@clisp.org>
46365
46366         Override open more carefully.
46367         * lib/open.c (orig_open): New function.
46368         (rpl_open): Use orig_open instead of open.
46369         * lib/fcntl.in.h: Add special invocation convention.
46370         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46371         (gl_FUNC_OPEN): Invoke it.
46372
46373         Override freopen more carefully.
46374         * lib/freopen.c (orig_freopen): New function.
46375         (rpl_freopen): Use orig_freopen instead of freopen.
46376         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46377         (gl_FUNC_FREOPEN): Invoke it.
46378
46379         Override fopen more carefully.
46380         * lib/fopen.c (orig_fopen): New function.
46381         (rpl_fopen): Use orig_fopen instead of fopen.
46382         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46383         (gl_FUNC_FOPEN): Invoke it.
46384         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46385
46386 2008-09-28  Bruno Haible  <bruno@clisp.org>
46387
46388         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46389         SIGPIPE.
46390
46391 2008-09-28  Bruno Haible  <bruno@clisp.org>
46392
46393         * tests/test-sigaction.c (handler, main): Disable the check whether
46394         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46395         glibc systems with LinuxThreads.
46396
46397 2008-09-28  Bruno Haible  <bruno@clisp.org>
46398
46399         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46400
46401         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46402         with AIX xlc.
46403         * lib/fcntl.in.h (open): Likewise.
46404         Reported by Rainer Tammer <tammer@tammer.net>.
46405
46406 2008-09-28  Bruno Haible  <bruno@clisp.org>
46407
46408         * modules/posix_spawnp-tests: New file.
46409         * tests/test-posix_spawn.c: New file.
46410         * tests/test-posix_spawn.in.sh: New file.
46411
46412         New module 'posix_spawnp'.
46413         * modules/posix_spawnp: New file.
46414         * lib/spawnp.c: New file, from GNU libc with modifications.
46415         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46416
46417         New module 'posix_spawn'.
46418         * modules/posix_spawn: New file.
46419         * lib/spawn.c: New file, from GNU libc with modifications.
46420         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46421
46422         New module 'posix_spawnattr_destroy'.
46423         * modules/posix_spawnattr_destroy: New file.
46424         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46425         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46426         module.
46427
46428         New module 'posix_spawnattr_setsigmask'.
46429         * modules/posix_spawnattr_setsigmask: New file.
46430         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46431         modifications.
46432         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46433         new module.
46434
46435         New module 'posix_spawnattr_getsigmask'.
46436         * modules/posix_spawnattr_getsigmask: New file.
46437         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46438         modifications.
46439         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46440         new module.
46441
46442         New module 'posix_spawnattr_setsigdefault'.
46443         * modules/posix_spawnattr_setsigdefault: New file.
46444         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46445         modifications.
46446         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46447         new module.
46448
46449         New module 'posix_spawnattr_getsigdefault'.
46450         * modules/posix_spawnattr_getsigdefault: New file.
46451         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46452         modifications.
46453         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46454         new module.
46455
46456         New module 'posix_spawnattr_setschedpolicy'.
46457         * modules/posix_spawnattr_setschedpolicy: New file.
46458         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46459         modifications.
46460         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46461         new module.
46462
46463         New module 'posix_spawnattr_getschedpolicy'.
46464         * modules/posix_spawnattr_getschedpolicy: New file.
46465         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46466         modifications.
46467         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46468         new module.
46469
46470         New module 'posix_spawnattr_setschedparam'.
46471         * modules/posix_spawnattr_setschedparam: New file.
46472         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46473         modifications.
46474         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46475         new module.
46476
46477         New module 'posix_spawnattr_getschedparam'.
46478         * modules/posix_spawnattr_getschedparam: New file.
46479         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46480         modifications.
46481         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46482         new module.
46483
46484         New module 'posix_spawnattr_setpgroup'.
46485         * modules/posix_spawnattr_setpgroup: New file.
46486         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46487         modifications.
46488         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46489         module.
46490
46491         New module 'posix_spawnattr_getpgroup'.
46492         * modules/posix_spawnattr_getpgroup: New file.
46493         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46494         modifications.
46495         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46496         module.
46497
46498         New module 'posix_spawnattr_setflags'.
46499         * modules/posix_spawnattr_setflags: New file.
46500         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46501         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46502         module.
46503
46504         New module 'posix_spawnattr_getflags'.
46505         * modules/posix_spawnattr_getflags: New file.
46506         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46507         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46508         module.
46509
46510         New module 'posix_spawnattr_init'.
46511         * modules/posix_spawnattr_init: New file.
46512         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46513         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46514         module.
46515
46516         New module 'posix_spawn_file_actions_destroy'.
46517         * modules/posix_spawn_file_actions_destroy: New file.
46518         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46519         modifications.
46520         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46521         the new module.
46522
46523         New module 'posix_spawn_file_actions_addopen'.
46524         * modules/posix_spawn_file_actions_addopen: New file.
46525         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46526         modifications.
46527         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46528         the new module.
46529
46530         New module 'posix_spawn_file_actions_adddup2'.
46531         * modules/posix_spawn_file_actions_adddup2: New file.
46532         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46533         modifications.
46534         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46535         the new module.
46536
46537         New module 'posix_spawn_file_actions_addclose'.
46538         * modules/posix_spawn_file_actions_addclose: New file.
46539         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46540         modifications.
46541         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46542         the new module.
46543
46544         New module 'posix_spawn_file_actions_init'.
46545         * modules/posix_spawn_file_actions_init: New file.
46546         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46547         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46548         new module.
46549
46550         New module 'posix_spawn-internal'.
46551         * modules/posix_spawn-internal: New file.
46552         * lib/spawn_int.h: New file, from GNU libc with modifications.
46553         * lib/spawni.c: New file, from GNU libc with modifications.
46554         * m4/posix_spawn.m4: New file.
46555
46556         New module 'spawn'.
46557         * modules/spawn: New file.
46558         * lib/spawn.in.h: New file, from GNU libc with modifications.
46559         * m4/spawn_h.m4: New file.
46560         * doc/posix-headers/spawn.texi: Mention the new module.
46561
46562 2008-09-28  Bruno Haible  <bruno@clisp.org>
46563
46564         * modules/sched-tests: New file.
46565         * tests/test-sched.c: New file.
46566
46567         New module 'sched'.
46568         * modules/sched: New file.
46569         * lib/sched.in.h: New file.
46570         * m4/sched_h.m4: New file.
46571         * doc/posix-headers/sched.texi: Mention the new module.
46572
46573 2008-09-27  Eric Blake  <ebb9@byu.net>
46574
46575         Fix previous patch, and tweak references to $0.
46576         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46577         (func_version, func_gnulib_dir): Don't call this program
46578         gnulib-tool.
46579         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46580         with using $0 in function.
46581         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46582         (func_fatal_error): Reuse the name the user invoked us with.
46583
46584 2008-09-27  Bruno Haible  <bruno@clisp.org>
46585
46586         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46587         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46588         (gl_ICONV_H): Not here.
46589         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46590         instead of assigning ICONV_H directly.
46591
46592         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46594         WCHAR_H directly.
46595
46596 2008-09-27  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46599         * modules/arpa_inet (Depends-on): Add link-warning.
46600         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46601         * modules/unistd (Makefile.am): Likewise.
46602
46603 2008-09-26  Bruno Haible  <bruno@clisp.org>
46604
46605         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46606         variables.
46607         (func_version): Essentially copied from gnulib-tool.
46608         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46609         func_readlink): Copied from gnulib-tool.
46610
46611 2008-09-26  Bruno Haible  <bruno@clisp.org>
46612
46613         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46614         invoking git-version-gen.
46615
46616 2008-09-26  Bruno Haible  <bruno@clisp.org>
46617
46618         * posix-modules: Update to directory names changed on 2008-01-19.
46619         Remove commas in output before splitting into words. No more need to
46620         avoid 'ftruncate' since 2007-02-19.
46621
46622 2008-09-26  Bruno Haible  <bruno@clisp.org>
46623
46624         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46625
46626 2008-09-26  Bruno Haible  <bruno@clisp.org>
46627
46628         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46629         * modules/fwriteerror (Depends-on): Add errno.
46630
46631 2008-09-26  Bruno Haible  <bruno@clisp.org>
46632
46633         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46634         * tests/test-vc-list-files-cvs.sh: Likewise.
46635
46636 2008-09-26  Bruno Haible  <bruno@clisp.org>
46637
46638         * doc/posix-headers/sys_resource.texi: Reorder items.
46639
46640 2008-09-26  Jim Meyering  <meyering@redhat.com>
46641
46642         fts: tweak inode comparison function
46643         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46644         inode numbers, as documented.
46645
46646         fts: sort dirent entries on inode number before traversing
46647         This avoids a quadratic, seek-related performance penalty when
46648         operating on a directory containing many entries (measurable at 10k;
46649         3.5 hours at 2 million entries with a cold cache) on certain types
46650         of file systems, including ext3 and ext4, but not tmpfs.
46651         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46652         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46653         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46654         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46655         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46656         (fts_build): Set the stat.st_ino member from D_INO.
46657         If it is likely to be useful, sort dirent entries on inode number.
46658
46659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46660         and the struct statfs.f_type member.
46661         * modules/fts (Depends-on): Add d-ino.
46662
46663 2008-09-26  Bruno Haible  <bruno@clisp.org>
46664
46665         * modules/sigpipe-die (Depends-on): Add sigpipe.
46666
46667         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46668         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46669         and GNULIB_STDIO_H_SIGPIPE are set.
46670         * lib/stdio-write.c: New file.
46671         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46672         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46673         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46674         REPLACE_STDIO_WRITE_FUNCS.
46675         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46676         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46677         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46678         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46679         * modules/stdio (Files): Add lib/stdio-write.c.
46680         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46681         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46682         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46683         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46684         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46685         REPLACE_FPRINTF_POSIX.
46686         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46687         REPLACE_PRINTF_POSIX.
46688         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46689         REPLACE_VFPRINTF_POSIX.
46690         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46691         REPLACE_VPRINTF_POSIX.
46692         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46693         SIGPIPE issue.
46694         * doc/posix-functions/fputc.texi: Likewise.
46695         * doc/posix-functions/fputs.texi: Likewise.
46696         * doc/posix-functions/fwrite.texi: Likewise.
46697         * doc/posix-functions/printf.texi: Likewise.
46698         * doc/posix-functions/putc.texi: Likewise.
46699         * doc/posix-functions/putchar.texi: Likewise.
46700         * doc/posix-functions/puts.texi: Likewise.
46701         * doc/posix-functions/vfprintf.texi: Likewise.
46702         * doc/posix-functions/vprintf.texi: Likewise.
46703
46704         * modules/safe-write (Depends-on): Add write.
46705
46706         * modules/sigpipe-tests: New file.
46707         * tests/test-sigpipe.c: New file.
46708         * tests/test-sigpipe.sh: New file.
46709
46710         * modules/write: New file.
46711         * lib/unistd.in.h: Include <sys/types.h>.
46712         (write): New declaration.
46713         * lib/write.c: New file.
46714         * m4/write.m4: New file.
46715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46716         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46717         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46718         GNULIB_WRITE, REPLACE_WRITE.
46719         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46720         and the SIGPIPE issue.
46721
46722         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46723         (raise): New declaration.
46724         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46725         (ext_signal): New function.
46726         (rpl_raise): New function.
46727         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46728         GNULIB_SIGNAL_H_SIGPIPE.
46729         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46730         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46731
46732         * modules/sigpipe: New file.
46733         * m4/sigpipe.m4: New file.
46734
46735 2008-09-25  Derek Price  <derek@ximbiot.com>
46736             Bruno Haible  <bruno@clisp.org>
46737
46738         * gnulib-tool (func_import): Report all license incompatibilities, not
46739         just the first one.
46740
46741 2008-09-25  Bruno Haible  <bruno@clisp.org>
46742
46743         * gnulib-tool (func_import): When computing the edits, consider not
46744         only the Makefile.ams that exist but also those that will be generated.
46745
46746 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46747
46748         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46749         fixes gnulib-tool --test warning about duplicate dependency.
46750
46751 2008-09-25  Bruno Haible  <bruno@clisp.org>
46752
46753         * gnulib-tool: Don't ask the user to perform edits in the generated
46754         Makefile.ams.
46755         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46756         apply to the Makefile.am being generated.
46757         (func_emit_tests_Makefile_am): Execute edits that apply to the
46758         Makefile.am being generated.
46759         (func_import): Setup list of Makefile.am edits before emitting the
46760         Makefile.ams, not at the end.
46761         (func_create_testdir): Update.
46762         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46763
46764 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46765
46766         * gnulib-tool (func_import): Store the --tests-base option in the
46767         comment in gnulib-cache.m4.
46768
46769 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46770
46771         * NEWS: Document increased portability that sys_select now provides.
46772
46773         * lib/sys_select.in.h: Install select wrapper.
46774         * lib/sys_socket.in.h: Use more descriptive name when there is no
46775         select wrapper.
46776         * lib/winsock-select.c: New.
46777         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46778         Require gl_HEADER_SYS_SOCKET.
46779         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46780         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46781         * tests/test-sys_select.c: Add functional tests.
46782
46783 2008-09-24  Eric Blake  <ebb9@byu.net>
46784
46785         open, fopen: close fd leak in last patch
46786         * lib/open.c (rpl_open): Close fd before returning error.
46787         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46788         * doc/posix-functions/open.texi (open): Document that Irix also
46789         has the bug.
46790         * doc/posix-functions/fopen.texi (fopen): Likewise.
46791         Reported by Paolo Bonzini.
46792
46793 2008-09-24  Bruno Haible  <bruno@clisp.org>
46794
46795         Ensure that a filename ending in a slash cannot be used to access a
46796         non-directory.
46797         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46798         to check whether it's really a directory.
46799         * lib/fopen.c: Include fcntl.h, unistd.h.
46800         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46801         and fdopen().
46802         * modules/fopen (Depends-on): Add unistd.
46803         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46804         * tests/test-fopen.c (main): Likewise.
46805         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46806         * doc/posix-functions/fopen.texi: Likewise.
46807         Reported by Eric Blake.
46808
46809 2008-09-23  Eric Blake  <ebb9@byu.net>
46810
46811         c-stack: avoid compiler optimizations when provoking overflow
46812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46813         recursion harder to optimize, to ensure a stack overflow occurs.
46814         * tests/test-c-stack.c (recurse): Likewise.
46815         Borrowed from libsigsegv.
46816
46817         c-stack: work around Irix sigaltstack bug
46818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46819         whether sigaltstack uses wrong end of stack_t (copied in part from
46820         libsigsegv).
46821         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46822         Irix bug, without requiring an over-allocation.
46823         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46824         bug.
46825
46826         fopen: document mingw bug on directories
46827         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46828         not allowing a stream visiting a directory, even though reading
46829         from such a stream is not portable.
46830
46831 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46832
46833         * lib/poll.c: Rewrite.
46834         * modules/poll: Depend on alloca.
46835
46836 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46837
46838         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46839         instead define prototypes for a full set of wrappers.  Ensure
46840         that Cygwin does not use the compatibility code, which is only
46841         for MinGW.
46842         * lib/winsock.c: New.
46843         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46844         * modules/sys_socket: Add lib/winsock.c.
46845
46846         * modules/poll-tests: Add errno and perror.
46847         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46848
46849 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46850
46851         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46852
46853 2008-09-23  Bruno Haible  <bruno@clisp.org>
46854
46855         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46856         * doc/glibc-functions/*: Likewise.
46857
46858 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46859
46860         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46861         success.
46862
46863 2008-09-22  Eric Blake  <ebb9@byu.net>
46864             Bruno Haible  <bruno@clisp.org>
46865
46866         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46867         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46868         supply %A but mishandle pseudo-NaN.
46869         Reported by Simon Josefsson.
46870
46871 2008-09-21  Bruno Haible  <bruno@clisp.org>
46872
46873         * tests/test-lock.c (main): Tweak skip message.
46874         * tests/test-tls.c (main): Likewise.
46875
46876 2008-09-21  Bruno Haible  <bruno@clisp.org>
46877
46878         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46879         whether 'struct sigaction' has sa_sigaction here...
46880         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46881         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46882
46883 2008-09-21  Bruno Haible  <bruno@clisp.org>
46884
46885         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46886         section.
46887         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46888         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46889         the new section.
46890         (Support for obsolete systems lacking POSIX:2001): New section.
46891         (String handling <string.h>): Move strdup to the new section.
46892         Suggested by Simon Josefsson and Paolo Bonzini.
46893
46894 2008-09-21  Bruno Haible  <bruno@clisp.org>
46895
46896         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46897         exponents in %e and %g results on 'long double'. Needed for mingw's
46898         improved *printf functions.
46899         * tests/test-vasprintf-posix.c (test_function): Likewise.
46900         * tests/test-snprintf-posix.h (test_function): Likewise.
46901         * tests/test-sprintf-posix.h (test_function): Likewise.
46902         Reported by Eric Blake.
46903
46904 2008-09-21  Bruno Haible  <bruno@clisp.org>
46905
46906         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46907         * tests/test-sprintf-posix.h (test_function): Likewise.
46908
46909 2008-09-21  Bruno Haible  <bruno@clisp.org>
46910
46911         * modules/getpass (Depends-on): Add strdup-posix.
46912
46913         New module 'strdup-posix'.
46914         * modules/strdup-posix: New file.
46915         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46916         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46917         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46918         REPLACE_STRDUP.
46919         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46920         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46921         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46922         strdup-posix.
46923
46924         * modules/strdup (Depends-on): Remove malloc-posix.
46925
46926 2008-09-20  Bruno Haible  <bruno@clisp.org>
46927
46928         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46929         Wildenhues.
46930
46931 2008-09-20  Bruno Haible  <bruno@clisp.org>
46932
46933         Ensure that wint_t gets defined on IRIX 5.3.
46934         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46935         * lib/wctype.in.h (wint_t): Likewise.
46936         (__wctype_wint_t): Remove type.
46937         (isw*): Use wint_t instead of __wctype_wint_t.
46938         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46939         * modules/wchar (Files): Add m4/wint_t.m4.
46940         (Makefile.am): Substitute HAVE_WINT_T.
46941         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46942         * tests/test-wctype.c: Check that wint_t is defined.
46943         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46944         * doc/posix-headers/wctype.texi: Likewise.
46945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46946
46947 2008-09-18  Bruno Haible  <bruno@clisp.org>
46948
46949         * gnulib-tool (func_exit): Update comment.
46950
46951 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46952
46953         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46954         assumes strdup exists and does not depend on strdup to return
46955         ENOMEM on out of memory conditions.
46956
46957 2008-09-18  Bruno Haible  <bruno@clisp.org>
46958
46959         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
46960         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46961         digits for the exponent.
46962
46963 2008-09-18  Jim Meyering  <meyering@redhat.com>
46964             Bruno Haible  <bruno@clisp.org>
46965
46966         * lib/vasnprintf.c (decimal_point_char): Define also if
46967         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46968
46969 2008-09-16  Bruno Haible  <bruno@clisp.org>
46970         and Eric Blake  <ebb9@byu.net>
46971
46972         vasnprintf: support Irix 5.3
46973         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46974         that mishandle long double infinity.
46975         Reported by Tom G. Christensen.
46976
46977 2008-09-16  Bruno Haible  <bruno@clisp.org>
46978
46979         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46980         Solaris 9.
46981         * doc/glibc-functions/alphasort.texi: Likewise.
46982         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46983
46984 2008-09-16  Jim Meyering  <meyering@redhat.com>
46985
46986         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46987         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46988         a umask modification leak out of a subshell.  Otherwise, the
46989         opensolaris /bin/sh would be accepted and thus cause unwarranted
46990         failures in the coreutils test suite.
46991
46992 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46993
46994         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46995         to succeed.
46996
46997 2008-09-16  Jim Meyering  <meyering@redhat.com>
46998
46999         avoid spurious test failure when library is built without ACL support
47000         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47001         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47002         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47003         * tests/test-copy-acl.sh: Likewise.
47004
47005 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47006
47007         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47008         based on character occurrence counts.
47009
47010 2008-09-15  Eric Blake  <ebb9@byu.net>
47011
47012         tests: avoid some compiler warnings
47013         * tests/test-memchr.c (main): Pass NULL indirectly.
47014         * tests/test-closein.c (main): Avoid unused variable.
47015
47016 2008-09-15  Bruno Haible  <bruno@clisp.org>
47017
47018         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47019         are missing on OpenBSD 4.0 individually.
47020         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47021
47022 2008-09-15  Bruno Haible  <bruno@clisp.org>
47023
47024         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47025         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47026         * doc/posix-functions/perror.texi: Likewise.
47027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47028         is missing.
47029         Reported by Eric Blake.
47030
47031         * lib/errno.in.h: Use replacement values >= 2000.
47032         Reported by Eric Blake.
47033
47034 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47035
47036         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47037         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47038         limit.
47039         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47040         compareseq was aborted.
47041
47042 2008-09-14  Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47045         yvec_edit_count.
47046         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47047         (fstrcmp_bounded): Simplify result computation accordingly.
47048
47049 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47050
47051         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47052         (fstrcmp): Define in terms of fstrcmp_bounded.
47053         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47054         lower_bound argument.
47055         Return quickly if the result is certainly < lower_bound.
47056         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47057
47058 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47059
47060         * lib/diffseq.h (EARLY_ABORT): New macro.
47061         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47062         evaluates to true.
47063
47064 2008-09-14  Bruno Haible  <bruno@clisp.org>
47065
47066         * modules/perror-tests: New file.
47067         * tests/test-perror.sh: New file.
47068         * tests/test-perror.c: New file.
47069
47070         New module 'perror'.
47071         * lib/stdio.in.h (perror): New declaration.
47072         * lib/perror.c: New file.
47073         * m4/perror.m4: New file.
47074         * modules/perror: New file.
47075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47076         * doc/posix-functions/perror.texi: Mention the perror module.
47077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47078         REPLACE_PERROR.
47079         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47080         REPLACE_PERROR.
47081
47082 2008-09-14  Bruno Haible  <bruno@clisp.org>
47083
47084         * modules/stdio (Makefile.am): Reorder to match the order in
47085         lib/stdio.in.h.
47086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47087
47088 2008-09-13  Bruno Haible  <bruno@clisp.org>
47089
47090         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47091
47092 2008-09-13  Bruno Haible  <bruno@clisp.org>
47093
47094         Extend strerror to cover the added errno values.
47095         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47096         (rpl_strerror): Provide error messages for the added errno values and
47097         for the WSA* values.
47098         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47099         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47100         strerror.
47101         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47102         * modules/strerror (Depends-on): Add errno.
47103         * doc/posix-functions/strerror.texi: Document the change.
47104         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47105         and EOVERFLOW.
47106
47107 2008-09-13  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/EOVERFLOW: Remove file.
47110         * m4/eoverflow.m4: Remove file.
47111         * modules/EOVERFLOW-tests: Remove file.
47112         * tests/test-EOVERFLOW.c: Remove file.
47113         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47114         * modules/ftell (Depends-on): Likewise.
47115         * modules/getdelim (Depends-on): Likewise.
47116         * modules/getugroups (Depends-on): Likewise.
47117         * modules/poll (Depends-on): Likewise.
47118         * modules/snprintf (Depends-on): Likewise.
47119         * modules/sprintf-posix (Depends-on): Likewise.
47120         * modules/vasnprintf (Depends-on): Likewise.
47121         * modules/vasprintf (Depends-on): Likewise.
47122         * modules/vfprintf-posix (Depends-on): Likewise.
47123         * modules/vsnprintf (Depends-on): Likewise.
47124         * modules/vsprintf-posix (Depends-on): Likewise.
47125         * modules/xvasprintf (Depends-on): Likewise.
47126         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47127         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47128         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47129         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47130         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47131         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47132         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47133         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47134         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47135         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47136         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47137         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47138         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47139         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47140         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47141         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47142         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47143         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47144         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47145         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47146         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47147         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47148         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47149         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47150         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47151         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47152         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47153         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47154         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47155         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47156         * MODULES.html.sh: Remove EOVERFLOW.
47157         * NEWS: Mention the change.
47158
47159 2008-09-13  Bruno Haible  <bruno@clisp.org>
47160
47161         * modules/errno-tests: New file.
47162         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47163
47164         * lib/errno.in.h: New file.
47165         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47166         * modules/errno: New file.
47167         * doc/posix-headers/errno.texi: Update documentation.
47168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47169
47170 2008-09-13  Bruno Haible  <bruno@clisp.org>
47171
47172         * tests/test-poll.c: Use #if for native Windows, rather than testing
47173         __MSVCRT__.
47174
47175 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47176             Bruno Haible  <bruno@clisp.org>
47177
47178         * lib/glob.c: Don't include <pwd.h> on native Windows.
47179         (WINDOWS32): New macro.
47180         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47181
47182 2008-09-13  Bruno Haible  <bruno@clisp.org>
47183
47184         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47185         (ETIMEDOUT): Remove macro.
47186         (glthread_cond_timedwait_multithreaded): New declaration.
47187         (glthread_cond_timedwait): Use it.
47188         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47189         (glthread_cond_timedwait_multithreaded): New function.
47190
47191 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47192
47193         * modules/poll-tests: Do not check for io.h.
47194         * tests/test-poll.c: Check for __MSVCRT__ instead.
47195
47196 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47197
47198         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47199         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47200         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47201
47202 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47203
47204         * modules/poll-tests: New.
47205         * tests/test-poll.c: New.
47206
47207 2008-09-12  Eric Blake  <ebb9@byu.net>
47208
47209         frexp: test for NetBSD failure on -0.0
47210         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47211         not all, bugs from NetBSD 3.0 have been fixed.
47212         * doc/posix-functions/frexp.texi (frexp): Document bug.
47213         Reported by Thomas Klausner.
47214
47215         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47216         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47217         literal -0.0.
47218         Reported by Jonathan C. Patschke <jp@centtech.com>.
47219
47220 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47221
47222         * lib/glthread/cond.h: Use dummy implementation also if
47223         USE_WIN32_THREADS.
47224
47225 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47226
47227         * modules/fnmatch-posix (License): Change to LGPLv2+.
47228         * modules/fnmatch-gnu (License): Likewise.
47229
47230 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47231
47232         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47233
47234 2008-09-11  Jim Meyering  <meyering@redhat.com>
47235
47236         * users.txt: Add gtk-vnc.
47237
47238 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47239
47240         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47241         rotate amounts.
47242
47243         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47244         required for 16-bit and 8-bit rotates.
47245         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47246         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47247         UINT8_MAX instead of hard-coded constants.
47248         Suggested by Paul Eggert.
47249
47250 2008-09-07  Bruno Haible  <bruno@clisp.org>
47251
47252         * tests/test-striconveh.c (main): Check behaviour when converting from
47253         UTF-7.
47254
47255         Make striconveh work better with stateful encodings.
47256         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47257         that iconv does not increment the inptr when returning -1/EINVAL.
47258
47259 2008-09-07  Bruno Haible  <bruno@clisp.org>
47260
47261         * build-aux/config.rpath: Update according to libtool-2.2.6.
47262         * build-aux/config.libpath: Likewise.
47263
47264 2008-09-06  Bruno Haible  <bruno@clisp.org>
47265
47266         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47267         * lib/freadptr.c (freadptr): Likewise.
47268         * lib/freadseek.c (freadptrinc): Likewise.
47269         Reported by Simon Josefsson.
47270
47271 2008-09-06  Bruno Haible  <bruno@clisp.org>
47272
47273         * modules/freadptr (License): Change to LGPLv2+.
47274         * modules/freadseek (License): Likewise.
47275         Suggested by Eric Blake.
47276
47277         * modules/memchr2 (License): Change to LGPLv2+.
47278         Approved by Eric Blake.
47279
47280 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47281             Bruno Haible  <bruno@clisp.org>
47282
47283         Make gnulib-tool work with native 'sed' on AIX.
47284         * gnulib-tool (sed_noop): New variable.
47285         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47286         func_add_or_update, func_create_testdir): Use it to initialize sed
47287         script variables.
47288         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47289
47290 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47291             Bruno Haible  <bruno@clisp.org>
47292
47293         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47294         also works after #include directives.
47295
47296 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47297
47298         getdate.y: reject an out-of-range timezone value
47299         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47300         the range [-24...+24].  When specified with only one or two digits,
47301         * tests/test-getdate.c: Tests for the fix.
47302         * doc/getdate.texi: Document this change.
47303
47304 2008-09-03  Bruno Haible  <bruno@clisp.org>
47305
47306         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47307
47308 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47309
47310         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47311         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47312         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47313         Blake <ebb9@byu.net>.
47314
47315         * tests/test-bitrotate.c: Add more test vectors.
47316
47317 2008-09-02  Eric Blake  <ebb9@byu.net>
47318
47319         vasnprintf-posix: handle large precision via %.*d
47320         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47321         when handling it ourselves.
47322         * tests/test-vasnprintf-posix.c (test_function): Add test.
47323         * tests/test-snprintf-posix.h (test_function): Likewise.
47324         * tests/test-sprintf-posix.h (test_function): Likewise.
47325         * tests/test-vasprintf-posix.c (test_function): Likewise.
47326         Reported by Alain Guibert.
47327
47328 2008-09-01  Eric Blake  <ebb9@byu.net>
47329
47330         c-stack: make configure-time check more robust
47331         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47332         successful sigaction call.
47333         Reported by Tom G. Christensen.
47334
47335 2008-09-01  Bruno Haible  <bruno@clisp.org>
47336
47337         New module 'findprog-lgpl'.
47338         * modules/findprog-lgpl: New file.
47339         * lib/findprog-lgpl.c: New file.
47340         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47341         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47342         to decide whether to use strdup or xstrdup, concatenated_filename or
47343         xconcatenated_filename.
47344
47345 2008-09-01  Bruno Haible  <bruno@clisp.org>
47346
47347         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47348         'xconcat-filename' (GPL).
47349         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47350         (License): Change to LGPLv2+.
47351         * modules/xconcat-filename: New file.
47352         * lib/concat-filename.h (concatenated_filename): Change specification.
47353         (xconcatenated_filename): New declaration.
47354         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47355         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47356         memory situations.
47357         * lib/xconcat-filename.c: New file.
47358         * NEWS: Mention the change.
47359         * lib/findprog.c: Include concat-filename.h, not filename.h.
47360         (find_in_path): Use xconcatenated_filename instead of
47361         concatenated_filename.
47362         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47363         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47364         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47365         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47366         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47367         instead of concatenated_filename.
47368         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47369         (execute_java_class): Use xconcatenated_filename instead of
47370         concatenated_filename.
47371         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47372         * modules/javacomp (Depends-on): Likewise.
47373         * modules/javaexec (Depends-on): Likewise.
47374
47375 2008-09-01  Bruno Haible  <bruno@clisp.org>
47376
47377         Split module 'filename' into 'filename' and 'concat-filename'.
47378         * modules/filename: Keep only lib/filename.h.
47379         (License): Change to LGPLv2+.
47380         * modules/concat-filename: New file, extracted from modules/filename.
47381         * lib/filename.h (concatenated_filename): Remove declaration.
47382         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47383         * lib/concat-filename.c: Include concat-filename.h.
47384         * NEWS: Mention the change.
47385
47386 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47387
47388         * lib/bitrotate.h (rotl8, rotr8): Add.
47389
47390         * modules/bitrotate (configure.ac): Need
47391         AC_REQUIRE([AC_C_INLINE]).
47392         (Description): Mention stdint.h.  Reported by Bruno Haible
47393         <bruno@clisp.org>.
47394
47395         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47396         Paolo Bonzini <bonzini@gnu.org>.
47397
47398 2008-08-31  Bruno Haible  <bruno@clisp.org>
47399
47400         Assume Solaris specific bi-arch conventions on Solaris systems.
47401         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47402         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47404         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47405         like acl_libdirstem.
47406         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47407         acl_libdirstem.
47408         * NEWS: Mention the change.
47409         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47410
47411 2008-08-31  Jim Meyering  <meyering@redhat.com>
47412
47413         * lib/strftime.h: Add comments describing the two added arguments.
47414
47415         remove duplicate #include directives
47416         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47417         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47418
47419 2008-08-31  Bruno Haible  <bruno@clisp.org>
47420
47421         New module 'sigpipe-die'.
47422         * modules/sigpipe-die: New file.
47423         * lib/sigpipe-die.h: New file.
47424         * lib/sigpipe-die.c: New file.
47425         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47426
47427 2008-08-31  Bruno Haible  <bruno@clisp.org>
47428
47429         Don't override previously installed signal handlers.
47430         * lib/fatal-signal.c (saved_sigactions): New variable.
47431         (uninstall_handlers): Reset the signal to the saved handler, not
47432         to SIG_DFL (except when ignored).
47433         (install_handlers): Save the previous handlers.
47434
47435 2008-08-30  Bruno Haible  <bruno@clisp.org>
47436
47437         * gnulib-tool (func_reset_sigpipe): New function.
47438         (func_get_automake_snippet, func_modules_transitive_closure,
47439         func_import): Invoke it before a join command that reads from stdin,
47440         to avoid "echo: write error: Broken pipe" error messages on stderr.
47441         Reported by Sam Steingold <sds@gnu.org>.
47442
47443 2008-08-30  Bruno Haible  <bruno@clisp.org>
47444
47445         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47446         Code copied from m4/open.m4.
47447         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47448         access and the filename ends in a slash. Code copied from lib/open.c.
47449         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47450         * tests/test-fopen.c (main): Check against bug with trailing slash.
47451
47452 2008-08-29  Bruno Haible  <bruno@clisp.org>
47453
47454         Avoid some "gcc -pedantic" warnings.
47455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47456         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47457         * lib/dirent.in.h: Likewise.
47458         * lib/fcntl.in.h: Likewise.
47459         * lib/float.in.h: Likewise.
47460         * lib/iconv.in.h: Likewise.
47461         * lib/inttypes.in.h: Likewise.
47462         * lib/locale.in.h: Likewise.
47463         * lib/math.in.h: Likewise.
47464         * lib/netinet_in.in.h: Likewise.
47465         * lib/search.in.h: Likewise.
47466         * lib/signal.in.h: Likewise.
47467         * lib/stdarg.in.h: Likewise.
47468         * lib/stdint.in.h: Likewise.
47469         * lib/stdio.in.h: Likewise.
47470         * lib/stdlib.in.h: Likewise.
47471         * lib/string.in.h: Likewise.
47472         * lib/strings.in.h: Likewise.
47473         * lib/sys_select.in.h: Likewise.
47474         * lib/sys_socket.in.h: Likewise.
47475         * lib/sys_stat.in.h: Likewise.
47476         * lib/sys_time.in.h: Likewise.
47477         * lib/sysexits.in.h: Likewise.
47478         * lib/time.in.h: Likewise.
47479         * lib/unistd.in.h: Likewise.
47480         * lib/wchar.in.h: Likewise.
47481         * lib/wctype.in.h: Likewise.
47482         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47483         * modules/fchdir (Makefile.am): Likewise.
47484         * modules/fcntl (Makefile.am): Likewise.
47485         * modules/float (Makefile.am): Likewise.
47486         * modules/iconv_open (Makefile.am): Likewise.
47487         * modules/inttypes (Makefile.am): Likewise.
47488         * modules/locale (Makefile.am): Likewise.
47489         * modules/math (Makefile.am): Likewise.
47490         * modules/netinet_in (Makefile.am): Likewise.
47491         * modules/search (Makefile.am): Likewise.
47492         * modules/signal (Makefile.am): Likewise.
47493         * modules/stdarg (Makefile.am): Likewise.
47494         * modules/stdint (Makefile.am): Likewise.
47495         * modules/stdio (Makefile.am): Likewise.
47496         * modules/stdlib (Makefile.am): Likewise.
47497         * modules/string (Makefile.am): Likewise.
47498         * modules/strings (Makefile.am): Likewise.
47499         * modules/sys_select (Makefile.am): Likewise.
47500         * modules/sys_socket (Makefile.am): Likewise.
47501         * modules/sys_stat (Makefile.am): Likewise.
47502         * modules/sys_time (Makefile.am): Likewise.
47503         * modules/sysexits (Makefile.am): Likewise.
47504         * modules/time (Makefile.am): Likewise.
47505         * modules/unistd (Makefile.am): Likewise.
47506         * modules/wchar (Makefile.am): Likewise.
47507         * modules/wctype (Makefile.am): Likewise.
47508         Reported by Reuben Thomas <rrt@sc3d.org>.
47509
47510 2008-08-29  Bruno Haible  <bruno@clisp.org>
47511
47512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47513         any more.
47514
47515 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47516
47517         * MODULES.html.sh (Misc): Add bitrotate.
47518
47519         * modules/bitrotate: New file.
47520
47521         * lib/bitrotate.h: New file.
47522
47523         * modules/bitrotate-tests: New file.
47524
47525         * tests/test-bitrotate.c: New file.
47526
47527         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47528         on the bitrotate module.
47529
47530         * lib/arctwo.c: Use new bitrotate module.
47531
47532 2008-08-29  Jim Meyering  <meyering@redhat.com>
47533
47534         bootstrap: merge changes from coreutils
47535         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47536         of copied files.  Remove a kludge, now that this is fixed.
47537         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47538         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47539         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47540
47541 2008-08-29  Bruno Haible  <bruno@clisp.org>
47542
47543         * MODULES.html.sh: Remove --cvs-urls option.
47544
47545 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47546
47547         maint.mk: adjust to file name change
47548         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47549
47550 2008-08-28  Jim Meyering  <meyering@redhat.com>
47551
47552         * modules/getndelim2 (License): Relicense to LGPLv2+.
47553         Approved by Richard Stallman for the version of 1995, and by
47554         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47555
47556 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47557
47558         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47559         dummy if one is not available.  Do not touch them if
47560         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47561         (getc_maybe_unlocked): New.
47562         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47563
47564 2008-08-26  Eric Blake  <ebb9@byu.net>
47565
47566         doc/INSTALL: resync from autoconf
47567         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47568         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47569         moving...
47570         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47571         * INSTALL: Regenerate.
47572         * INSTALL.ISO: New file.
47573         * INSTALL.UTF-8: Likewise.
47574
47575 2008-08-26  Jim Meyering  <meyering@redhat.com>
47576
47577         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47578         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47579         these definitions conditional, so that they may be overridden, too.
47580
47581 2008-08-26  Bruno Haible  <bruno@clisp.org>
47582
47583         Generate INSTALL file variants with prettier quotes.
47584         * doc/Makefile (INSTALL_PRELUDE): New macro.
47585         (INSTALL): Use it.
47586         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47587
47588 2008-08-26  Bruno Haible  <bruno@clisp.org>
47589
47590         Run makeinfo in an English locale.
47591         * doc/Makefile (MAKEINFO): New variable.
47592
47593 2008-08-26  Bruno Haible  <bruno@clisp.org>
47594
47595         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47596         Suggested by Eric Blake.
47597
47598 2008-08-25  Bruno Haible  <bruno@clisp.org>
47599
47600         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47601
47602 2008-08-25  Eric Blake  <ebb9@byu.net>
47603
47604         c-stack: test that stack overflow can be caught
47605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47606         that platform allows handling stack overflow; at least OS/2 EMX
47607         has sigaltstack, but crashes before transferring control to
47608         handler on stack overflow.
47609         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47610         check for HAVE_STACK_OVERFLOW_HANDLING.
47611         Reported by Elbert Pol.
47612
47613 2008-08-25  Bruno Haible  <bruno@clisp.org>
47614
47615         * doc/posix-functions/strftime.texi: Fix description of strftime
47616         module.
47617
47618 2008-08-24  Bruno Haible  <bruno@clisp.org>
47619
47620         * tests/uniwidth/test-uc_width2.c: New file.
47621         * tests/uniwidth/test-uc_width2.sh: New file.
47622         * modules/uniwidth/width-tests (Files): Add the new files.
47623         (TESTS): Add uniwidth/test-uc_width2.sh.
47624         (TESTS_ENVIRONMENT): New variable.
47625         (check_PROGRAMS): Add test-uc_width2.
47626         (test_uc_width2_SOURCES): New variable.
47627
47628         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47629         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47630         not 0x00AB.
47631         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47632
47633 2008-08-22  Eric Blake  <ebb9@byu.net>
47634
47635         test-lock, test-tls: mention why a test is skipped
47636         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47637         skipped.
47638         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47639
47640         count-one-bits: relax license
47641         * modules/count-one-bits (License): Relicense to LGPLv2+.
47642         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47643
47644 2008-08-22  Andreas Schwab  <schwab@suse.de>
47645
47646         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47647         Remove spurious space in assignment.
47648
47649 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47650
47651         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47652         Paul Eggert <eggert@CS.UCLA.EDU>.
47653
47654 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47655
47656         * modules/gettext: Add m4/threadlib.m4.
47657
47658 2008-08-19  Eric Blake  <ebb9@byu.net>
47659
47660         test-c-stack: fix compilation failure on FreeBSD 5.0
47661         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47662         headers before <sys/resource.h>.
47663         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47664         the bug.
47665         Reported by Nelson H. F. Beebe.
47666
47667         strverscmp: migrate from "strverscmp.h" to <string.h>
47668         * modules/string (Makefile.am): Add new hooks.
47669         * modules/strverscmp (Files): Remove strverscmp.h.
47670         (Depends-on): Add string.
47671         (configure.ac): Add indicator.
47672         (Include): Mention new header.
47673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47674         defaults.
47675         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47676         results.
47677         * lib/strverscmp.h: Delete.
47678         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47679         * tests/test-strverscmp.c (includes): Adjust client.
47680         * lib/check-version.c (includes): Likewise.
47681         * NEWS: Document the change.
47682
47683         strverscmp: add unit test
47684         * modules/strverscmp-tests: New file.
47685         * tests/test-strverscmp.c: Likewise.
47686
47687 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47688
47689         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47690         regarding Windows crypto stuff, from Mono.
47691
47692 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47693
47694         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47695         if present, for intel RND.  Return error on failures.
47696
47697 2008-08-18  Ben Pfaff  <blp@gnu.org>
47698
47699         gitlog-to-changelog: give better diagnostic for failed pipe-open
47700         * build-aux/gitlog-to-changelog: Improve error message: suggest
47701         that the version of Git may be too old.
47702
47703 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47704
47705         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47706         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47707
47708 2008-08-18  Bruno Haible  <bruno@clisp.org>
47709
47710         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47711         pthread_in_use().
47712
47713 2008-08-18  Bruno Haible  <bruno@clisp.org>
47714
47715         * lib/glthread/threadlib.c: Include <pthread.h>.
47716
47717 2008-08-18  Bruno Haible  <bruno@clisp.org>
47718
47719         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47720         glthread_recursive_lock_* macros.
47721         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47722         Fix syntax error.
47723
47724 2008-08-18  Bruno Haible  <bruno@clisp.org>
47725
47726         * lib/glthread/thread.c: Avoid forcing a context switch right after
47727         thread creation.
47728
47729 2008-08-17  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47732         * lib/glthread/thread.h: Provide Win32 specific implementation.
47733         * modules/thread (Files): Add lib/glthread/thread.c.
47734         (Depends-on): Add lock.
47735         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47736
47737 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47738
47739         New module 'yield'.
47740         * modules/yield: New file.
47741         * lib/glthread/yield.h: New file.
47742         * m4/yield.m4: New file.
47743         * MODULES.html.sh (Multithreading): Add yield.
47744
47745 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47746
47747         New module 'thread'.
47748         * modules/thread: New file.
47749         * lib/glthread/thread.h: New file.
47750         * m4/thread.m4: New file.
47751         * MODULES.html.sh (Multithreading): Add thread.
47752
47753 2008-08-17  Bruno Haible  <bruno@clisp.org>
47754
47755         * lib/glthread/lock.h: Include <stdlib.h> always.
47756         * lib/glthread/tls.h: Likewise.
47757         * lib/glthread/cond.h: Likewise.
47758
47759 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47760
47761         New module 'cond'.
47762         * modules/cond: New file.
47763         * lib/glthread/cond.h: New file.
47764         * lib/glthread/cond.c: New file.
47765         * m4/cond.m4: New file.
47766         * MODULES.html.sh (Multithreading): Add cond.
47767
47768 2008-08-16  Eric Blake  <ebb9@byu.net>
47769
47770         c-stack: fix regression on Irix 5.3 from 2008-06-21
47771         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47772         sa_sigaction...
47773         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47774         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47775         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47776         * modules/signal (Makefile.am): Use the value.
47777         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47778         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47779         * doc/posix-headers/signal.texi (signal.h): Document this
47780         portability issue.
47781         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47782         Reported by Tom G. Christensen.
47783
47784 2008-08-17  Bruno Haible  <bruno@clisp.org>
47785
47786         New module 'threadlib'.
47787         * modules/threadlib: New file.
47788         * lib/glthread/threadlib.c: New file, extracted from
47789         lib/glthread/lock.c.
47790         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47791         functions.
47792         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47793         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47794         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47795         macros.
47796         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47797         (gl_DISABLE_THREADS): Remove macro.
47798         * modules/lock (Files): Remove build-aux/config.rpath.
47799         (Depends-on): Remove havelib. Add threadlib.
47800         (configure.ac-early): Remove section.
47801         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47802         * modules/tls (Depends-on): Remove lock. Add threadlib.
47803         (Link): New section, copied from threadlib.
47804         * MODULES.html.sh (Multithreading): Add threadlib.
47805
47806 2008-08-14  Bruno Haible  <bruno@clisp.org>
47807
47808         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47809         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47810         glthread_rwlock_unlock, glthread_rwlock_destroy,
47811         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47812         glthread_recursive_lock_destroy): Define as macros always.
47813         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47814         glthread_lock_lock.
47815         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47816         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47817         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47818         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47819         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47820         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47821         (glthread_recursive_lock_lock_func): Renamed from
47822         glthread_recursive_lock_lock.
47823         (glthread_recursive_lock_unlock_func): Renamed from
47824         glthread_recursive_lock_unlock.
47825         (glthread_recursive_lock_destroy_func): Renamed from
47826         glthread_recursive_lock_destroy.
47827
47828 2008-08-14  Bruno Haible  <bruno@clisp.org>
47829
47830         * lib/glthread/lock.h: Renamed from lib/lock.h.
47831         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47832         * lib/glthread/tls.h: Renamed from lib/tls.h.
47833         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47834         * lib/fstrcmp.c: Update includes.
47835         * lib/strsignal.c: Update includes.
47836         * modules/lock (Files, Makefile.am): Update.
47837         (Include): Change to "glthread/lock.h".
47838         * modules/tls (Files, Makefile.am): Update.
47839         (Include): Change to "glthread/tls.h".
47840         * tests/test-lock.c: Update includes.
47841         * tests/test-tls.c: Update includes.
47842         * NEWS: Mention the renamed header files.
47843
47844 2008-08-11  Jim Meyering  <meyering@redhat.com>
47845
47846         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47847
47848 2008-08-11  Eric Blake  <ebb9@byu.net>
47849
47850         test-c-stack: avoid C99-ism
47851         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47852         before statement.
47853         Reported by Alain Guibert.
47854
47855 2008-08-10  Jim Meyering  <meyering@redhat.com>
47856
47857         ensure that return value of uinttostr et al are not ignored
47858         * lib/inttostr.h (__GNUC_PREREQ): Define.
47859         (__attribute_warn_unused_result__): Define.
47860         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47861
47862 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47863
47864         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47865         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47866
47867 2008-08-07  Jim Meyering  <meyering@redhat.com>
47868
47869         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47870
47871         * modules/mkstemp (License): Relicense under LGPLv2+.
47872         * modules/tempname (License): Likewise.
47873
47874 2008-08-06  Bruno Haible  <bruno@clisp.org>
47875
47876         * lib/poll.c (poll): Further micro-optimization.
47877
47878 2008-08-06  Jim Meyering  <meyering@redhat.com>
47879
47880         inet_pton.c: use locale-independent tolower
47881         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47882         (inet_pton6): Use c_tolower rather than tolower.
47883         * modules/inet_pton (Depends-on): Add c-ctype.
47884
47885 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47886
47887         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47888         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47889
47890 2008-08-06  Jim Meyering  <meyering@redhat.com>
47891
47892         * modules/inet_pton (License): Relicense under LGPLv2+.
47893
47894 2008-08-03  Bruno Haible  <bruno@clisp.org>
47895
47896         Additional non-aborting API for lock and tls.
47897         * lib/lock.h: Include <errno.h>.
47898         (glthread_lock_init): New macro/function.
47899         (gl_lock_init): Define as wrapper around glthread_lock_init.
47900         (glthread_lock_lock): New macro/function.
47901         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47902         (glthread_lock_unlock): New macro/function.
47903         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47904         (glthread_lock_destroy): New macro/function.
47905         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47906         (glthread_rwlock_init): New macro/function.
47907         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47908         (glthread_rwlock_rdlock): New macro/function.
47909         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47910         (glthread_rwlock_wrlock): New macro/function.
47911         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47912         (glthread_rwlock_unlock): New macro/function.
47913         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47914         (glthread_rwlock_destroy): New macro/function.
47915         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47916         (glthread_recursive_lock_init): New macro/function.
47917         (gl_recursive_lock_init): Define as wrapper around
47918         glthread_recursive_lock_init.
47919         (glthread_recursive_lock_lock): New macro/function.
47920         (gl_recursive_lock_lock): Define as wrapper around
47921         glthread_recursive_lock_lock.
47922         (glthread_recursive_lock_unlock): New macro/function.
47923         (gl_recursive_lock_unlock): Define as wrapper around
47924         glthread_recursive_lock_unlock.
47925         (glthread_recursive_lock_destroy): New macro/function.
47926         (gl_recursive_lock_destroy): Define as wrapper around
47927         glthread_recursive_lock_destroy.
47928         (glthread_once): New macro/function.
47929         (gl_once): Define as wrapper around glthread_once.
47930         Update function declarations.
47931         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47932         glthread_rwlock_init. Return error code.
47933         (glthread_rwlock_rdlock_multithreaded): Renamed from
47934         glthread_rwlock_rdlock. Return error code.
47935         (glthread_rwlock_wrlock_multithreaded): Renamed from
47936         glthread_rwlock_wrlock. Return error code.
47937         (glthread_rwlock_unlock_multithreaded): Renamed from
47938         glthread_rwlock_unlock. Return error code.
47939         (glthread_rwlock_destroy_multithreaded): Renamed from
47940         glthread_rwlock_destroy. Return error code.
47941         (glthread_recursive_lock_init_multithreaded): Renamed from
47942         glthread_recursive_lock_init. Return error code.
47943         (glthread_recursive_lock_lock_multithreaded): Renamed from
47944         glthread_recursive_lock_lock. Return error code.
47945         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47946         glthread_recursive_lock_unlock. Return error code.
47947         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47948         glthread_recursive_lock_destroy. Return error code.
47949         (glthread_once_call): Make static.
47950         (glthread_once_multithreaded): Renamed from glthread_once.
47951         * lib/tls.h: Include <errno.h>.
47952         (glthread_tls_key_init): New macro/function.
47953         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47954         (glthread_tls_set): New macro/function.
47955         (gl_tls_set): Define as wrapper around glthread_tls_set.
47956         (glthread_tls_key_destroy): New macro/function.
47957         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47958         Update function declarations.
47959         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47960         glthread_tls_get.
47961         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47962
47963 2008-08-04  Eric Blake  <ebb9@byu.net>
47964
47965         gnumakefile: use space, not TAB, outside of targets
47966         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47967
47968 2008-08-02  Jim Meyering  <meyering@redhat.com>
47969
47970         getdate.y: avoid locale-dependent date parsing failure
47971         In Turkish locales, getdate would fail to recognize keywords
47972         containing a lowercase "i".  The solution is not to rely on
47973         locale-sensitive case-conversion.
47974         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47975         (lookup_word): Use c_toupper in place of toupper.
47976         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47977         Reported by Vefa Bicakci <bicave@superonline.com> in
47978         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47979         * modules/getdate (Depends-on): Add c-ctype.
47980
47981 2008-08-02  Bruno Haible  <bruno@clisp.org>
47982
47983         * gnulib-tool (func_import): When updating or creating a .gitignore
47984         file, prepend each added line with a slash, and ignore leading slashes
47985         from the existing lines.
47986         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47987
47988 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47989
47990         Portability fix for GNU make 3.79.1.
47991         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47992         versions do not understand.
47993
47994 2008-08-01  Bruno Haible  <bruno@clisp.org>
47995
47996         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47997         * tests/test-isnanf.h (zero): New variable.
47998         (main): Avoid literal -0.0f.
47999         * tests/test-isnand.h (zero): New variable.
48000         (main): Avoid literal -0.0.
48001         * tests/test-isnanl.h (zero): New variable.
48002         (main): Avoid literal -0.0L.
48003         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48004         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48005         -0.0, -0.0L.
48006         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48007         (test_signbitd): Avoid literal -0.0.
48008         (test_signbitl): Avoid literal -0.0L.
48009         * tests/test-ceilf1.c (zero): New variable.
48010         (main): Avoid literal -0.0f.
48011         * tests/test-ceill.c (zero): New variable.
48012         (main): Avoid literal -0.0L.
48013         * tests/test-floorf1.c (zero): New variable.
48014         (main): Avoid literal -0.0f.
48015         * tests/test-floorl.c (zero): New variable.
48016         (main): Avoid literal -0.0L.
48017         * tests/test-roundf1.c (zero): New variable.
48018         (main): Avoid literal -0.0f.
48019         * tests/test-round1.c (zero): New variable.
48020         (main): Avoid literal -0.0.
48021         * tests/test-roundl.c (zero): New variable.
48022         (main): Avoid literal -0.0L.
48023         * tests/test-truncf1.c (zero): New variable.
48024         (main): Avoid literal -0.0f.
48025         * tests/test-trunc1.c (zero): New variable.
48026         (main): Avoid literal -0.0.
48027         * tests/test-truncl.c (zero): New variable.
48028         (main): Avoid literal -0.0L.
48029         * tests/test-frexp.c (zero): New variable.
48030         (main): Avoid literal -0.0.
48031         * tests/test-frexpl.c (zero): New variable.
48032         (main): Avoid literal -0.0L.
48033         * tests/test-ldexpl.c (zero): New variable.
48034         (main): Avoid literal -0.0L.
48035         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48036         (zerod, zerol): New variables.
48037         (test_function): Avoid literals -0.0, -0.0L.
48038         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48039         (zerod, zerol): New variables.
48040         (test_function): Avoid literals -0.0, -0.0L.
48041         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48042         (zerod, zerol): New variables.
48043         (test_function): Avoid literals -0.0, -0.0L.
48044         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48045         (zerod, zerol): New variables.
48046         (test_function): Avoid literals -0.0, -0.0L.
48047         * tests/test-strtod.c (zero): New variable.
48048         (main): Avoid literal -0.0.
48049         Reported by Jonathan C. Patschke <jp@centtech.com>.
48050
48051 2008-07-31  Jim Meyering  <meyering@redhat.com>
48052
48053         sha256.h: correct definition of SHA224_DIGEST_SIZE
48054         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48055         Reported by Paulie Pena IV <paulie4@gmail.com>.
48056         Define as 224 / 8, rather than as a literal.
48057         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48058         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48059         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48060
48061 2008-07-31  Bruno Haible  <bruno@clisp.org>
48062
48063         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48064         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48065         Reported by Jonathan Patschke <jp@centtech.com>.
48066
48067 2008-07-31  Bruno Haible  <bruno@clisp.org>
48068
48069         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48070         Reported by Paolo Bonzini <bonzini@gnu.org>.
48071
48072 2008-07-30  Eric Blake  <ebb9@byu.net>
48073
48074         test-strtod: allow compilation without -lm
48075         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48076         Reported by Dennis Clarke <blastwave@gmail.com>.
48077
48078 2008-07-28  Jim Meyering  <meyering@redhat.com>
48079
48080         bootstrap: work also when there are no .po files in po/
48081         * build-aux/bootstrap (update_po_files): Complete the change
48082         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48083
48084 2008-07-27  Jim Meyering  <meyering@redhat.com>
48085
48086         * users.txt: Add zile.
48087
48088 2008-07-26  Ben Pfaff  <blp@gnu.org>
48089
48090         Add missing dependencies on new m4/exponent[fdl].m4 files.
48091         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48092         * modules/isnand-nolibm: Add m4/exponentd.m4.
48093         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48094         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48095         m4/isnan[fdl].m4, because the macros actually used moved.
48096         Reported by Jim Meyering.
48097
48098 2008-07-14  Ben Pfaff  <blp@gnu.org>
48099
48100         Add isinf module.
48101         * lib/isinf.c: New file.
48102         * lib/math.in.h: Define isinf macro if we have decided to replace
48103         it.
48104         * m4/isinf.m4: New file.
48105         * m4/math_h.m4: Initialize and substitute variables for isinf
48106         module.
48107         * modules/isinf: New file.
48108         * modules/isinf-tests: New file.
48109         * modules/math: Add substitutions for new module.
48110         * tests/test-isinf.c: New file.
48111         * doc/posix-functions/isinf.texi: Mention new module.
48112         * MODULES.html.sh: Mention new module.
48113
48114 2008-07-14  Ben Pfaff  <blp@gnu.org>
48115
48116         Factor out some macros for use by additional modules.
48117         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48118         exponentf.m4.
48119         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48120         exponentd.m4.
48121         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48122         file exponentl.m4.
48123         * m4/exponentf.m4: New file.
48124         * m4/exponentd.m4: New file.
48125         * m4/exponentl.m4: New file.
48126         * modules/isnanf: Use new file m4/exponentf.m4.
48127         * modules/isnand: Use new file m4/exponentd.m4.
48128         * modules/isnanl: Use new file m4/exponentl.m4.
48129
48130 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48131
48132         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48133         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48134         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48135         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48136
48137         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48138         readlink on platforms without PATH_MAX.
48139
48140 2008-07-21  Eric Blake  <ebb9@byu.net>
48141
48142         Warn, not fail, on stale version.
48143         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48144
48145         Don't allow installation with stale devel version number.
48146         * top/GNUmakefile (_is-install-target): New macro.
48147         (_curr-ver): Forbid installation with stale version number.
48148
48149 2008-07-20  Bruno Haible  <bruno@clisp.org>
48150
48151         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48152         TESTS_ENVIRONMENT.
48153         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48154
48155 2008-07-20  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/c-stack.h (c_stack_action): Add documentation.
48158         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48159
48160 2008-07-20  Bruno Haible  <bruno@clisp.org>
48161
48162         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48163         * modules/readlink (License): Likewise.
48164
48165 2008-07-17  Eric Blake  <ebb9@byu.net>
48166
48167         * modules/c-stack (Link): Fix typo.
48168
48169         Make c-stack use libsigsegv, when available.
48170         * modules/c-stack (Depends-on): Add libsigsegv.
48171         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48172         needed.
48173         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48174         (segv_handler, overflow_handler, c_stack_action)
48175         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48176         implementation when libsigsegv is available, but only when using
48177         the library is necessary.
48178         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48179         comment, explaining why XSI check fails on Linux.
48180         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48181         * tests/test-c-stack2.sh: Tweak skip message.
48182         * NEWS: Document new link-time requirements.
48183
48184 2008-07-16  Eric Blake  <ebb9@byu.net>
48185
48186         c-stack: Expose false positives when not using libsigsegv.
48187         * modules/c-stack-tests (Files): Expand test.
48188         * tests/test-c-stack.c (main): Add means to conditionally trigger
48189         non-overflow SIGSEGV.
48190         * tests/test-c-stack2.sh: New file.
48191
48192 2008-07-14  Bruno Haible  <bruno@clisp.org>
48193
48194         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48195         Reported by Eric Blake.
48196
48197 2008-07-14  Sam Steingold  <sds@gnu.org>
48198             Bruno Haible  <bruno@clisp.org>
48199
48200         New module libsigsegv.
48201         * modules/libsigsegv: New file.
48202         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48203         modifications.
48204         * MODULES.html.sh (Signal handling): New section.
48205
48206 2008-07-14  Bruno Haible  <bruno@clisp.org>
48207
48208         * modules/unictype/ctype-* (Description): Add the word "function".
48209         Improves the resulting doc in MODULES.html.
48210
48211 2008-07-12  Ben Pfaff  <blp@gnu.org>
48212
48213         Add longlong module.
48214         * modules/longlong: New file.
48215
48216 2008-07-12  Bruno Haible  <bruno@clisp.org>
48217
48218         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48219         to empty.
48220
48221 2008-07-10  Ben Pfaff  <blp@gnu.org>
48222
48223         Add isnan module.
48224         * doc/posix-functions/isnan.texi: Mention new module.
48225         * lib/math.in.h: Define isnan macro if we have decided to replace
48226         it.
48227         * m4/isnan.m4: New file.
48228         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48229         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48230         also.
48231         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48232         redundancy.
48233         * m4/math_h.m4: Initialize and substitute variables for isnan
48234         module.
48235         * modules/isnan: New file.
48236         * modules/isnan-tests: New file.
48237         * modules/math: Add substitutions for new module.
48238         * tests/test-isnan.c: New file.
48239         * MODULES.html.sh: Mention new module.
48240
48241 2008-07-10  Ben Pfaff  <blp@gnu.org>
48242
48243         Add isnanf module.
48244         * lib/isnanf.m4: New file.
48245         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48246         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48247         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48248         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48249         * modules/isnanf: New file.
48250         * modules/isnanf-tests: New file.
48251         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48252         files.
48253         * tests/test-isnanf-nolibm.c: factored most of its contents into
48254         new file tests/test-isnanf.h.
48255         * tests/test-isnanf.h: New file.
48256         * tests/test-isnanf.c: New file.
48257         * MODULES.html.sh: Mention new module.
48258         * doc/glibc-functions/isnanf.texi: Mention new module.
48259
48260 2008-07-10  Ben Pfaff  <blp@gnu.org>
48261
48262         Add isnand module.
48263         * lib/isnand.h: New file.
48264         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48265         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48266         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48267         functionality also.
48268         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48269         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48270         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48271         * modules/isnand: New file.
48272         * modules/isnand-tests: New file.
48273         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48274         files.
48275         * tests/test-isnand-nolibm.c: factored most of its contents into
48276         new file tests/test-isnand.h.
48277         * tests/test-isnand.h: New file.
48278         * tests/test-isnand.c: New file.
48279         * MODULES.html.sh: Mention new module.
48280
48281 2008-07-10  Ben Pfaff  <blp@gnu.org>
48282
48283         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48284         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48285         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48286         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48287         * modules/isnanf-nolibm: Update references to renamed files.
48288         * modules/isnand-nolibm: Likewise.
48289         * modules/isnanf-nolibm-tests: Likewise.
48290         * modules/isnand-nolibm-tests: Likewise.
48291         * lib/frexp.c: Likewise.
48292         * lib/isfinite.c: Likewise.
48293         * lib/signbitd.c: Likewise.
48294         * lib/signbitf.c: Likewise.
48295         * lib/vasnprintf.c: Likewise.
48296         * tests/test-ceilf1.c: Likewise.
48297         * tests/test-ceilf2.c: Likewise.
48298         * tests/test-floorf1.c: Likewise.
48299         * tests/test-floorf2.c: Likewise.
48300         * tests/test-frexp.c: Likewise.
48301         * tests/test-round1.c: Likewise.
48302         * tests/test-round2.c: Likewise.
48303         * tests/test-roundf1.c: Likewise.
48304         * tests/test-strtod.c: Likewise.
48305         * tests/test-trunc1.c: Likewise.
48306         * tests/test-trunc2.c: Likewise.
48307         * tests/test-truncf1.c: Likewise.
48308         * tests/test-truncf2.c: Likewise.
48309         * NEWS: Mention the renamed header files.
48310
48311 2008-07-11  Jim Meyering  <meyering@redhat.com>
48312
48313         vc-list-files: make the last-resort awk code more portable
48314         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48315         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48316         does not support it.
48317
48318 2008-07-10  Eric Blake  <ebb9@byu.net>
48319
48320         Work with tar's bootstrap.
48321         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48322         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48323         an m4 comment.
48324
48325 2008-07-09  Jim Meyering  <meyering@redhat.com>
48326
48327         posix-shell.m4: fix typo that made this test malfunction
48328         * m4/posix-shell.m4: Remove capitalization in variable name.
48329
48330 2008-07-08  Bruno Haible  <bruno@clisp.org>
48331
48332         * m4/onceonly.m4: Update comments.
48333         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48334
48335 2008-07-04  Jim Meyering  <meyering@redhat.com>
48336
48337         * users.txt: Add vc-dwim.
48338         (bison, coreutils): Use the gitweb URL.
48339
48340 2008-07-03  Jim Meyering  <meyering@redhat.com>
48341
48342         * users.txt: Add libffcall.  From Sam Steingold.
48343
48344 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48345
48346         getdate.y: do not ignore TZ with relative day, month or year offset
48347         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48348         relative-date-handling, since otherwise, the latter would clobber the
48349         sole output (an updated Start value) of the tz-handling block.
48350         * tests/test-getdate.c: Tests for the fix
48351
48352 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48353
48354         Recognize 'foo_LIBRARIES += libgnu.a'.
48355         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48356         makefile snippet has already specified an installation location,
48357         also using '+='.
48358
48359 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48360
48361         getdate.y: factor out common actions
48362         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48363         Use them in place of open-coded actions.
48364
48365 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48366
48367         Add self-test for getdate module.
48368         * modules/getdate-tests: New file.
48369         * tests/test-getdate.c: New file.
48370
48371 2008-06-29  Bruno Haible  <bruno@clisp.org>
48372
48373         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48374         .gitignore.
48375         Reported by Sylvain Beucler <beuc@beuc.net>.
48376
48377 2008-06-29  Bruno Haible  <bruno@clisp.org>
48378
48379         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48380         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48381
48382 2008-06-29  Bruno Haible  <bruno@clisp.org>
48383
48384         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48385         EXTRA_DIST.
48386         Reported by Sylvain Beucler <beuc@beuc.net>.
48387
48388 2008-06-26  Jim Meyering  <meyering@redhat.com>
48389
48390         make several modules depend on the "open" module
48391         This provides slightly increased consistency when opening-for-write
48392         the name of a non-directory spelled with a trailing slash.
48393         * modules/chdir-safer: Likewise.
48394         * modules/chown: Likewise.
48395         * modules/clean-temp: Likewise.
48396         * modules/copy-file: Likewise.
48397         * modules/fchdir: Likewise.
48398         * modules/fcntl-safer: Likewise.
48399         * modules/pipe: Likewise.
48400         * modules/utime: Likewise.
48401         Prompted by Eric Blake and Bruno Haible.
48402
48403 2008-06-24  Andreas Schwab  <schwab@suse.de>
48404
48405         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48406         literals can be used as initializers for global variables.
48407
48408 2008-06-23  Eric Blake  <ebb9@byu.net>
48409
48410         Make gnulib-cache.m4 easier to diff.
48411         * gnulib-tool (func_import): Allow newlines when reading cached
48412         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48413
48414 2008-06-23  Bruno Haible  <bruno@clisp.org>
48415
48416         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48417         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48418         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48419         m4/signalblocking.m4.
48420         (gl_PREREQ_SIGACTION): Don't invoke it.
48421         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48422         gl_PREREQ_SIG_HANDLER_H.
48423         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48424         Don't check for sigaction here.
48425
48426 2008-06-23  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48429         (install_handlers): Don't set the SA_RESETHAND flag.
48430
48431 2008-06-23  Bruno Haible  <bruno@clisp.org>
48432
48433         * m4/sigaction.m4: Comment fixes.
48434         * lib/signal.in.h: Likewise.
48435
48436 2008-06-23  Eric Blake  <ebb9@byu.net>
48437
48438         Fix typo.
48439         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48440
48441         Avoid SA_ namespace.
48442         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48443         Reported by Ralf Wildenhues.
48444
48445         Avoid test failure due to SA_RESTORER.
48446         * tests/test-sigaction.c (SA_MASK): New macro.
48447         (main): Avoid failing due to extension flags being set.
48448         Reported by Jim Meyering.
48449
48450         Revert use of sig-handler.h in sigprocmask.c.
48451         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48452         it requires the existence of struct sigaction.
48453         * lib/sigprocmask.c (handler_t): Restore typedef.
48454         (rpl_signal, old_handlers): Use local type.
48455
48456 2008-06-22  Bruno Haible  <bruno@clisp.org>
48457
48458         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48459         conditionally.
48460         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48461
48462 2008-06-22  Bruno Haible  <bruno@clisp.org>
48463
48464         * doc/posix-functions/siginterrupt.texi: Move note.
48465
48466         * lib/signal.in.h (SA_RESTART): New macro.
48467         * lib/sigaction.c: Update comment.
48468
48469         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48470
48471         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48472         (gl_PREREQ_SIGPROCMASK): Invoke it.
48473         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48474
48475         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48476
48477         * lib/sigprocmask.c: Update a comment.
48478
48479 2008-06-21  Eric Blake  <ebb9@byu.net>
48480
48481         Use sigaction module rather than signal().
48482         * modules/c-stack (Depends-on): Add sigaction.
48483         * modules/fatal-signal (Depends-on): Likewise.
48484         * modules/nanosleep (Depends-on): Likewise.
48485         * modules/sigprocmask (Files): Add sig-handler.h.
48486         * modules/sigaction (Files): Likewise.
48487         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48488         Eggert.
48489         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48490         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48491         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48492         (init_fatal_signals): Likewise.
48493         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48494         (siginterrupt): Delete fallback.
48495         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48496         instead.
48497         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48498         siginterrupt.
48499
48500         New module sigaction, for mingw.
48501         * modules/sigaction: New module...
48502         * modules/sigaction-tests: ...and its test.
48503         * m4/sigaction.m4: New file.
48504         * lib/sigaction.c: Likewise.
48505         * tests/test-sigaction.c: Likewise.
48506         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48507         * modules/signal (Makefile.am): Likewise.
48508         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48509         needed.
48510         * doc/posix-headers/signal.texi (signal.h): Mention provided
48511         types.
48512         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48513         that sigaction is preferable.
48514         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48515         module.
48516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48517         sigaction.
48518
48519         Improve robustness of sigprocmask by overriding signal.
48520         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48521         is in use.
48522         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48523         (SIGKILL, SIGSTOP): Provide fallbacks.
48524         (rpl_signal): Implement.
48525         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48526         signal can be called inside handlers.
48527
48528         Fix nanosleep module on mingw.
48529         * modules/nanosleep (Depends-on): Add sys_select.
48530         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48531
48532         Fix licensing of sigprocmask.
48533         * modules/raise (License): Relicense as LGPL.
48534
48535 2008-06-21  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48538         result if it contains question marks.
48539         Reported by Michael Geng <linux@michaelgeng.de>.
48540
48541 2008-06-19  Bruno Haible  <bruno@clisp.org>
48542
48543         Fix CVS-ism.
48544         * doc/gnulib.texi: Include updated-stamp.texi.
48545         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48546         (updated-stamp.texi): New rule.
48547         (gnulib.info): Depend on it.
48548         * doc/.gitignore: Add updated-stamp.texi.
48549         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48550
48551 2008-06-19  Bruno Haible  <bruno@clisp.org>
48552
48553         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48554         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48555
48556 2008-06-19  Eric Blake  <ebb9@byu.net>
48557
48558         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48559         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48560         Reported by Stepan Kasal.
48561
48562 2008-06-18  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48565         Reported by Eric Blake.
48566
48567 2008-06-18  Eric Blake  <ebb9@byu.net>
48568
48569         Work around cygwin 1.5.25 strsignal bug.
48570         * tests/test-strsignal.c: Allow for const char *.
48571         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48572
48573 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48574
48575         * users.txt: Update URL to article and add author/date
48576         information.
48577
48578 2008-06-17  Bruno Haible  <bruno@clisp.org>
48579
48580         New macro gl_DISABLE_THREADS.
48581         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48582         if the user did not pass --enable-threads or --disable-threads option.
48583         (gl_DISABLE_THREADS): New macro.
48584         Reported by Eric Blake <ebb9@byu.net>.
48585
48586 2008-06-17  Bruno Haible  <bruno@clisp.org>
48587
48588         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48589         when the macro ignores it.
48590         Based on a patch by Eric Blake <ebb9@byu.net>.
48591
48592 2008-06-17  Bruno Haible  <bruno@clisp.org>
48593
48594         * modules/tls (License): Change to LGPLv2+.
48595         Reported by Eric Blake.
48596
48597 2008-06-17  Eric Blake  <ebb9@byu.net>
48598
48599         Simplify c-stack prerequisites.
48600         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48602         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48603         check.
48604         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48605         <sys/resource.h>.
48606
48607         Move c-stack test into testsuite.
48608         * modules/c-stack-tests: New file.
48609         * lib/c-stack.c [DEBUG]: Move test program...
48610         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48611         fail test if sigaltstack is lacking.
48612         * tests/test-c-stack.sh: New driver file.
48613
48614 2008-06-16  Eric Blake  <ebb9@byu.net>
48615
48616         Use raise module consistently.
48617         * modules/fatal-signal (Depends-on): Add raise.
48618         * modules/sigprocmask (Depends-on): Likewise.
48619         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48620         * lib/sigprocmask.c (sigprocmask): Likewise.
48621         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48622         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48623
48624         Fix compliance bug in sigpending.
48625         * lib/sigprocmask.c (sigpending): Return pending array via
48626         parameter, not return value.
48627
48628 2008-06-14  Eric Blake  <ebb9@byu.net>
48629
48630         Improve obstack-printf test code.
48631         * tests/test-obstack-printf.c (test_function): Fix comment, and
48632         simplify usage of obstack_* in macros.  Add a test for coverage.
48633         Reported by Bruno Haible.
48634
48635 2008-06-14  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48638         array size as a constant, not as a const variable.
48639         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48640         AC_USE_SYSTEM_EXTENSIONS.
48641         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48642         Test whether the obstack_printf function actually exists.
48643         * modules/obstack-printf (Depends-on): Add extensions.
48644         (Include): Remove obstack.h.
48645         * modules/obstack-printf-posix (Depends-on): Add extensions.
48646         (Include): Remove obstack.h.
48647
48648 2008-06-13  Eric Blake  <ebb9@byu.net>
48649
48650         Add obstack-printf and obstack-printf-posix modules.
48651         * modules/obstack-printf: New file.
48652         * modules/obstack-printf-posix: Likewise.
48653         * MODULES.html.sh (Misc): Mention them.
48654         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48655         Likewise.
48656         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48657         Likewise.
48658         * modules/stdio (Makefile.am): Accomodate new modules.
48659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48660         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48661         Declare.
48662         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48663         functions.
48664         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48665         (gl_REPLACE_OBSTACK_PRINTF): New macros
48666         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48667         * tests/test-obstack-printf.c: New file.
48668         * modules/obstack-printf-tests: Likewise.
48669         * modules/obstack-printf-posix-tests: Likewise.
48670
48671 2008-06-11  Bruno Haible  <bruno@clisp.org>
48672
48673         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48674         * lib/open.c: Include errno.h.
48675         (open): Fail when attempting to write to a file that has a trailing
48676         slash.
48677         * tests/test-open.c (main): Test against trailing slash bug.
48678         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48679
48680 2008-06-10  Bruno Haible  <bruno@clisp.org>
48681
48682         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48683         for $? to work inside the trap command, with various /bin/sh-s.
48684         * tests/test-vc-list-files-cvs.sh: Likewise.
48685
48686 2008-06-10  Bruno Haible  <bruno@clisp.org>
48687
48688         * lib/acl-internal.h: Don't include gettext.h here.
48689         * lib/set-mode-acl.c: Include gettext.h here.
48690         * lib/copy-acl.c: Likewise.
48691
48692 2008-06-10  Bruno Haible  <bruno@clisp.org>
48693
48694         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48695         * lib/wait-process.c (wait_subprocess): Likewise.
48696         * lib/execute.h (execute): Add termsigp argument.
48697         * lib/execute.c (execute): Likewise.
48698         * lib/csharpcomp.c (compile_csharp_using_pnet,
48699         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48700         * lib/csharpexec.c (execute_csharp_using_pnet,
48701         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48702         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48703         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48704         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48705         is_jikes_present): Update.
48706         * lib/javaexec.c (execute_java_class): Update.
48707         * lib/javaversion.c (execute_and_read_line): Update.
48708         * NEWS: Document the changes.
48709         Reported by Eric Blake.
48710
48711 2008-06-10  Eric Blake  <ebb9@byu.net>
48712
48713         Add missing include.
48714         * tests/test-strstr.c (includes): Add <signal.h>.
48715         * tests/test-strcasestr.c (includes): Likewise.
48716         * tests/test-memmem.c (includes): Likewise.
48717
48718 2008-06-10  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/wait-process.c (wait_subprocess): Add an assertion.
48721
48722 2008-06-10  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48725
48726 2008-06-10  Bruno Haible  <bruno@clisp.org>
48727
48728         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48729         using alarm().
48730         * tests/test-strcasestr.c (main): Likewise.
48731         * tests/test-strstr.c (main): Likewise.
48732
48733 2008-06-09  Bruno Haible  <bruno@clisp.org>
48734
48735         Work around the Solaris 10 ACE ACLs ABI change.
48736         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48737         declare if ACL_NO_TRIVIAL is present.
48738         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48739         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48740         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48741         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48742         define if ACL_NO_TRIVIAL is present.
48743         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48744         and use the current ABI.
48745         (file_has_acl): Use same #if condition as elsewhere.
48746         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48747         in use, and use the current ABI.
48748         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48749         Reported by Jim Meyering.
48750
48751 2008-06-09  Eric Blake  <ebb9@byu.net>
48752
48753         Work around environments that (stupidly) ignore SIGALRM.
48754         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48755         before using alarm().
48756         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48758         Reported by Ian Beckwith <ianb@erislabs.net>.
48759
48760         Produce autobuild blurb earlier in log.
48761         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48762
48763 2008-06-09  Jim Meyering  <meyering@redhat.com>
48764         and OndÅ™ej Vašík  <ovasik@redhat.com>
48765
48766         utimens.c: correct kernel bug work-around
48767         OndÅ™ej Vašík found that the invalid return value of 280 indicates
48768         failure, not success, and the kernel bug we're trying to work
48769         around affects not just the utimensat call, but also the fallback
48770         futimens call.
48771         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48772         not success.
48773         [HAVE_FUTIMENS]: Use the same work-around, here.
48774
48775 2008-06-09  Jim Meyering  <meyering@redhat.com>
48776
48777         add more guards around definition of ACE_-related code
48778         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48779         ALLOW and ACE_OWNER are also defined.
48780
48781 2008-06-08  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/acl-internal.h: Add me as co-author.
48784         * lib/file-has-acl.c: Likewise.
48785         * lib/set-mode-acl.c: Likewise.
48786         * lib/copy-acl.c: Likewise.
48787
48788 2008-06-08  Bruno Haible  <bruno@clisp.org>
48789
48790         Add support for AIX ACLs.
48791         * lib/acl-internal.h (acl_nontrivial): New declaration.
48792         * lib/file-has-acl.c (acl_nontrivial): New function.
48793         (file_has_acl): Add implementation using AIX 4 ACL API.
48794         * lib/set-mode-acl.c (qset_acl): Likewise.
48795         * lib/copy-acl.c (qcopy_acl): Likewise.
48796
48797 2008-06-08  Bruno Haible  <bruno@clisp.org>
48798
48799         Add support for HP-UX ACLs.
48800         * lib/acl-internal.h (acl_nontrivial): New declaration.
48801         * lib/file-has-acl.c (acl_nontrivial): New function.
48802         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48803         * lib/set-mode-acl.c (qset_acl): Likewise.
48804         * lib/copy-acl.c (qcopy_acl): Likewise.
48805
48806 2008-06-08  Bruno Haible  <bruno@clisp.org>
48807
48808         Add support for Cygwin ACLs.
48809         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48810         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48811         the chmod_or_fchmod call.
48812         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48813
48814 2008-06-08  Bruno Haible  <bruno@clisp.org>
48815
48816         Fix bug with setuid modes in Solaris 10+ code.
48817         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48818         succeeded, when the mode contains some special bits.
48819
48820 2008-06-08  Bruno Haible  <bruno@clisp.org>
48821
48822         Add support for Solaris 7..10 ACLs.
48823         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48824         declarations.
48825         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48826         functions.
48827         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48828         * lib/set-mode-acl.c (qset_acl): Likewise.
48829         * lib/copy-acl.c (qcopy_acl): Likewise.
48830
48831 2008-06-08  Bruno Haible  <bruno@clisp.org>
48832
48833         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48834         declaration.
48835         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48836         (acl_access_nontrivial): Remove MacOS X case.
48837         (file_has_acl): Use acl_extended_nontrivial.
48838         * lib/copy-acl.c (qcopy_acl): Likewise.
48839
48840 2008-06-08  Bruno Haible  <bruno@clisp.org>
48841
48842         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48843
48844 2008-06-08  Jim Meyering  <meyering@redhat.com>
48845
48846         * modules/acl (Maintainer): Add Bruno Haible.
48847
48848 2008-06-07  Bruno Haible  <bruno@clisp.org>
48849
48850         Improve support for Tru64 ACLs.
48851         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48852         ACL on OSF/1.
48853
48854 2008-06-07  Bruno Haible  <bruno@clisp.org>
48855
48856         Add support for MacOS X ACLs.
48857         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48858         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48859         * lib/set-mode-acl.c (qset_acl): Likewise.
48860         * lib/copy-acl.c (qcopy_acl): Likewise.
48861
48862 2008-06-07  Bruno Haible  <bruno@clisp.org>
48863
48864         Fix memory leak introduced on 2008-05-22.
48865         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48866         use.
48867
48868 2008-06-07  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48871         to construct an empty ACL.
48872
48873 2008-06-07  Bruno Haible  <bruno@clisp.org>
48874
48875         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48876         precisely.
48877         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48878
48879 2008-06-07  Bruno Haible  <bruno@clisp.org>
48880
48881         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48882         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48883
48884 2008-06-07  Bruno Haible  <bruno@clisp.org>
48885
48886         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48887         regardless of POSIX.
48888         * doc/posix-functions/_longjmp.texi: Likewise.
48889         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48890         SystemV platform in this case.
48891
48892 2008-06-06  Eric Blake  <ebb9@byu.net>
48893
48894         Document abort() bugs.
48895         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48896
48897         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48898         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48899         sigsetjmp.
48900         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48901         siglongjmp, but only as a macro.
48902         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48903         is obsolete.
48904         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48905
48906         Tweak documentation to cover cygwin argz bugs.
48907         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48908         argz bug fix; no code change needed since no cygwin releases
48909         occurred between the last fix and the bug being tested.
48910         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48911         module and recently fixed cygwin bugs.
48912         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48913         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48914         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48915         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48916         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48917         Likewise.
48918         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48919         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48920         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48921         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48922         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48923         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48924         Likewise.
48925
48926         Avoid gcc warning on cygwin.
48927         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48928         !ACL_NO_TRIVIAL]: Avoid unused variable.
48929
48930 2008-06-05  Eric Blake  <ebb9@byu.net>
48931
48932         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48933         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48934         git-version-gen fails to come up with a version.
48935         Reported by Simon Josefsson.
48936
48937 2008-06-05  Jim Meyering  <meyering@redhat.com>
48938             Paul Eggert  <eggert@cs.ucla.edu>
48939
48940         utimens.c: work around a probable Linux kernel bug
48941         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48942         appears to be a kernel bug that causes utimensat to return 280
48943         instead of 0, indicating success.
48944
48945 2008-06-04  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48948         2008-06-01 commit.
48949
48950 2008-06-04  Bruno Haible  <bruno@clisp.org>
48951
48952         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48953         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48954         (file_has_acl): Use it. Save errno afterwards.
48955         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48956
48957 2008-06-03  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48960         draft code. Simplify #ifs.
48961         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48962         Put Solaris code after POSIX-draft code. Fix comments regarding
48963         Solaris 10, HP-UX. Mention Cygwin.
48964         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48965
48966 2008-06-03  Eric Blake  <ebb9@byu.net>
48967
48968         Provide fallback for older kernels.
48969         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48970         Provide runtime fallback if kernel lacks support.
48971         Reported by Mike Frysinger.
48972
48973 2008-06-02  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48976         it exists.
48977
48978 2008-06-02  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48981         * lib/copy-acl.c (qcopy_acl): Update comment.
48982
48983 2008-06-02  Bruno Haible  <bruno@clisp.org>
48984
48985         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48986         like ACL APIs.
48987
48988 2008-06-02  Bruno Haible  <bruno@clisp.org>
48989
48990         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48991         * tests/test-set-mode-acl.sh: Likewise.
48992         * tests/test-copy-acl.sh: Likewise.
48993         * tests/test-copy-file.sh: Likewise.
48994
48995 2008-06-02  Bruno Haible  <bruno@clisp.org>
48996
48997         * tests/test-file-has-acl.sh: Remove unused code.
48998
48999 2008-06-01  Bruno Haible  <bruno@clisp.org>
49000
49001         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49002         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49003         messages.
49004         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49005
49006 2008-06-01  Bruno Haible  <bruno@clisp.org>
49007
49008         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49009         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49010         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49011         APIs.
49012         * modules/acl-tests (configure.ac): Remove tests now contained in
49013         m4/acl.m4.
49014
49015 2008-06-02  Jim Meyering  <meyering@redhat.com>
49016
49017         announce-gen: use a better key-server host name
49018         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49019         it may be more consistently reliable.  Suggested by Werner Koch
49020         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49021
49022 2008-06-01  Bruno Haible  <bruno@clisp.org>
49023
49024         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49025         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49026
49027 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49028
49029         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49030
49031 2008-06-01  Bruno Haible  <bruno@clisp.org>
49032
49033         New ACL tests.
49034         * tests/test-file-has-acl.sh: New file.
49035         * tests/test-file-has-acl.c: New file.
49036         * tests/test-set-mode-acl.sh: New file.
49037         * tests/test-set-mode-acl.c: New file.
49038         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49039         * tests/test-copy-acl.c: New file.
49040         * modules/acl-tests: New file, based on modules/copy-file-tests.
49041         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49042         (Depends-on): Add acl-tests.
49043         (configure.ac): Remove checks.
49044         (Makefile.am): Don't create test-sameacls program here any more.
49045
49046 2008-06-01  Bruno Haible  <bruno@clisp.org>
49047
49048         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49049         * tests/test-sameacls.c: Include progname.h.
49050         (main): Invoke set_program_name. Portability fixes for MacOS X,
49051         Solaris, HP-UX.
49052
49053 2008-06-01  Bruno Haible  <bruno@clisp.org>
49054
49055         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49056         function.
49057         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49058
49059 2008-06-01  Bruno Haible  <bruno@clisp.org>
49060
49061         * modules/rpmatch (Depends-on): Add strdup.
49062
49063 2008-06-01  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/pipe.c: Include unistd-safer.h.
49066         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49067         * modules/pipe (Depends-on): Add unistd-safer.
49068
49069 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49070
49071         * modules/autobuild (configure.ac): Call AB_INIT.
49072
49073 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49074
49075         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49076         Suggested by Bruno Haible <bruno@clisp.org>.
49077
49078 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49079
49080         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49081         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49082         <bruno@clisp.org>.
49083
49084 2008-05-29  Eric Blake  <ebb9@byu.net>
49085
49086         Prefer new POSIX 200x interfaces over futimesat.
49087         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49088         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49089         when available.
49090         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49091
49092 2008-05-28  Bruno Haible  <bruno@clisp.org>
49093
49094         * modules/stpcpy (License): Change to LGPLv2+.
49095         Requested by David Lutterkort <dlutter@redhat.com>.
49096
49097 2008-05-27  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49100         current mingw.
49101         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49102
49103 2008-05-27  Bruno Haible  <bruno@clisp.org>
49104
49105         * modules/iconv_open (Link): New section, from module 'iconv'.
49106         * modules/striconv (Link): Likewise.
49107         * modules/striconveh (Link): Likewise.
49108         * modules/xstriconv (Link): Likewise.
49109         * modules/unicodeio (Link): Likewise.
49110         * modules/propername (Link): Likewise.
49111         Reported by Jim Meyering.
49112
49113 2008-05-26  Jim Meyering  <meyering@redhat.com>
49114
49115         sha256: do not artificially restrict buffer length to be < 2^32
49116         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49117         uint32_t to size_t.
49118         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49119         to match.
49120
49121         avoid unaligned access errors, e.g., on sparc
49122         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49123         direct access through a possibly-unaligned uint64* pointer.
49124         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49125         direct access through a possibly-unaligned uint32* pointer.
49126         Prompted by this patch from Tom "spot" Callaway:
49127         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49128
49129         sha512.c: fix typo in comment
49130         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49131
49132 2008-05-25  Bruno Haible  <bruno@clisp.org>
49133
49134         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49135         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49136         (Makefile.am): Update lib_SOURCES.
49137
49138 2008-05-25  Bruno Haible  <bruno@clisp.org>
49139
49140         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49141
49142 2008-05-25  Jim Meyering  <meyering@redhat.com>
49143
49144         useless-if-before-free: freed expr may have white-space differences
49145         * build-aux/useless-if-before-free: Recognize cases in which the
49146         freed expression differs from the tested one in embedded white
49147         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49148         $1 was used, so we can't make any regexp shy.  Improved tests now
49149         detect this.
49150
49151         useless-if-before-free: accept white space in the expression.
49152         * build-aux/useless-if-before-free: For now, any white space
49153         in the expression must be identical in the free argument.
49154
49155         useless-if-before-free: efficiency tweak
49156         * build-aux/useless-if-before-free: Make the expression-matching
49157         regexp "shy".
49158         Make the *outer* regexp shy, not the expr-matching one.
49159
49160         update code-in-comment to accept cast of free arg
49161         * build-aux/useless-if-before-free: Update regexp.
49162
49163 2008-05-25  Bruno Haible  <bruno@clisp.org>
49164
49165         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49166         * modules/copy-file-tests (Files, Makefile.am): Update.
49167         * tests/test-copy-file.c (func_test_copy): Update.
49168
49169 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49170
49171         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49172
49173 2008-05-23  Bruno Haible  <bruno@clisp.org>
49174
49175         Improve support for ACLs on OSF/1.
49176         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49177         Remove fallback for unknown flavors of ACLs.
49178
49179 2008-05-22  Bruno Haible  <bruno@clisp.org>
49180
49181         Add support for ACLs on OSF/1.
49182         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49183         replacements.
49184         (acl_free_text): New macro fallback.
49185         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49186         acl_free.
49187         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49188         acl_free_text function. Require AC_C_INLINE.
49189
49190 2008-05-22  Bruno Haible  <bruno@clisp.org>
49191
49192         Make copy_acl work on MacOS X 10.5.
49193         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49194         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49195         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49196         If MODE_INSIDE_ACL, don't assume that every system has the same text
49197         representation for ACLs as FreeBSD.
49198         * lib/copy-acl.c (copy_acl): Add support for platforms with
49199         !MODE_INSIDE_ACL.
49200         * lib/file-has-acl.c (file_has_acl): Likewise.
49201         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49202         FreeBSD, MacOS X, or IRIX, respectively.
49203
49204 2008-05-22  Bruno Haible  <bruno@clisp.org>
49205
49206         * lib/acl.h: Don't include <sys/acl.h>.
49207         (GETACLCNT): Move fallback to lib/acl-internal.h.
49208         * lib/acl-internal.h: Include <sys/acl.h> here.
49209         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49210
49211 2008-05-22  Bruno Haible  <bruno@clisp.org>
49212
49213         Split off copy_acl function to separate file.
49214         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49215         * lib/acl.c (copy_acl): Moved function to separate file.
49216         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49217         * modules/acl (Files): Add lib/copy-acl.c.
49218         (Makefiles.am): Augment lib_SOURCES.
49219
49220 2008-05-22  Bruno Haible  <bruno@clisp.org>
49221
49222         * modules/copy-file-tests: New file.
49223         * tests/test-copy-file.sh: New file.
49224         * tests/test-copy-file.c: New file.
49225         * tests/test-copy-file-sameacls.c: New file.
49226
49227 2008-05-22  Eric Blake  <ebb9@byu.net>
49228
49229         Avoid gcc warning.
49230         * tests/test-memcmp.c (main): Pass NULL indirectly.
49231
49232 2008-05-21  Bruno Haible  <bruno@clisp.org>
49233
49234         Add reference doc about ACLs.
49235         * doc/acl-resources.txt: New file.
49236         * doc/acl-cygwin.txt: New file.
49237
49238 2008-05-21  Bruno Haible  <bruno@clisp.org>
49239
49240         Avoid one more warning from gcc.
49241         * lib/vasnprintf.c (IF_LINT): Update comments.
49242         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49243
49244 2008-05-21  Jim Meyering  <meyering@redhat.com>
49245
49246         avoid a warning from gcc
49247         * lib/vasnprintf.c (IF_LINT): Define.
49248         (scale10_round_decimal_long_double):
49249         Use it to avoid a "may be used uninitialized" warning.
49250         (scale10_round_decimal_double): Likewise.
49251
49252 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49253
49254         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49255         declared.
49256
49257 2008-05-20  Bruno Haible  <bruno@clisp.org>
49258
49259         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49260         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49261
49262 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49263
49264         * modules/memcmp-tests: New file.
49265         * tests/test-memcmp.c: New file.
49266
49267 2008-05-19  Bruno Haible  <bruno@clisp.org>
49268
49269         * modules/propername (Notice, configure.ac): Put quoted "..." into
49270         --keyword option.
49271         * lib/propername.h: Update comments accordingly.
49272         Reported by Eric Blake.
49273
49274 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49275
49276         * modules/getpass-gnu (Depends-on): Add fseeko.
49277
49278 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49279
49280         * modules/base64-tests: New file.
49281
49282 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49283
49284         * lib/base64.c (base64_decode_ctx): If a decode context structure
49285         was passed in use it to ignore newlines.  If a context structure
49286         was _not_ passed in, continue to treat newlines as garbage (this
49287         is the historical behavior).  Formerly base64_decode.
49288         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49289         takes a decode context structure.
49290         * lib/base64.h (base64_decode): Macro for four-argument calls.
49291         (base64_decode_alloc): Likewise.
49292         * lib/base64.c (base64_decode_ctx): If a decode context structure
49293         was passed in use it to ignore newlines.  If a context structure
49294         was _not_ passed in, continue to treat newlines as garbage (this
49295         is the historical behavior).  Formerly base64_decode.
49296         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49297         takes a decode context structure.
49298         * lib/base64.h (base64_decode): Macro for four-argument calls.
49299         (base64_decode_alloc): Likewise.
49300
49301 2008-05-19  Jim Meyering  <meyering@redhat.com>
49302
49303         avoid a warning from gcc
49304         * lib/trim.c (IF_LINT): Define.
49305         (trim2): Use it to avoid a "may be used uninitialized" warning.
49306
49307         Fix doc typo.
49308         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49309
49310 2008-05-19  Bruno Haible  <bruno@clisp.org>
49311
49312         * doc/glibc-functions/getpass.texi: Document limits of other
49313         implementations.
49314
49315 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49316             Bruno Haible <bruno@clisp.org>
49317
49318         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49319
49320 2008-05-18  Bruno Haible  <bruno@clisp.org>
49321
49322         * modules/propername: New file, from GNU gettext.
49323         * lib/propername.h: New file, from GNU gettext.
49324         * lib/propername.c: New file, from GNU gettext.
49325         * MODULES.html.sh (Internationalization functions): Add propername.
49326
49327 2008-05-16  Jim Meyering  <meyering@redhat.com>
49328             Bruno Haible  <bruno@clisp.org>
49329
49330         Avoid some warnings from "gcc -Wshadow".
49331         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49332
49333 2008-05-15  Eric Blake  <ebb9@byu.net>
49334
49335         Extend previous patch to cygwin 1.7.0.
49336         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49337         fast implementation in cygwin >= 1.7.0.
49338         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49340
49341 2008-05-15  Bruno Haible  <bruno@clisp.org>
49342
49343         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49344         implementation in glibc >= 2.9.
49345         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49347
49348 2008-05-15  Bruno Haible  <bruno@clisp.org>
49349
49350         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49351         (Unicode string functions): Add unilbrk/*.
49352         Reported by Karl Berry.
49353
49354 2008-05-15  Eric Blake  <ebb9@byu.net>
49355
49356         Fix violation of <stdbool.h> replacement in regex.
49357         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49358         * lib/regexec.c (re_search_internal): Likewise.
49359         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49360
49361 2008-05-15  Jim Meyering  <meyering@redhat.com>
49362
49363         avoid distracting test output when git or cvs is not found
49364         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49365         * tests/test-vc-list-files-git.sh: Likewise.
49366
49367 2008-05-15  Eric Blake  <ebb9@byu.net>
49368
49369         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49370         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49371         glibc version.
49372         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49373         * doc/posix-functions/strstr.texi (strstr): Likewise.
49374         * lib/str-two-way.h (MAX): Sychronize with glibc.
49375
49376 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49377
49378         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49379         opr.ctx_type.
49380         (calc_first): Initialize constraint field.
49381         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49382         Fix grammar.
49383         (duplicate_node): Merge constraint field for all node types.
49384         (calc_eclosure_iter): Look at constraint field for all node types.
49385         * lib/regex_internal.c (create_cd_newstate): Don't look at
49386         opr.ctx_type.
49387
49388 2008-05-14  Bruno Haible  <bruno@clisp.org>
49389
49390         Help GCC to do better code generation.
49391         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49392         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49393         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49394         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49395         Declare with attribute 'malloc' if supported.
49396
49397 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49398
49399         use "echo STR|wc -c" rather than unportable "expr length STR"
49400         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49401         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49402
49403 2008-05-14  Jim Meyering  <meyering@redhat.com>
49404
49405         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49406         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49407         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49408         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49409         via Collin Lasse.
49410
49411 2008-05-14  Eric Blake  <ebb9@byu.net>
49412
49413         Avoid quadratic growth in gl_LIBSOURCES.
49414         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49415         Suggested by Bruno Haible.
49416
49417         Test xmemdup0.
49418         * modules/xmemdup0-tests: New file.
49419         * tests/test-xmemdup0.c: Likewise.
49420
49421 2008-05-13  Eric Blake  <ebb9@byu.net>
49422
49423         Split xmemdup0 into its own module.
49424         * modules/xmemdup0: New file.
49425         * lib/xmemdup0.h: Likewise.
49426         * lib/xmemdup0.c: Likewise.
49427         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49428         * lib/xalloc.h (xmemdup0): Remove.
49429         * lib/xmalloc.c (xmemdup0): Likewise.
49430
49431 2008-05-13  Eric Blake  <ebb9@byu.net>
49432             Bruno Haible  <bruno@clisp.org>
49433
49434         Reduce number of forks required during autoconf.
49435         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49436         and gl_LIBSOURCES_DIR.
49437         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49438         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49439         m4_syscmd per file.
49440         <m4_foreach_w>: Move...
49441         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49442
49443 2008-05-13  Eric Blake  <ebb9@byu.net>
49444
49445         * gnulib-tool: Fix various comment typos.
49446
49447 2008-05-12  Bruno Haible  <bruno@clisp.org>
49448
49449         Tailor the linebreaking algorithm.
49450         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49451
49452 2008-05-12  Bruno Haible  <bruno@clisp.org>
49453
49454         Update to Unicode 5.0.0.
49455         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49456         LBP_JV, LBP_JT. Redistribute values.
49457         (unilbrk_table): Change size.
49458         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49459         Unicode TR#14 rev. 22.
49460         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49461         LBP_JV, LBP_JT. Redistribute values.
49462         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49463         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49464         Update.
49465         * lib/unilbrk/lbrkprop1.h: Regenerated.
49466         * lib/unilbrk/lbrkprop2.h: Regenerated.
49467         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49468         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49469         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49470         Likewise.
49471         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49472         Likewise.
49473         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49474         result.
49475         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49476         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49477         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49478         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49479         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49480         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49481
49482 2008-05-11  Bruno Haible  <bruno@clisp.org>
49483
49484         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49485
49486 2008-05-11  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49489         * modules/unilbrk/gen-lbrk: New file.
49490
49491 2008-05-11  Bruno Haible  <bruno@clisp.org>
49492
49493         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49494         * m4/sha512.m4 (gl_SHA512): Likewise.
49495
49496 2008-05-11  Jim Meyering  <meyering@redhat.com>
49497
49498         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49499         * modules/crypto/sha256: New file.
49500         * modules/crypto/sha512: Likewise.
49501         * lib/sha256.c: Likewise.
49502         * lib/sha256.h: Likewise.
49503         * lib/sha512.c: Likewise.
49504         * lib/sha512.h: Likewise.
49505         * lib/u64.h: Likewise.
49506         * m4/sha256.m4: Likewise.
49507         * m4/sha512.m4: Likewise.
49508         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49509
49510 2008-05-10  Bruno Haible  <bruno@clisp.org>
49511
49512         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49513         (Input/Output <stdio.h>): Add xprintf.
49514         (Signal handling <signal.h>): Add strsignal.
49515         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49516         (Core language properties): Add func.
49517         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49518         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49519         strings.
49520         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49521         (Input/output): New section.
49522         (File system functions): Add openat-die, stat-macros.
49523         (Networking functions): Add sockets.
49524         (Unicode string functions): Add unictype/*.
49525         (Support for building libraries and executables): Add gperf.
49526         (Support for building documentation): Add agpl-3.0.
49527         (Misc): Add nocrash.
49528
49529 2008-05-10  Bruno Haible  <bruno@clisp.org>
49530
49531         * modules/unictype/gen-ctype: New file.
49532
49533 2008-05-10  Jim Meyering  <meyering@redhat.com>
49534
49535         Make chdir-safer.c more efficient on a system with no symlinks.
49536         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49537         also if ELOOP is zero.  Suggested by Bruno Haible.
49538
49539         Make chdir-safer.c slightly safer.
49540         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49541         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49542
49543         Avoid compile failure on systems without ELOOP (like mingw).
49544         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49545         Reported by Bruno Haible.
49546
49547 2008-05-10  Bruno Haible  <bruno@clisp.org>
49548
49549         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49550         (is_utf8_encoding): Use a case-insensitive comparison.
49551         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49552         streq.
49553
49554 2008-05-10  Bruno Haible  <bruno@clisp.org>
49555
49556         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49557         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49558         * lib/unilbrk/ulc-common.h (iconv_string_length,
49559         iconv_string_keeping_offsets): Remove declarations.
49560         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49561         Don't include <iconv.h>, streq.h, xsize.h.
49562         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49563         conversion.
49564         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49565         <iconv.h>, streq.h, xsize.h.
49566         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49567         conversion.
49568         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49569         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49570         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49571         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49572
49573 2008-05-10  Bruno Haible  <bruno@clisp.org>
49574
49575         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49576         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49577
49578         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49579         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49580
49581         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49582         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49583
49584         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49585         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49586
49587         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49588         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49589
49590         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49591         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49592
49593         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49594         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49595
49596         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49597         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49598
49599 2008-05-10  Bruno Haible  <bruno@clisp.org>
49600
49601         Split up 'linebreak' module.
49602         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49603         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49604         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49605         modifications.
49606         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49607         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49608         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49609         lib/linebreak.c.
49610         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49611         lib/linebreak.c.
49612         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49613         lib/linebreak.c.
49614         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49615         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49616         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49617         lib/linebreak.c.
49618         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49619         lib/linebreak.c.
49620         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49621         lib/linebreak.c.
49622         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49623         lib/linebreak.c.
49624         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49625         lib/linebreak.c.
49626         * modules/unilbrk/base: New file.
49627         * modules/unilbrk/tables: New file.
49628         * modules/unilbrk/u8-possible-linebreaks: New file.
49629         * modules/unilbrk/u16-possible-linebreaks: New file.
49630         * modules/unilbrk/u32-possible-linebreaks: New file.
49631         * modules/unilbrk/ulc-common: New file.
49632         * modules/unilbrk/ulc-possible-linebreaks: New file.
49633         * modules/unilbrk/u8-width-linebreaks: New file.
49634         * modules/unilbrk/u16-width-linebreaks: New file.
49635         * modules/unilbrk/u32-width-linebreaks: New file.
49636         * modules/unilbrk/ulc-width-linebreaks: New file.
49637         * lib/linebreak.h: Remove file.
49638         * lib/linebreak.c: Remove file.
49639         * m4/linebreak.m4: Remove file.
49640         * modules/linebreak: Remove file.
49641         * NEWS: Mention the changes.
49642
49643 2008-05-09  Eric Blake  <ebb9@byu.net>
49644
49645         Add xmemdup0.
49646         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49647         implementation.
49648         * lib/xmalloc.c (xmemdup0): New C implementation.
49649
49650 2008-05-08  Bruno Haible  <bruno@clisp.org>
49651
49652         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49653
49654 2008-05-07  Eric Blake  <ebb9@byu.net>
49655
49656         Support cross-compilation of <wctype.h>.
49657         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49658         AC_CACHE_CHECK.
49659
49660 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49661
49662         * build-aux/vc-list-files: Add support for bzr.
49663
49664 2008-05-03  Jim Meyering  <meyering@redhat.com>
49665
49666         avoid failed assertion with tight malloc
49667         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49668
49669 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49670
49671         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49672         are needed from arpa/inet.h.
49673         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49674         Reported by Bruno Haible.
49675
49676 2008-05-02  Jim Meyering  <meyering@redhat.com>
49677
49678         avoid compilation error on FreeBSD 6
49679         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49680
49681 2008-05-01  Jim Meyering  <meyering@redhat.com>
49682
49683         useless-if-before-free: correct --help's exit status description
49684         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49685         for one or more matches, etc.  Reported by Bruno Haible.
49686
49687         vc-list-files: make the stand-alone gnulib test work
49688         * modules/vc-list-files-tests (configure.ac):
49689         Define and AC_SUBST abs_aux_dir.
49690         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49691         $(abs_top_srcdir) to each script and having each of them
49692         duplicate the work of setting PATH, set PATH here, using
49693         the new variable, abs_aux_dir instead.
49694         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49695         * tests/test-vc-list-files-git.sh: Likewise.
49696         Reported by Bruno Haible.
49697
49698 2008-05-01  Bruno Haible  <bruno@clisp.org>
49699
49700         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49701         reallocation. Rename 'done' to 'found_delimiter'.
49702
49703 2008-05-01  Jim Meyering  <meyering@redhat.com>
49704
49705         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49706         * build-aux/vc-list-files: Use `...`, not $(...).
49707
49708 2008-04-30  Jim Meyering  <meyering@redhat.com>
49709
49710         add tests for vc-list-files
49711         * modules/vc-list-files-tests: New module.
49712         * tests/test-vc-list-files-cvs.sh: New file.
49713         * tests/test-vc-list-files-git.sh: New file.
49714
49715         avoid a warning from gcc
49716         * lib/getndelim2.c (IF_LINT): Define.
49717         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49718
49719         vc-list-files: work properly with build-aux/cvsu, too
49720         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49721         to all cvs-based clauses.
49722
49723         vc-list-files: work properly in the CVS+awk case, too
49724         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49725
49726         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49727         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49728         take more than one file argument, so .  Add quotes, just in case $dir
49729         ever contains a shell meta-character.  Prompted by Soren Hansen in
49730         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49731
49732 2008-04-29  Eric Blake  <ebb9@byu.net>
49733
49734         Optimize getndelim2 to use block operations when possible.
49735         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49736         freadseek, and memchr2.
49737         * lib/getndelim2.c (getndelim2): Use them for block reads.
49738
49739 2008-04-29  Bruno Haible  <bruno@clisp.org>
49740
49741         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49742         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49743         * modules/inet_ntop (Depends-on): Add extensions.
49744         * modules/inet_pton (Depends-on): Likewise.
49745         Reported by Simon Josefsson.
49746
49747 2008-04-29  Jim Meyering  <meyering@redhat.com>
49748
49749         When the is more than one match in a block, match all of them.
49750         * build-aux/useless-if-before-free: Iterate through each block
49751         until there are no more matches.
49752
49753         Fix broken useless-if-before-free script.
49754         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49755         the expression to match cast of argument to free-like function.
49756
49757 2008-04-29  Eric Blake  <ebb9@byu.net>
49758
49759         Use new header.
49760         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49761
49762 2008-04-29  Jim Meyering  <meyering@redhat.com>
49763
49764         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49765         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49766         by gnulib to exist and to declare e.g., inet_ntop.
49767         Don't include "inet_ntop.h", now removed.
49768
49769         * m4/arpa_inet_h.m4: Remove trailing blanks.
49770
49771 2008-04-29  Eric Blake  <ebb9@byu.net>
49772
49773         Silence valgrind on safe reads beyond potential array bounds.
49774         * lib/rawmemchr.valgrind: New file.
49775         * lib/strchrnul.valgrind: Likewise.
49776         * modules/rawmemchr (Files): Distribute new file.
49777         * modules/strchrnul (Files): Likewise.
49778         Suggested by Bruno Haible.
49779
49780 2008-04-29  Bruno Haible  <bruno@clisp.org>
49781
49782         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49783         (inet_ntop, inet_pton): Change portability warning's wording.
49784         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49785         Invoke gl_CHECK_NEXT_HEADERS.
49786         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49787         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49788         set ARPA_INET_H.
49789         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49790         * modules/arpa_inet (Description): No longer only for systems that
49791         lack it.
49792         (Depends-on): Add include_next.
49793         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49794         HAVE_ARPA_INET_H.
49795
49796 2008-04-29  Jim Meyering  <meyering@redhat.com>
49797
49798         * modules/mkdir (License): Re-license as LGPLv2+.
49799
49800 2008-04-29  Bruno Haible  <bruno@clisp.org>
49801
49802         * modules/rawmemchr (Maintainer): Set to Eric.
49803         * modules/strchrnul (Maintainer): Likewise.
49804
49805 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49806
49807         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49808         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49809
49810         * modules/arpa_inet (arpa/inet.h): Use them.
49811
49812 2008-04-28  Eric Blake  <ebb9@byu.net>
49813
49814         Test getndelim2.
49815         * modules/getndelim2-tests: New file.
49816         * tests/test-getndelim2.c: Likewise.
49817         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49818         stream.
49819         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49820
49821         * MODULES.html.sh: Document new module.
49822
49823 2008-04-20  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/c-stack.c (die): Use raise.
49826         * modules/c-stack (Depends-on): Add raise.
49827
49828 2008-04-28  Bruno Haible  <bruno@clisp.org>
49829
49830         Expect rpmatch to be declared.
49831         * lib/yesno.c (rpmatch): Remove declaration.
49832
49833         Declare rpmatch.
49834         * lib/stdlib.in.h (rpmatch): New declaration.
49835         * lib/rpmatch.c: Include <stdlib.h> first.
49836         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49837         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49839         HAVE_RPMATCH.
49840         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49841         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49842         (Include): Set to <stdlib.h>.
49843         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49844         HAVE_RPMATCH.
49845         * NEWS: Document the change.
49846
49847 2008-04-28  Bruno Haible  <bruno@clisp.org>
49848
49849         Change rpmatch to use nl_langinfo when appropriate.
49850         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49851         (N_): New macro.
49852         (localized_pattern): New function/macro.
49853         (try): Remove match, nomatch arguments. Copy the pattern into safe
49854         memory before caching it.
49855         (rpmatch): Use localized_pattern. Add translator comments.
49856         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49857         Suggested by Eric Blake.
49858         * modules/rpmatch (Depends-on): Add stdbool.
49859
49860 2008-04-28  Eric Blake  <ebb9@byu.net>
49861
49862         Add rawmemchr module, matching glibc.
49863         * modules/string (Makefile.am): New indicator.
49864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49865         * lib/string.in.h (rawmemchr): Declare when appropriate.
49866         * modules/rawmemchr: New file.
49867         * m4/rawmemchr.m4: Likewise.
49868         * lib/rawmemchr.c: Likewise.
49869         * modules/rawmemchr-tests: Likewise.
49870         * tests/test-rawmemchr.c: Likewise.
49871         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49872         module.
49873         * modules/strchrnul (Depends-on): Add rawmemchr.
49874         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49875
49876         Whitespace cleanup.
49877         * tests/test-strchrnul.c: Reindent.
49878         * lib/strchrnul.c: Likewise.
49879
49880         Optimize and test strchrnul.
49881         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49882         * modules/strchrnul-tests: New file.
49883         * tests/test-strchrnul.c: Likewise.
49884
49885         Remove intprops dependency.
49886         * modules/memchr (Depends-on): Remove intprops.
49887         * modules/memrchr (Depends-on): Likewise.
49888         * modules/memchr2 (Depends-on): Likewise.
49889         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49890         * lib/memrchr.c (__memrchr): Likewise.
49891         * lib/memrchr2.c (memchr2): Likewise.
49892         Reported by Simon Josefsson.
49893
49894 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49895
49896         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49897         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49898
49899 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49900
49901         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49902
49903         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49904
49905         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49906
49907         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49908         declarations.
49909         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49910
49911         * m4/inet_pton.m4: Don't check for header files.
49912
49913         * m4/inet_ntop.m4: Don't check for header files.
49914
49915 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49916
49917         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49918         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49919         trigger for cygwin).
49920         Reported by Bruno Haible  <bruno@clisp.org>.
49921
49922 2008-04-28  Bruno Haible  <bruno@clisp.org>
49923
49924         * doc/posix-functions/strdup.texi: Mention mingw problem.
49925
49926 2008-04-27  Bruno Haible  <bruno@clisp.org>
49927
49928         * modules/stat-time-tests (Depends-on): Add sleep.
49929         * tests/test-stat-time.c (force_unlink): New function.
49930         (cleanup): Use it.
49931         (test_mtime): Remove the ctime related tests.
49932         (test_ctime): New function, containing the ctime related tests.
49933         (main): Call test_ctime, except on native Windows platforms.
49934
49935 2008-04-27  Bruno Haible  <bruno@clisp.org>
49936
49937         * lib/rpmatch.c (rpmatch): Add some comments.
49938         Reported by James Youngman <jay@gnu.org>.
49939
49940 2008-04-27  Bruno Haible  <bruno@clisp.org>
49941
49942         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49943         quiet NaNs.
49944
49945 2008-04-27  Bruno Haible  <bruno@clisp.org>
49946
49947         Make test-yesno.sh work on mingw.
49948         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49949         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49950         (main): Set stdin to binary mode.
49951         * modules/yesno-tests (Depends-on): Add binary-io.
49952
49953 2008-04-27  Bruno Haible  <bruno@clisp.org>
49954
49955         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49956         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49957         argument that lie outside the IEEE 854 domain.
49958         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49959         (gl_ISFINITE): Use it.
49960         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49961
49962 2008-04-27  Bruno Haible  <bruno@clisp.org>
49963
49964         Allow local renaming in config.h.
49965         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49966
49967 2008-04-27  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/memchr.c (__memchr): Change type of 'i'.
49970         * lib/memchr2.c (memchr2): Likewise.
49971
49972 2008-04-26  Eric Blake  <ebb9@byu.net>
49973         and Bruno Haible  <bruno@clisp.org>
49974
49975         Optimize and test memrchr.
49976         * modules/memrchr (Depends-on): Add intprops.
49977         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49978         * modules/memrchr-tests: New file.
49979         * tests/test-memrchr.c: New file.
49980
49981 2008-04-26  Bruno Haible  <bruno@clisp.org>
49982
49983         Add tentative support for DragonFly BSD.
49984         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49985         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49986         fp.
49987         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49988         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49989         * lib/fpurge.c (fpurge): Likewise.
49990         * lib/freadable.c (freaadable): Likewise.
49991         * lib/freadahead.c (freadahead): Likewise.
49992         * lib/freading.c (freading): Likewise.
49993         * lib/freadptr.c (freadptr): Likewise.
49994         * lib/freadseek.c (freadptrinc): Likewise.
49995         * lib/fseeko.c (fseeko): Likewise.
49996         * lib/fseterr.c (fseterr): Likewise.
49997         * lib/fwritable.c (fwritable): Likewise.
49998         * lib/fwriting.c (fwriting): Likewise.
49999
50000 2008-04-26  Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/stdio-impl.h: New file.
50003         * lib/fbufmode.c: Include stdio-impl.h.
50004         (fbufmode): Use fp_, remove redundant #defines.
50005         * lib/fflush.c: Include stdio-impl.h.
50006         (clear_ungetc_buffer): Remove redundant #defines.
50007         * lib/fpurge.c: Include stdio-impl.h.
50008         (fpurge): Remove redundant #defines.
50009         * lib/freadable.c: Include stdio-impl.h.
50010         (freadable): Remove redundant #defines.
50011         * lib/freadahead.c: Include stdio-impl.h.
50012         (freadahead): Remove redundant #defines.
50013         * lib/freading.c: Include stdio-impl.h.
50014         (freading): Remove redundant #defines.
50015         * lib/freadptr.c: Include stdio-impl.h.
50016         (freadptr): Remove redundant #defines.
50017         * lib/freadseek.c: Include stdio-impl.h.
50018         (freadptrinc): Remove redundant #defines.
50019         * lib/fseeko.c: Include stdio-impl.h.
50020         (rpl_fseeko): Remove redundant #defines.
50021         * lib/fseterr.c: Include stdio-impl.h.
50022         (fseterr): Remove redundant #defines.
50023         * lib/fwritable.c: Include stdio-impl.h.
50024         (fwritable: Remove redundant #defines.
50025         * lib/fwriting.c: Include stdio-impl.h.
50026         (fwriting): Remove redundant #defines.
50027         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50028         * modules/fflush (Files): Likewise.
50029         * modules/fpurge (Files): Likewise.
50030         * modules/freadable (Files): Likewise.
50031         * modules/freadahead (Files): Likewise.
50032         * modules/freading (Files): Likewise.
50033         * modules/freadptr (Files): Likewise.
50034         * modules/freadseek (Files): Likewise.
50035         * modules/fseeko (Files): Likewise.
50036         * modules/fseterr (Files): Likewise.
50037         * modules/fwritable (Files): Likewise.
50038         * modules/fwriting (Files): Likewise.
50039
50040 2008-04-26  Bruno Haible  <bruno@clisp.org>
50041
50042         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50043         restore_seek_optimization, update_fpos_cache): New functions, extracted
50044         from rpl_fflush.
50045         (rpl_fflush): Use them.
50046         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50047         (gl_REPLACE_FFLUSH): Use it.
50048
50049 2008-04-26  Bruno Haible  <bruno@clisp.org>
50050
50051         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50052         on Solaris.
50053         * tests/test-xstrtoimax.sh: Likewise.
50054         * tests/test-xstrtoumax.sh: Likewise.
50055         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50056
50057 2008-04-26  Bruno Haible  <bruno@clisp.org>
50058
50059         * modules/memchr-tests: New file.
50060         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50061
50062 2008-04-26  Eric Blake  <ebb9@byu.net>
50063             Bruno Haible  <bruno@clisp.org>
50064
50065         * lib/memchr.c: Include intprops.h.
50066         (__memchr): Optimize parallel detection of matching bytes. Rename local
50067         variables. Add explanatory comments.
50068
50069 2008-04-26  Bruno Haible  <bruno@clisp.org>
50070
50071         Fix module 'memchr', broken since 2000-10-28.
50072         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50073
50074 2008-04-26  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50077         comments.
50078
50079 2008-04-25  Eric Blake  <ebb9@byu.net>
50080
50081         Use native fstatat on cygwin 1.7.0.
50082         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50083         first.
50084
50085 2008-04-23  Eric Blake  <ebb9@byu.net>
50086
50087         Improve memchr2 performance.
50088         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50089         NUL bytes.
50090         * modules/memchr2 (Depends-on): Use intprops.h.
50091
50092 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50093
50094         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50095         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50096         <blp@cs.stanford.edu>.
50097
50098 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50099
50100         * lib/arpa_inet.in.h: New file.
50101
50102         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50103         (Makefile.am): Sed in substitute header file.
50104
50105         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50106         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50107
50108         * modules/inet_ntop (configure.ac): Use
50109         gl_ARPA_INET_MODULE_INDICATOR.
50110
50111         * modules/inet_pton (configure.ac): Use
50112         gl_ARPA_INET_MODULE_INDICATOR.
50113
50114 2008-04-22  Jim Meyering  <meyering@redhat.com>
50115
50116         * modules/verify (License): Re-license as LGPLv2+.
50117
50118 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50119
50120         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50121         parameter to void* as per POSIX standard (MinGW uses char*).
50122
50123 2008-04-21  Bruno Haible  <bruno@clisp.org>
50124
50125         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50126         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50127         Define to replacements if REPLACE_ISWCNTRL is 1.
50128         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50129         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50130         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50131         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50132         what it fixes.
50133         * doc/posix-functions/iswalpha.texi: Likewise.
50134         * doc/posix-functions/iswblank.texi: Likewise.
50135         * doc/posix-functions/iswcntrl.texi: Likewise.
50136         * doc/posix-functions/iswdigit.texi: Likewise.
50137         * doc/posix-functions/iswgraph.texi: Likewise.
50138         * doc/posix-functions/iswlower.texi: Likewise.
50139         * doc/posix-functions/iswprint.texi: Likewise.
50140         * doc/posix-functions/iswpunct.texi: Likewise.
50141         * doc/posix-functions/iswspace.texi: Likewise.
50142         * doc/posix-functions/iswupper.texi: Likewise.
50143         * doc/posix-functions/iswxdigit.texi: Likewise.
50144         Reported by Alain Guibert.
50145
50146 2008-04-21  Bruno Haible  <bruno@clisp.org>
50147
50148         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50149         Patch by Alain Guibert.
50150
50151 2008-04-21  Bruno Haible  <bruno@clisp.org>
50152
50153         Fix test failures on mingw.
50154         * tests/test-xstrtol.c (print_no_progname): New function.
50155         (main): Install it in error_print_progname hook.
50156         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50157         * tests/test-xstrtoimax.sh: Likewise.
50158         * tests/test-xstrtoumax.sh: Likewise.
50159
50160 2008-04-21  Bruno Haible  <bruno@clisp.org>
50161
50162         Fix test failure on mingw.
50163         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50164
50165 2008-04-21  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50168         Actually assign a value.
50169
50170 2008-04-20  Bruno Haible  <bruno@clisp.org>
50171
50172         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50173         take 2.
50174         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50175         'canonicalize-lgpl' module is also used.
50176         * lib/canonicalize-lgpl.c: Undo last change.
50177         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50178
50179 2008-04-20  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50182         config.h. Provide _mkdir based fallback for mingw.
50183         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50184         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50185         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50186         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50187         rather than defining mkdir in config.h.
50188         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50189         (gl_SYS_STAT_H_DEFAULTS): New macro.
50190         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50191         HAVE_IO_H any more.
50192         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50193         HAVE_DECL_MKDIR and HAVE_IO_H.
50194
50195 2008-04-20  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/isapipe.c: Port to native Windows platforms.
50198
50199 2008-04-20  Bruno Haible  <bruno@clisp.org>
50200
50201         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50202
50203 2008-04-21  Eric Blake  <ebb9@byu.net>
50204
50205         Work around preprocessors that don't handle UINTMAX_MAX.
50206         * lib/memchr2.c (memchr2): Avoid embedded #if.
50207         Reported by Alain Guibert, fix suggested by Bruno Haible.
50208
50209 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50210
50211         * doc/posix-functions/strftime.texi (strftime): Explain better
50212         Windows incompatibility.  Suggested by Micah Cowan
50213         <micah@cowan.name>.
50214
50215 2008-04-20  Bruno Haible  <bruno@clisp.org>
50216
50217         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50218         unistr/u8-mblen.
50219
50220 2008-04-20  Bruno Haible  <bruno@clisp.org>
50221
50222         Fix test failure on platforms with non-GNU iconv.
50223         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50224         (U_TO_U8): Use it, rather than u16_to_u8.
50225         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50226         units at the end of the input string.
50227         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50228
50229 2008-04-20  Bruno Haible  <bruno@clisp.org>
50230
50231         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50232         when the resulting length is 0.
50233         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50234
50235 2008-04-20  Bruno Haible  <bruno@clisp.org>
50236
50237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50238         works.
50239         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50240
50241 2008-04-20  Bruno Haible  <bruno@clisp.org>
50242
50243         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50244         * modules/tsearch-tests (configure.ac): Test for initstate function.
50245
50246 2008-04-20  Bruno Haible  <bruno@clisp.org>
50247
50248         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50249         for nlink_t if missing.
50250         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50251
50252 2008-04-19  Bruno Haible  <bruno@clisp.org>
50253
50254         Work around snprintf bug on Linux libc5.
50255         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50257         gl_SNPRINTF_SIZE1.
50258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50259         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50260         that test failed.
50261         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50262         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50263         * modules/snprintf (Files): Add m4/printf.m4.
50264         * modules/vsnprintf (Files): Likewise.
50265         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50266         * doc/posix-functions/vsnprintf.texi: Likewise.
50267
50268 2008-04-19  Bruno Haible  <bruno@clisp.org>
50269
50270         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50271         from 0.0058 to less than 10^-7.
50272
50273 2008-04-19  Bruno Haible  <bruno@clisp.org>
50274
50275         Fix rounding when a precision is given.
50276         * lib/vasnprintf.c (is_borderline): New function.
50277         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50278         9...9x.
50279         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50280         %e, %g.
50281         * tests/test-vasprintf-posix.c (test_function): Likewise.
50282         * tests/test-snprintf-posix.h (test_function): Likewise.
50283         * tests/test-sprintf-posix.h (test_function): Likewise.
50284         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50285         * tests/test-printf-posix.h (test_function): Likewise.
50286         * tests/test-printf-posix.output: Update.
50287         Reported by John Darrington <john@darrington.wattle.id.au> via
50288         Ben Pfaff <blp@cs.stanford.edu>.
50289
50290 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50291
50292         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50293         Suggested by Bruno Haible <bruno@clisp.org>.
50294
50295 2008-04-17  Bruno Haible  <bruno@clisp.org>
50296
50297         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50298         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50299         implementation.
50300         Patch by Bruce Merry <bmerry@gmail.com>.
50301
50302 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50303
50304         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50305         doesn't work under Windows.
50306
50307 2008-04-16  Bruno Haible  <bruno@clisp.org>
50308
50309         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50310         New macros.
50311         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50312         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50313         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50314         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50315         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50316         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50317         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50318         macros.
50319         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50320         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50321         Northern Sotho, Uighur.
50322
50323 2008-04-16  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50326         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50327         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50328         Reported by Daniel Bergström <daniel@octocode.com>.
50329
50330 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50331             Bruno Haible  <bruno@clisp.org>
50332
50333         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50334         function.
50335         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50336         New functions, mostly extracted from gl_locale_name_default.
50337         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50338
50339 2008-04-16  Eric Blake  <ebb9@byu.net>
50340
50341         Adjust strtod detection to catch glibc 2.7 bug.
50342         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50343         Reported by John Gatewood Ham.
50344
50345 2008-04-16  Bruno Haible  <bruno@clisp.org>
50346
50347         Add tentative support for Linux libc5.
50348         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50349         * lib/fpurge.c (fpurge): Likewise.
50350         * lib/freadable.c (freadable): Likewise.
50351         * lib/freadahead.c (freadahead): Likewise.
50352         * lib/freading.c (freading): Likewise.
50353         * lib/freadptr.c (freadptr): Likewise.
50354         * lib/freadseek.c (freadptrinc): Likewise.
50355         * lib/fseeko.c (rpl_fseeko): Likewise.
50356         * lib/fseterr.c (fseterr): Likewise.
50357         * lib/fwritable.c (fwritable): Likewise.
50358         * lib/fwriting.c (fwriting): Likewise.
50359         Reported by Alain Guibert <alguibert+bts@free.fr>.
50360
50361 2008-04-15  Bruno Haible  <bruno@clisp.org>
50362
50363         * modules/mathl (configure.ac): Define module indicator.
50364
50365 2008-04-15  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/logl.c (logl): Remove unused variables.
50368
50369 2008-04-15  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50372         fails.
50373
50374 2008-04-15  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/trim.c (trim2): Fix argument of isspace() macro.
50377
50378 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50379
50380         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50381         to 0.
50382         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50383
50384 2008-04-14  Bruno Haible  <bruno@clisp.org>
50385
50386         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50387         AC_LANG_PROGRAM argument.
50388         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50389         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50391         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50392         * m4/math_h.m4 (gl_MATH_H): Likewise.
50393         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50395         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50396         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50397         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50398         * m4/regex.m4 (gl_REGEX): Likewise.
50399         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50400         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50402         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50403         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50404         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50405         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50407
50408 2008-04-14  Jim Meyering  <meyering@redhat.com>
50409
50410         test-strtod: fix typos: s/abs/fabs/
50411         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50412
50413 2008-04-13  Bruno Haible  <bruno@clisp.org>
50414
50415         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50416         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50417         module is also used and while not building the reloc-wrapper.
50418
50419 2008-04-13  Bruno Haible  <bruno@clisp.org>
50420
50421         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50422
50423 2008-04-13  Bruno Haible  <bruno@clisp.org>
50424
50425         Fix AIX compilation failure introduced on 2008-04-02.
50426         * tests/test-frexp.c (exp): Undefine before redefining.
50427         * tests/test-frexpl.c (exp): Likewise.
50428
50429 2008-04-13  Bruno Haible  <bruno@clisp.org>
50430
50431         Work around a HP-UX stdio bug.
50432         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50433         * tests/test-ftello.c (main): Likewise.
50434         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50435         * doc/posix-functions/ftello.texi: Likewise.
50436
50437 2008-04-13  Bruno Haible  <bruno@clisp.org>
50438
50439         Make test-signbit pass on HP-UX/hppa.
50440         * tests/test-signbit.c (minus_zerol): New variable.
50441         (test_signbitl): Use it.
50442
50443 2008-04-13  Bruno Haible  <bruno@clisp.org>
50444
50445         Make truncl work on OSF/1 4.0.
50446         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50447         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50448         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50450         HAVE_DECL_TRUNCL.
50451         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50452         HAVE_DECL_TRUNCL.
50453         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50454
50455 2008-04-13  Bruno Haible  <bruno@clisp.org>
50456
50457         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50458
50459 2008-04-13  Bruno Haible  <bruno@clisp.org>
50460
50461         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50462         expression, so as to avoid HP-UX 11 cc compiler bug.
50463
50464 2008-04-13  Bruno Haible  <bruno@clisp.org>
50465
50466         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50467
50468 2008-04-13  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/git-merge-changelog.c: Remove empty declaration outside of
50471         functions.
50472
50473 2008-04-13  Bruno Haible  <bruno@clisp.org>
50474
50475         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50476
50477 2008-04-13  Bruno Haible  <bruno@clisp.org>
50478
50479         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50480         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50482         also if it exists but lacks definitions of the SHUT_* macros.
50483         * modules/sys_socket (Description): Update.
50484         Reported by Elbert Pol <e.pol@chello.nl>.
50485
50486 2008-04-13  Bruno Haible  <bruno@clisp.org>
50487
50488         * lib/localcharset.c (OS2): Don't redefine if already defined.
50489         Reported by Elbert Pol <e.pol@chello.nl>.
50490
50491 2008-04-13  Bruno Haible  <bruno@clisp.org>
50492
50493         * lib/binary-io.h [__EMX__]: Include <io.h>.
50494         Reported by Elbert Pol <e.pol@chello.nl>.
50495
50496 2008-04-12  Bruno Haible  <bruno@clisp.org>
50497
50498         * lib/fpucw.h: Enable the definitions also for x86_64.
50499         Needed for NetBSD/x86_64.
50500         Reported by Thomas Klausner <tk@giga.or.at>.
50501
50502 2008-04-12  Bruno Haible  <bruno@clisp.org>
50503
50504         * tests/test-strtod.c: Include isnand.h.
50505         (main): Use isnand instead of isnan.
50506         Reported by Jim Meyering.
50507
50508 2008-04-12  Bruno Haible  <bruno@clisp.org>
50509
50510         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50511         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50512
50513 2008-04-12  Jim Meyering  <meyering@redhat.com>
50514
50515         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50516
50517 2008-04-12  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50520         Reported by Elbert Pol <e.pol@chello.nl>.
50521
50522 2008-04-12  Eric Blake  <ebb9@byu.net>
50523
50524         Work around Solaris 10 math.h bug.
50525         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50526         (gl_MATH_H_DEFAULTS): Set up default.
50527         * modules/math (Makefile.am): Replace new indicators.
50528         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50529         * tests/test-math.c (main): Test this.
50530         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50531         * doc/posix-headers/math.texi (math.h): Mention bug.
50532         Reported by Nelson H. F. Beebe and Jim Meyering.
50533
50534 2008-04-11  Bruno Haible  <bruno@clisp.org>
50535
50536         Adapt to future versions of Apple GCC.
50537         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50538         Reported by Peter O'Gorman <peter@pogma.com>.
50539
50540 2008-04-11  Bruno Haible  <bruno@clisp.org>
50541
50542         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50543
50544 2008-04-11  Bruno Haible  <bruno@clisp.org>
50545
50546         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50547
50548         * modules/getaddrinfo-tests (Makefile.am): Define
50549         test_getaddrinfo_LDADD.
50550
50551 2008-04-11  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50554         (init): Fix syntax error.
50555         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50556         is declared.
50557
50558 2008-04-11  Bruno Haible  <bruno@clisp.org>
50559
50560         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50561         * modules/glob (Depends-on): Add stdbool.
50562
50563 2008-04-11  Bruno Haible  <bruno@clisp.org>
50564
50565         * lib/trim.c: Include <string.h>.
50566
50567 2008-04-11  Eric Blake  <ebb9@byu.net>
50568
50569         Avoid compile failure on OS/2.
50570         * lib/regex_internal.h (internal_function): Disable optimization
50571         on OS/2 (__EMX__), where it caused compiler error.
50572         Reported by Elbert Pol.
50573
50574 2008-04-11  Bruno Haible  <bruno@clisp.org>
50575
50576         Flush the standard error stream before aborting. Needed on mingw.
50577         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50578         * tests/test-array_list.c (ASSERT): Likewise.
50579         * tests/test-array_oset.c (ASSERT): Likewise.
50580         * tests/test-avltree_list.c (ASSERT): Likewise.
50581         * tests/test-avltree_oset.c (ASSERT): Likewise.
50582         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50583         * tests/test-binary-io.c (ASSERT): Likewise.
50584         * tests/test-byteswap.c (ASSERT): Likewise.
50585         * tests/test-c-ctype.c (ASSERT): Likewise.
50586         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50587         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50588         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50589         * tests/test-c-strstr.c (ASSERT): Likewise.
50590         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50591         * tests/test-canonicalize.c (ASSERT): Likewise.
50592         * tests/test-carray_list.c (ASSERT): Likewise.
50593         * tests/test-ceilf1.c (ASSERT): Likewise.
50594         * tests/test-ceilf2.c (ASSERT): Likewise.
50595         * tests/test-ceill.c (ASSERT): Likewise.
50596         * tests/test-count-one-bits.c (ASSERT): Likewise.
50597         * tests/test-fbufmode.c (ASSERT): Likewise.
50598         * tests/test-fflush2.c (ASSERT): Likewise.
50599         * tests/test-floorf1.c (ASSERT): Likewise.
50600         * tests/test-floorf2.c (ASSERT): Likewise.
50601         * tests/test-floorl.c (ASSERT): Likewise.
50602         * tests/test-fopen.c (ASSERT): Likewise.
50603         * tests/test-fpending.c (ASSERT): Likewise.
50604         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50605         * tests/test-fpurge.c (ASSERT): Likewise.
50606         * tests/test-freadable.c (ASSERT): Likewise.
50607         * tests/test-freadahead.c (ASSERT): Likewise.
50608         * tests/test-freading.c (ASSERT): Likewise.
50609         * tests/test-freadptr.c (ASSERT): Likewise.
50610         * tests/test-freadptr2.c (ASSERT): Likewise.
50611         * tests/test-freadseek.c (ASSERT): Likewise.
50612         * tests/test-freopen.c (ASSERT): Likewise.
50613         * tests/test-frexp.c (ASSERT): Likewise.
50614         * tests/test-frexpl.c (ASSERT): Likewise.
50615         * tests/test-fseek.c (ASSERT): Likewise.
50616         * tests/test-fseeko.c (ASSERT): Likewise.
50617         * tests/test-fstrcmp.c (ASSERT): Likewise.
50618         * tests/test-ftell.c (ASSERT): Likewise.
50619         * tests/test-ftello.c (ASSERT): Likewise.
50620         * tests/test-func.c (ASSERT): Likewise.
50621         * tests/test-fwritable.c (ASSERT): Likewise.
50622         * tests/test-fwriting.c (ASSERT): Likewise.
50623         * tests/test-getdelim.c (ASSERT): Likewise.
50624         * tests/test-getline.c (ASSERT): Likewise.
50625         * tests/test-i-ring.c (ASSERT): Likewise.
50626         * tests/test-iconv-utf.c (ASSERT): Likewise.
50627         * tests/test-iconv.c (ASSERT): Likewise.
50628         * tests/test-isfinite.c (ASSERT): Likewise.
50629         * tests/test-isnand.c (ASSERT): Likewise.
50630         * tests/test-isnanf.c (ASSERT): Likewise.
50631         * tests/test-isnanl.h (ASSERT): Likewise.
50632         * tests/test-ldexpl.c (ASSERT): Likewise.
50633         * tests/test-linked_list.c (ASSERT): Likewise.
50634         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50635         * tests/test-localename.c (ASSERT): Likewise.
50636         * tests/test-lseek.c (ASSERT): Likewise.
50637         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50638         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50639         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50640         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50641         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50642         * tests/test-mbschr.c (ASSERT): Likewise.
50643         * tests/test-mbscspn.c (ASSERT): Likewise.
50644         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50645         * tests/test-mbspbrk.c (ASSERT): Likewise.
50646         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50647         * tests/test-mbsrchr.c (ASSERT): Likewise.
50648         * tests/test-mbsspn.c (ASSERT): Likewise.
50649         * tests/test-mbsstr1.c (ASSERT): Likewise.
50650         * tests/test-mbsstr2.c (ASSERT): Likewise.
50651         * tests/test-mbsstr3.c (ASSERT): Likewise.
50652         * tests/test-memchr2.c (ASSERT): Likewise.
50653         * tests/test-memmem.c (ASSERT): Likewise.
50654         * tests/test-open.c (ASSERT): Likewise.
50655         * tests/test-printf-frexp.c (ASSERT): Likewise.
50656         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50657         * tests/test-printf-posix.c (ASSERT): Likewise.
50658         * tests/test-quotearg.c (ASSERT): Likewise.
50659         * tests/test-rbtree_list.c (ASSERT): Likewise.
50660         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50661         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50662         * tests/test-round1.c (ASSERT): Likewise.
50663         * tests/test-roundf1.c (ASSERT): Likewise.
50664         * tests/test-roundl.c (ASSERT): Likewise.
50665         * tests/test-signbit.c (ASSERT): Likewise.
50666         * tests/test-sleep.c (ASSERT): Likewise.
50667         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50668         * tests/test-snprintf.c (ASSERT): Likewise.
50669         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50670         * tests/test-stat-time.c (ASSERT): Likewise.
50671         * tests/test-strcasestr.c (ASSERT): Likewise.
50672         * tests/test-strerror.c (ASSERT): Likewise.
50673         * tests/test-striconv.c (ASSERT): Likewise.
50674         * tests/test-striconveh.c (ASSERT): Likewise.
50675         * tests/test-striconveha.c (ASSERT): Likewise.
50676         * tests/test-strsignal.c (ASSERT): Likewise.
50677         * tests/test-strstr.c (ASSERT): Likewise.
50678         * tests/test-strtod.c (ASSERT): Likewise.
50679         * tests/test-trunc1.c (ASSERT): Likewise.
50680         * tests/test-trunc2.c (ASSERT): Likewise.
50681         * tests/test-truncf1.c (ASSERT): Likewise.
50682         * tests/test-truncf2.c (ASSERT): Likewise.
50683         * tests/test-truncl.c (ASSERT): Likewise.
50684         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50685         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50686         * tests/test-vasnprintf.c (ASSERT): Likewise.
50687         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50688         * tests/test-vasprintf.c (ASSERT): Likewise.
50689         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50690         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50691         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50692         * tests/test-vsnprintf.c (ASSERT): Likewise.
50693         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50694         * tests/test-wcwidth.c (ASSERT): Likewise.
50695         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50696         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50697         * tests/test-xvasprintf.c (ASSERT): Likewise.
50698         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50699         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50700         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50701         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50702         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50703         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50704         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50705         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50706         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50707         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50708         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50709         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50710         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50711         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50712         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50713         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50714         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50715         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50716         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50717         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50718         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50719         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50720         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50721         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50722         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50723         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50724         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50725         * tests/unictype/test-combining.c (ASSERT): Likewise.
50726         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50727         * tests/unictype/test-digit.c (ASSERT): Likewise.
50728         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50729         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50730         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50731         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50732         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50733         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50734         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50735         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50736         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50737         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50738         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50739         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50740         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50741         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50742         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50743         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50744         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50745         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50746         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50747         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50748         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50749         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50750         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50751         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50752         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50753         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50754         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50755         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50756         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50757         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50758         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50759         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50760         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50761         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50762         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50763         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50764         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50765         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50766         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50767         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50768         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50769         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50770         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50771         Reported by Eric Blake.
50772
50773 2008-04-11  Bruno Haible  <bruno@clisp.org>
50774
50775         * lib/wchar.in.h: Tweak comment.
50776
50777 2008-04-11  Bruno Haible  <bruno@clisp.org>
50778
50779         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50780         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50781         gl_COMMON.
50782         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50783
50784 2008-04-11  Bruno Haible  <bruno@clisp.org>
50785
50786         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50787
50788 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50789
50790         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50791         of attempting to use non-existing /dev/*random.  Based on patch
50792         from Adam Strzelecki <ono@java.pl> in
50793         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50794
50795 2008-04-08  Bruno Haible  <bruno@clisp.org>
50796
50797         Add tentative support for emx+gcc.
50798         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50799         * lib/fpurge.c (fpurge): Likewise.
50800         * lib/freadable.c (freadable): Likewise.
50801         * lib/freadahead.c (freadahead): Likewise.
50802         * lib/freading.c (freading): Likewise.
50803         * lib/freadptr.c (freadptr): Likewise.
50804         * lib/freadseek.c (freadptrinc): Likewise.
50805         * lib/fseeko.c (rpl_fseeko): Likewise.
50806         * lib/fseterr.c (fseterr): Likewise.
50807         * lib/fwritable.c (fwritable): Likewise.
50808         * lib/fwriting.c (fwriting): Likewise.
50809         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50810
50811 2008-04-09  Eric Blake  <ebb9@byu.net>
50812
50813         Avoid some autoconf warnings.
50814         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50815         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50816         * m4/afs.m4 (gl_AFS): Likewise.
50817         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50818         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50819         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50820         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50821         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50822         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50823         (AC_CHECK_DECLS_ONCE): Likewise.
50824         Rename file...
50825         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50826         gnulib-tool requires autoconf 2.59 or better.
50827         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50828
50829 2008-04-08  Eric Blake  <ebb9@byu.net>
50830
50831         Use 'git describe --match' if present (added in git 1.5.5).
50832         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50833         if possible.
50834
50835 2008-04-08  Bruno Haible  <bruno@clisp.org>
50836
50837         Add tentative support for OpenServer.
50838         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50839         _ptr, _cnt.
50840         * lib/fpurge.c (fpurge): Likewise.
50841         * lib/freadable.c (freadable): Likewise.
50842         * lib/freadahead.c (freadahead): Likewise.
50843         * lib/freading.c (freading): Likewise.
50844         * lib/freadptr.c (freadptr): Likewise.
50845         * lib/freadseek.c (freadptrinc): Likewise.
50846         * lib/fseeko.c (rpl_fseeko): Likewise.
50847         * lib/fseterr.c (fseterr): Likewise.
50848         * lib/fwritable.c (fwritable): Likewise.
50849         * lib/fwriting.c (fwriting): Likewise.
50850         Reported by Roger Cornelius <rac@tenzing.org> and
50851         Brian K. White <brian@aljex.com>.
50852
50853 2008-04-06  Jim Meyering  <meyering@redhat.com>
50854
50855         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50856
50857 2008-04-06  Bruno Haible  <bruno@clisp.org>
50858
50859         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50860         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50861         * tests/test-printf-posix.sh: Likewise.
50862         * tests/test-vfprintf-posix.sh: Likewise.
50863         * tests/test-vprintf-posix.sh: Likewise.
50864         * tests/test-xprintf-posix.sh: Likewise.
50865
50866 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50867
50868         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50869         hide error from 'ls', needed on OS/2.
50870         Report by Elbert Pol <elbert.pol@gmail.com>.
50871
50872 2008-04-04  Eric Blake  <ebb9@byu.net>
50873
50874         Make test-fseeko.c failures meaningful.
50875         * tests/test-fseeko.c: Print line number on failure.
50876         * tests/test-fseek.c: Likewise.
50877         Reported by Nelson H. F. Beebe.
50878
50879         Improve strtod bug detection check.
50880         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50881         required for Solaris 10.
50882         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50883
50884 2008-04-04  Bruno Haible  <bruno@clisp.org>
50885
50886         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50887         by m4/setenv.m4.
50888
50889 2008-04-03  Eric Blake  <ebb9@byu.net>
50890
50891         Ensure sane .version contents.
50892         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50893         version string.
50894         * build-aux/git-version-gen: Improve documentation.
50895
50896         Make GNU make output nicer.
50897         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50898         MAKECMDGOALS to enforce message for all command line targets.  Set
50899         srcdir for use in maint.mk.
50900
50901         Another maintainer tweak.
50902         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50903         a target that regenerates version.
50904
50905 2008-04-03  Jim Meyering  <meyering@redhat.com>
50906
50907         vc-list-files: don't cause coreutils "make po-check" failure
50908         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50909
50910 2008-04-03  Eric Blake  <ebb9@byu.net>
50911
50912         Allow VPATH usage of vc-list-files.
50913         * build-aux/vc-list-files (scriptversion): Add timestamp.
50914         (options): Add --help, --version, -C.
50915         (CVS): Support installed cvsu.
50916
50917 2008-04-02  Bruno Haible  <bruno@clisp.org>
50918
50919         Avoid some "statement with no effect" warnings from gcc.
50920         * tests/test-wctype.c (main): Explicitly ignore unused values.
50921         Reported by Jim Meyering.
50922
50923 2008-04-02  Jim Meyering  <meyering@redhat.com>
50924
50925         Avoid some warnings from "gcc -Wshadow".
50926         * tests/test-frexp.c (exp): Define to a different identifier.
50927         * tests/test-frexpl.c (exp): Likewise.
50928
50929 2008-04-03  Jim Meyering  <meyering@redhat.com>
50930
50931         bootstrap: remove dangling *.[ch] symlinks from lib
50932         * build-aux/bootstrap [dangling symlink removal]: Move find's
50933         -depth option to precede all others, to avoid a warning.
50934         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50935
50936 2008-04-02  Bruno Haible  <bruno@clisp.org>
50937
50938         Avoid some warnings from "gcc -Wshadow".
50939         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50940         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50941         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50942         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50943         Reported by Jim Meyering.
50944
50945 2008-04-01  Bruno Haible  <bruno@clisp.org>
50946
50947         Fix test to work on IRIX 6.5 with cc.
50948         * tests/test-math.c (numeric_equal): New function.
50949         (main): Use it.
50950
50951 2008-04-01  Bruno Haible  <bruno@clisp.org>
50952
50953         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50954
50955 2008-04-01  Bruno Haible  <bruno@clisp.org>
50956
50957         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50958         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50959         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50960         (Depends-on): Remove math.
50961
50962         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50963         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50964         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50965         (Depends-on): Remove math.
50966
50967         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50968         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50969         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50970         (Depends-on): Remove math.
50971         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50972         (Depends-on): Remove math.
50973
50974         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50975         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50976         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50977         (Depends-on): Remove math.
50978         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50979         (Depends-on): Remove math.
50980
50981         * tests/test-round1.c: Include nan.h.
50982         (main): Use NaNd instead of NAN.
50983         * modules/round-tests (Files): Add tests/nan.h.
50984
50985         * tests/test-trunc1.c: Include nan.h.
50986         (main): Use NaNd instead of NAN.
50987         * modules/trunc-tests (Files): Add tests/nan.h.
50988
50989         * tests/test-roundf1.c: Include nan.h.
50990         (main): Use NaNf instead of NAN.
50991         * modules/roundf-tests (Files): Add tests/nan.h.
50992
50993         * tests/test-truncf1.c: Include nan.h.
50994         (main): Use NaNf instead of NAN.
50995         * modules/truncf-tests (Files): Add tests/nan.h.
50996
50997         * tests/test-ceilf1.c: Include nan.h.
50998         (main): Use NaNf instead of NAN.
50999         * modules/ceilf-tests (Files): Add tests/nan.h.
51000
51001         * tests/test-floorf1.c: Include nan.h.
51002         (main): Use NaNf instead of NAN.
51003         * modules/floorf-tests (Files): Add tests/nan.h.
51004
51005         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51006         (main): Use NaNf instead of NAN.
51007         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51008
51009         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51010         (main): Use NaNd instead of NAN.
51011         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51012
51013         * tests/test-frexp.c: Include nan.h.
51014         (main): Use NaNd instead of NAN.
51015         * modules/frexp-tests (Files): Add tests/nan.h.
51016
51017         * lib/isnan.c: Don't include <math.h>.
51018         (FUNC): Don't use NAN macro.
51019         * modules/isnand-nolibm (Depends-on): Remove math.
51020         * modules/isnanf-nolibm (Depends-on): Remove math.
51021         * modules/isnanl (Depends-on): Remove math.
51022         * modules/isnanl-nolibm (Depends-on): Remove math.
51023
51024         * tests/nan.h: New file.
51025
51026 2008-04-01  Eric Blake  <ebb9@byu.net>
51027
51028         Fix typos.
51029         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51030         values to be the right type.
51031
51032         For now, cater to gnulib strtod inaccuracies.
51033         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51034         fractional results.  While not as nice from a QoI perspective, it
51035         is a quicker patch than correctly implementing decimal to binary
51036         rounding.
51037
51038 2008-03-31  Eric Blake  <ebb9@byu.net>
51039
51040         Guarantee a definition of NAN.
51041         * lib/math.in.h (NAN): Define if missing.
51042         * tests/test-math.c (main): Test it.
51043         * doc/posix-headers/math.texi (math.h): Document this.
51044         * lib/isnan.c (rpl_isnand): Use it.
51045         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51046         * tests/test-floorf1.c (NaN): Likewise.
51047         * tests/test-frexp.c (NaN): Likewise.
51048         * tests/test-isnand.c (NaN): Likewise.
51049         * tests/test-isnanf.c (NaN): Likewise.
51050         * tests/test-round1.c (NaN): Likewise.
51051         * tests/test-roundf1.c (NaN): Likewise.
51052         * tests/test-snprintf-posix.h (NaN): Likewise.
51053         * tests/test-sprintf-posix.h (NaN): Likewise.
51054         * tests/test-trunc1.c (NaN): Likewise.
51055         * tests/test-truncf1.c (NaN): Likewise.
51056         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51057         * tests/test-vasprintf-posix.c (NaN): Likewise.
51058         * modules/isnand-nolibm (Depends-on): Add math.
51059         * modules/isnanf-nolibm (Depends-on): Likewise.
51060         * modules/isnanl (Depends-on): Likewise.
51061         * modules/isnanl-nolibm (Depends-on): Likewise.
51062         * modules/snprintf-posix-tests (Depends-on): Likewise.
51063         * modules/sprintf-posix-tests (Depends-on): Likewise.
51064         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51065         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51066         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51067         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51068
51069 2008-03-31  Bruno Haible  <bruno@clisp.org>
51070
51071         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51072         * doc/posix-functions/strtod.texi: Likewise.
51073
51074 2008-03-31  Bruno Haible  <bruno@clisp.org>
51075
51076         * tests/test-strtod.c (main): Don't use C99 syntax.
51077
51078 2008-03-31  Bruno Haible  <bruno@clisp.org>
51079
51080         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51081         Reported by Eric Blake.
51082
51083 2008-03-31  Jim Meyering  <meyering@redhat.com>
51084
51085         Don't compare actual signbit return values.
51086         * tests/test-strtod.c (main): Rather, compare only their
51087         zero/non-zero nature.
51088
51089 2008-03-31  Eric Blake  <ebb9@byu.net>
51090
51091         More strtod documentation.
51092         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51093         failures as distinct bugs.
51094
51095 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51096
51097         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51098         Problem reported by Erik Benada in
51099         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51100
51101 2008-03-30  Bruno Haible  <bruno@clisp.org>
51102
51103         * tests/test-strtod.c: Add comments about which assertion fails on which
51104         platform.
51105         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51106
51107 2008-03-30  Eric Blake  <ebb9@byu.net>
51108
51109         Test signbit behavior on zeros.
51110         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51111         (test_signbitd, test_signbitl): Likewise.
51112
51113         More strtod touchups.
51114         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51115         sign of negative underflow, for now.  Use .5, not .1.
51116         * doc/posix-functions/strtod.texi (strtod): Mention these
51117         limitations.
51118         Reported by Jim Meyering.
51119
51120 2008-03-30  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51123         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51124
51125 2008-03-30  Bruno Haible  <bruno@clisp.org>
51126
51127         Avoid failure when attempting to return empty iconv results on some
51128         platforms.
51129         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51130         allocation, don't report ENOMEM when the resulting string is empty.
51131
51132 2008-03-30  Bruno Haible  <bruno@clisp.org>
51133
51134         Fix buffer overrun.
51135         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51136         Don't consider the width for tmp_length. Check count against tmp_length
51137         before doing the padding. Ensure enough allocation during padding.
51138
51139 2008-03-30  Eric Blake  <ebb9@byu.net>
51140
51141         strtod touchups.
51142         * lib/strtod.c (strtod): Avoid compiler warnings.
51143         Reported by Jim Meyering.
51144
51145 2008-03-30  Bruno Haible  <bruno@clisp.org>
51146
51147         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51148         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51149         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51150         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51151         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51152         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51153         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51154         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51155
51156         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51157         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51158         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51159         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51160         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51161         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51162         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51163         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51164
51165         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51166         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51167         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51168         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51169         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51170         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51171         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51172         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51173
51174         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51175         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51176
51177         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51178         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51179
51180         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51181         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51182
51183         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51185         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51186
51187         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51188         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51189         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51190
51191         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51193         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51194
51195         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51197         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51198
51199         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51200         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51202         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51203         (Depends-on): Add EOVERFLOW.
51204         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51205         (Depends-on): Add EOVERFLOW.
51206         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51207         (Depends-on): Add EOVERFLOW.
51208         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51209         (Depends-on): Add EOVERFLOW.
51210         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51211         (Depends-on): Add EOVERFLOW.
51212         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51213         (Depends-on): Add EOVERFLOW.
51214         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51215         (Depends-on): Add EOVERFLOW.
51216         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51217         (Depends-on): Add EOVERFLOW.
51218
51219         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51220         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51221         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51222
51223         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51225         * modules/snprintf (Depends-on): Add EOVERFLOW.
51226
51227         * lib/poll.c (EOVERFLOW): Remove fallback.
51228         * modules/poll (Depends-on): Add EOVERFLOW.
51229
51230         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51231         * modules/getugroups (Depends-on): Add EOVERFLOW.
51232
51233         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51234         * modules/getdelim (Depends-on): Add EOVERFLOW.
51235
51236         * lib/ftell.c (EOVERFLOW): Remove fallback.
51237         * modules/ftell (Depends-on): Add EOVERFLOW.
51238
51239         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51241         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51242
51243         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51244
51245         * modules/EOVERFLOW-tests: New file.
51246         * tests/test-EOVERFLOW.c: New file.
51247
51248         * modules/EOVERFLOW: New file.
51249         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51250
51251 2008-03-30  Bruno Haible  <bruno@clisp.org>
51252
51253         Fix bug introduced on 2007-06-10.
51254         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51255         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51256
51257 2008-03-30  Bruno Haible  <bruno@clisp.org>
51258
51259         Improve freadseek's efficiency after ungetc.
51260         * lib/freadseek.c: Include freadahead.h.
51261         (freadptrinc): New function, extracted from freadseek.
51262         (freadseek): Use it in a loop. Use freadahead to determine the number
51263         of loop iterations.
51264         * modules/freadseek (Depends-on): Add freadahead.
51265         (configure.ac): Require AC_C_INLINE.
51266
51267 2008-03-30  Bruno Haible  <bruno@clisp.org>
51268
51269         * lib/freadseek.c (freadseek): Don't ignore the return value of
51270         freadptr.
51271
51272 2008-03-29  Eric Blake  <ebb9@byu.net>
51273
51274         Add hex float support.
51275         * modules/strtod (Depends-on): Add c-ctype.
51276         (Link): Mention POW_LIB.
51277         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51278         whitespace between 'e' and exponent.
51279         * tests/test-strtod.c (main): Enable hex float tests.
51280         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51281         now provides.
51282
51283         Document various strtod bugs, with some fixes.
51284         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51285         "-0x", "inf", "nan", and hex constants.
51286         * doc/posix-functions/atof.texi (atof): Likewise.
51287         * modules/stdlib (Makefile.am): Support strtod.
51288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51289         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51290         detect additional strtod bugs.
51291         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51292         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51293         bool where appropriate.  Parse 'inf' and 'nan'.
51294         * tests/test-strtod.c: New file.
51295         * modules/strtod (Depends-on): Add stdbool, stdlib.
51296         (configure.ac): Turn on module indicator.
51297         * modules/strtod-tests: New module.
51298
51299 2008-03-29  Eric Blake  <ebb9@byu.net>
51300
51301         Fix ftell on mingw.
51302         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51303         * modules/ftell-tests (Depends-on): Add binary-io.
51304         * modules/ftello-tests (Depends-on): Likewise.
51305         * tests/test-ftell.c (main): Enhance test to cover behavior after
51306         ungetc.  Enforce binary mode.
51307         * tests/test-ftello.c (main): Likewise.
51308
51309         Pass test-freadseek on cygwin.
51310         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51311         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51312         ungetc buffer.
51313
51314         * tests/test-fflush2.c (main): Fix typo.
51315
51316 2008-03-29  Bruno Haible  <bruno@clisp.org>
51317
51318         * tests/test-fflush2.c (main): Temporarily disable the contents of
51319         this test.
51320         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51321         Reported by Eric Blake.
51322
51323 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51324
51325         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51326         (GC_SHA224_DIGEST_SIZE): Add.
51327
51328         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51329         (gc_hash_digest_length): Likewise.
51330         (gc_hash_buffer): Likewise.
51331
51332 2008-03-25  Bruno Haible  <bruno@clisp.org>
51333
51334         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51335         detail which gettext release to use.
51336         Reported by Simon Josefsson.
51337
51338 2008-03-26  Jim Meyering  <meyering@redhat.com>
51339
51340         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51341         * modules/gnumakefile (clean-GNUmakefile): Also, use
51342         test ... && ... || : syntax rather than if-then ... fi.
51343
51344         gnumakefile: Don't double-quote-expand $(VPATH) value.
51345         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51346
51347 2008-03-24  Eric Blake  <ebb9@byu.net>
51348
51349         Alter GNUmakefile to install into top directory.
51350         * modules/maintainer-makefile: Split, and add dependency...
51351         * modules/gnumakefile: to this new module.
51352         * build-aux/GNUmakefile: Move...
51353         * top/GNUmakefile: ...here.
51354         * build-aux/maint.mk: Move...
51355         * top/maint.mk: ...here.
51356         * MODULES.html.sh (Support for maintaining...): Document new
51357         module.
51358
51359 2008-03-23  Bruno Haible  <bruno@clisp.org>
51360
51361         * gnulib-tool: New options --vc-files, --no-vc-files.
51362         (func_usage): Document them.
51363         (vc_files): New variable.
51364         (func_import): Consider vc_files.
51365         (func_create_testdir): Set vc_files to empty.
51366         Suggested by Jim Meyering and Karl Berry.
51367
51368 2008-03-23  Bruno Haible  <bruno@clisp.org>
51369
51370         Fix regex compilation error on HP-UX 11.
51371         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51372         * modules/regex (Files): Add m4/mbstate_t.m4.
51373         Reported by Ton Voon <ton.voon@altinity.com>.
51374
51375 2008-03-23  Bruno Haible  <bruno@clisp.org>
51376
51377         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51378
51379 2008-03-23  Eric Blake  <ebb9@byu.net>
51380             Bruno Haible  <bruno@clisp.org>
51381
51382         Install files from top/ in the destination directory.
51383         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51384         augmentation also for the files from top/.
51385         (func_import, func_create_testdir): Rewrite file names:
51386         top/filename -> filename.
51387
51388 2008-03-23  Bruno Haible  <bruno@clisp.org>
51389
51390         Tweak "gnulib --version" output.
51391         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51392
51393 2008-03-23  Bruno Haible  <bruno@clisp.org>
51394
51395         Tweak "gnulib --version" output.
51396         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51397         rather than contents of ChangeLog, when possible.
51398
51399 2008-03-21  Eric Blake  <ebb9@byu.net>
51400
51401         More --version tweaks.
51402         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51403         date of last ChangeLog entry.
51404
51405 2008-03-21  Jim Meyering  <meyering@redhat.com>
51406
51407         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51408
51409 2008-03-20  Eric Blake  <ebb9@byu.net>
51410
51411         VPATH fix.
51412         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51413
51414 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51415
51416         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51417         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51418
51419 2008-03-20  Eric Blake  <ebb9@byu.net>
51420
51421         Sync GNUmakefile with coreutils.
51422         * build-aux/GNUmakefile (have-Makefile): Rename...
51423         (_have-Makefile): ...to this, for namespace consideration.
51424         (GNUmakefile.cfg): Include, if present.
51425         (_autoreconf): Define a default.
51426         (_is-dist-target): New rule for rebuilds to pick up intra-release
51427         version.
51428         (maint-cfg.mk): Rename...
51429         (cfg.mk): ...to this.
51430
51431 2008-03-18  Jim Meyering  <meyering@redhat.com>
51432
51433         New script and module: mktempd
51434         * MODULES.html.sh (maint+release support): Add mktempd.
51435         * build-aux/mktempd: New file.
51436         * modules/mktempd: New file.
51437
51438 2008-03-15  Jim Meyering  <meyering@redhat.com>
51439
51440         Undo last change.
51441         * lib/sha1.c, lib/md5.c: 63 != ~63.
51442         Reported by Andreas Schwab.
51443
51444         sha1.c, md5.c: Hoist a redundant expression.
51445         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51446         "ctx->buflen" only once, before calling *_process_block.
51447         * lib/md5.c (md5_process_bytes): Likewise.
51448
51449 2008-03-14  Eric Blake  <ebb9@byu.net>
51450
51451         Bump copyright year in files generated by gnulib-tool.
51452         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51453         gnulib-tool, rather than hard-coding it.
51454
51455         Fix 'gnulib-tool --version' output to work with git.
51456         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51457         (startup): ...here.
51458         (func_version): Use it to invoke git-version-gen, rather than
51459         relying on CVS keyword expansion.  Modernize wording.
51460         (cvsdatestamp, last_checkin_date, version): Kill unused
51461         variables.
51462
51463 2008-03-12  Jim Meyering  <meyering@redhat.com>
51464
51465         Recognize optional cast of the argument to free.
51466         * build-aux/useless-if-before-free: Update regexps.
51467
51468         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51469
51470 2008-03-11  Bruno Haible  <bruno@clisp.org>
51471
51472         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51473         by a single package.
51474         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51475         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51476         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51477         Reported by Sam Steingold <sds@gnu.org>.
51478
51479 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51480
51481         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51482         repositories.
51483
51484 2008-03-11  Bruno Haible  <bruno@clisp.org>
51485
51486         Avoid conflicts between local macro definitions.
51487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51488         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51489
51490 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51491             Bruno Haible  <bruno@clisp.org>
51492
51493         Make va_copy work with some version of xlc on AIX 5.1.
51494         * lib/stdarg.in.h: New file.
51495         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51496         On AIX, use a <stdarg.h> file substitute.
51497         * modules/stdarg (Files): Add lib/stdarg.in.h.
51498         (Depends-on): Add include_next.
51499         (Makefile.am): Build a stdarg.h substitute if requested.
51500         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51501
51502 2008-03-10  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51505         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51506         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51507
51508 2008-03-10  Bruno Haible  <bruno@clisp.org>
51509
51510         * modules/stdlib (Depends-on): Add include_next, remove
51511         absolute-header.
51512
51513 2008-03-09  Bruno Haible  <bruno@clisp.org>
51514
51515         * lib/freadahead.h (freadahead): Document more precisely.
51516         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51517         the sum of both buffer sizes.
51518         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51519         * NEWS: Document the change.
51520
51521 2008-03-09  Bruno Haible  <bruno@clisp.org>
51522
51523         Extend freadptr to return also the buffer size.
51524         * lib/freadptr.h (freadptr): Add sizep argument.
51525         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51526         (freadptr): Add sizep argument. Determine buffer size like freadahead
51527         does.
51528         * tests/test-freadptr.c: Don't include freadahead.h.
51529         (main): Adapt for new calling convention of freadptr.
51530         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51531         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51532         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51533         tests/test-freadptr2.sh.
51534         (Depends): Remove freadahead.
51535         (TESTS): Add test-freadptr2.sh.
51536         (check_PROGRAMS): Add test-freadptr2.
51537
51538 2008-03-09  Bruno Haible  <bruno@clisp.org>
51539
51540         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51541         Report and solution by Simon Josefsson.
51542
51543 2008-03-06  Bruno Haible  <bruno@clisp.org>
51544
51545         Make fflush after ungetc work on BSD platforms.
51546         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51547         * tests/test-fflush2.c: New file.
51548         * tests/test-fflush2.sh: New file.
51549         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51550         tests/test-fflush2.c.
51551         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51552         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51553
51554 2008-03-06  Eric Blake  <ebb9@byu.net>
51555
51556         Likewise for ftello.
51557         * modules/ftello (Dependencies): Add extensions.
51558         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51559
51560 2008-03-06  Bruno Haible  <bruno@clisp.org>
51561
51562         * modules/fseeko (Dependencies): Add extensions.
51563         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51564         Needed on glibc systems.
51565
51566 2008-03-06  Bruno Haible  <bruno@clisp.org>
51567
51568         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51569         email address.
51570         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51571
51572 2008-03-06  Bruno Haible  <bruno@clisp.org>
51573
51574         * users.txt: Add libgnupdf.
51575
51576 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51577
51578         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51579         (Header File Substitutes, Function Substitutes,
51580         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51581         (Build robot for gnulib): Fix typo.
51582
51583 2008-03-06  Bruno Haible  <bruno@clisp.org>
51584
51585         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51586         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51587
51588 2008-03-06  Bruno Haible  <bruno@clisp.org>
51589
51590         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51591         * doc/gnulib.texi: Include it.
51592
51593 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51594
51595         * modules/func (License): Change license to unlimited; there was
51596         no LGPL parts in the module anyway.
51597
51598 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51599
51600         * modules/__func__: Renamed to modules/func.
51601         * modules/__func__-tests: Renamed to modules/func-tests.
51602         * tests/test-__func__.c: Renamed to tests/test-func.c.
51603         * m4/__func__.m4: Renamed to m4/func.m4.
51604         * doc/gnulib.texi (__func__): Section renamed to func.
51605         Suggested by Eric Blake <ebb9@byu.net>.
51606
51607 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51608
51609         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51610         about __func__.  Make example self-contained.  Suggested by Eric
51611         Blake <ebb9@byu.net>.
51612
51613         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51614         Suggested by Eric Blake <ebb9@byu.net>.
51615
51616 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51617
51618         * modules/__func__: New file.
51619         * modules/__func__-tests: New file.
51620         * tests/test-__func__.c: New file.
51621         * m4/__func__.m4: New file.
51622         * doc/gnulib.texi (__func__): Document __func__ module.
51623
51624 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51625
51626         * modules/byteswap (License): Re-license as LGPLv2+.
51627
51628 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51629
51630         * doc/Makefile: Add pdf target.
51631
51632 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51633
51634         * modules/inline (License): Use 'unlimited', since there are only
51635         *.m4 files in this module.
51636
51637 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51638             Bruno Haible  <bruno@clisp.org>
51639
51640         Add support for HP C 7.1 on OpenVMS 8.3.
51641         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51642
51643 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51644
51645         Update VMS specifics.
51646         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51647
51648 2008-03-02  Jim Meyering  <meyering@redhat.com>
51649
51650         Remove the last dependency on the "free" module.
51651         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51652         Reported by Bob Proulx.
51653
51654         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51655
51656         Remove useless "if" tests before free.  Deprecate "free" module.
51657         * doc/posix-functions/free.texi: Mention that this
51658         module is no longer useful.
51659         * modules/free (Notice): Say this module is obsolete.
51660         * modules/readutmp (Depends-on): Remove free.
51661         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51662         * lib/putenv.c (putenv): Likewise.
51663         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51664         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51665         * tests/test-c-strcasestr.c (main): Likewise.
51666         * tests/test-c-strstr.c (main): Likewise.
51667         * tests/test-mbscasestr1.c (main): Likewise.
51668         * tests/test-mbscasestr2.c (main): Likewise.
51669         * tests/test-mbsstr1.c (main): Likewise.
51670         * tests/test-mbsstr2.c (main): Likewise.
51671         * tests/test-memmem.c (main): Likewise.
51672         * tests/test-strcasestr.c (main): Likewise.
51673         * tests/test-striconv.c (main): Likewise.
51674         * tests/test-striconveh.c (main): Likewise.
51675         * tests/test-striconveha.c (main): Likewise.
51676         * tests/test-strstr.c (main): Likewise.
51677
51678         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51679
51680         bootstrap: sync from coreutils again
51681         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51682
51683 2008-03-01  Jim Meyering  <meyering@redhat.com>
51684
51685         bootstrap: sync from coreutils
51686         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51687         also when the target doesn't exist.
51688
51689 2008-03-01  Eric Blake  <ebb9@byu.net>
51690
51691         Fix bugs in last patch.
51692         * lib/memchr2.c (memchr2): Fix typo.
51693         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51694         extension.
51695         Reported by Bruce Korb.
51696
51697         New module 'memchr2'.
51698         * modules/memchr2: New file.
51699         * modules/memchr2-tests: Likewise.
51700         * lib/memchr2.h: Likewise.
51701         * lib/memchr2.c: Likewise, based on memchr.c.
51702         * tests/test-memchr2.c: New test.
51703         * MODULES.html.sh (String handling): Add memchr2.
51704
51705 2008-02-29  Bruno Haible  <bruno@clisp.org>
51706
51707         * modules/freadseek-tests: New file.
51708         * tests/test-freadseek.sh: New file.
51709         * tests/test-freadseek.c: New file.
51710
51711         New module 'freadseek'.
51712         * modules/freadseek: New file.
51713         * lib/freadseek.h: New file.
51714         * lib/freadseek.c: New file.
51715         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51716
51717 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51718
51719         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51720         wydawca.
51721
51722         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51723         program_invocation_name and program_invocation_short_name are
51724         present.
51725
51726 2008-02-28  Bruno Haible  <bruno@clisp.org>
51727
51728         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51729         * tests/test-freadptr.sh: Also test non-seekable stdin.
51730
51731 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51732
51733         * build-aux/bootstrap (source_base, m4_base)
51734         (doc_base, tests_base): New variables.
51735         (gnulib_tool_options): Do not hardcode base directories, use
51736         the above variables instead.
51737
51738 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51739
51740         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51741
51742 2008-02-28  Bruno Haible  <bruno@clisp.org>
51743
51744         * modules/freadptr-tests: New file.
51745         * tests/test-freadptr.sh: New file.
51746         * tests/test-freadptr.c: New file.
51747
51748         New module 'freadptr'.
51749         * modules/freadptr: New file.
51750         * lib/freadptr.h: New file.
51751         * lib/freadptr.c: New file.
51752         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51753
51754 2008-02-26  Karl Berry  <karl@freefriends.org>
51755
51756         Sync from Libtool:
51757         * libltdl/argz.c (argz_add, argz_count): New functions.
51758         * libltdl/argz.in.h: Declare them.
51759         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51760
51761 2008-02-22  Bruno Haible  <bruno@clisp.org>
51762
51763         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51764         is a pointer type.  Needed for HP-UX 10.
51765         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51766         * doc/posix-functions/gmtime_r.texi: Likewise.
51767         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51768
51769 2008-02-24  Bruno Haible  <bruno@clisp.org>
51770
51771         * modules/environ-tests: New file.
51772         * tests/test-environ.c: New file.
51773
51774         New module 'environ'.
51775         * modules/environ: New file.
51776         * lib/unistd.in.h (environ): New declaration.
51777         * m4/environ.m4: New file.
51778         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51779         after use.
51780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51781         HAVE_DECL_ENVIRON.
51782         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51783         HAVE_DECL_ENVIRON.
51784         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51785         wrong claim that 'environ' is missing on some systems.
51786         * modules/execute (Depends-on): Add environ.
51787         * lib/execute.c (environ): Remove fallback declaration.
51788         * modules/pipe (Depends-on): Add environ.
51789         * lib/pipe.c (environ): Remove fallback declaration.
51790         * modules/setenv (Depends-on): Add environ.
51791         * lib/setenv.c (environ): Remove fallback declaration.
51792         * modules/unsetenv (Depends-on): Add environ.
51793         * lib/unsetenv.c (environ): Remove fallback declaration.
51794         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51795         m4/environ.m4.
51796         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51797         (gl_PREREQ_UNSETENV): Likewise.
51798
51799 2008-02-24  Bruno Haible  <bruno@clisp.org>
51800
51801         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51802
51803 2008-02-20  Bob Proulx  <bob@proulx.com>
51804
51805         Enable use of older two part flavor 'git describe'.
51806         * build-aux/git-version-gen: If using the older two part flavor of
51807         git version then recreate the third part now present in the
51808         newer three part flavor of git describe.
51809
51810 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51811
51812         * lib/fts.c (fts_build): Typo correction to comment.
51813
51814 2008-02-17  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51817         generating no-op conflicts.
51818
51819 2008-02-17  Bruno Haible  <bruno@clisp.org>
51820
51821         Speed up by 10%.
51822         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51823         result_entries, rather than an index-based loop.
51824
51825 2008-02-17  Bruno Haible  <bruno@clisp.org>
51826
51827         Speed up by 25%.
51828         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51829         'hashcode_cached'.
51830         (entry_create): New function.
51831         (entry_hashcode): Use the cached hashcode if possible.
51832         (read_changelog_file, try_split_merged_entry): Use entry_create.
51833
51834 2008-02-17  Bruno Haible  <bruno@clisp.org>
51835
51836         Speed up from O(n^2) to O(n) for long ChangeLog files.
51837         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51838         (read_changelog_file): Change implementation of entries_reversed list
51839         to rbtreehash.
51840         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51841
51842 2008-02-17  Bruno Haible  <bruno@clisp.org>
51843
51844         New option --split-merged-entry.
51845         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51846         (find_paragraph_end, try_split_merged_entry): New functions.
51847         (long_options): Add option --split-merged-entry.
51848         (usage): Document option --split-merged-entry.
51849         (main): Implement option --split-merged-entry.
51850         Reported by Eric Blake.
51851
51852 2008-02-17  Bruno Haible  <bruno@clisp.org>
51853
51854         * lib/git-merge-changelog.c: Include c-strstr.h.
51855         (main): Support the "git pull --rebase" situation.
51856         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51857         Reported by Eric Blake.
51858
51859 2008-02-16  Eric Blake  <ebb9@byu.net>
51860
51861         Avoid doubling \ in common case of "c-maybe" quoting style.
51862         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51863         eliding outer quotes.
51864         * lib/quotearg.h: Document this.
51865         * tests/test-quotearg.c (result_strings, inputs, results_g)
51866         (flag_results, locale_results): Test it by adding a new string to
51867         each test group.
51868         (compare_strings): Test new string.
51869
51870 2008-02-13  Eric Blake  <ebb9@byu.net>
51871
51872         Avoid trigraph quoting in default output.
51873         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51874         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51875         unless explicitly requested.
51876         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51877
51878 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51879
51880         Don't rely on signed integer overflowing to negative value.
51881         * lib/getugroups.c (getugroups): Include <limits.h>.
51882         Instead, compare against INT_MAX, and increment only if the test passes.
51883
51884 2008-02-13  Jim Meyering  <meyering@redhat.com>
51885         and Eric Blake  <ebb9@byu.net>
51886
51887         Avoid shadowing warning and compile errors on Linux.
51888         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51889         forwarding macros on Linux.
51890         (dcgettext): Define a stub, for Linux.
51891         (results_g, main): Avoid warnings.
51892
51893 2008-02-12  Eric Blake  <ebb9@byu.net>
51894
51895         Silence warning in last patch.
51896         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51897
51898         Quotearg part 4: add tests, fix c-maybe colon quoting.
51899         * lib/quotearg.h: Improve documentation.
51900         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51901         escapes when adding outer quotes.  When quoting trigraphs, use
51902         valid C notation.  When quoting NUL, omit extra characters if next
51903         character is not digit.  Alter prototype.
51904         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51905         callers.
51906         * modules/quotearg-tests: New module.
51907         * tests/test-quotearg.c: New test.
51908
51909 2008-02-07  Eric Blake  <ebb9@byu.net>
51910
51911         Quotearg part 3: add flag to control outer quote elision.
51912         * lib/quotearg.h (c_maybe_quoting_style): New style.
51913         (enum quoting_flags): Better documentation of flags.
51914         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51915         c-maybe style.
51916         (quotearg_buffer_restyled): Handle new flag to elide outer
51917         quotes.
51918
51919         Quotearg part 2: add flag that can control NUL elision.
51920         * lib/quotearg.h (set_quoting_flags): New prototype.
51921         * lib/quotearg.c (struct quoting_options): Add flag field.
51922         (set_quoting_flags): New function.
51923         (quotearg_buffer_restyled): Add flags parameter.
51924         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51925         (quotearg_n_options): Set the flag, since length cannot be
51926         returned.
51927         (quoting_options_from_style): Default flags correctly.
51928
51929         Quotearg part 1: more wrappers, restore quotearg_char state.
51930         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51931         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51932         (quotearg_colon_mem): New wrappers.
51933         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51934         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51935         functions.
51936         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51937         (quotearg_colon_mem): New functions.
51938
51939 2008-02-11  Bruno Haible  <bruno@clisp.org>
51940
51941         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51942         library in the current directory: it does not work with parallel make.
51943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51944
51945 2008-02-11  Bruno Haible  <bruno@clisp.org>
51946
51947         * .gitattributes: New file.
51948
51949 2008-02-11  Jim Meyering  <meyering@redhat.com>
51950
51951         useless-if-before-free: Fix reversed exit values.
51952         * build-aux/useless-if-before-free: Use correct values
51953         for EXIT_MATCH and EXIT_NO_MATCH.
51954
51955         * build-aux/useless-if-before-free: Close stdout carefully.
51956
51957 2008-02-10  Bruno Haible  <bruno@clisp.org>
51958
51959         New module 'git-merge-changelog'.
51960         * modules/git-merge-changelog: New file.
51961         * lib/git-merge-changelog.c: New file.
51962
51963 2008-02-10  Jim Meyering  <meyering@redhat.com>
51964
51965         useless-if-before-free: New option: --list (-l).
51966
51967         useless-if-before-free: Don't exit immediately upon open failure.
51968         * build-aux/useless-if-before-free: Exit 2 for errors.
51969         Upon failure to open a file, don't exit immediately.
51970         Rather, just warn and continue with any remaining files.
51971
51972 2008-02-10  Bruno Haible  <bruno@clisp.org>
51973
51974         New abstract list operation 'node_set_value'.
51975         * lib/gl_list.h (gl_list_node_set_value): New function.
51976         (struct gl_list_implementation): New field node_set_value.
51977         * lib/gl_list.c (gl_list_node_set_value): New function.
51978         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51979         (gl_array_list_implementation): Update.
51980         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51981         (gl_carray_list_implementation): Update.
51982         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51983         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51984         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51985         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51986         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51987         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51988         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51989         Update.
51990         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51991         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51992         (gl_sublist_list_implementation): Update.
51993
51994 2008-02-10  Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51997         Needed when ELEMENT is #defined to 'some_type *'.
51998
51999 2008-02-10  Jim Meyering  <meyering@redhat.com>
52000
52001         New script and module: useless-if-before-free
52002         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52003         * build-aux/useless-if-before-free: New file.
52004         * modules/useless-if-before-free: New file.
52005
52006         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52007
52008         xstrtol_error: Fix typo.
52009         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52010         s/exit_failure/exit_status/.
52011
52012 2008-02-09  Jim Meyering  <meyering@redhat.com>
52013
52014         New script and module: gitlog-to-changelog
52015         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52016         * modules/gitlog-to-changelog: New file.
52017         * build-aux/gitlog-to-changelog: New file.
52018
52019 2008-02-08  Jim Meyering  <meyering@redhat.com>
52020
52021         Avoid two "parameter unused" warnings.
52022         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52023         Mark "st" as used.
52024
52025         Use "git COMMAND", not "git-COMMAND".
52026         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52027         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52028         * build-aux/git-version-gen: Use "git status", not "git-status".
52029
52030 2008-02-07  Bruno Haible  <bruno@clisp.org>
52031
52032         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52033         Avoids a crash on Windows Vista.
52034         Reported by Adam Strzelecki <ono@java.pl> via
52035         Simon Josefsson <simon@josefsson.org>.
52036
52037 2008-02-06  Bruno Haible  <bruno@clisp.org>
52038
52039         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52040         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52041         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52043         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52044         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52045         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52046         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52051         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52052         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52053         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52054         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52055         left-adjust flag.
52056         * tests/test-snprintf-posix.h (test_function): Likewise.
52057         * tests/test-sprintf-posix.h (test_function): Likewise.
52058         * tests/test-vasprintf-posix.c (test_function): Likewise.
52059         * doc/posix-functions/fprintf.texi: Update.
52060         * doc/posix-functions/printf.texi: Update.
52061         * doc/posix-functions/snprintf.texi: Update.
52062         * doc/posix-functions/sprintf.texi: Update.
52063         * doc/posix-functions/vfprintf.texi: Update.
52064         * doc/posix-functions/vprintf.texi: Update.
52065         * doc/posix-functions/vsnprintf.texi: Update.
52066         * doc/posix-functions/vsprintf.texi: Update.
52067         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52068
52069 2008-02-06  Bruno Haible  <bruno@clisp.org>
52070
52071         Fix bug introduced on 2008-01-26.
52072         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52073
52074 2008-02-06  Bruno Haible  <bruno@clisp.org>
52075
52076         Fix bug introduced on 2007-06-10.
52077         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52078         !NEED_PRINTF_FLAG_ZERO.
52079
52080 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52081
52082         getloadavg: use libperfstat on AIX5
52083         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52084
52085 2008-02-03  Bruno Haible  <bruno@clisp.org>
52086
52087         * lib/diffseq.h: Add comments about required #includes.
52088         Reported by Michael Biggs <gnulib@doubleplum.net>.
52089
52090 2008-02-01  Bruno Haible  <bruno@clisp.org>
52091
52092         * users.txt: Add gnuit.
52093
52094 2008-01-31  Bruno Haible  <bruno@clisp.org>
52095
52096         * lib/md4.c (set_uint32): Mark as inline.
52097         * lib/md5.c (set_uint32): Likewise.
52098         * lib/sha1.c (set_uint32): Likewise.
52099         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52100         * m4/md5.m4 (gl_MD5): Likewise.
52101         * m4/sha1.m4 (gl_SHA1): Likewise.
52102
52103 2008-01-31  Jim Meyering  <meyering@redhat.com>
52104
52105         Use "sizeof VAR", rather than a literal "4".
52106         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52107         * lib/md4.c (md4_read_ctx): Likewise.
52108         * lib/sha1.c (sha1_read_ctx): Likewise.
52109
52110 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52111
52112         * tests/test-sha1.c: New file, based on test-md5.c.
52113
52114         * modules/crypto/sha1-tests: New file.
52115
52116 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52117
52118         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52119
52120 2008-01-31  Jim Meyering  <meyering@redhat.com>
52121
52122         Prefer "sizeof v" over the equivalent "4".
52123         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52124         * lib/md5.c (set_uint32): Likewise.
52125         * lib/sha1.c (set_uint32): Likewise.
52126
52127 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52128
52129         * lib/sha1.c (set_uint32): Mark function as static.
52130
52131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52132
52133         md2: clarify comments to say that alignment is not required.
52134         * lib/md2.h: Remove warning about alignment in comment.
52135         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52136         never been required.
52137
52138 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52139
52140         md4: adapt alignment constraint fix from sha1.
52141         * lib/md4.c (set_uint32): New function, from sha1.c
52142         (md4_read_ctx): Use it.
52143         (md4_finish_ctx): Doc fix.
52144         * lib/md4.h: Doc fix.
52145
52146 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52147
52148         md5: adapt alignment constraint fix from sha1.
52149         * lib/md5.c (set_uint32): New function, from sha1.c
52150         (md5_read_ctx): Use it.
52151         (md5_finish_ctx): Doc fix.
52152         * lib/md5.h: Doc fix.
52153
52154 2008-01-30  Peter Palfrader  <weasel@debian.org>
52155
52156         sha1: remove the result buffer alignment constraint
52157         * lib/sha1.c (set_uint32): New function.
52158         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52159         constraint.
52160         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52161         * lib/sha1.h: Likewise.
52162
52163 2008-01-30  Andreas Schwab  <schwab@suse.de>
52164             Bruno Haible  <bruno@clisp.org>
52165
52166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52167         correct definition of LDBL_MIN_EXP.
52168
52169 2008-01-30  Karl Berry  <karl@gnu.org>
52170
52171         * config/srclist-update: try to preserve x bit on updates.
52172         * config/srclistvars.sh: update for karl.
52173
52174 2008-01-29  Jim Meyering  <meyering@redhat.com>
52175
52176         vasnprintf.c: Avoid warning about unused label
52177         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52178         "overflow" label definition and associated code with the
52179         same cpp condition that guards the sole use of that label.
52180
52181 2008-01-26  Bruno Haible  <bruno@clisp.org>
52182
52183         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52184         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52185         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52186         * lib/isnanl-nolibm.h (isnanl): Likewise.
52187         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52188
52189 2008-01-26  Bruno Haible  <bruno@clisp.org>
52190
52191         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52192         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52193
52194 2008-01-26  Bruno Haible  <bruno@clisp.org>
52195
52196         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52197         GCC >= 4.0 built-in.
52198         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52199
52200 2008-01-26  Bruno Haible  <bruno@clisp.org>
52201
52202         Rename isnan, applicable to 'double' only, to isnand.
52203         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52204         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52205         (configure.ac): Update.
52206         (Include): Replace "isnan.h" with "isnand.h".
52207         * m4/isnand.m4: Renamed from m4/isnan.m4.
52208         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52209         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52210         instead of isnan.c.
52211         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52212         instead of HAVE_ISNAN_IN_LIBC.
52213         (isnand): Renamed from isnan.
52214         * lib/isnand.c: New file.
52215         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52216         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52217         (Makefile.am): Update.
52218         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52219         Include isnand.h instead of isnan.h.
52220         (main): Test isnand instead of isnan.
52221         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52222         isnan-nolibm.
52223         * modules/frexp (Depends-on): Likewise.
52224         * modules/frexp-tests (Depends-on): Likewise.
52225         * modules/frexp-nolibm (Depends-on): Likewise.
52226         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52227         * modules/isfinite (Depends-on): Likewise.
52228         * modules/round-tests (Depends-on): Likewise.
52229         * modules/signbit (Depends-on): Likewise.
52230         * modules/signbit-tests (Depends-on): Likewise.
52231         * modules/snprintf-posix (Depends-on): Likewise.
52232         * modules/sprintf-posix (Depends-on): Likewise.
52233         * modules/trunc-tests (Depends-on): Likewise.
52234         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52235         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52236         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52237         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52238         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52239         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52240         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52241         * modules/vasnprintf-posix (Depends-on): Likewise.
52242         * modules/vasprintf-posix (Depends-on): Likewise.
52243         * modules/vfprintf-posix (Depends-on): Likewise.
52244         * modules/vsnprintf-posix (Depends-on): Likewise.
52245         * modules/vsprintf-posix (Depends-on): Likewise.
52246         * lib/frexp.c: Include isnand.h instead of isnan.h.
52247         (ISNAN): Set to isnand instead of isnan.
52248         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52249         (gl_isfinited): Use isnand instead of isnan.
52250         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52251         (gl_signbitd): Use isnand instead of isnan.
52252         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52253         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52254         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52255         (main): Use isnand instead of isnan.
52256         * tests/test-round1.c: Include isnand.h.
52257         (main): Use isnand instead of isnan.
52258         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52259         (ISNAN): Set to isnand instead of isnan.
52260         * tests/test-trunc1.c: Include isnand.h.
52261         (main): Use isnand instead of isnan.
52262         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52263         (equal): Use isnand instead of isnan.
52264         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52265         isnand-nolibm.
52266         * NEWS: Mention the change.
52267
52268 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52269             Bruno Haible  <bruno@clisp.org>
52270
52271         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52272         the GCC builtins for signbits are present and set
52273         REPLACE_SIGNBIT_USING_GCC if so.
52274         * lib/math.in.h (signbit): Define using GCC builtins if
52275         REPLACE_SIGNBIT_USING_GCC is set.
52276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52277         REPLACE_SIGNBIT_USING_GCC.
52278         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52279
52280 2008-01-25  Jim Meyering  <meyering@redhat.com>
52281
52282         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52283         * lib/poll.c: Include <config.h>, not "config.h".
52284         * tests/test-getaddrinfo.c: Likewise.
52285
52286 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52287
52288         * modules/sockets-tests: New file.
52289
52290 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52291
52292         * modules/sockets: New module, can be used to call WSA_Startup and
52293         WSA_Cleanup when needed.
52294
52295         * lib/sockets.h, lib/sockets.c: New files.
52296
52297         * m4/sockets.m4: New file.
52298
52299         * tests/test-sockets.c: New file.
52300
52301 2008-01-19  Bruno Haible  <bruno@clisp.org>
52302
52303         * doc/posix-headers: Renamed from doc/headers.
52304         * doc/posix-functions: Renamed from doc/functions.
52305         * doc/gnulib.texi: Update.
52306
52307 2008-01-19  Bruno Haible  <bruno@clisp.org>
52308
52309         * doc/glibc-functions/strcasestr.texi: Include contents of
52310         doc/functions/strcasestr.texi, fixing the list of platforms.
52311         * doc/functions/strcasestr.texi: Remove file.
52312
52313 2008-01-19  Bruno Haible  <bruno@clisp.org>
52314
52315         * doc/glibc-functions/memmem.texi: Include contents of
52316         doc/functions/memmem.texi.
52317         * doc/functions/memmem.texi: Remove file.
52318
52319 2008-01-18  Bruno Haible  <bruno@clisp.org>
52320
52321         * doc/glibc-functions/*.texi: New files.
52322         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52323         to use the new files.
52324
52325 2008-01-17  Bruno Haible  <bruno@clisp.org>
52326
52327         * tests/test-gethostname.c (main): Fix printf statement.
52328
52329 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52330
52331         * modules/gethostname-tests: New file.
52332
52333         * tests/test-gethostname.c: New file.
52334
52335 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52336
52337         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52338         used by the UNAME case.  Reported by Bruno Haible
52339         <bruno@clisp.org>.
52340
52341 2008-01-17  Eric Blake  <ebb9@byu.net>
52342
52343         Convert c-strcasestr to be more efficient.
52344         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52345         (Depends-on): Add c-strcase, remove malloca, strnlen.
52346         * tests/test-c-strcasestr.c (main): Enhance test.
52347         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52348
52349 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52350
52351         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52352         Use it in creating po/Makevars.
52353
52354 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52355
52356         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52357         Applications that requires it should initialize libgcrypt
52358         manually.
52359
52360 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52361
52362         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52363
52364 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52365
52366         Fix problem with getdate on mingw32 reported by Simon Josefsson
52367         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52368         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52369         tzname", when deciding whether to declare tzname.
52370         * lib/strftime.c (tzname): Likewise.
52371
52372 2008-01-15  Bruno Haible  <bruno@clisp.org>
52373
52374         Work around a MacOS X 10.5 bug in frexpl().
52375         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52376         * doc/functions/frexpl.texi: Document the bug.
52377         Reported by Elias Pipping <pipping@gentoo.org>.
52378
52379 2008-01-14  Eric Blake  <ebb9@byu.net>
52380
52381         Touch up previous patch.
52382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52383         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52384
52385         Convert strcasestr module to use Two-Way algorithm.
52386         * modules/strcasestr-simple: New module, based on the old
52387         strcasestr, but with Two-Way rather than KMP.
52388         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52389         * lib/string.in.h (rpl_strcasestr): Declare.
52390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52391         performance.
52392         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52393         * modules/string (Makefile.am): Support strcasestr.
52394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52395         * modules/strcasestr-tests (Depends-on): Check for alarm.
52396         * tests/test-strcasestr.c: Augment test.
52397         * lib/str-two-way.h: Clean up stray macro.
52398         * NEWS: Document new module.
52399         * MODULES.html.sh (string handling): Likewise.
52400         * doc/functions/strcasestr.texi: New file.
52401         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52402         here, since it is not a POSIX function.
52403
52404 2008-01-14  Colin Watson  <cjwatson@debian.org>
52405             Bruno Haible  <bruno@clisp.org>
52406
52407         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52408         works fine; if not, set REPLACE_STRSIGNAL.
52409         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52411         REPLACE_STRSIGNAL.
52412         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52413         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52414         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52415
52416 2008-01-14  Bruno Haible  <bruno@clisp.org>
52417
52418         * modules/strsignal (Include): Change to <string.h>.
52419
52420 2008-01-14  Colin Watson  <cjwatson@debian.org>
52421
52422         * modules/argp (Notice): Add a notice recommending to change
52423         XGETTEXT_OPTIONS.
52424         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52425
52426 2008-01-13  Colin Watson  <cjwatson@debian.org>
52427
52428         * modules/strsignal-tests: New file.
52429         * tests/test-strsignal.c: New file.
52430
52431         * lib/strsignal.c: New file, from glibc with modifications.
52432         * lib/siglist.h: New file, from glibc with modifications.
52433         * lib/string.in.h (strsignal): New declaration.
52434         * m4/strsignal.m4: New file.
52435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52436         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52437         * modules/strsignal: New file.
52438         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52439         HAVE_DECL_STRSIGNAL.
52440
52441 2008-01-13  Bruno Haible  <bruno@clisp.org>
52442
52443         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52444         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52445         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52446         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52447
52448 2008-01-13  Bruno Haible  <bruno@clisp.org>
52449
52450         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52451         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52452         * lib/argp.h (__attribute__): Likewise.
52453         * lib/c-stack.c (__attribute__): Likewise.
52454         * lib/error.h (__attribute__): Likewise.
52455         * lib/fts.c (__attribute__): Likewise.
52456         * lib/openat.h (__attribute__): Likewise.
52457         * lib/stdio.in.h (__attribute__): Likewise.
52458         * lib/string.in.h (__attribute__): Likewise.
52459         * lib/utimens.c (__attribute__): Likewise.
52460         * lib/vasnprintf.h (__attribute__): Likewise.
52461         * lib/xalloc.h (__attribute__): Likewise.
52462         * lib/xprintf.h (__attribute__): Likewise.
52463         * lib/xstrtol.h (__attribute__): Likewise.
52464         * lib/xvasprintf.h (__attribute__): Likewise.
52465
52466 2008-01-12  Bruno Haible  <bruno@clisp.org>
52467
52468         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52469         * doc/glibc-headers/a.out.texi: New file.
52470         * doc/glibc-headers/aliases.texi: New file.
52471         * doc/glibc-headers/alloca.texi: New file.
52472         * doc/glibc-headers/ar.texi: New file.
52473         * doc/glibc-headers/argp.texi: New file.
52474         * doc/glibc-headers/argz.texi: New file.
52475         * doc/glibc-headers/byteswap.texi: New file.
52476         * doc/glibc-headers/crypt.texi: New file.
52477         * doc/glibc-headers/endian.texi: New file.
52478         * doc/glibc-headers/envz.texi: New file.
52479         * doc/glibc-headers/err.texi: New file.
52480         * doc/glibc-headers/error.texi: New file.
52481         * doc/glibc-headers/execinfo.texi: New file.
52482         * doc/glibc-headers/fpu_control.texi: New file.
52483         * doc/glibc-headers/fstab.texi: New file.
52484         * doc/glibc-headers/fts.texi: New file.
52485         * doc/glibc-headers/getopt.texi: New file.
52486         * doc/glibc-headers/ieee754.texi: New file.
52487         * doc/glibc-headers/ifaddrs.texi: New file.
52488         * doc/glibc-headers/libintl.texi: New file.
52489         * doc/glibc-headers/mcheck.texi: New file.
52490         * doc/glibc-headers/mntent.texi: New file.
52491         * doc/glibc-headers/obstack.texi: New file.
52492         * doc/glibc-headers/paths.texi: New file.
52493         * doc/glibc-headers/printf.texi: New file.
52494         * doc/glibc-headers/pty.texi: New file.
52495         * doc/glibc-headers/resolv.texi: New file.
52496         * doc/glibc-headers/shadow.texi: New file.
52497         * doc/glibc-headers/sysexits.texi: New file.
52498         * doc/glibc-headers/ttyent.texi: New file.
52499
52500 2008-01-12  Jim Meyering  <meyering@redhat.com>
52501
52502         announce-gen: emit Gnulib's git-based version string.
52503         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52504         New option --gnulib-version=V, where V is expected to be
52505         the output of running git describe in the gnulib directory.
52506         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52507         not useful, and plan to stop publishing an xdelta file with each
52508         coreutils release.
52509
52510         * build-aux/announce-gen: Also check for lzma-compressed files.
52511
52512 2008-01-11  Bruno Haible  <bruno@clisp.org>
52513
52514         * tests/test-memmem.c (main): Increase maximum allowed time.
52515         * tests/test-strstr.c (main): Likewise.
52516
52517 2008-01-11  Bruno Haible  <bruno@clisp.org>
52518
52519         * doc/functions/memmem.texi: Add more precisions about platforms.
52520         * doc/functions/strstr.texi: Likewise.
52521
52522 2008-01-10  Eric Blake  <ebb9@byu.net>
52523
52524         * m4/strstr.m4: Delete cruft from copy-n-paste.
52525         Reported by Bruno Haible.
52526
52527 2008-01-10  Bruno Haible  <bruno@clisp.org>
52528
52529         Make c-strstr rely on strstr.
52530         * lib/c-strstr.c: Don't include str-kmp.h.
52531         (c_strstr): Define in terms of strstr.
52532         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52533         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52534
52535 2008-01-10  Bruno Haible  <bruno@clisp.org>
52536
52537         * doc/gnulib.texi (String Functions in C Locale): New section.
52538         * doc/c-ctype.texi: New file.
52539         * doc/c-strcase.texi: New file.
52540         * doc/c-strcaseeq.texi: New file.
52541         * doc/c-strcasestr.texi: New file.
52542         * doc/c-strstr.texi: New file.
52543         * doc/c-strtod.texi: New file.
52544         * doc/c-strtold.texi: New file.
52545
52546 2008-01-10  Eric Blake  <ebb9@byu.net>
52547
52548         * lib/relocatable.h: Fix a comment.
52549
52550 2008-01-10  Eric Blake  <ebb9@byu.net>
52551
52552         Share two-way algorithm.
52553         * lib/str-two-way.h: New file, merged from...
52554         * lib/memmem.c: ...here...
52555         * lib/strstr.c: ...and here.
52556         * modules/memmem (Files): Use it.
52557         * modules/strstr (Files): Likewise.
52558
52559         Avoid quadratic strstr implementations.
52560         * lib/strstr.c: New file.
52561         * m4/strstr.m4: Likewise.
52562         * modules/strstr: Likewise.
52563         * modules/strstr-tests: Likewise.
52564         * tests/test-strstr.c: Likewise.
52565         * lib/string.in.h (rpl_strstr): Declare.
52566         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52567         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52568         * modules/string (Makefile.am): Likewise.
52569         * MODULES.html.sh (string handling): Mention new module.
52570         * doc/functions/strstr.texi (strstr): Document the bug.
52571
52572 2008-01-10  Bruno Haible  <bruno@clisp.org>
52573
52574         * lib/relocatable.h (relocate): State whether result is freshly
52575         allocated or not.
52576         * lib/relocatable.c (relocate): Return a freshly allocated string
52577         instead of a pointer to a privately held string.
52578         Reported by Sylvain Beucler <beuc@gnu.org>.
52579
52580 2008-01-10  Colin Watson  <cjwatson@debian.org>
52581
52582         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52583         s/S_ISNLK/S_ISLNK/.
52584
52585 2008-01-09  Bruno Haible  <bruno@clisp.org>
52586
52587         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52588         and other files.
52589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52590         if it's only a guess.
52591         * modules/memmem: Simplify by depending on memmem-simple.
52592
52593 2008-01-09  Bruno Haible  <bruno@clisp.org>
52594
52595         Work around OpenBSD 4.0 tdelete() bug.
52596         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52597         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52598         macros and don't redefine the enum values.
52599         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52600         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52601         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52602
52603 2008-01-09  Bruno Haible  <bruno@clisp.org>
52604
52605         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52606         (main): Don't perform the tests if setlocale did not install a UTF-8
52607         locale. Needed on OpenBSD 4.0.
52608         * modules/wcwidth-tests (Depends-on): Add localcharset.
52609
52610 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52613         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52614         * NEWS: announce this.
52615         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52616
52617 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52618         and Eric Blake  <ebb9@byu.net>
52619
52620         Add memmem-simple module.
52621         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52622         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52623         * modules/memmem-simple: New file.
52624         * modules/memmem (Description): Tweak.
52625         * MODULES.html.sh (string handling): Mention new module.
52626         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52627         addressed by memmem-simple.
52628         * NEWS: Document the difference.
52629
52630 2008-01-09  Eric Blake  <ebb9@byu.net>
52631
52632         Give gcc some memmem optimization hints.
52633         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52634         (strcasestr): Declare as pure.
52635         * modules/memmem (Maintainer): Claim my implementation.
52636
52637 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52638
52639         Support AIX 6.1 and higher.
52640         * build-aux/config.libpath: Likewise.
52641         * build-aux/config.rpath: Likewise.
52642
52643 2008-01-08  Jim Meyering  <meyering@redhat.com>
52644             Bruno Haible  <bruno@clisp.org>
52645
52646         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52647         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52648         Reported by Peter Fales in
52649         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52650
52651 2008-01-08  Bruno Haible  <bruno@clisp.org>
52652
52653         * modules/unictype/category-of (Depends-on): Add
52654         unictype/category-none.
52655         * modules/unictype/category-and-tests (Depends-on): Add
52656         unictype/category-{L,N,Lu,Nd}.
52657         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52658         * modules/unictype/category-or-tests (Depends-on): Add
52659         unictype/category-{L,N}.
52660         * modules/unictype/category-name-tests (Depends-on): Add
52661         unictype/category-{Z,Nl}.
52662         Reported by Simon Josefsson.
52663
52664 2008-01-08  Bruno Haible  <bruno@clisp.org>
52665
52666         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52667         convention better.
52668         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52669         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52670         Reported by Peter Miller <millerp@canb.auug.org.au>.
52671
52672 2008-01-08  Eric Blake  <ebb9@byu.net>
52673
52674         Rewrite memmem to guarantee linear complexity without malloc.
52675         * lib/memmem.c (memmem): Use Two-Way rather than
52676         Knuth-Morris-Pratt, to allow O(1) space usage.
52677         (critical_factorization, two_way_short_needle)
52678         (two_way_long_needle): New functions.
52679         (knuth_morris_pratt): Delete.
52680         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52681         Add stdint.
52682         * tests/test-memmem.c (main): Add tests for periodic needle and
52683         sublinear performance.
52684         * doc/functions/memmem.texi (memmem): Document other deficiencies
52685         in cygwin and older glibc.
52686
52687 2008-01-08  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52690         augmentation.
52691
52692 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52693
52694         Add a configure time option: --disable-acl.
52695         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52696         AC_ARG_ENABLE(acl).
52697
52698 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52699
52700         * tests/test-localename.c: Don't include obsolete "setenv.h".
52701
52702         * modules/localename-tests (Depends-on): Need unsetenv.
52703
52704 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52705
52706         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52707
52708 2008-01-06  Colin Watson  <cjwatson@debian.org>
52709
52710         * users.txt: Add man-db.
52711
52712 2008-01-07  Bruno Haible  <bruno@clisp.org>
52713
52714         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52715         previous section name.
52716
52717 2008-01-07  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/progname.c (set_program_name): Don't strip off a leading
52720         "lt-" prefix outside a .libs directory.
52721         Suggested by Paul Eggert.
52722
52723 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52724             Bruno Haible  <bruno@clisp.org>
52725
52726         Improve memory cleanup in 'relocatable' module.
52727         * lib/relocatable.h (compute_curr_prefix): Change return type to
52728         'char *'.
52729         * lib/relocatable.c (compute_curr_prefix): Change return type to
52730         'char *'. Free curr_installdir after use.
52731         (relocate): Free curr_prefix_better after use.
52732         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52733
52734 2008-01-01  Bruno Haible  <bruno@clisp.org>
52735
52736         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52737         failure on older glibc systems.
52738         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52739
52740 2008-01-05  Eric Blake  <ebb9@byu.net>
52741
52742         Avoid quadratic system memmem.
52743         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52744         Reported by Ralf Wildenhues.
52745
52746         Fix memmem test for mingw.
52747         * modules/memmem-tests (configure.ac): Check for alarm.
52748         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52749         it.
52750         * doc/functions/memmem.texi: New file.
52751         * doc/gnulib.texi (Function Substitutes): Add memmem.
52752         Reported by Bruno Haible.
52753
52754 2008-01-04  Bruno Haible  <bruno@clisp.org>
52755
52756         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52757         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52758         gl_HEADER_STRING_H_DEFAULTS.
52759
52760 2008-01-04  Eric Blake  <ebb9@byu.net>
52761
52762         Shorten duration of memmem test.
52763         * tests/test-memmem.c (main): Use alarm to declare failure if test
52764         is taking too long.
52765         Reported by Ralf Wildenhues.
52766
52767 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52768
52769         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52770         string, needed by strerror.
52771
52772 2008-01-03  Colin Watson  <cjwatson@debian.org>
52773             Bruno Haible  <bruno@clisp.org>
52774
52775         * doc/gnulib-tool.texi (Localization): New section.
52776
52777 2008-01-02  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52780         variables to 'unsigned char *' type.
52781         Reported by Paul Eggert.
52782
52783 2008-01-02  Jim Meyering  <jim@meyering.net>
52784
52785         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52786
52787 2007-12-31  Jim Meyering  <jim@meyering.net>
52788
52789         Avoid use of private FTS type name.
52790         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52791
52792 2007-12-30  Karl Berry  <karl@gnu.org>
52793
52794         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52795         work around defect in Texinfo and/or the standalone Info browser.
52796
52797 2007-12-30  Bruno Haible  <bruno@clisp.org>
52798
52799         Unify 5 copies of the KMP code.
52800         * lib/str-kmp.h: New file.
52801         * lib/c-strcasestr.c: Include str-kmp.h.
52802         (knuth_morris_pratt): Remove function.
52803         (c_strcasestr): Update.
52804         * lib/c-strstr.c: Include str-kmp.h.
52805         (knuth_morris_pratt): Remove function.
52806         (c_strcasestr): Update.
52807         * lib/mbscasestr.c: Include str-kmp.h.
52808         (knuth_morris_pratt_unibyte): Remove function.
52809         * lib/mbsstr.c: Include str-kmp.h.
52810         (knuth_morris_pratt_unibyte): Remove function.
52811         * lib/strcasestr.c: Include str-kmp.h.
52812         (knuth_morris_pratt): Remove function.
52813         (strcasestr): Update.
52814         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52815         * modules/c-strstr (Files): Likewise.
52816         * modules/mbscasestr (Files): Likewise.
52817         * modules/mbsstr (Files): Likewise.
52818         * modules/strcasestr (Files): Likewise.
52819         Suggested by Paul Eggert.
52820
52821 2007-12-30  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52824         defined.
52825
52826 2007-12-30  Bruno Haible  <bruno@clisp.org>
52827
52828         * lib/xmalloca.h: Include xalloc.h.
52829         (xnmalloca): New macro.
52830
52831 2007-12-30  Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/malloca.h (nmalloca): New macro.
52834         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52835         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52836         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52837         knuth_morris_pratt_multibyte): Likewise.
52838         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52839         knuth_morris_pratt_multibyte): Likewise.
52840         * lib/memmem.c (knuth_morris_pratt): Likewise.
52841         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52842
52843 2007-12-25  Bruno Haible  <bruno@clisp.org>
52844
52845         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52846         * lib/glob.c: Don't include openat.h.
52847         (link_exists2_p): Add back the code that deals with the
52848         !GLOB_ALTDIRFUNC case.
52849         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52850         let it do the filename concatenation.
52851         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52852         * modules/glob (Depends-on): Remove openat.
52853
52854 2007-12-31  Bruno Haible  <bruno@clisp.org>
52855
52856         * modules/dirfd (License): Change to LGPLv2+.
52857         Approved by Jim Meyering.
52858
52859 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52860
52861         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52862         when multiplying M by sizeof (size_t).
52863
52864 2007-12-10  Martin Lambers  <marlam@marlam.de>
52865
52866         Override getpagesize on mingw.
52867         * lib/getpagesize.c: New file.
52868         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52869         * modules/getpagesize (Files): Add lib/getpagesize.c.
52870         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52872         REPLACE_GETPAGESIZE.
52873         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52874
52875 2007-12-25  Bruno Haible  <bruno@clisp.org>
52876
52877         * modules/localcharset (Notice): New field.
52878         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52879         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52880
52881 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52882             Bruno Haible  <bruno@clisp.org>
52883
52884         Avoid using the syntax symbol() in formatted documentation.
52885         * MODULES.html.sh (func_module): When replacing symbol() with a
52886         hyperlink, remove the parentheses. Show an error if some remain.
52887         Recognize and render the '...' syntax.
52888         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52889         Rework. Add paragraph about GCC's inlining.
52890         * doc/alloca.texi: Likewise.
52891         * doc/error.texi: Remove parentheses from symbol reference.
52892         * doc/gnulib-intro.texi: Likewise.
52893         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52894         * modules/fnmatch (Description): Reword to say "the ... function".
52895         * modules/full-read (Description): Likewise.
52896         * modules/full-write (Description): Likewise.
52897         * modules/safe-read (Description): Likewise.
52898         * modules/safe-write (Description): Likewise.
52899         * modules/strchrnul (Description): Likewise.
52900         * modules/trim (Description): Likewise.
52901         * modules/error (Description): Remove parentheses from symbol
52902         references.
52903         * modules/verror (Description): Likewise.
52904         Reported by Karl Berry.
52905
52906 2007-12-25  Bruno Haible  <bruno@clisp.org>
52907
52908         Fixup after 2007-10-16 commit.
52909         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52910
52911 2007-12-24  Bruno Haible  <bruno@clisp.org>
52912
52913         Make --enable-relocatable work with DESTDIR.
52914         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52915         to compute installdir from destprog.
52916         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52917         also set the RELOC_DESTDIR variable.
52918         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52919
52920 2007-12-24  Bruno Haible  <bruno@clisp.org>
52921
52922         Fix link error due to xalloc_die().
52923         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52924         of xreadlink.
52925         * lib/relocwrapper.c: Update comments.
52926         * build-aux/install-reloc: Remove xreadlink.c from file list.
52927         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52928         xreadlink.c.
52929         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52930
52931 2007-12-24  Bruno Haible  <bruno@clisp.org>
52932
52933         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52934         * lib/setenv.h: Remove file.
52935         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52936         lib/setenv.h.
52937         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52938         (Depends-on): Add stdlib.
52939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52940         gl_FUNC_UNSETENV.
52941         (Include): Replace setenv.h with <stdlib.h>.
52942         * modules/unsetenv: New file.
52943         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52944         * lib/unsetenv.c: Include <stdlib.h> first.
52945         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52946         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52947         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52948         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52949         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52950         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52952         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52953         * doc/functions/unsetenv.texi: Update.
52954         * modules/xsetenv (Depends-on): Add unsetenv.
52955         * modules/getdate (Depends-on): Likewise.
52956         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52957         * lib/xsetenv.c: Don't include setenv.h.
52958         * lib/getdate.y: Likewise.
52959         * lib/relocwrapper.c: Likewise.
52960         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52961         (Depends-on): Add stdlib.
52962         * NEWS: Mention the changes.
52963         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
52964
52965 2007-12-23  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52968         indentation.
52969
52970 2007-12-23  Bruno Haible  <bruno@clisp.org>
52971
52972         * lib/c-strcasestr.c: Add more comments.
52973         * lib/c-strstr.c: Likewise.
52974         * lib/mbscasestr.c: Likewise.
52975         * lib/mbsstr.c: Likewise.
52976         * lib/strcasestr.c: Likewise.
52977         * lib/memmem.c: Likewise.
52978
52979 2007-12-23  Bruno Haible  <bruno@clisp.org>
52980
52981         * tests/test-memmem.c: Include <string.h> first.
52982
52983 2007-12-22  Bruno Haible  <bruno@clisp.org>
52984
52985         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52986         the contents of $testsbase.
52987         Reported by Ralf Wildenhues.
52988
52989 2007-12-22  Bruno Haible  <bruno@clisp.org>
52990
52991         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52992         two variables local_ldadd_before, local_ldadd_last.
52993
52994 2007-12-20  Eric Blake  <ebb9@byu.net>
52995
52996         Work around circular library issue when cross-compiling.
52997         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52998         that progname.o does not need to pull in rpl_memcmp.
52999
53000 2007-12-19  Eric Blake  <ebb9@byu.net>
53001
53002         Fix memmem to avoid O(n^2) worst-case complexity.
53003         * lib/memmem.c (knuth_morris_pratt): New function.
53004         (memmem): Use it if first few naive iterations fail.
53005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53006         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53007         * modules/memchr (License): Likewise.
53008         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53009         malloca.
53010         * tests/test-memmem.c: Rewrite, borrowing ideas from
53011         test-mbsstr1.c; the old version wouldn't even compile!
53012         * modules/memmem-tests: New file.
53013         * lib/string.in.h (rpl_memmem): Add declaration.
53014         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53016         REPLACE_MEMMEM.
53017
53018 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53021         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53022         before any system include files, and undef after them all.  This
53023         should fix a problem on VMS reported by John E. Malmberg in
53024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53025
53026 2007-12-17  Eric Blake  <ebb9@byu.net>
53027
53028         Revert addition of verify, for BSD/OS.
53029         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53030         can't handle large files, for the sake of obsolete platforms.
53031         * modules/fseeko (Depends-on): Remove verify.
53032         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53033         * doc/functions/ftello.texi (ftello): Likewise.
53034         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53035         Reported by Larry Jones.
53036
53037 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53038
53039         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53040         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53041
53042 2007-12-17  Jim Meyering  <meyering@redhat.com>
53043
53044         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53045         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53046         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53047         * modules/getcwd (Depends-on): Add openat.
53048         Reported by Petr Salinger.
53049
53050 2007-12-17  Bruno Haible  <bruno@clisp.org>
53051
53052         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53053         avoid a segmentation fault of the configure test on x86_64 systems.
53054
53055 2007-12-15  Jim Meyering  <meyering@redhat.com>
53056
53057         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53058
53059 2007-12-13  Eric Blake  <ebb9@byu.net>
53060
53061         Another fseek test.
53062         * tests/test-fseek.c (main): Also test ungetc handling.
53063         * tests/test-fseeko.c (main): Likewise.
53064         * modules/fseeko (Depends-on): Add verify.
53065         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53066         large.
53067         Reported by Larry Jones.
53068
53069         Fix fseeko on mingw.
53070         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53071         seek.
53072
53073         Beef up fseek tests.
53074         * tests/test-fseek.c (main): Also test eof handling.
53075         * tests/test-fseeko.c (main): Likewise.
53076         Reported by Larry Jones.
53077
53078 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53079
53080         Fix fseeko on BSD-based platforms.
53081         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53082         successful seek.
53083
53084 2007-12-12  Eric Blake  <ebb9@byu.net>
53085
53086         Allow circular dependency of separate libtests.a
53087         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53088         when use_libtests.
53089
53090 2007-12-11  Eric Blake  <ebb9@byu.net>
53091
53092         Fix bug with -0.0L in previous patch.
53093         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53094         * tests/test-isnan.c (main): Also test on zeroes.
53095         * tests/test-isnanf.c (main): Likewise.
53096         * tests/test-isnanl.h (main): Likewise.
53097
53098         Detect pseudo-denormals on x86 even when cross-compiling.
53099         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53100         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53101         invalid bit patterns that happen to satisfy ==.
53102
53103         Avoid link failures with separate libtests.a.
53104         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53105         last, to satisfy circular dependencies.
53106
53107 2007-12-11  Eric Blake  <ebb9@byu.net>
53108         and Bruno Haible  <bruno@clisp.org>
53109
53110         Fix OpenBSD 4.0 <float.h> handling of long double.
53111         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53112         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53113         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53114
53115 2007-12-11  Jim Meyering  <meyering@redhat.com>
53116
53117         * users.txt: Add libvirt.
53118
53119         Support versions of autoconf prior to 2.59c.
53120         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53121         if it is not already defined.
53122
53123 2007-12-09  Bruno Haible  <bruno@clisp.org>
53124
53125         Let 'gnulib-tool --import' collect sources needed for the tests in
53126         tests/ rather than in lib/.
53127         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53128         argument. If true, add rules to generate libtests.a, and put libtests.a
53129         into $(LDADD). Consider source files in subdirectories and set
53130         uses_subdirs.
53131         (func_emit_initmacro_start, func_emit_initmacro_end,
53132         func_emit_initmacro_done): Pass all arguments explicitly.
53133         (func_import): Determine two module lists main_modules,
53134         testsrelated_modules. Determine use_libtests. Determine two variables
53135         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53136         instead of just sed_transform_lib_file. Determine two variables
53137         main_files and testsrelated_files. Compute 'files' as the union of
53138         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53139         func_add_or_update. In the generated gnulib-comp.m4, collect the
53140         object files for tests/ in different variables than those for lib/.
53141         Substitute LIBTESTS_LIBDEPS.
53142         (func_create_testdir): Combine the uses_subdirs results from
53143         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53144
53145 2007-12-09  Bruno Haible  <bruno@clisp.org>
53146
53147         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53148         the build-aux directory.
53149
53150 2007-12-09  Bruno Haible  <bruno@clisp.org>
53151
53152         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53153         introduced on 2006-09-09.
53154
53155 2007-12-07  Jim Meyering  <meyering@redhat.com>
53156
53157         Let these macros work also with autoconf-2.59.
53158         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53159         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53161
53162 2007-12-06  Jim Meyering  <meyering@redhat.com>
53163
53164         Avoid a configure-time syntax error in gl_FUNC_ACL.
53165         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53166         function in each branch, before testing the cache variable.
53167
53168 2007-12-04  Eric Blake  <ebb9@byu.net>
53169
53170         Make scripts executable.
53171         * build-aux/config.guess: Add execute permissions.
53172         * build-aux/config.sub: Likewise.
53173         * build-aux/gendocs.sh: Likewise.
53174
53175         Fix frexp on mingw.
53176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53177         cross-compiling.
53178         * doc/functions/frexp.texi (frexp): Document the bug.
53179
53180         Make cygwin fseeko check more reliable.
53181         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53182         version numbers, rather than unrelated feature check.
53183         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53184         * doc/functions/ftello.texi (ftello): Likewise.
53185         Reported by Bruno Haible.
53186
53187         * m4/strerror.m4: Bump version number.
53188
53189 2007-12-03  Bruno Haible  <bruno@clisp.org>
53190
53191         * doc/functions/mprotect.texi: Mention the mingw problem.
53192
53193 2007-12-03  Eric Blake  <ebb9@byu.net>
53194
53195         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53196         REPLACE_STRERROR is initialized before this macro.
53197
53198 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53199
53200         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53201         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53202         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53203         put -lsec in even for programs other than 'ls'.  This fixes a problem
53204         for gettext reported by Bruno Haible in
53205         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53206         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53207         Add support for Solaris 10.  This isn't efficient, but should get the
53208         job done for now.
53209
53210 2007-12-03  James Youngman  <jay@gnu.org>
53211
53212         * doc/regexprops-generic.texi: change "an close-group" to "a
53213         close-group" and "illegal" to "not allowed".
53214
53215 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53216
53217         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53218         pr_byname.h. Needed for the rare case when the maintainer has done
53219         "make maintainer-clean" in the source directory and then attempts a
53220         build outside the source directory.
53221         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53222         scripts_byname.h.
53223
53224 2007-12-02  Martin Lambers <marlam@marlam.de>
53225             Bruno Haible  <bruno@clisp.org>
53226
53227         * lib/getpagesize.h: Remove file.
53228         * lib/unistd.in.h: Include declaration of getpagesize here.
53229         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53230         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53231         HAVE_SYS_PARAM_H.
53232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53233         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53234         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53235         (Depends-on): Add unistd.
53236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53237         (Include): Use <unistd.h> instead of getpagesize.h.
53238         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53239         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53240         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53241         gl_GETPAGESIZE invocation, already handled by module dependency.
53242         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53243
53244 2007-12-02  Bruno Haible  <bruno@clisp.org>
53245
53246         * modules/strings-tests: New file.
53247         * tests/test-strings.c: New file.
53248
53249         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53250         * lib/strings.in.h: New file.
53251         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53252         * m4/strings_h.m4: New file.
53253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53254         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53255         * modules/strings: New file.
53256         * modules/string (Makefile.am): Update.
53257         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53258         Reported by Karl Berry.
53259
53260 2007-12-01  Eric Blake  <ebb9@byu.net>
53261
53262         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53263         accomodate fix in cygwin 1.5.25.
53264
53265 2007-12-01  Jim Meyering  <meyering@redhat.com>
53266
53267         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53268         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53269         that would inhibit utf8-optimization of a regexp containing line-
53270         or buffer-anchors, e.g., `^', `$'.
53271
53272 2007-11-30  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53275         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53276         glthread_recursive_lock_init.
53277         * lib/lock.c (glthread_recursive_lock_init)
53278         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53279         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53280
53281 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         New function qset_acl, like set_acl but with syscall semantics.
53284         * lib/acl.h (qset_acl): New decl.
53285         * lib/acl.c (qset_acl): New function.
53286         (set_acl): Use new function.  Use more-consistent diagnostics.
53287
53288 2007-11-28  Jim Meyering  <meyering@redhat.com>
53289
53290         * modules/physmem (License): Change from GPL to LGPLv2+.
53291
53292 2007-11-26  Bruno Haible  <bruno@clisp.org>
53293
53294         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53295         'long double' type has excess precision.
53296         Reported by Jim Meyering in
53297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53298
53299 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53300
53301         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53302         Sync from <http://gnu.org/licenses>.
53303         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53304         with license text from same location.
53305         * doc/maintain.texi, doc/standards.texi:  Sync from
53306         <http://savannah.gnu.org/projects/gnustandards>.
53307
53308 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53309         and Jim Meyering  <meyering@redhat.com>
53310
53311         Adjust getdate' grammar to accept a slightly more regular language.
53312         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53313         Before, the former was rejected.
53314         * lib/getdate.y (digits_to_date_time): New function, factored
53315         out of ...
53316         (number): ...here.  Just call digits_to_date_time.
53317         (hybrid): New non-terminal to handle an <unsigned number,
53318         signed relative offset> sequence consistently.
53319
53320 2007-11-18  Jim Meyering  <meyering@redhat.com>
53321
53322         Pull my changes from coreutils:
53323         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53324         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53325         use of $gnulib_tool_option_extras, so that it's separated from the
53326         preceding argument.
53327
53328         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53329         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53330         parent destination directories before copying a file into place.
53331
53332 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53333
53334         bootstrap: work also with 4-argument variant of AC_INIT
53335         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53336
53337 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         Port test-getaddrinfo to Solaris.
53340         Problem reported by Bruno Haible in
53341         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53342         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53343         explanation of setting 'hints'.
53344         Don't reject an implementation merely because it returns EAI_SERVICE.
53345         (EAI_SERVICE): Define to 0 if not defined.
53346
53347 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         The license of gnu-make and posix-shell is now "GPLed build tool".
53350         * modules/gnu-make (License): Likewise.
53351         * modules/posix-shell (License): Likewise.
53352
53353         New module posix-shell, for determining a POSIX shell
53354         or perhaps something that is close enough to a POSIX shell.
53355         * m4/posix-shell.m4: New file.
53356         * modules/posix-shell: New file.
53357
53358         * MODULES.html.sh: Mention new module.
53359
53360         New module gnu-make, for determining whether we're using GNU Make.
53361         * m4/gnu-make.m4: New file.
53362         * modules/gnu-make: New file.
53363         * MODULES.html.sh: Mention new module.
53364
53365 2007-11-14  Jim Meyering  <meyering@redhat.com>
53366
53367         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53368         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53369         use this macro to create a function _definition_.
53370         Remove useless "#undef ARGMATCH_DIE".
53371
53372 2007-11-14  Bruno Haible  <bruno@clisp.org>
53373
53374         * lib/config.charset: Update for OpenBSD 4.1.
53375         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53376
53377 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53378
53379         Document 64-bit #if problems in stdint.texi.
53380         * doc/headers/stdint.texi (stdint.h): Mention problems with
53381         64-bit-#if, and how to work around them.
53382
53383         Don't insist on 'long long int' support in the preprocessor.  It
53384         breaks too many things.  For example, PRIdMAX still uses a 'long
53385         long int' format with the latest Sun compiler, even though
53386         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53387         preprocessor problem.  This causes the latest coreutils to dump
53388         core on Solaris 10 sparc with the Sun C compiler.
53389         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53390         the troublesome expressions at configure-time, not at #if-time.
53391         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53392         preprocessor.
53393         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53394         compile-time C checks, done at 'configure'-time.
53395         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53396         * modules/inttypes (Makefile): Substitute the new symbols that
53397         gl_INTTYPES_H now generates.
53398         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53399
53400 2007-11-12  Bruno Haible  <bruno@clisp.org>
53401
53402         Tests for Unicode character classification functions.
53403
53404         * modules/unictype/bidicategory-byname-tests: New file.
53405         * modules/unictype/bidicategory-name-tests: New file.
53406         * modules/unictype/bidicategory-of-tests: New file.
53407         * modules/unictype/bidicategory-test-tests: New file.
53408         * modules/unictype/block-list-tests: New file.
53409         * modules/unictype/block-of-tests: New file.
53410         * modules/unictype/block-test-tests: New file.
53411         * modules/unictype/category-C-tests: New file.
53412         * modules/unictype/category-Cc-tests: New file.
53413         * modules/unictype/category-Cf-tests: New file.
53414         * modules/unictype/category-Cn-tests: New file.
53415         * modules/unictype/category-Co-tests: New file.
53416         * modules/unictype/category-Cs-tests: New file.
53417         * modules/unictype/category-L-tests: New file.
53418         * modules/unictype/category-Ll-tests: New file.
53419         * modules/unictype/category-Lm-tests: New file.
53420         * modules/unictype/category-Lo-tests: New file.
53421         * modules/unictype/category-Lt-tests: New file.
53422         * modules/unictype/category-Lu-tests: New file.
53423         * modules/unictype/category-M-tests: New file.
53424         * modules/unictype/category-Mc-tests: New file.
53425         * modules/unictype/category-Me-tests: New file.
53426         * modules/unictype/category-Mn-tests: New file.
53427         * modules/unictype/category-N-tests: New file.
53428         * modules/unictype/category-Nd-tests: New file.
53429         * modules/unictype/category-Nl-tests: New file.
53430         * modules/unictype/category-No-tests: New file.
53431         * modules/unictype/category-P-tests: New file.
53432         * modules/unictype/category-Pc-tests: New file.
53433         * modules/unictype/category-Pd-tests: New file.
53434         * modules/unictype/category-Pe-tests: New file.
53435         * modules/unictype/category-Pf-tests: New file.
53436         * modules/unictype/category-Pi-tests: New file.
53437         * modules/unictype/category-Po-tests: New file.
53438         * modules/unictype/category-Ps-tests: New file.
53439         * modules/unictype/category-S-tests: New file.
53440         * modules/unictype/category-Sc-tests: New file.
53441         * modules/unictype/category-Sk-tests: New file.
53442         * modules/unictype/category-Sm-tests: New file.
53443         * modules/unictype/category-So-tests: New file.
53444         * modules/unictype/category-Z-tests: New file.
53445         * modules/unictype/category-Zl-tests: New file.
53446         * modules/unictype/category-Zp-tests: New file.
53447         * modules/unictype/category-Zs-tests: New file.
53448         * modules/unictype/category-and-not-tests: New file.
53449         * modules/unictype/category-and-tests: New file.
53450         * modules/unictype/category-byname-tests: New file.
53451         * modules/unictype/category-name-tests: New file.
53452         * modules/unictype/category-none-tests: New file.
53453         * modules/unictype/category-of-tests: New file.
53454         * modules/unictype/category-or-tests: New file.
53455         * modules/unictype/category-test-withtable-tests: New file.
53456         * modules/unictype/combining-class-tests: New file.
53457         * modules/unictype/ctype-alnum-tests: New file.
53458         * modules/unictype/ctype-alpha-tests: New file.
53459         * modules/unictype/ctype-blank-tests: New file.
53460         * modules/unictype/ctype-cntrl-tests: New file.
53461         * modules/unictype/ctype-digit-tests: New file.
53462         * modules/unictype/ctype-graph-tests: New file.
53463         * modules/unictype/ctype-lower-tests: New file.
53464         * modules/unictype/ctype-print-tests: New file.
53465         * modules/unictype/ctype-punct-tests: New file.
53466         * modules/unictype/ctype-space-tests: New file.
53467         * modules/unictype/ctype-upper-tests: New file.
53468         * modules/unictype/ctype-xdigit-tests: New file.
53469         * modules/unictype/decimal-digit-tests: New file.
53470         * modules/unictype/digit-tests: New file.
53471         * modules/unictype/mirror-tests: New file.
53472         * modules/unictype/numeric-tests: New file.
53473         * modules/unictype/property-alphabetic-tests: New file.
53474         * modules/unictype/property-ascii-hex-digit-tests: New file.
53475         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53476         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53477         * modules/unictype/property-bidi-block-separator-tests: New file.
53478         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53479         * modules/unictype/property-bidi-common-separator-tests: New file.
53480         * modules/unictype/property-bidi-control-tests: New file.
53481         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53482         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53483         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53484         * modules/unictype/property-bidi-european-digit-tests: New file.
53485         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53486         * modules/unictype/property-bidi-left-to-right-tests: New file.
53487         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53488         * modules/unictype/property-bidi-other-neutral-tests: New file.
53489         * modules/unictype/property-bidi-pdf-tests: New file.
53490         * modules/unictype/property-bidi-segment-separator-tests: New file.
53491         * modules/unictype/property-bidi-whitespace-tests: New file.
53492         * modules/unictype/property-byname-tests: New file.
53493         * modules/unictype/property-combining-tests: New file.
53494         * modules/unictype/property-composite-tests: New file.
53495         * modules/unictype/property-currency-symbol-tests: New file.
53496         * modules/unictype/property-dash-tests: New file.
53497         * modules/unictype/property-decimal-digit-tests: New file.
53498         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53499         * modules/unictype/property-deprecated-tests: New file.
53500         * modules/unictype/property-diacritic-tests: New file.
53501         * modules/unictype/property-extender-tests: New file.
53502         * modules/unictype/property-format-control-tests: New file.
53503         * modules/unictype/property-grapheme-base-tests: New file.
53504         * modules/unictype/property-grapheme-extend-tests: New file.
53505         * modules/unictype/property-grapheme-link-tests: New file.
53506         * modules/unictype/property-hex-digit-tests: New file.
53507         * modules/unictype/property-hyphen-tests: New file.
53508         * modules/unictype/property-id-continue-tests: New file.
53509         * modules/unictype/property-id-start-tests: New file.
53510         * modules/unictype/property-ideographic-tests: New file.
53511         * modules/unictype/property-ids-binary-operator-tests: New file.
53512         * modules/unictype/property-ids-trinary-operator-tests: New file.
53513         * modules/unictype/property-ignorable-control-tests: New file.
53514         * modules/unictype/property-iso-control-tests: New file.
53515         * modules/unictype/property-join-control-tests: New file.
53516         * modules/unictype/property-left-of-pair-tests: New file.
53517         * modules/unictype/property-line-separator-tests: New file.
53518         * modules/unictype/property-logical-order-exception-tests: New file.
53519         * modules/unictype/property-lowercase-tests: New file.
53520         * modules/unictype/property-math-tests: New file.
53521         * modules/unictype/property-non-break-tests: New file.
53522         * modules/unictype/property-not-a-character-tests: New file.
53523         * modules/unictype/property-numeric-tests: New file.
53524         * modules/unictype/property-other-alphabetic-tests: New file.
53525         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53526         * modules/unictype/property-other-grapheme-extend-tests: New file.
53527         * modules/unictype/property-other-id-continue-tests: New file.
53528         * modules/unictype/property-other-id-start-tests: New file.
53529         * modules/unictype/property-other-lowercase-tests: New file.
53530         * modules/unictype/property-other-math-tests: New file.
53531         * modules/unictype/property-other-uppercase-tests: New file.
53532         * modules/unictype/property-paired-punctuation-tests: New file.
53533         * modules/unictype/property-paragraph-separator-tests: New file.
53534         * modules/unictype/property-pattern-syntax-tests: New file.
53535         * modules/unictype/property-pattern-white-space-tests: New file.
53536         * modules/unictype/property-private-use-tests: New file.
53537         * modules/unictype/property-punctuation-tests: New file.
53538         * modules/unictype/property-quotation-mark-tests: New file.
53539         * modules/unictype/property-radical-tests: New file.
53540         * modules/unictype/property-sentence-terminal-tests: New file.
53541         * modules/unictype/property-soft-dotted-tests: New file.
53542         * modules/unictype/property-space-tests: New file.
53543         * modules/unictype/property-terminal-punctuation-tests: New file.
53544         * modules/unictype/property-test-tests: New file.
53545         * modules/unictype/property-titlecase-tests: New file.
53546         * modules/unictype/property-unassigned-code-value-tests: New file.
53547         * modules/unictype/property-unified-ideograph-tests: New file.
53548         * modules/unictype/property-uppercase-tests: New file.
53549         * modules/unictype/property-variation-selector-tests: New file.
53550         * modules/unictype/property-white-space-tests: New file.
53551         * modules/unictype/property-xid-continue-tests: New file.
53552         * modules/unictype/property-xid-start-tests: New file.
53553         * modules/unictype/property-zero-width-tests: New file.
53554         * modules/unictype/scripts-tests: New file.
53555         * modules/unictype/syntax-c-ident-tests: New file.
53556         * modules/unictype/syntax-c-whitespace-tests: New file.
53557         * modules/unictype/syntax-java-ident-tests: New file.
53558         * modules/unictype/syntax-java-whitespace-tests: New file.
53559         * tests/unictype/test-bidi_byname.c: New file.
53560         * tests/unictype/test-bidi_name.c: New file.
53561         * tests/unictype/test-bidi_of.c: New file.
53562         * tests/unictype/test-bidi_test.c: New file.
53563         * tests/unictype/test-block_list.c: New file.
53564         * tests/unictype/test-block_of.c: New file.
53565         * tests/unictype/test-block_test.c: New file.
53566         * tests/unictype/test-categ_and.c: New file.
53567         * tests/unictype/test-categ_and_not.c: New file.
53568         * tests/unictype/test-categ_byname.c: New file.
53569         * tests/unictype/test-categ_name.c: New file.
53570         * tests/unictype/test-categ_none.c: New file.
53571         * tests/unictype/test-categ_of.c: New file.
53572         * tests/unictype/test-categ_or.c: New file.
53573         * tests/unictype/test-categ_test_withtable.c: New file.
53574         * tests/unictype/test-combining.c: New file.
53575         * tests/unictype/test-decdigit.c: New file.
53576         * tests/unictype/test-digit.c: New file.
53577         * tests/unictype/test-mirror.c: New file.
53578         * tests/unictype/test-numeric.c: New file.
53579         * tests/unictype/test-pr_byname.c: New file.
53580         * tests/unictype/test-pr_test.c: New file.
53581         * tests/unictype/test-predicate-part1.h: New file.
53582         * tests/unictype/test-predicate-part2.h: New file.
53583         * tests/unictype/test-scripts.c: New file.
53584         * tests/unictype/test-sy_c_ident.c: New file.
53585         * tests/unictype/test-sy_java_ident.c: New file.
53586
53587         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53588         for Unicode 5.0.0.
53589         * tests/unictype/test-categ_Cc.c: Likewise.
53590         * tests/unictype/test-categ_Cf.c: Likewise.
53591         * tests/unictype/test-categ_Cn.c: Likewise.
53592         * tests/unictype/test-categ_Co.c: Likewise.
53593         * tests/unictype/test-categ_Cs.c: Likewise.
53594         * tests/unictype/test-categ_L.c: Likewise.
53595         * tests/unictype/test-categ_Ll.c: Likewise.
53596         * tests/unictype/test-categ_Lm.c: Likewise.
53597         * tests/unictype/test-categ_Lo.c: Likewise.
53598         * tests/unictype/test-categ_Lt.c: Likewise.
53599         * tests/unictype/test-categ_Lu.c: Likewise.
53600         * tests/unictype/test-categ_M.c: Likewise.
53601         * tests/unictype/test-categ_Mc.c: Likewise.
53602         * tests/unictype/test-categ_Me.c: Likewise.
53603         * tests/unictype/test-categ_Mn.c: Likewise.
53604         * tests/unictype/test-categ_N.c: Likewise.
53605         * tests/unictype/test-categ_Nd.c: Likewise.
53606         * tests/unictype/test-categ_Nl.c: Likewise.
53607         * tests/unictype/test-categ_No.c: Likewise.
53608         * tests/unictype/test-categ_P.c: Likewise.
53609         * tests/unictype/test-categ_Pc.c: Likewise.
53610         * tests/unictype/test-categ_Pd.c: Likewise.
53611         * tests/unictype/test-categ_Pe.c: Likewise.
53612         * tests/unictype/test-categ_Pf.c: Likewise.
53613         * tests/unictype/test-categ_Pi.c: Likewise.
53614         * tests/unictype/test-categ_Po.c: Likewise.
53615         * tests/unictype/test-categ_Ps.c: Likewise.
53616         * tests/unictype/test-categ_S.c: Likewise.
53617         * tests/unictype/test-categ_Sc.c: Likewise.
53618         * tests/unictype/test-categ_Sk.c: Likewise.
53619         * tests/unictype/test-categ_Sm.c: Likewise.
53620         * tests/unictype/test-categ_So.c: Likewise.
53621         * tests/unictype/test-categ_Z.c: Likewise.
53622         * tests/unictype/test-categ_Zl.c: Likewise.
53623         * tests/unictype/test-categ_Zp.c: Likewise.
53624         * tests/unictype/test-categ_Zs.c: Likewise.
53625         * tests/unictype/test-ctype_alnum.c: Likewise.
53626         * tests/unictype/test-ctype_alpha.c: Likewise.
53627         * tests/unictype/test-ctype_blank.c: Likewise.
53628         * tests/unictype/test-ctype_cntrl.c: Likewise.
53629         * tests/unictype/test-ctype_digit.c: Likewise.
53630         * tests/unictype/test-ctype_graph.c: Likewise.
53631         * tests/unictype/test-ctype_lower.c: Likewise.
53632         * tests/unictype/test-ctype_print.c: Likewise.
53633         * tests/unictype/test-ctype_punct.c: Likewise.
53634         * tests/unictype/test-ctype_space.c: Likewise.
53635         * tests/unictype/test-ctype_upper.c: Likewise.
53636         * tests/unictype/test-ctype_xdigit.c: Likewise.
53637         * tests/unictype/test-decdigit.h: Likewise.
53638         * tests/unictype/test-digit.h: Likewise.
53639         * tests/unictype/test-numeric.h: Likewise.
53640         * tests/unictype/test-pr_alphabetic.c: Likewise.
53641         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53642         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53643         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53644         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53645         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53646         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53647         * tests/unictype/test-pr_bidi_control.c: Likewise.
53648         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53649         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53650         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53651         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53652         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53653         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53654         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53655         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53656         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53657         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53658         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53659         * tests/unictype/test-pr_combining.c: Likewise.
53660         * tests/unictype/test-pr_composite.c: Likewise.
53661         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53662         * tests/unictype/test-pr_dash.c: Likewise.
53663         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53664         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53665         * tests/unictype/test-pr_deprecated.c: Likewise.
53666         * tests/unictype/test-pr_diacritic.c: Likewise.
53667         * tests/unictype/test-pr_extender.c: Likewise.
53668         * tests/unictype/test-pr_format_control.c: Likewise.
53669         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53670         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53671         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53672         * tests/unictype/test-pr_hex_digit.c: Likewise.
53673         * tests/unictype/test-pr_hyphen.c: Likewise.
53674         * tests/unictype/test-pr_id_continue.c: Likewise.
53675         * tests/unictype/test-pr_id_start.c: Likewise.
53676         * tests/unictype/test-pr_ideographic.c: Likewise.
53677         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53678         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53679         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53680         * tests/unictype/test-pr_iso_control.c: Likewise.
53681         * tests/unictype/test-pr_join_control.c: Likewise.
53682         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53683         * tests/unictype/test-pr_line_separator.c: Likewise.
53684         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53685         * tests/unictype/test-pr_lowercase.c: Likewise.
53686         * tests/unictype/test-pr_math.c: Likewise.
53687         * tests/unictype/test-pr_non_break.c: Likewise.
53688         * tests/unictype/test-pr_not_a_character.c: Likewise.
53689         * tests/unictype/test-pr_numeric.c: Likewise.
53690         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53691         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53692         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53693         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53694         * tests/unictype/test-pr_other_id_start.c: Likewise.
53695         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53696         * tests/unictype/test-pr_other_math.c: Likewise.
53697         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53698         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53699         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53700         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53701         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53702         * tests/unictype/test-pr_private_use.c: Likewise.
53703         * tests/unictype/test-pr_punctuation.c: Likewise.
53704         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53705         * tests/unictype/test-pr_radical.c: Likewise.
53706         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53707         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53708         * tests/unictype/test-pr_space.c: Likewise.
53709         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53710         * tests/unictype/test-pr_titlecase.c: Likewise.
53711         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53712         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53713         * tests/unictype/test-pr_uppercase.c: Likewise.
53714         * tests/unictype/test-pr_variation_selector.c: Likewise.
53715         * tests/unictype/test-pr_white_space.c: Likewise.
53716         * tests/unictype/test-pr_xid_continue.c: Likewise.
53717         * tests/unictype/test-pr_xid_start.c: Likewise.
53718         * tests/unictype/test-pr_zero_width.c: Likewise.
53719         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53720         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53721
53722 2007-11-12  Bruno Haible  <bruno@clisp.org>
53723
53724         Unicode character classification functions.
53725         * lib/unictype.h: New file.
53726         * modules/unictype/base: New file.
53727         * modules/unictype/category-L: New file.
53728         * modules/unictype/category-Lu: New file.
53729         * modules/unictype/category-Ll: New file.
53730         * modules/unictype/category-Lt: New file.
53731         * modules/unictype/category-Lm: New file.
53732         * modules/unictype/category-Lo: New file.
53733         * modules/unictype/category-M: New file.
53734         * modules/unictype/category-Mn: New file.
53735         * modules/unictype/category-Mc: New file.
53736         * modules/unictype/category-Me: New file.
53737         * modules/unictype/category-N: New file.
53738         * modules/unictype/category-Nd: New file.
53739         * modules/unictype/category-Nl: New file.
53740         * modules/unictype/category-No: New file.
53741         * modules/unictype/category-P: New file.
53742         * modules/unictype/category-Pc: New file.
53743         * modules/unictype/category-Pd: New file.
53744         * modules/unictype/category-Ps: New file.
53745         * modules/unictype/category-Pe: New file.
53746         * modules/unictype/category-Pi: New file.
53747         * modules/unictype/category-Pf: New file.
53748         * modules/unictype/category-Po: New file.
53749         * modules/unictype/category-S: New file.
53750         * modules/unictype/category-Sm: New file.
53751         * modules/unictype/category-Sc: New file.
53752         * modules/unictype/category-Sk: New file.
53753         * modules/unictype/category-So: New file.
53754         * modules/unictype/category-Z: New file.
53755         * modules/unictype/category-Zs: New file.
53756         * modules/unictype/category-Zl: New file.
53757         * modules/unictype/category-Zp: New file.
53758         * modules/unictype/category-C: New file.
53759         * modules/unictype/category-Cc: New file.
53760         * modules/unictype/category-Cf: New file.
53761         * modules/unictype/category-Cs: New file.
53762         * modules/unictype/category-Co: New file.
53763         * modules/unictype/category-Cn: New file.
53764         * modules/unictype/category-or: New file.
53765         * modules/unictype/category-of: New file.
53766         * modules/unictype/category-test: New file.
53767         * modules/unictype/category-test-withtable: New file.
53768         * modules/unictype/category-byname: New file.
53769         * modules/unictype/category-none: New file.
53770         * modules/unictype/category-and: New file.
53771         * modules/unictype/category-and-not: New file.
53772         * modules/unictype/category-name: New file.
53773         * modules/unictype/combining-class: New file.
53774         * modules/unictype/category-all: New file.
53775         * modules/unictype/bidicategory-all: New file.
53776         * modules/unictype/bidicategory-byname: New file.
53777         * modules/unictype/bidicategory-name: New file.
53778         * modules/unictype/bidicategory-of: New file.
53779         * modules/unictype/bidicategory-test: New file.
53780         * modules/unictype/decimal-digit: New file.
53781         * modules/unictype/digit: New file.
53782         * modules/unictype/numeric: New file.
53783         * modules/unictype/mirror: New file.
53784         * modules/unictype/property-white-space: New file.
53785         * modules/unictype/property-alphabetic: New file.
53786         * modules/unictype/property-other-alphabetic: New file.
53787         * modules/unictype/property-not-a-character: New file.
53788         * modules/unictype/property-default-ignorable-code-point: New file.
53789         * modules/unictype/property-other-default-ignorable-code-point: New
53790         file.
53791         * modules/unictype/property-deprecated: New file.
53792         * modules/unictype/property-logical-order-exception: New file.
53793         * modules/unictype/property-variation-selector: New file.
53794         * modules/unictype/property-private-use: New file.
53795         * modules/unictype/property-unassigned-code-value: New file.
53796         * modules/unictype/property-uppercase: New file.
53797         * modules/unictype/property-other-uppercase: New file.
53798         * modules/unictype/property-lowercase: New file.
53799         * modules/unictype/property-other-lowercase: New file.
53800         * modules/unictype/property-titlecase: New file.
53801         * modules/unictype/property-soft-dotted: New file.
53802         * modules/unictype/property-id-start: New file.
53803         * modules/unictype/property-other-id-start: New file.
53804         * modules/unictype/property-id-continue: New file.
53805         * modules/unictype/property-other-id-continue: New file.
53806         * modules/unictype/property-xid-start: New file.
53807         * modules/unictype/property-xid-continue: New file.
53808         * modules/unictype/property-pattern-white-space: New file.
53809         * modules/unictype/property-pattern-syntax: New file.
53810         * modules/unictype/property-join-control: New file.
53811         * modules/unictype/property-grapheme-base: New file.
53812         * modules/unictype/property-grapheme-extend: New file.
53813         * modules/unictype/property-other-grapheme-extend: New file.
53814         * modules/unictype/property-grapheme-link: New file.
53815         * modules/unictype/property-bidi-control: New file.
53816         * modules/unictype/property-bidi-left-to-right: New file.
53817         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53818         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53819         * modules/unictype/property-bidi-european-digit: New file.
53820         * modules/unictype/property-bidi-eur-num-separator: New file.
53821         * modules/unictype/property-bidi-eur-num-terminator: New file.
53822         * modules/unictype/property-bidi-arabic-digit: New file.
53823         * modules/unictype/property-bidi-common-separator: New file.
53824         * modules/unictype/property-bidi-block-separator: New file.
53825         * modules/unictype/property-bidi-segment-separator: New file.
53826         * modules/unictype/property-bidi-whitespace: New file.
53827         * modules/unictype/property-bidi-non-spacing-mark: New file.
53828         * modules/unictype/property-bidi-boundary-neutral: New file.
53829         * modules/unictype/property-bidi-pdf: New file.
53830         * modules/unictype/property-bidi-embedding-or-override: New file.
53831         * modules/unictype/property-bidi-other-neutral: New file.
53832         * modules/unictype/property-hex-digit: New file.
53833         * modules/unictype/property-ascii-hex-digit: New file.
53834         * modules/unictype/property-ideographic: New file.
53835         * modules/unictype/property-unified-ideograph: New file.
53836         * modules/unictype/property-radical: New file.
53837         * modules/unictype/property-ids-binary-operator: New file.
53838         * modules/unictype/property-ids-trinary-operator: New file.
53839         * modules/unictype/property-zero-width: New file.
53840         * modules/unictype/property-space: New file.
53841         * modules/unictype/property-non-break: New file.
53842         * modules/unictype/property-iso-control: New file.
53843         * modules/unictype/property-format-control: New file.
53844         * modules/unictype/property-dash: New file.
53845         * modules/unictype/property-hyphen: New file.
53846         * modules/unictype/property-punctuation: New file.
53847         * modules/unictype/property-line-separator: New file.
53848         * modules/unictype/property-paragraph-separator: New file.
53849         * modules/unictype/property-quotation-mark: New file.
53850         * modules/unictype/property-sentence-terminal: New file.
53851         * modules/unictype/property-terminal-punctuation: New file.
53852         * modules/unictype/property-currency-symbol: New file.
53853         * modules/unictype/property-math: New file.
53854         * modules/unictype/property-other-math: New file.
53855         * modules/unictype/property-paired-punctuation: New file.
53856         * modules/unictype/property-left-of-pair: New file.
53857         * modules/unictype/property-combining: New file.
53858         * modules/unictype/property-composite: New file.
53859         * modules/unictype/property-decimal-digit: New file.
53860         * modules/unictype/property-numeric: New file.
53861         * modules/unictype/property-diacritic: New file.
53862         * modules/unictype/property-extender: New file.
53863         * modules/unictype/property-ignorable-control: New file.
53864         * modules/unictype/property-test: New file.
53865         * modules/unictype/property-byname: New file.
53866         * modules/unictype/property-all: New file.
53867         * modules/unictype/scripts: New file.
53868         * modules/unictype/scripts-all: New file.
53869         * modules/unictype/block-of: New file.
53870         * modules/unictype/block-test: New file.
53871         * modules/unictype/block-list: New file.
53872         * modules/unictype/block-all: New file.
53873         * modules/unictype/syntax-c-whitespace: New file.
53874         * modules/unictype/syntax-java-whitespace: New file.
53875         * modules/unictype/syntax-c-ident: New file.
53876         * modules/unictype/syntax-java-ident: New file.
53877         * modules/unictype/ctype-alnum: New file.
53878         * modules/unictype/ctype-alpha: New file.
53879         * modules/unictype/ctype-cntrl: New file.
53880         * modules/unictype/ctype-digit: New file.
53881         * modules/unictype/ctype-graph: New file.
53882         * modules/unictype/ctype-lower: New file.
53883         * modules/unictype/ctype-print: New file.
53884         * modules/unictype/ctype-punct: New file.
53885         * modules/unictype/ctype-space: New file.
53886         * modules/unictype/ctype-upper: New file.
53887         * modules/unictype/ctype-xdigit: New file.
53888         * modules/unictype/ctype-blank: New file.
53889         * lib/unictype/bidi_byname.c: New file.
53890         * lib/unictype/bidi_name.c: New file.
53891         * lib/unictype/bidi_of.c: New file.
53892         * lib/unictype/bidi_test.c: New file.
53893         * lib/unictype/bitmap.h: New file.
53894         * lib/unictype/block_test.c: New file.
53895         * lib/unictype/blocks.c: New file.
53896         * lib/unictype/categ_C.c: New file.
53897         * lib/unictype/categ_Cc.c: New file.
53898         * lib/unictype/categ_Cf.c: New file.
53899         * lib/unictype/categ_Cn.c: New file.
53900         * lib/unictype/categ_Co.c: New file.
53901         * lib/unictype/categ_Cs.c: New file.
53902         * lib/unictype/categ_L.c: New file.
53903         * lib/unictype/categ_Ll.c: New file.
53904         * lib/unictype/categ_Lm.c: New file.
53905         * lib/unictype/categ_Lo.c: New file.
53906         * lib/unictype/categ_Lt.c: New file.
53907         * lib/unictype/categ_Lu.c: New file.
53908         * lib/unictype/categ_M.c: New file.
53909         * lib/unictype/categ_Mc.c: New file.
53910         * lib/unictype/categ_Me.c: New file.
53911         * lib/unictype/categ_Mn.c: New file.
53912         * lib/unictype/categ_N.c: New file.
53913         * lib/unictype/categ_Nd.c: New file.
53914         * lib/unictype/categ_Nl.c: New file.
53915         * lib/unictype/categ_No.c: New file.
53916         * lib/unictype/categ_P.c: New file.
53917         * lib/unictype/categ_Pc.c: New file.
53918         * lib/unictype/categ_Pd.c: New file.
53919         * lib/unictype/categ_Pe.c: New file.
53920         * lib/unictype/categ_Pf.c: New file.
53921         * lib/unictype/categ_Pi.c: New file.
53922         * lib/unictype/categ_Po.c: New file.
53923         * lib/unictype/categ_Ps.c: New file.
53924         * lib/unictype/categ_S.c: New file.
53925         * lib/unictype/categ_Sc.c: New file.
53926         * lib/unictype/categ_Sk.c: New file.
53927         * lib/unictype/categ_Sm.c: New file.
53928         * lib/unictype/categ_So.c: New file.
53929         * lib/unictype/categ_Z.c: New file.
53930         * lib/unictype/categ_Zl.c: New file.
53931         * lib/unictype/categ_Zp.c: New file.
53932         * lib/unictype/categ_Zs.c: New file.
53933         * lib/unictype/categ_and.c: New file.
53934         * lib/unictype/categ_and_not.c: New file.
53935         * lib/unictype/categ_byname.c: New file.
53936         * lib/unictype/categ_name.c: New file.
53937         * lib/unictype/categ_none.c: New file.
53938         * lib/unictype/categ_of.c: New file.
53939         * lib/unictype/categ_or.c: New file.
53940         * lib/unictype/categ_test.c: New file.
53941         * lib/unictype/combining.c: New file.
53942         * lib/unictype/ctype_alnum.c: New file.
53943         * lib/unictype/ctype_alpha.c: New file.
53944         * lib/unictype/ctype_blank.c: New file.
53945         * lib/unictype/ctype_cntrl.c: New file.
53946         * lib/unictype/ctype_digit.c: New file.
53947         * lib/unictype/ctype_graph.c: New file.
53948         * lib/unictype/ctype_lower.c: New file.
53949         * lib/unictype/ctype_print.c: New file.
53950         * lib/unictype/ctype_punct.c: New file.
53951         * lib/unictype/ctype_space.c: New file.
53952         * lib/unictype/ctype_upper.c: New file.
53953         * lib/unictype/ctype_xdigit.c: New file.
53954         * lib/unictype/decdigit.c: New file.
53955         * lib/unictype/digit.c: New file.
53956         * lib/unictype/identsyntaxmap.h: New file.
53957         * lib/unictype/mirror.c: New file.
53958         * lib/unictype/numeric.c: New file.
53959         * lib/unictype/pr_alphabetic.c: New file.
53960         * lib/unictype/pr_ascii_hex_digit.c: New file.
53961         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53962         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53963         * lib/unictype/pr_bidi_block_separator.c: New file.
53964         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53965         * lib/unictype/pr_bidi_common_separator.c: New file.
53966         * lib/unictype/pr_bidi_control.c: New file.
53967         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53968         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53969         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53970         * lib/unictype/pr_bidi_european_digit.c: New file.
53971         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53972         * lib/unictype/pr_bidi_left_to_right.c: New file.
53973         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53974         * lib/unictype/pr_bidi_other_neutral.c: New file.
53975         * lib/unictype/pr_bidi_pdf.c: New file.
53976         * lib/unictype/pr_bidi_segment_separator.c: New file.
53977         * lib/unictype/pr_bidi_whitespace.c: New file.
53978         * lib/unictype/pr_byname.c: New file.
53979         * lib/unictype/pr_byname.gperf: New file.
53980         * lib/unictype/pr_combining.c: New file.
53981         * lib/unictype/pr_composite.c: New file.
53982         * lib/unictype/pr_currency_symbol.c: New file.
53983         * lib/unictype/pr_dash.c: New file.
53984         * lib/unictype/pr_decimal_digit.c: New file.
53985         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53986         * lib/unictype/pr_deprecated.c: New file.
53987         * lib/unictype/pr_diacritic.c: New file.
53988         * lib/unictype/pr_extender.c: New file.
53989         * lib/unictype/pr_format_control.c: New file.
53990         * lib/unictype/pr_grapheme_base.c: New file.
53991         * lib/unictype/pr_grapheme_extend.c: New file.
53992         * lib/unictype/pr_grapheme_link.c: New file.
53993         * lib/unictype/pr_hex_digit.c: New file.
53994         * lib/unictype/pr_hyphen.c: New file.
53995         * lib/unictype/pr_id_continue.c: New file.
53996         * lib/unictype/pr_id_start.c: New file.
53997         * lib/unictype/pr_ideographic.c: New file.
53998         * lib/unictype/pr_ids_binary_operator.c: New file.
53999         * lib/unictype/pr_ids_trinary_operator.c: New file.
54000         * lib/unictype/pr_ignorable_control.c: New file.
54001         * lib/unictype/pr_iso_control.c: New file.
54002         * lib/unictype/pr_join_control.c: New file.
54003         * lib/unictype/pr_left_of_pair.c: New file.
54004         * lib/unictype/pr_line_separator.c: New file.
54005         * lib/unictype/pr_logical_order_exception.c: New file.
54006         * lib/unictype/pr_lowercase.c: New file.
54007         * lib/unictype/pr_math.c: New file.
54008         * lib/unictype/pr_non_break.c: New file.
54009         * lib/unictype/pr_not_a_character.c: New file.
54010         * lib/unictype/pr_numeric.c: New file.
54011         * lib/unictype/pr_other_alphabetic.c: New file.
54012         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54013         * lib/unictype/pr_other_grapheme_extend.c: New file.
54014         * lib/unictype/pr_other_id_continue.c: New file.
54015         * lib/unictype/pr_other_id_start.c: New file.
54016         * lib/unictype/pr_other_lowercase.c: New file.
54017         * lib/unictype/pr_other_math.c: New file.
54018         * lib/unictype/pr_other_uppercase.c: New file.
54019         * lib/unictype/pr_paired_punctuation.c: New file.
54020         * lib/unictype/pr_paragraph_separator.c: New file.
54021         * lib/unictype/pr_pattern_syntax.c: New file.
54022         * lib/unictype/pr_pattern_white_space.c: New file.
54023         * lib/unictype/pr_private_use.c: New file.
54024         * lib/unictype/pr_punctuation.c: New file.
54025         * lib/unictype/pr_quotation_mark.c: New file.
54026         * lib/unictype/pr_radical.c: New file.
54027         * lib/unictype/pr_sentence_terminal.c: New file.
54028         * lib/unictype/pr_soft_dotted.c: New file.
54029         * lib/unictype/pr_space.c: New file.
54030         * lib/unictype/pr_terminal_punctuation.c: New file.
54031         * lib/unictype/pr_test.c: New file.
54032         * lib/unictype/pr_titlecase.c: New file.
54033         * lib/unictype/pr_unassigned_code_value.c: New file.
54034         * lib/unictype/pr_unified_ideograph.c: New file.
54035         * lib/unictype/pr_uppercase.c: New file.
54036         * lib/unictype/pr_variation_selector.c: New file.
54037         * lib/unictype/pr_white_space.c: New file.
54038         * lib/unictype/pr_xid_continue.c: New file.
54039         * lib/unictype/pr_xid_start.c: New file.
54040         * lib/unictype/pr_zero_width.c: New file.
54041         * lib/unictype/scripts.c: New file.
54042         * lib/unictype/sy_c_ident.c: New file.
54043         * lib/unictype/sy_c_whitespace.c: New file.
54044         * lib/unictype/sy_java_ident.c: New file.
54045         * lib/unictype/sy_java_whitespace.c: New file.
54046
54047         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54048         Unicode 5.0.0.
54049         * lib/unictype/blocks.h: Likewise.
54050         * lib/unictype/categ_C.h: Likewise.
54051         * lib/unictype/categ_Cc.h: Likewise.
54052         * lib/unictype/categ_Cf.h: Likewise.
54053         * lib/unictype/categ_Cn.h: Likewise.
54054         * lib/unictype/categ_Co.h: Likewise.
54055         * lib/unictype/categ_Cs.h: Likewise.
54056         * lib/unictype/categ_L.h: Likewise.
54057         * lib/unictype/categ_Ll.h: Likewise.
54058         * lib/unictype/categ_Lm.h: Likewise.
54059         * lib/unictype/categ_Lo.h: Likewise.
54060         * lib/unictype/categ_Lt.h: Likewise.
54061         * lib/unictype/categ_Lu.h: Likewise.
54062         * lib/unictype/categ_M.h: Likewise.
54063         * lib/unictype/categ_Mc.h: Likewise.
54064         * lib/unictype/categ_Me.h: Likewise.
54065         * lib/unictype/categ_Mn.h: Likewise.
54066         * lib/unictype/categ_N.h: Likewise.
54067         * lib/unictype/categ_Nd.h: Likewise.
54068         * lib/unictype/categ_Nl.h: Likewise.
54069         * lib/unictype/categ_No.h: Likewise.
54070         * lib/unictype/categ_P.h: Likewise.
54071         * lib/unictype/categ_Pc.h: Likewise.
54072         * lib/unictype/categ_Pd.h: Likewise.
54073         * lib/unictype/categ_Pe.h: Likewise.
54074         * lib/unictype/categ_Pf.h: Likewise.
54075         * lib/unictype/categ_Pi.h: Likewise.
54076         * lib/unictype/categ_Po.h: Likewise.
54077         * lib/unictype/categ_Ps.h: Likewise.
54078         * lib/unictype/categ_S.h: Likewise.
54079         * lib/unictype/categ_Sc.h: Likewise.
54080         * lib/unictype/categ_Sk.h: Likewise.
54081         * lib/unictype/categ_Sm.h: Likewise.
54082         * lib/unictype/categ_So.h: Likewise.
54083         * lib/unictype/categ_Z.h: Likewise.
54084         * lib/unictype/categ_Zl.h: Likewise.
54085         * lib/unictype/categ_Zp.h: Likewise.
54086         * lib/unictype/categ_Zs.h: Likewise.
54087         * lib/unictype/categ_of.h: Likewise.
54088         * lib/unictype/combining.h: Likewise.
54089         * lib/unictype/ctype_alnum.h: Likewise.
54090         * lib/unictype/ctype_alpha.h: Likewise.
54091         * lib/unictype/ctype_blank.h: Likewise.
54092         * lib/unictype/ctype_cntrl.h: Likewise.
54093         * lib/unictype/ctype_digit.h: Likewise.
54094         * lib/unictype/ctype_graph.h: Likewise.
54095         * lib/unictype/ctype_lower.h: Likewise.
54096         * lib/unictype/ctype_print.h: Likewise.
54097         * lib/unictype/ctype_punct.h: Likewise.
54098         * lib/unictype/ctype_space.h: Likewise.
54099         * lib/unictype/ctype_upper.h: Likewise.
54100         * lib/unictype/ctype_xdigit.h: Likewise.
54101         * lib/unictype/decdigit.h: Likewise.
54102         * lib/unictype/digit.h: Likewise.
54103         * lib/unictype/mirror.h: Likewise.
54104         * lib/unictype/numeric.h: Likewise.
54105         * lib/unictype/pr_alphabetic.h: Likewise.
54106         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54107         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54108         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54109         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54110         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54111         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54112         * lib/unictype/pr_bidi_control.h: Likewise.
54113         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54114         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54115         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54116         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54117         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54118         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54119         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54120         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54121         * lib/unictype/pr_bidi_pdf.h: Likewise.
54122         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54123         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54124         * lib/unictype/pr_combining.h: Likewise.
54125         * lib/unictype/pr_composite.h: Likewise.
54126         * lib/unictype/pr_currency_symbol.h: Likewise.
54127         * lib/unictype/pr_dash.h: Likewise.
54128         * lib/unictype/pr_decimal_digit.h: Likewise.
54129         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54130         * lib/unictype/pr_deprecated.h: Likewise.
54131         * lib/unictype/pr_diacritic.h: Likewise.
54132         * lib/unictype/pr_extender.h: Likewise.
54133         * lib/unictype/pr_format_control.h: Likewise.
54134         * lib/unictype/pr_grapheme_base.h: Likewise.
54135         * lib/unictype/pr_grapheme_extend.h: Likewise.
54136         * lib/unictype/pr_grapheme_link.h: Likewise.
54137         * lib/unictype/pr_hex_digit.h: Likewise.
54138         * lib/unictype/pr_hyphen.h: Likewise.
54139         * lib/unictype/pr_id_continue.h: Likewise.
54140         * lib/unictype/pr_id_start.h: Likewise.
54141         * lib/unictype/pr_ideographic.h: Likewise.
54142         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54143         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54144         * lib/unictype/pr_ignorable_control.h: Likewise.
54145         * lib/unictype/pr_iso_control.h: Likewise.
54146         * lib/unictype/pr_join_control.h: Likewise.
54147         * lib/unictype/pr_left_of_pair.h: Likewise.
54148         * lib/unictype/pr_line_separator.h: Likewise.
54149         * lib/unictype/pr_logical_order_exception.h: Likewise.
54150         * lib/unictype/pr_lowercase.h: Likewise.
54151         * lib/unictype/pr_math.h: Likewise.
54152         * lib/unictype/pr_non_break.h: Likewise.
54153         * lib/unictype/pr_not_a_character.h: Likewise.
54154         * lib/unictype/pr_numeric.h: Likewise.
54155         * lib/unictype/pr_other_alphabetic.h: Likewise.
54156         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54157         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54158         * lib/unictype/pr_other_id_continue.h: Likewise.
54159         * lib/unictype/pr_other_id_start.h: Likewise.
54160         * lib/unictype/pr_other_lowercase.h: Likewise.
54161         * lib/unictype/pr_other_math.h: Likewise.
54162         * lib/unictype/pr_other_uppercase.h: Likewise.
54163         * lib/unictype/pr_paired_punctuation.h: Likewise.
54164         * lib/unictype/pr_paragraph_separator.h: Likewise.
54165         * lib/unictype/pr_pattern_syntax.h: Likewise.
54166         * lib/unictype/pr_pattern_white_space.h: Likewise.
54167         * lib/unictype/pr_private_use.h: Likewise.
54168         * lib/unictype/pr_punctuation.h: Likewise.
54169         * lib/unictype/pr_quotation_mark.h: Likewise.
54170         * lib/unictype/pr_radical.h: Likewise.
54171         * lib/unictype/pr_sentence_terminal.h: Likewise.
54172         * lib/unictype/pr_soft_dotted.h: Likewise.
54173         * lib/unictype/pr_space.h: Likewise.
54174         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54175         * lib/unictype/pr_titlecase.h: Likewise.
54176         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54177         * lib/unictype/pr_unified_ideograph.h: Likewise.
54178         * lib/unictype/pr_uppercase.h: Likewise.
54179         * lib/unictype/pr_variation_selector.h: Likewise.
54180         * lib/unictype/pr_white_space.h: Likewise.
54181         * lib/unictype/pr_xid_continue.h: Likewise.
54182         * lib/unictype/pr_xid_start.h: Likewise.
54183         * lib/unictype/pr_zero_width.h: Likewise.
54184         * lib/unictype/scripts.h: Likewise.
54185         * lib/unictype/scripts_byname.gperf: Likewise.
54186         * lib/unictype/sy_c_ident.h: Likewise.
54187         * lib/unictype/sy_c_whitespace.h: Likewise.
54188         * lib/unictype/sy_java_ident.h: Likewise.
54189         * lib/unictype/sy_java_whitespace.h: Likewise.
54190
54191         * lib/unictype/Makefile: New file.
54192         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54193         glibc.
54194         * lib/unictype/3level.h: New file, copied from glibc.
54195         * lib/unictype/3levelbit.h: New file.
54196
54197 2007-11-11  Bruno Haible  <bruno@clisp.org>
54198
54199         * modules/gperf: New file.
54200         * modules/iconv_open (Depends-on): Add it.
54201         (Makefile.am): Remove the GPERF definition.
54202
54203 2007-11-11  Bruno Haible  <bruno@clisp.org>
54204
54205         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54206         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54207
54208 2007-11-11  Bruno Haible  <bruno@clisp.org>
54209
54210         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54211         (usage): Remove function.
54212
54213 2007-11-11  Bruno Haible  <bruno@clisp.org>
54214
54215         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54216         gl_FUNC_CEILF_LIBS.
54217         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54218         gl_FUNC_CEIL_LIBS.
54219         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54220         gl_FUNC_CEILL_LIBS.
54221         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54222         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54223         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54224
54225 2007-11-11  Bruno Haible  <bruno@clisp.org>
54226
54227         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54228         roundf were declared but do not exist on functions.
54229         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54230         roundl were declared but do not exist on functions.
54231         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54232         HAVE_FLOORL_AND_CEILL, respectively.
54233         Needed for Sun C on Solaris 10.
54234
54235 2007-11-11  Bruno Haible  <bruno@clisp.org>
54236
54237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54238         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54239         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54240         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54241         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54242         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54243         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54244         HAVE_DECL_ROUNDF.
54245         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54246         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54248         of HAVE_DECL_ROUND*.
54249         * modules/math (Makefile.am): Update.
54250
54251 2007-11-10  Bruno Haible  <bruno@clisp.org>
54252
54253         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54254         ptrdiff_t as m4/intl.m4.
54255
54256 2007-11-10  Jim Meyering  <meyering@redhat.com>
54257
54258         Avoid link failure for the argmatch test.
54259         * tests/test-argmatch.c (usage): Define function to avoid a link
54260         failure: argmatch_die requires a usage function.
54261
54262 2007-11-09  Bruno Haible  <bruno@clisp.org>
54263
54264         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54265         * doc/functions/vsnprintf.texi: Likewise.
54266         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54267         with a size argument < 2.
54268
54269 2007-11-09  Bruno Haible  <bruno@clisp.org>
54270
54271         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54272         buffer. Fixes an inefficiency introduced on 2007-11-03.
54273
54274 2007-11-09  Bruno Haible  <bruno@clisp.org>
54275
54276         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54277         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54278
54279 2007-11-08  Jim Meyering  <meyering@redhat.com>
54280
54281         Change cache variable name prefix "jm_" to "gl_" everywhere.
54282         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54283         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54284         * m4/uptime.m4: s/gl_/jm_/
54285
54286 2007-11-07  Bruno Haible  <bruno@clisp.org>
54287
54288         Update to GNU gettext 0.17.
54289         * m4/intl.m4: Update to GNU gettext 0.17.
54290         * m4/po.m4: Likewise.
54291         * modules/gettext (Files): Remove m4/ulonglong.m4.
54292         (configure.ac): Require gettext infrastructure from version 0.17.
54293
54294 2007-11-06  Bruno Haible  <bruno@clisp.org>
54295
54296         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54297         symbolic values are not defined in a public header.
54298         * lib/freadable.c (freadable) [QNX]: Likewise.
54299         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54300         * lib/freading.c (freading) [QNX]: Likewise.
54301         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54302         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54303         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54304         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54305         Reported by Alain Magloire.
54306
54307         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54308
54309 2007-11-05  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54312         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54313         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54314         Reported by Eric Blake.
54315
54316 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54317             Bruno Haible  <bruno@clisp.org>
54318
54319         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54320         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54321         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54322         (malloc): Undefine also before including <stdlib.h>.
54323         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54324         Needed on OSF/1 4.0.
54325
54326 2007-11-05  Jim Meyering  <meyering@redhat.com>
54327
54328         git-version-gen: sync from coreutils.
54329         * build-aux/git-version-gen: Add comments.
54330         Change the first '-' to '.' in the snapshot version string,
54331         e.g., 6.9-377-08144 -> 6.9.377-08144
54332         Remove first parameter.
54333         Don't declare a version "-dirty" merely because a time
54334         stamp has changed.
54335
54336 2007-11-04  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/lock.h: Protect all macro definitions containing an 'if'
54339         statement through a "do { ... } while (0)".
54340         * lib/tls.h: Likewise.
54341
54342 2007-11-04  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54345
54346 2007-11-04  Bruno Haible  <bruno@clisp.org>
54347
54348         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54349         * modules/fprintf-posix (Depends-on): Add nocrash.
54350         * modules/snprintf-posix (Depends-on): Likewise.
54351         * modules/sprintf-posix (Depends-on): Likewise.
54352         * modules/vasnprintf-posix (Depends-on): Likewise.
54353         * modules/vasprintf-posix (Depends-on): Likewise.
54354         * modules/vfprintf-posix (Depends-on): Likewise.
54355         * modules/vsnprintf-posix (Depends-on): Likewise.
54356         * modules/vsprintf-posix (Depends-on): Likewise.
54357         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54358         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54359         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54360         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54361         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54362         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54363         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54364
54365 2007-11-04  Bruno Haible  <bruno@clisp.org>
54366
54367         * modules/nocrash: New file.
54368         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54369         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54370
54371 2007-11-04  Bruno Haible  <bruno@clisp.org>
54372
54373         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54374         precision handling.
54375         * tests/test-vasprintf-posix.c (test_function): Likewise.
54376         * tests/test-snprintf-posix.h (test_function): Likewise.
54377         * tests/test-sprintf-posix.h (test_function): Likewise.
54378
54379         Fix *printf behaviour for large precisions on mingw and BeOS.
54380         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54381         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54383         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54385         gl_PRINTF_PRECISION and test its result. Invoke
54386         gl_PREREQ_VASNPRINTF_PRECISION.
54387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54394         * doc/functions/fprintf.texi: Update.
54395         * doc/functions/printf.texi: Update.
54396         * doc/functions/snprintf.texi: Update.
54397         * doc/functions/sprintf.texi: Update.
54398         * doc/functions/vfprintf.texi: Update.
54399         * doc/functions/vprintf.texi: Update.
54400         * doc/functions/vsnprintf.texi: Update.
54401         * doc/functions/vsprintf.texi: Update.
54402
54403 2007-11-04  Bruno Haible  <bruno@clisp.org>
54404
54405         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54406
54407 2007-11-04  Bruno Haible  <bruno@clisp.org>
54408
54409         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54410         Reported by Sylvain Beucler <beuc@gnu.org>.
54411
54412 2007-11-03  Bruno Haible  <bruno@clisp.org>
54413
54414         * tests/test-fprintf-posix2.sh: New file.
54415         * tests/test-fprintf-posix2.c: New file.
54416         * modules/fprintf-posix-tests (Files): Add them.
54417         (TESTS): Add test-fprintf-posix2.sh.
54418         (configure.ac): Check for getrlimit and setrlimit.
54419         (check_PROGRAMS): Add test-fprintf-posix2.
54420
54421         * tests/test-printf-posix2.sh: New file.
54422         * tests/test-printf-posix2.c: New file.
54423         * modules/printf-posix-tests (Files): Add them.
54424         (TESTS): Add test-printf-posix2.sh.
54425         (configure.ac): Check for getrlimit and setrlimit.
54426         (check_PROGRAMS): Add test-printf-posix2.
54427
54428         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54429         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54430         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54431         (decode_double): New function, copied from decode_long_double.
54432         (scale10_round_decimal_decoded): New function, extracted from
54433         scale10_round_decimal_long_double.
54434         (scale10_round_decimal_long_double): Use it.
54435         (scale10_round_decimal_double): New function.
54436         (floorlog10): New function.
54437         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54439         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54441         gl_PRINTF_ENOMEM and test its result. Invoke
54442         gl_PREREQ_VASNPRINTF_ENOMEM.
54443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54444         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54445         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54447         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54448         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54449         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54450         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54451         * modules/snprintf-posix (Depends-on): Likewise.
54452         * modules/sprintf-posix (Depends-on): Likewise.
54453         * modules/vasnprintf-posix (Depends-on): Likewise.
54454         * modules/vasprintf-posix (Depends-on): Likewise.
54455         * modules/vfprintf-posix (Depends-on): Likewise.
54456         * modules/vsnprintf-posix (Depends-on): Likewise.
54457         * modules/vsprintf-posix (Depends-on): Likewise.
54458         * doc/functions/fprintf.texi: Update.
54459         * doc/functions/printf.texi: Update.
54460         * doc/functions/snprintf.texi: Update.
54461         * doc/functions/sprintf.texi: Update.
54462         * doc/functions/vfprintf.texi: Update.
54463         * doc/functions/vprintf.texi: Update.
54464         * doc/functions/vsnprintf.texi: Update.
54465         * doc/functions/vsprintf.texi: Update.
54466
54467 2007-11-03  Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/frexp-nolibm-tests: New file.
54470
54471         * modules/frexp-nolibm: New file.
54472         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54473
54474 2007-11-03  Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54477         value is C99 compliant.
54478         Needed for OSF/1 5.1.
54479
54480 2007-11-03  Bruno Haible  <bruno@clisp.org>
54481
54482         Fix out-of-memory handling of vasnprintf.
54483         * lib/printf-parse.c: Include <errno.h>.
54484         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54485         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54486         is already set.
54487
54488 2007-11-02  Eric Blake  <ebb9@byu.net>
54489
54490         Fix tests on cygwin.
54491         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54492
54493 2007-11-01  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54496         warning.
54497         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54498         needed for POSIX compatibility.
54499
54500 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54501
54502         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54503         for compatibility with GNU.
54504
54505 2007-11-01  Bruno Haible  <bruno@clisp.org>
54506
54507         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54508         (putenv): Renamed from rpl_putenv. Change argument type from
54509         'const char *' to 'char *'.
54510         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54511         of defining putenv in config.h, just set REPLACE_PUTENV.
54512         * modules/putenv (Depends-on): Add stdlib.
54513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54514         (Include): Use <stdlib.h>.
54515         * lib/stdlib.in.h (putenv): New declaration.
54516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54517         REPLACE_PUTENV.
54518         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54519         REPLACE_PUTENV.
54520         Needed for MacOS X 10.5.0.
54521         Reported by Peter O'Gorman <peter@pogma.com>.
54522
54523 2007-11-01  Jim Meyering  <meyering@redhat.com>
54524
54525         Treat an empty date string exactly like "0".
54526         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54527         if the remaining date string (to be parsed) is empty, use "0".
54528         Reported by Mischa Molhoek and discussed in this thread:
54529         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54530
54531 2007-10-31  Bruno Haible  <bruno@clisp.org>
54532
54533         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54534         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54535         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54536         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54537         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54538         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54539
54540 2007-10-31  Bruno Haible  <bruno@clisp.org>
54541
54542         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54543         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54544         (AC_TYPE_LONG_LONG_INT): Use it.
54545         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54546         it as well.
54547         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54548         to m4/longlong.m4.
54549         * modules/stdint (Files): Remove m4/ulonglong.m4.
54550         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54551         m4/ulonglong.m4.
54552         * modules/strtoumax (Files): Likewise.
54553
54554 2007-10-30  Bruno Haible  <bruno@clisp.org>
54555
54556         * modules/xvasprintf-posix: New file.
54557         Suggested by Eric Blake.
54558
54559 2007-10-30  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/xprintf-posix-tests: New file.
54562         * tests/test-xprintf-posix.sh: New file.
54563         * tests/test-xprintf-posix.c: New file.
54564         * tests/test-xfprintf-posix.c: New file.
54565
54566         * modules/xprintf-posix: New file.
54567
54568 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54569
54570         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54571         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54572         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54573
54574 2007-10-29  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54577         contain the special marker '_cv_'.
54578         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54579         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54580         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54581         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54582         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54583         Reported by Ralf Wildenhues.
54584
54585 2007-10-29  Bruno Haible  <bruno@clisp.org>
54586
54587         * gnulib-tool (func_import): When --lgpl is not specified, set
54588         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54589         GPLv3.
54590         Reported by Simon Josefsson.
54591
54592 2007-10-28  Bruno Haible  <bruno@clisp.org>
54593
54594         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54595         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54596         HAVE_DECL_ISFINITE.
54597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54598         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54599         HAVE_DECL_ISFINITE.
54600
54601 2007-10-28  Bruno Haible  <bruno@clisp.org>
54602
54603         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54604         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54605
54606 2007-10-28  Bruno Haible  <bruno@clisp.org>
54607
54608         Fix link errors with Sun C 5.0 on Solaris 10.
54609         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54610         function is declared but not present in the compiler's libm.
54611         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54612         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54613         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54614         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54615         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54616         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54617         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54619         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54620         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54621         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54622         HAVE_DECL_FLOORL.
54623
54624 2007-10-28  Bruno Haible  <bruno@clisp.org>
54625
54626         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54627         gl_FUNC_FLOORL. Cache the result.
54628         (gl_FUNC_FLOORL): Use it.
54629         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54630         gl_FUNC_CEILL. Cache the result.
54631         (gl_FUNC_CEILL): Use it.
54632
54633         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54634         gl_FUNC_FLOOR. Cache the result.
54635         (gl_FUNC_FLOOR): Use it.
54636         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54637         gl_FUNC_CEIL. Cache the result.
54638         (gl_FUNC_CEIL): Use it.
54639
54640         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54641         gl_FUNC_FLOORF. Cache the result.
54642         (gl_FUNC_FLOORF): Use it.
54643         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54644         gl_FUNC_CEILF. Cache the result.
54645         (gl_FUNC_CEILF): Use it.
54646
54647 2007-10-28  Bruno Haible  <bruno@clisp.org>
54648
54649         * gnulib-tool: Allow specifying the LGPL version number through
54650         --lgpl=2 or --lgpl=3.
54651         (func_usage): Document --lgpl with argument.
54652         Handle --lgpl=... arguments.
54653         (func_import): Recognize also gl_LGPL calls with an argument. When
54654         --lgpl=2 is used and the module's license is just LGPL, report an
54655         error. Set sed_transform_lib_file according to the lgpl variable. In
54656         the generated files, use --lgpl or gl_LGPL invocations with argument,
54657         if necessary.
54658         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54659         an LGPv2+ license.
54660         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54661         gl_LGPL macro.
54662
54663 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54664             Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54667         (u16_uctomb_aux): Likewise.
54668         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54669         !HAVE_INLINE.
54670         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54671
54672 2007-10-28  Bruno Haible  <bruno@clisp.org>
54673
54674         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54675         Invoke AM_GETTEXT_OPTION if it exists.
54676         * modules/vasprintf: Likewise.
54677         * modules/verror: Likewise.
54678         * modules/xprintf: Likewise.
54679         * modules/xvasprintf: Likewise.
54680
54681 2007-10-27  Ben Pfaff  <blp@gnu.org>
54682
54683         * lib/math.in.h: Define isfinite macro and prototypes for
54684         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54685         implementations.
54686         * m4/math_h.m4: New substitutions for isfinite module.
54687         * lib/isfinite.c: New file.
54688         * m4/isfinite.m4: New file.
54689         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54690         * modules/isfinite: New file.
54691         * modules/isfinite-tests: New file.
54692         * tests/tests-isfinite.c: New file.
54693         * doc/functions/isfinite.texi: Mention isfinite module.
54694         * MODULES.html.sh: Mention new module.
54695
54696 2007-10-27  Ben Pfaff  <blp@gnu.org>
54697
54698         Ralf Wildenhues reported that Tru64 4.0D declares the round
54699         functions but does not have definitions.
54700         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54701         cannot be found in any library, set the output variable to
54702         "missing" instead of "".
54703         * m4/round.m4: Also use our substitute if we cannot find round in
54704         any library, even if it is declared.
54705         * m4/roundf.m4: Likewise for roundf.
54706         * m4/roundl.m4: Likewise for roundl.
54707         * lib/math.in.h: Undefine roundf, round, roundl before defining
54708         their replacements, to allow for hypothetical systems where these
54709         may be defined as macros but not available in libraries.
54710
54711 2007-10-27  Bruno Haible  <bruno@clisp.org>
54712
54713         * doc/gnulib.texi: Invoke @firstparagraphindent.
54714         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54715         changes in gnulib.
54716         (Source changes): New section.
54717
54718 2007-10-26  Bruno Haible  <bruno@clisp.org>
54719
54720         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54721         borrowed from autoconf.
54722
54723 2007-10-26  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54726         strerror returned the empty string. Needed on HP-UX 11.00.
54727
54728 2007-10-24  Micah Cowan  <micah@cowan.name>
54729
54730         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54731         * build-aux/bootstrap: Remove support for now-unnecessary option,
54732         --cvs-user, and envvars CVS_USER, CVS_RSH.
54733
54734 2007-10-24  Jim Meyering  <meyering@redhat.com>
54735
54736         Avoid diagnostics from sha1sum when there is no cached checksum.
54737         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54738         if the po.s1 file hasn't been created yet.
54739
54740         * build-aux/bootstrap: Sync from coreutils:
54741         2007-10-24  Jim Meyering  <meyering@redhat.com>
54742         Get gnulib from the git repository, not from an obsolete cvs one.
54743         * build-aux/bootstrap: Suggestion from Micah Cowan.
54744         2007-10-04  Jim Meyering  <jim@meyering.net>
54745         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54746         (update_po_files): Work also when there are no .po files in po/.
54747
54748 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54749
54750         * README: Append ".git" to git and cg examples.
54751         Problem reported by Benoit Sigoure.
54752
54753 2007-10-23  Micah Cowan  <micah@cowan.name>
54754
54755         * users.txt: Add wget.
54756
54757 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54758
54759         Fix linking of some unistdio tests on FreeBSD.
54760         * modules/unistdio/u16-vsnprintf-tests
54761         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54762         * modules/unistdio/u16-vsprintf-tests
54763         (test_u16_vsnprintf1_LDADD): Likewise.
54764         * modules/unistdio/u32-vsnprintf-tests
54765         (test_u32_vsnprintf1_LDADD): Likewise.
54766         * modules/unistdio/u32-vsprintf-tests
54767         (test_u32_vsprintf1_LDADD): Likewise.
54768         * modules/unistdio/u8-vsnprintf-tests
54769         (test_u8_vsnprintf1_LDADD): Likewise.
54770         * modules/unistdio/u8-vsprintf-tests
54771         (test_u8_vsprintf1_LDADD): Likewise.
54772         * modules/unistdio/ulc-vsnprintf-tests
54773         (test_ulc_vsnprintf1_LDADD): Likewise.
54774         * modules/unistdio/ulc-vsprintf-tests
54775         (test_ulc_vsprintf1_LDADD): Likewise.
54776
54777         Fix linking of some uniconv tests on FreeBSD.
54778         * modules/uniconv/u16-conv-from-enc-tests
54779         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54780         * modules/uniconv/u16-conv-to-enc-tests
54781         (test_u16_conv_to_enc_LDADD): Likewise.
54782         * modules/uniconv/u16-strconv-from-enc-tests
54783         (test_u16_strconv_from_enc_LDADD): Likewise.
54784         * modules/uniconv/u16-strconv-to-enc-tests
54785         (test_u16_strconv_to_enc_LDADD): Likewise.
54786         * modules/uniconv/u32-conv-from-enc-tests
54787         (test_u32_conv_from_enc_LDADD): Likewise.
54788         * modules/uniconv/u32-conv-to-enc-tests
54789         (test_u32_conv_to_enc_LDADD): Likewise.
54790         * modules/uniconv/u32-strconv-from-enc-tests
54791         (test_u32_strconv_from_enc_LDADD): Likewise.
54792         * modules/uniconv/u32-strconv-to-enc-tests
54793         (test_u32_strconv_to_enc_LDADD): Likewise.
54794         * modules/uniconv/u8-conv-from-enc-tests
54795         (test_u8_conv_from_enc_LDADD): Likewise.
54796         * modules/uniconv/u8-conv-to-enc-tests
54797         (test_u8_conv_to_enc_LDADD): Likewise.
54798         * modules/uniconv/u8-strconv-from-enc-tests
54799         (test_u8_strconv_from_enc_LDADD): Likewise.
54800         * modules/uniconv/u8-strconv-to-enc-tests
54801         (test_u8_strconv_to_enc_LDADD): Likewise.
54802
54803 2007-10-22  Bruno Haible  <bruno@clisp.org>
54804
54805         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54806         size.
54807
54808 2007-10-22  Eric Blake  <ebb9@byu.net>
54809
54810         Tweak x*printf documentation.
54811         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54812         variable name and comments.
54813         Suggested by Bruno Haible.
54814
54815 2007-10-22  Bruno Haible  <bruno@clisp.org>
54816
54817         * lib/acl.c (copy_acl): Fix file name in comment.
54818
54819 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54820
54821         Fix Tru64 problem with stdbool.h.
54822         * lib/stdbool.in.h (false, true):
54823         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54824         Don't declare as an enum in this situation; it runs afoul of Tru64.
54825         Problem reported by Steven M. Schweda in
54826         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54827
54828 2007-10-22  Eric Blake  <ebb9@byu.net>
54829
54830         Also wrap vf?printf.
54831         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54832         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54833         (xvprintf, xvfprintf): New functions.
54834
54835 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54836
54837         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54838         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54839
54840         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54841         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54842
54843 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54844
54845         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54846         by Bruno Haible.
54847
54848 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54849
54850         * lib/getloadavg.c
54851         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54852         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54853
54854         * tests/test-i-ring.c: Work for C89.
54855
54856 2007-10-22  Bruno Haible  <bruno@clisp.org>
54857
54858         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54859         -1u, in preprocessor expression, so that we don't test for the bug
54860         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54862
54863 2007-10-22  Eric Blake  <ebb9@byu.net>
54864
54865         * tests/test-yesno.sh: Silence stderr during test.
54866
54867 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54868
54869         * modules/crypto/gc-camellia: New file.
54870
54871         * m4/gc-camellia.m4: New file.
54872
54873         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54874
54875         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54876
54877 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54878
54879         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54880         --help to stdout.  Reported by sms@antinode.org (Steven
54881         M. Schweda).
54882
54883 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54884
54885         * users.txt: Fix link to libksba.
54886
54887 2007-10-21  Ben Pfaff  <blp@gnu.org>
54888
54889         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54890         round.c roundf implementation that depends on floorf and ceilf to
54891         be tested unconditionally.
54892
54893 2007-10-21  Ben Pfaff  <blp@gnu.org>
54894
54895         * m4/check-libm-func.m4: Removed.
54896         * m4/check-math-lib.m4: New file.
54897         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54898         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54899         definition and lack of AC_LIBOBJ([roundf]).
54900         * m4/roundl.m4: Ditto, and similarly for roundl.
54901         * modules/round: Reference new m4 file.
54902         * modules/roundf: Ditto.
54903         * modules/roundl: Ditto.
54904         * tests/test-round2.c (main): Use ROUND instead of round.
54905         Bug report from Bruno Haible.
54906
54907 2007-10-21  Bruno Haible  <bruno@clisp.org>
54908
54909         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54910         context.
54911
54912 2007-10-21  Bruno Haible  <bruno@clisp.org>
54913
54914         * tests/test-wcwidth.c (main): Allow negative result for some control
54915         characters.
54916
54917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54918         Needed on OSF/1 5.1.
54919
54920 2007-10-21  Bruno Haible  <bruno@clisp.org>
54921
54922         * tests/test-floorf1.c: Include isnanf.h.
54923         (main): Use isnanf() instead of isnan().
54924         * tests/test-ceilf1.c: Include isnanf.h.
54925         (main): Use isnanf() instead of isnan().
54926         * tests/test-truncf1.c: Include isnanf.h.
54927         (main): Use isnanf() instead of isnan().
54928         * tests/test-roundf1.c: Include isnanf.h.
54929         (main): Use isnanf() instead of isnan().
54930
54931 2007-10-21  Eric Blake  <ebb9@byu.net>
54932
54933         * users.txt: Update URL for m4.
54934
54935 2007-10-21  Bruno Haible  <bruno@clisp.org>
54936
54937         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54938
54939 2007-10-21  Bruno Haible  <bruno@clisp.org>
54940
54941         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54942         Git's management files if the CVS files are not present.
54943
54944 2007-10-20  Bruno Haible  <bruno@clisp.org>
54945
54946         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54947         gcc-3.4.x.
54948
54949 2007-10-20  Ben Pfaff  <blp@gnu.org>
54950
54951         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54952         implementations.
54953         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54954         * lib/round.c: New file.
54955         * lib/roundf.c: New file.
54956         * lib/roundl.c: New file.
54957         * m4/round.m4: New file.
54958         * m4/roundf.m4: New file.
54959         * m4/roundl.m4: New file.
54960         * m4/check-libm-func-m4: New file.
54961         * modules/math: Replace round, roundf, roundl related @VARS@ in
54962         math.in.h.
54963         * modules/round: New file.
54964         * modules/round-tests: New file.
54965         * modules/roundf: New file.
54966         * modules/roundf-tests: New file.
54967         * modules/roundl: New file.
54968         * modules/roundl-tests: New file.
54969         * tests/test-round1.c: New file.
54970         * tests/test-round2.c: New file.
54971         * tests/test-roundf1.c: New file.
54972         * tests/test-roundf2.c: New file.
54973         * tests/test-roundl.c: New file.
54974         * doc/functions/round.texi: Mention round module.
54975         * doc/functions/roundf.texi: Mention roundf module.
54976         * doc/functions/roundl.texi: Mention roundl module.
54977         * MODULES.html.sh: Mention new modules.
54978         Thanks to Bruno Haible for suggestions.
54979
54980 2007-10-20  Jim Meyering  <meyering@redhat.com>
54981
54982         * lib/xprintf.c: Include <config.h> unconditionally.
54983
54984         Change xprintf's license to GPL.
54985         * modules/xprintf (License): s/LGPL/GPL/, since this module
54986         depends on modules (exit and exitfail) which are GPL.
54987         Suggestion from Bruno Haible.
54988
54989         xprintf fixes.
54990         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54991         Use a clearer diagnostic.
54992         Patch from Bruno Haible.
54993
54994 2007-10-20  Bruno Haible  <bruno@clisp.org>
54995
54996         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54997         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54999
55000 2007-10-20  Bruno Haible  <bruno@clisp.org>
55001
55002         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55003         precision in the comparison result > x - 1 or similar.
55004         * tests/test-ceilf2.c (correct_result_p): Likewise.
55005         * tests/test-truncf2.c (correct_result_p): Likewise.
55006         * tests/test-trunc2.c (correct_result_p): Likewise.
55007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55008
55009 2007-10-20  Bruno Haible  <bruno@clisp.org>
55010
55011         * modules/ceil: New file.
55012         * m4/ceil.m4: New file.
55013         * doc/functions/ceil.texi: Mention the 'ceil' module.
55014
55015 2007-10-20  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/floor: New file.
55018         * m4/floor.m4: New file.
55019         * doc/functions/floor.texi: Mention the 'floor' module.
55020
55021 2007-10-20  Bruno Haible  <bruno@clisp.org>
55022
55023         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55024         of %a.
55025         * modules/floorf-tests (Depends-on): Likewise.
55026         * modules/truncf-tests (Depends-on): Likewise.
55027         * modules/trunc-tests (Depends-on): Likewise.
55028         Reported by Ben Pfaff.
55029
55030 2007-10-19  Jim Meyering  <meyering@redhat.com>
55031
55032         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55033         Don't bother testing specific errno values.  Just test ferror.
55034
55035         New module: xprintf
55036         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55037
55038 2007-10-19  Bruno Haible  <bruno@clisp.org>
55039
55040         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55041         syntax.
55042         * modules/javaexec (Makefile.am): Likewise.
55043         * modules/relocatable-prog (Makefile.am): Likewise.
55044         Suggested by Jim Meyering.
55045
55046 2007-10-18  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55049         Reported by Jim Meyering.
55050
55051 2007-10-18  Eric Blake  <ebb9@byu.net>
55052
55053         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55054
55055 2007-10-18  Bruno Haible  <bruno@clisp.org>
55056
55057         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55058         the format string into writable memory. Needed in Fortify conditions.
55059
55060 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55061             Bruno Haible  <bruno@clisp.org>
55062
55063         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55064         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55065         * modules/trim (Depends-on): Add mbchar.
55066         (configure.ac): Add gl_FUNC_MBRTOWC.
55067         (Makefile.am): Augment lib_SOURCES.
55068
55069 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55070
55071         Modify glob.c to use fstatat and dirfd, to simplify it.
55072         Suggested by Eric Blake.
55073         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55074         Don't include <stdbool.h>; not used.
55075         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55076         (link_exists_p): Simplify implementation, since we can now assume
55077         dirfd and fstatat.
55078         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55079
55080 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55081
55082         * gnulib-tool (func_get_dependencies): Fix sed script to
55083         match only tests.
55084
55085 2007-10-17  Bruno Haible  <bruno@clisp.org>
55086
55087         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55088         allow locale names without encoding suffix.
55089         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55091
55092 2007-10-16  Bruno Haible  <bruno@clisp.org>
55093
55094         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55095         * lib/getgroups.c (getgroups): Likewise.
55096         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55097
55098 2007-10-16  Bruno Haible  <bruno@clisp.org>
55099
55100         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55101         * modules/malloc-posix (License): Likewise.
55102         * modules/realloc-posix (License): Likewise.
55103         * modules/calloc-posix (License): Likewise.
55104         * modules/intprops (License): Change from GPL to LGPL, with
55105         Paul Eggert's approval.
55106
55107 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55108
55109         Merge glibc changes into lib/glob.c.
55110
55111         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55112         2007-10-15 04:59:03 UTC.  Here are the changes:
55113
55114         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55115
55116         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55117
55118         * lib/glob.c: Add some branch prediction throughout.
55119
55120         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55121
55122         [BZ #5103]
55123         * lib/glob.c (glob): Recognize patterns starting \/.
55124
55125         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55126
55127         [BZ #3996]
55128         * lib/glob.c (attribute_hidden): Define if not defined.
55129         (glob): Unescape dirname, filename or username when needed and not
55130         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55131         is NULL.  Handle unescaped [ in pattern without closing ].
55132         Don't pass GLOB_CHECK down to recursive glob for directories.
55133         (__glob_pattern_type): New function.
55134         (__glob_pattern_p): Implement using __glob_pattern_type.
55135         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55136         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55137         Remove unreachable code.
55138
55139         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55140
55141         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55142         explain why there are no leaks.
55143
55144         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55145
55146         [BZ #3253]
55147         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55148         time, rather allocate increasingly bigger arrays of pointers, if
55149         possible with alloca, if too large with malloc.
55150
55151 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55154         Problem reported by H.Merijn Brand in
55155         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55156         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55157         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55158
55159 2007-10-15  Bruno Haible  <bruno@clisp.org>
55160
55161         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55162         with explicit rpl_ prefix.
55163         * lib/fopen.c (fopen): Likewise.
55164         * lib/freopen.c (freopen): Likewise.
55165         * lib/iconv.c (iconv): Likewise.
55166         * lib/iconv_close.c (iconv_close): Likewise.
55167
55168 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55169
55170         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55171
55172 2007-10-15  Bruno Haible  <bruno@clisp.org>
55173
55174         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55175         <stddef.h> instead of <stdlib.h> since we only need NULL.
55176         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55177
55178 2007-10-15  Bruno Haible  <bruno@clisp.org>
55179
55180         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55181         Replace paragraph talking about LIBOBJS.
55182         Reported by Colin Watson <cjwatson@debian.org>.
55183
55184 2007-10-15  Bruno Haible  <bruno@clisp.org>
55185
55186         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55187         <stdlib.h> before using NULL.
55188
55189 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55190
55191         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55192         Reported by Albert Chin <china@thewrittenword.com>.
55193
55194 2007-10-14  Bruno Haible  <bruno@clisp.org>
55195
55196         * modules/iconv_open-utf-tests: New file.
55197         * tests/test-iconv-utf.c: New file.
55198
55199         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55200         * modules/iconv_open-utf: New file.
55201         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55202         (iconv, iconv_close): New declarations.
55203         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55204         be defined.
55205         (iconv_open): Add special handling of conversion between UTF-8 and
55206         UTF-{16,32}{BE,LE}.
55207         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55208         * lib/iconv_close.c: New file.
55209         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55210         gl_FUNC_ICONV_OPEN.
55211         (gl_FUNC_ICONV_OPEN): Use it.
55212         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55213         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55214         and REPLACE_ICONV_UTF.
55215         * modules/iconv_open (Depends-on): Add c-strcase.
55216         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55217         ICONV_CONST.
55218         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55219
55220 2007-10-13  Albert Chin  <china@thewrittenword.com>
55221             Bruno Haible  <bruno@clisp.org>
55222
55223         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55224         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55225
55226 2007-10-13  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55229         defined, use the ISO C99 inline semantics.
55230         * lib/argp.h (ARGP_EI): Likewise.
55231
55232 2007-10-13  Bruno Haible  <bruno@clisp.org>
55233
55234         Handle 'inline' change in gcc 4.3.0.
55235         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55236         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55237         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55238         argp_fmtstream_point): Disable 'extern' declaration if the function
55239         definition is going to be provided inline.
55240         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55241         semantics, not the ISO C99 inline semantics.
55242         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55243         'extern' declaration if the function definition is going to be provided
55244         inline.
55245         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55246         the GNU C inline semantics, not the ISO C99 inline semantics. With
55247         GCC 4.2, avoid a warning.
55248
55249 2007-10-13  Bruno Haible  <bruno@clisp.org>
55250
55251         * lib/freading.h (freading): Enable the use of __freading for
55252         glibc >= 2.7.
55253         * lib/freading.c (freading): Likewise.
55254
55255 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55258         "warning: C99 inline functions are not supported; using GNU89".
55259
55260 2007-10-12  Bruno Haible  <bruno@clisp.org>
55261
55262         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55263         of 2.
55264         * tests/test-ceilf2.c: New file.
55265         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55266
55267         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55268         * modules/ceilf-tests: Update.
55269
55270 2007-10-12  Bruno Haible  <bruno@clisp.org>
55271
55272         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55273         of 2.
55274         * tests/test-floorf2.c: New file.
55275         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55276
55277         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55278         * modules/floorf-tests: Update.
55279
55280 2007-10-12  Bruno Haible  <bruno@clisp.org>
55281
55282         * tests/test-trunc2.c: New file.
55283         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55284
55285         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55286         * modules/trunc-tests: Update.
55287
55288 2007-10-12  Bruno Haible  <bruno@clisp.org>
55289
55290         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55291         of 2.
55292         * tests/test-truncf2.c: New file.
55293         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55294
55295         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55296         * modules/truncf-tests: Update.
55297
55298 2007-10-11  Eric Blake  <ebb9@byu.net>
55299
55300         Don't claim strerror is broken on Interix.
55301         * doc/functions/strerror.texi (strerror): Known broken systems are
55302         now Solaris 8, and not Interix.
55303         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55304         Interix on cross-compile.
55305         Reported by Martin Koeppe in
55306         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55307
55308 2007-10-11  Bruno Haible  <bruno@clisp.org>
55309
55310         * modules/i-ring-tests: New file.
55311         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55312         instead of assert.
55313
55314 2007-10-11  Bruno Haible  <bruno@clisp.org>
55315
55316         * modules/filenamecat-tests: New file.
55317         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55318         * lib/filenamecat.c: Remove test code.
55319
55320 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55321
55322         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55323
55324         * lib/strerror.c: Include <string.h> always, to test interface,
55325         and to remove the need for the dummy.
55326         Include intprops.h to compute width instead of doing it ourselves
55327         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55328         (strerror): Define it to return NULL if there's no system strerror.
55329         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55330         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55331         ancient pre-strerror Unix systems well any more.  Saying "unknown
55332         system error" is enough.
55333         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55334         simpler strerror.c implementation.
55335         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55336         Simplify the tests to reflect the simpler strerror implementation.
55337         * modules/strerror (Depends-on): Add intprops.
55338
55339 2007-10-09  Eric Blake  <ebb9@byu.net>
55340
55341         Silence test-fpending.
55342         * modules/fpending-tests (Files): Add wrapper script.
55343         * tests/test-fpending.sh: New file.
55344
55345 2007-10-09  Bruno Haible  <bruno@clisp.org>
55346
55347         * MODULES.html.sh (func_module): Don't create a hyperlink for
55348         function names like 'printf_frexp'.
55349         (Misc): Add crc, memxor.
55350         (Characteristics of floating types): New section.
55351         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55352         isnanf-nolibm, signbit, trunc, truncf, truncl.
55353         (Enhancements for ISO C 99 functions): New subsection Input/output.
55354         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55355         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55356         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55357         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55358         (Enhancements for POSIX:2001 functions): Add chdir-long.
55359         (File system functions): Add areadlink, chdir-safer, read-file.
55360         Remove cycle-check.
55361         (File system as inode set): New section.
55362         (Date and time): Add gethrxtime.
55363         (Multithreading): Add openmp.
55364         (Internationalization functions): Add localename.
55365         (Unicode string functions): Add unistr/u*-mbsnlen.
55366         (Support for maintaining and releasing projects): Add git-version-gen.
55367         (Lone files): Remove directories.
55368
55369 2007-10-08  Ben Pfaff  <blp@gnu.org>
55370
55371         * lib/xmalloca.h: Fix typo in comment.
55372
55373 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55376         when avoiding problems with integer overflow.  Use a portable test
55377         instead.
55378
55379 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55380
55381         * modules/dummy (License): Change to LGPLv2+.
55382         * modules/float (License): Likewise
55383         * modules/realloc (License): Likewise
55384         * modules/stdlib (License): Likewise
55385
55386 2007-10-07  Bruno Haible  <bruno@clisp.org>
55387
55388         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55389         * floor.c (TWO_MANT_DIG): Likewise.
55390         * ceil.c (TWO_MANT_DIG): Likewise.
55391         Reported by Ben Pfaff.
55392
55393 2007-10-07  Bruno Haible  <bruno@clisp.org>
55394
55395         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55396         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55397         * lib/frexp.c (FUNC): Likewise.
55398         * lib/printf-frexp.h (printf_frexp): Likewise.
55399         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55400         * lib/printf-frexp.c (FUNC): Likewise.
55401         Suggested by Jim Meyering.
55402
55403 2007-10-07  Jim Meyering  <meyering@redhat.com>
55404
55405         Make xnanosleep's integer overflow test more robust.
55406         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55407         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55408
55409 2007-10-07  Bruno Haible  <bruno@clisp.org>
55410
55411         * NEWS: Mention the license change.
55412
55413         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55414         abbreviations in the modules files.
55415
55416         Change copyright notice from GPLv2+ to GPLv3+.
55417         * README: Change copyright notice.
55418         * MODULES.html.sh: Likewise.
55419         * build-aux/bootstrap.conf: Likewise.
55420         * build-aux/config.libpath: Likewise.
55421         * build-aux/csharpcomp.sh.in: Likewise.
55422         * build-aux/csharpexec.sh.in: Likewise.
55423         * build-aux/install-reloc: Likewise.
55424         * build-aux/javacomp.sh.in: Likewise.
55425         * build-aux/javaexec.sh.in: Likewise.
55426         * build-aux/ldd.sh.in: Likewise.
55427         * build-aux/reloc-ldflags: Likewise.
55428         * build-aux/relocatable.sh.in: Likewise.
55429         * build-aux/x-to-1.in: Likewise.
55430         * check-module: Likewise.
55431         * config/srclistvars.sh: Likewise.
55432         * gnulib-tool: Likewise.
55433         * lib/acl-internal.h: Likewise.
55434         * lib/acl.c: Likewise.
55435         * lib/acl.h: Likewise.
55436         * lib/acl_entries.c: Likewise.
55437         * lib/areadlink-with-size.c: Likewise.
55438         * lib/areadlink.c: Likewise.
55439         * lib/areadlink.h: Likewise.
55440         * lib/argmatch.c: Likewise.
55441         * lib/argmatch.h: Likewise.
55442         * lib/argp-ba.c: Likewise.
55443         * lib/argp-eexst.c: Likewise.
55444         * lib/argp-fmtstream.c: Likewise.
55445         * lib/argp-fmtstream.h: Likewise.
55446         * lib/argp-fs-xinl.c: Likewise.
55447         * lib/argp-help.c: Likewise.
55448         * lib/argp-namefrob.h: Likewise.
55449         * lib/argp-parse.c: Likewise.
55450         * lib/argp-pin.c: Likewise.
55451         * lib/argp-pv.c: Likewise.
55452         * lib/argp-pvh.c: Likewise.
55453         * lib/argp-xinl.c: Likewise.
55454         * lib/argp.h: Likewise.
55455         * lib/at-func.c: Likewise.
55456         * lib/atanl.c: Likewise.
55457         * lib/backupfile.c: Likewise.
55458         * lib/backupfile.h: Likewise.
55459         * lib/basename.c: Likewise.
55460         * lib/binary-io.h: Likewise.
55461         * lib/byteswap.in.h: Likewise.
55462         * lib/c-stack.c: Likewise.
55463         * lib/c-stack.h: Likewise.
55464         * lib/c-strcasestr.c: Likewise.
55465         * lib/c-strcasestr.h: Likewise.
55466         * lib/c-strstr.c: Likewise.
55467         * lib/c-strstr.h: Likewise.
55468         * lib/c-strtod.c: Likewise.
55469         * lib/calloc.c: Likewise.
55470         * lib/canon-host.c: Likewise.
55471         * lib/canon-host.h: Likewise.
55472         * lib/canonicalize-lgpl.c: Likewise.
55473         * lib/canonicalize.c: Likewise.
55474         * lib/canonicalize.h: Likewise.
55475         * lib/ceil.c: Likewise.
55476         * lib/ceilf.c: Likewise.
55477         * lib/ceill.c: Likewise.
55478         * lib/chdir-long.c: Likewise.
55479         * lib/chdir-long.h: Likewise.
55480         * lib/chdir-safer.c: Likewise.
55481         * lib/chdir-safer.h: Likewise.
55482         * lib/chown.c: Likewise.
55483         * lib/classpath.c: Likewise.
55484         * lib/classpath.h: Likewise.
55485         * lib/clean-temp.c: Likewise.
55486         * lib/clean-temp.h: Likewise.
55487         * lib/cloexec.c: Likewise.
55488         * lib/close-stream.c: Likewise.
55489         * lib/closein.c: Likewise.
55490         * lib/closein.h: Likewise.
55491         * lib/closeout.c: Likewise.
55492         * lib/closeout.h: Likewise.
55493         * lib/concat-filename.c: Likewise.
55494         * lib/copy-file.c: Likewise.
55495         * lib/copy-file.h: Likewise.
55496         * lib/count-one-bits.h: Likewise.
55497         * lib/crc.c: Likewise.
55498         * lib/crc.h: Likewise.
55499         * lib/creat-safer.c: Likewise.
55500         * lib/csharpcomp.c: Likewise.
55501         * lib/csharpcomp.h: Likewise.
55502         * lib/csharpexec.c: Likewise.
55503         * lib/csharpexec.h: Likewise.
55504         * lib/cycle-check.c: Likewise.
55505         * lib/cycle-check.h: Likewise.
55506         * lib/diacrit.c: Likewise.
55507         * lib/diacrit.h: Likewise.
55508         * lib/diffseq.h: Likewise.
55509         * lib/dirchownmod.c: Likewise.
55510         * lib/dirent.in.h: Likewise.
55511         * lib/dirfd.c: Likewise.
55512         * lib/dirfd.h: Likewise.
55513         * lib/dirname.c: Likewise.
55514         * lib/dirname.h: Likewise.
55515         * lib/dummy.c: Likewise.
55516         * lib/dup-safer.c: Likewise.
55517         * lib/dup2.c: Likewise.
55518         * lib/eealloc.h: Likewise.
55519         * lib/error.c: Likewise.
55520         * lib/error.h: Likewise.
55521         * lib/euidaccess.c: Likewise.
55522         * lib/exclude.c: Likewise.
55523         * lib/exclude.h: Likewise.
55524         * lib/execute.c: Likewise.
55525         * lib/execute.h: Likewise.
55526         * lib/exitfail.c: Likewise.
55527         * lib/exitfail.h: Likewise.
55528         * lib/expl.c: Likewise.
55529         * lib/fatal-signal.c: Likewise.
55530         * lib/fatal-signal.h: Likewise.
55531         * lib/fbufmode.c: Likewise.
55532         * lib/fbufmode.h: Likewise.
55533         * lib/fchdir.c: Likewise.
55534         * lib/fchmodat.c: Likewise.
55535         * lib/fchownat.c: Likewise.
55536         * lib/fcntl--.h: Likewise.
55537         * lib/fcntl-safer.h: Likewise.
55538         * lib/fcntl.in.h: Likewise.
55539         * lib/fd-safer.c: Likewise.
55540         * lib/fflush.c: Likewise.
55541         * lib/file-has-acl.c: Likewise.
55542         * lib/file-set.c: Likewise.
55543         * lib/file-type.c: Likewise.
55544         * lib/file-type.h: Likewise.
55545         * lib/fileblocks.c: Likewise.
55546         * lib/filemode.c: Likewise.
55547         * lib/filemode.h: Likewise.
55548         * lib/filename.h: Likewise.
55549         * lib/filenamecat.c: Likewise.
55550         * lib/filenamecat.h: Likewise.
55551         * lib/findprog.c: Likewise.
55552         * lib/findprog.h: Likewise.
55553         * lib/float.in.h: Likewise.
55554         * lib/floor.c: Likewise.
55555         * lib/floorf.c: Likewise.
55556         * lib/floorl.c: Likewise.
55557         * lib/fopen-safer.c: Likewise.
55558         * lib/fopen.c: Likewise.
55559         * lib/fpending.c: Likewise.
55560         * lib/fpending.h: Likewise.
55561         * lib/fprintf.c: Likewise.
55562         * lib/fprintftime.h: Likewise.
55563         * lib/fpucw.h: Likewise.
55564         * lib/fpurge.c: Likewise.
55565         * lib/fpurge.h: Likewise.
55566         * lib/freadable.c: Likewise.
55567         * lib/freadable.h: Likewise.
55568         * lib/freadahead.c: Likewise.
55569         * lib/freadahead.h: Likewise.
55570         * lib/freading.c: Likewise.
55571         * lib/freading.h: Likewise.
55572         * lib/free.c: Likewise.
55573         * lib/freopen.c: Likewise.
55574         * lib/frexp.c: Likewise.
55575         * lib/frexpl.c: Likewise.
55576         * lib/fseek.c: Likewise.
55577         * lib/fseterr.c: Likewise.
55578         * lib/fseterr.h: Likewise.
55579         * lib/fstatat.c: Likewise.
55580         * lib/fstrcmp.c: Likewise.
55581         * lib/fstrcmp.h: Likewise.
55582         * lib/fsusage.c: Likewise.
55583         * lib/fsusage.h: Likewise.
55584         * lib/ftell.c: Likewise.
55585         * lib/ftello.c: Likewise.
55586         * lib/fts-cycle.c: Likewise.
55587         * lib/fts.c: Likewise.
55588         * lib/fts_.h: Likewise.
55589         * lib/full-read.c: Likewise.
55590         * lib/full-read.h: Likewise.
55591         * lib/full-write.c: Likewise.
55592         * lib/full-write.h: Likewise.
55593         * lib/fwritable.c: Likewise.
55594         * lib/fwritable.h: Likewise.
55595         * lib/fwriteerror.c: Likewise.
55596         * lib/fwriteerror.h: Likewise.
55597         * lib/fwriting.c: Likewise.
55598         * lib/fwriting.h: Likewise.
55599         * lib/gcd.c: Likewise.
55600         * lib/gcd.h: Likewise.
55601         * lib/getcwd.c: Likewise.
55602         * lib/getdate.h: Likewise.
55603         * lib/getdate.y: Likewise.
55604         * lib/getdomainname.c: Likewise.
55605         * lib/getdomainname.h: Likewise.
55606         * lib/getgroups.c: Likewise.
55607         * lib/gethostname.c: Likewise.
55608         * lib/gethrxtime.c: Likewise.
55609         * lib/gethrxtime.h: Likewise.
55610         * lib/getloadavg.c: Likewise.
55611         * lib/getndelim2.c: Likewise.
55612         * lib/getndelim2.h: Likewise.
55613         * lib/getnline.c: Likewise.
55614         * lib/getnline.h: Likewise.
55615         * lib/getopt.c: Likewise.
55616         * lib/getopt.in.h: Likewise.
55617         * lib/getopt1.c: Likewise.
55618         * lib/getopt_int.h: Likewise.
55619         * lib/getpagesize.h: Likewise.
55620         * lib/getsubopt.c: Likewise.
55621         * lib/gettime.c: Likewise.
55622         * lib/getugroups.c: Likewise.
55623         * lib/getugroups.h: Likewise.
55624         * lib/getusershell.c: Likewise.
55625         * lib/gl_anyavltree_list1.h: Likewise.
55626         * lib/gl_anyavltree_list2.h: Likewise.
55627         * lib/gl_anyhash_list1.h: Likewise.
55628         * lib/gl_anyhash_list2.h: Likewise.
55629         * lib/gl_anylinked_list1.h: Likewise.
55630         * lib/gl_anylinked_list2.h: Likewise.
55631         * lib/gl_anyrbtree_list1.h: Likewise.
55632         * lib/gl_anyrbtree_list2.h: Likewise.
55633         * lib/gl_anytree_list1.h: Likewise.
55634         * lib/gl_anytree_list2.h: Likewise.
55635         * lib/gl_anytree_oset.h: Likewise.
55636         * lib/gl_anytreehash_list1.h: Likewise.
55637         * lib/gl_anytreehash_list2.h: Likewise.
55638         * lib/gl_array_list.c: Likewise.
55639         * lib/gl_array_list.h: Likewise.
55640         * lib/gl_array_oset.c: Likewise.
55641         * lib/gl_array_oset.h: Likewise.
55642         * lib/gl_avltree_list.c: Likewise.
55643         * lib/gl_avltree_list.h: Likewise.
55644         * lib/gl_avltree_oset.c: Likewise.
55645         * lib/gl_avltree_oset.h: Likewise.
55646         * lib/gl_avltreehash_list.c: Likewise.
55647         * lib/gl_avltreehash_list.h: Likewise.
55648         * lib/gl_carray_list.c: Likewise.
55649         * lib/gl_carray_list.h: Likewise.
55650         * lib/gl_linked_list.c: Likewise.
55651         * lib/gl_linked_list.h: Likewise.
55652         * lib/gl_linkedhash_list.c: Likewise.
55653         * lib/gl_linkedhash_list.h: Likewise.
55654         * lib/gl_list.c: Likewise.
55655         * lib/gl_list.h: Likewise.
55656         * lib/gl_oset.c: Likewise.
55657         * lib/gl_oset.h: Likewise.
55658         * lib/gl_rbtree_list.c: Likewise.
55659         * lib/gl_rbtree_list.h: Likewise.
55660         * lib/gl_rbtree_oset.c: Likewise.
55661         * lib/gl_rbtree_oset.h: Likewise.
55662         * lib/gl_rbtreehash_list.c: Likewise.
55663         * lib/gl_rbtreehash_list.h: Likewise.
55664         * lib/gl_sublist.c: Likewise.
55665         * lib/gl_sublist.h: Likewise.
55666         * lib/group-member.c: Likewise.
55667         * lib/group-member.h: Likewise.
55668         * lib/hard-locale.c: Likewise.
55669         * lib/hard-locale.h: Likewise.
55670         * lib/hash-pjw.c: Likewise.
55671         * lib/hash-pjw.h: Likewise.
55672         * lib/hash-triple.c: Likewise.
55673         * lib/hash.c: Likewise.
55674         * lib/hash.h: Likewise.
55675         * lib/human.c: Likewise.
55676         * lib/human.h: Likewise.
55677         * lib/i-ring.c: Likewise.
55678         * lib/i-ring.h: Likewise.
55679         * lib/idcache.c: Likewise.
55680         * lib/imaxabs.c: Likewise.
55681         * lib/imaxdiv.c: Likewise.
55682         * lib/inet_pton.c: Likewise.
55683         * lib/inet_pton.h: Likewise.
55684         * lib/intprops.h: Likewise.
55685         * lib/inttostr.c: Likewise.
55686         * lib/inttostr.h: Likewise.
55687         * lib/inttypes.in.h: Likewise.
55688         * lib/isapipe.c: Likewise.
55689         * lib/isdir.c: Likewise.
55690         * lib/isnan.c: Likewise.
55691         * lib/isnan.h: Likewise.
55692         * lib/isnanf.c: Likewise.
55693         * lib/isnanf.h: Likewise.
55694         * lib/isnanl-nolibm.h: Likewise.
55695         * lib/isnanl.c: Likewise.
55696         * lib/isnanl.h: Likewise.
55697         * lib/javacomp.c: Likewise.
55698         * lib/javacomp.h: Likewise.
55699         * lib/javaexec.c: Likewise.
55700         * lib/javaexec.h: Likewise.
55701         * lib/javaversion.c: Likewise.
55702         * lib/javaversion.h: Likewise.
55703         * lib/javaversion.java: Likewise.
55704         * lib/lbrkprop.h: Likewise.
55705         * lib/lchmod.h: Likewise.
55706         * lib/lchown.c: Likewise.
55707         * lib/ldexpl.c: Likewise.
55708         * lib/linebreak.c: Likewise.
55709         * lib/linebreak.h: Likewise.
55710         * lib/linebuffer.c: Likewise.
55711         * lib/linebuffer.h: Likewise.
55712         * lib/locale.in.h: Likewise.
55713         * lib/logl.c: Likewise.
55714         * lib/long-options.c: Likewise.
55715         * lib/long-options.h: Likewise.
55716         * lib/lstat.c: Likewise.
55717         * lib/lstat.h: Likewise.
55718         * lib/math.in.h: Likewise.
55719         * lib/mbchar.c: Likewise.
55720         * lib/mbchar.h: Likewise.
55721         * lib/mbfile.h: Likewise.
55722         * lib/mbiter.h: Likewise.
55723         * lib/mbscasecmp.c: Likewise.
55724         * lib/mbscasestr.c: Likewise.
55725         * lib/mbschr.c: Likewise.
55726         * lib/mbscspn.c: Likewise.
55727         * lib/mbslen.c: Likewise.
55728         * lib/mbsncasecmp.c: Likewise.
55729         * lib/mbsnlen.c: Likewise.
55730         * lib/mbspbrk.c: Likewise.
55731         * lib/mbspcasecmp.c: Likewise.
55732         * lib/mbsrchr.c: Likewise.
55733         * lib/mbssep.c: Likewise.
55734         * lib/mbsspn.c: Likewise.
55735         * lib/mbsstr.c: Likewise.
55736         * lib/mbstok_r.c: Likewise.
55737         * lib/mbswidth.c: Likewise.
55738         * lib/mbswidth.h: Likewise.
55739         * lib/mbuiter.h: Likewise.
55740         * lib/memcasecmp.c: Likewise.
55741         * lib/memcasecmp.h: Likewise.
55742         * lib/memchr.c: Likewise.
55743         * lib/memcmp.c: Likewise.
55744         * lib/memcoll.c: Likewise.
55745         * lib/memcoll.h: Likewise.
55746         * lib/memcpy.c: Likewise.
55747         * lib/memrchr.c: Likewise.
55748         * lib/mkancesdirs.c: Likewise.
55749         * lib/mkdir-p.c: Likewise.
55750         * lib/mkdir-p.h: Likewise.
55751         * lib/mkdir.c: Likewise.
55752         * lib/mkdirat.c: Likewise.
55753         * lib/mkdtemp.c: Likewise.
55754         * lib/mkstemp-safer.c: Likewise.
55755         * lib/mkstemp.c: Likewise.
55756         * lib/modechange.c: Likewise.
55757         * lib/modechange.h: Likewise.
55758         * lib/mountlist.c: Likewise.
55759         * lib/mountlist.h: Likewise.
55760         * lib/mpsort.c: Likewise.
55761         * lib/nanosleep.c: Likewise.
55762         * lib/obstack.c: Likewise.
55763         * lib/obstack.h: Likewise.
55764         * lib/open-safer.c: Likewise.
55765         * lib/open.c: Likewise.
55766         * lib/openat-die.c: Likewise.
55767         * lib/openat-priv.h: Likewise.
55768         * lib/openat-proc.c: Likewise.
55769         * lib/openat.c: Likewise.
55770         * lib/openat.h: Likewise.
55771         * lib/pagealign_alloc.c: Likewise.
55772         * lib/pagealign_alloc.h: Likewise.
55773         * lib/physmem.c: Likewise.
55774         * lib/physmem.h: Likewise.
55775         * lib/pipe-safer.c: Likewise.
55776         * lib/pipe.c: Likewise.
55777         * lib/pipe.h: Likewise.
55778         * lib/posixtm.c: Likewise.
55779         * lib/posixtm.h: Likewise.
55780         * lib/posixver.c: Likewise.
55781         * lib/printf-frexp.c: Likewise.
55782         * lib/printf-frexp.h: Likewise.
55783         * lib/printf-frexpl.c: Likewise.
55784         * lib/printf-frexpl.h: Likewise.
55785         * lib/printf.c: Likewise.
55786         * lib/progname.c: Likewise.
55787         * lib/progname.h: Likewise.
55788         * lib/progreloc.c: Likewise.
55789         * lib/putenv.c: Likewise.
55790         * lib/quote.c: Likewise.
55791         * lib/quote.h: Likewise.
55792         * lib/quotearg.c: Likewise.
55793         * lib/quotearg.h: Likewise.
55794         * lib/raise.c: Likewise.
55795         * lib/readline.c: Likewise.
55796         * lib/readline.h: Likewise.
55797         * lib/readlink.c: Likewise.
55798         * lib/readtokens.c: Likewise.
55799         * lib/readtokens.h: Likewise.
55800         * lib/readtokens0.c: Likewise.
55801         * lib/readtokens0.h: Likewise.
55802         * lib/readutmp.c: Likewise.
55803         * lib/readutmp.h: Likewise.
55804         * lib/realloc.c: Likewise.
55805         * lib/relocwrapper.c: Likewise.
55806         * lib/rename-dest-slash.c: Likewise.
55807         * lib/rename.c: Likewise.
55808         * lib/rmdir.c: Likewise.
55809         * lib/rpmatch.c: Likewise.
55810         * lib/safe-read.c: Likewise.
55811         * lib/safe-read.h: Likewise.
55812         * lib/safe-write.c: Likewise.
55813         * lib/safe-write.h: Likewise.
55814         * lib/same-inode.h: Likewise.
55815         * lib/same.c: Likewise.
55816         * lib/same.h: Likewise.
55817         * lib/save-cwd.c: Likewise.
55818         * lib/save-cwd.h: Likewise.
55819         * lib/savedir.c: Likewise.
55820         * lib/savedir.h: Likewise.
55821         * lib/savewd.c: Likewise.
55822         * lib/savewd.h: Likewise.
55823         * lib/search.in.h: Likewise.
55824         * lib/setenv.c: Likewise.
55825         * lib/setenv.h: Likewise.
55826         * lib/settime.c: Likewise.
55827         * lib/sh-quote.c: Likewise.
55828         * lib/sh-quote.h: Likewise.
55829         * lib/sig2str.c: Likewise.
55830         * lib/sig2str.h: Likewise.
55831         * lib/signal.in.h: Likewise.
55832         * lib/signbitd.c: Likewise.
55833         * lib/signbitf.c: Likewise.
55834         * lib/signbitl.c: Likewise.
55835         * lib/sigprocmask.c: Likewise.
55836         * lib/sincosl.c: Likewise.
55837         * lib/sleep.c: Likewise.
55838         * lib/sprintf.c: Likewise.
55839         * lib/sqrtl.c: Likewise.
55840         * lib/stat-time.h: Likewise.
55841         * lib/stdio--.h: Likewise.
55842         * lib/stdio-safer.h: Likewise.
55843         * lib/stdlib--.h: Likewise.
55844         * lib/stdlib-safer.h: Likewise.
55845         * lib/stdlib.in.h: Likewise.
55846         * lib/stpcpy.c: Likewise.
55847         * lib/stpncpy.c: Likewise.
55848         * lib/strchrnul.c: Likewise.
55849         * lib/strcspn.c: Likewise.
55850         * lib/strerror.c: Likewise.
55851         * lib/strftime.c: Likewise.
55852         * lib/strftime.h: Likewise.
55853         * lib/striconveh.c: Likewise.
55854         * lib/striconveh.h: Likewise.
55855         * lib/striconveha.c: Likewise.
55856         * lib/striconveha.h: Likewise.
55857         * lib/stripslash.c: Likewise.
55858         * lib/strnlen1.c: Likewise.
55859         * lib/strnlen1.h: Likewise.
55860         * lib/strtod.c: Likewise.
55861         * lib/strtoimax.c: Likewise.
55862         * lib/strtok_r.c: Likewise.
55863         * lib/strtol.c: Likewise.
55864         * lib/strtoll.c: Likewise.
55865         * lib/strtoul.c: Likewise.
55866         * lib/strtoull.c: Likewise.
55867         * lib/sysexits.in.h: Likewise.
55868         * lib/tempname.c: Likewise.
55869         * lib/tempname.h: Likewise.
55870         * lib/timespec.h: Likewise.
55871         * lib/tls.c: Likewise.
55872         * lib/tls.h: Likewise.
55873         * lib/tmpdir.c: Likewise.
55874         * lib/tmpdir.h: Likewise.
55875         * lib/tmpfile-safer.c: Likewise.
55876         * lib/tmpfile.c: Likewise.
55877         * lib/trigl.c: Likewise.
55878         * lib/trigl.h: Likewise.
55879         * lib/trim.c: Likewise.
55880         * lib/trim.h: Likewise.
55881         * lib/trunc.c: Likewise.
55882         * lib/truncf.c: Likewise.
55883         * lib/truncl.c: Likewise.
55884         * lib/tsearch.c: Likewise.
55885         * lib/unicodeio.c: Likewise.
55886         * lib/unicodeio.h: Likewise.
55887         * lib/unistd--.h: Likewise.
55888         * lib/unistd-safer.h: Likewise.
55889         * lib/unistdio/ulc-fprintf.c: Likewise.
55890         * lib/unistdio/ulc-vfprintf.c: Likewise.
55891         * lib/unlinkdir.c: Likewise.
55892         * lib/unlinkdir.h: Likewise.
55893         * lib/unlocked-io.h: Likewise.
55894         * lib/unsetenv.c: Likewise.
55895         * lib/userspec.c: Likewise.
55896         * lib/utime.c: Likewise.
55897         * lib/utimecmp.c: Likewise.
55898         * lib/utimecmp.h: Likewise.
55899         * lib/utimens.c: Likewise.
55900         * lib/verify.h: Likewise.
55901         * lib/verror.c: Likewise.
55902         * lib/verror.h: Likewise.
55903         * lib/version-etc-fsf.c: Likewise.
55904         * lib/version-etc.c: Likewise.
55905         * lib/version-etc.h: Likewise.
55906         * lib/vfprintf.c: Likewise.
55907         * lib/vprintf.c: Likewise.
55908         * lib/vsprintf.c: Likewise.
55909         * lib/w32spawn.h: Likewise.
55910         * lib/wait-process.c: Likewise.
55911         * lib/wait-process.h: Likewise.
55912         * lib/wcwidth.c: Likewise.
55913         * lib/write-any-file.c: Likewise.
55914         * lib/xalloc-die.c: Likewise.
55915         * lib/xalloc.h: Likewise.
55916         * lib/xasprintf.c: Likewise.
55917         * lib/xgetcwd.c: Likewise.
55918         * lib/xgetcwd.h: Likewise.
55919         * lib/xgetdomainname.c: Likewise.
55920         * lib/xgetdomainname.h: Likewise.
55921         * lib/xgethostname.c: Likewise.
55922         * lib/xmalloc.c: Likewise.
55923         * lib/xmalloca.c: Likewise.
55924         * lib/xmalloca.h: Likewise.
55925         * lib/xmemcoll.c: Likewise.
55926         * lib/xnanosleep.c: Likewise.
55927         * lib/xreadlink.c: Likewise.
55928         * lib/xreadlink.h: Likewise.
55929         * lib/xsetenv.c: Likewise.
55930         * lib/xsetenv.h: Likewise.
55931         * lib/xstriconv.c: Likewise.
55932         * lib/xstriconv.h: Likewise.
55933         * lib/xstrndup.c: Likewise.
55934         * lib/xstrndup.h: Likewise.
55935         * lib/xstrtod.c: Likewise.
55936         * lib/xstrtod.h: Likewise.
55937         * lib/xstrtol-error.c: Likewise.
55938         * lib/xstrtol.c: Likewise.
55939         * lib/xstrtol.h: Likewise.
55940         * lib/xtime.h: Likewise.
55941         * lib/xvasprintf.c: Likewise.
55942         * lib/xvasprintf.h: Likewise.
55943         * lib/yesno.c: Likewise.
55944         * lib/yesno.h: Likewise.
55945         * posix-modules: Likewise.
55946         * tests/test-alloca-opt.c: Likewise.
55947         * tests/test-arcfour.c: Likewise.
55948         * tests/test-arctwo.c: Likewise.
55949         * tests/test-argmatch.c: Likewise.
55950         * tests/test-argp-2.sh: Likewise.
55951         * tests/test-argp.c: Likewise.
55952         * tests/test-arpa_inet.c: Likewise.
55953         * tests/test-array_list.c: Likewise.
55954         * tests/test-array_oset.c: Likewise.
55955         * tests/test-atexit.c: Likewise.
55956         * tests/test-avltree_list.c: Likewise.
55957         * tests/test-avltree_oset.c: Likewise.
55958         * tests/test-avltreehash_list.c: Likewise.
55959         * tests/test-base64.c: Likewise.
55960         * tests/test-binary-io.c: Likewise.
55961         * tests/test-byteswap.c: Likewise.
55962         * tests/test-c-ctype.c: Likewise.
55963         * tests/test-c-strcasecmp.c: Likewise.
55964         * tests/test-c-strcasestr.c: Likewise.
55965         * tests/test-c-strncasecmp.c: Likewise.
55966         * tests/test-c-strstr.c: Likewise.
55967         * tests/test-canonicalize-lgpl.c: Likewise.
55968         * tests/test-canonicalize.c: Likewise.
55969         * tests/test-carray_list.c: Likewise.
55970         * tests/test-ceilf.c: Likewise.
55971         * tests/test-ceill.c: Likewise.
55972         * tests/test-count-one-bits.c: Likewise.
55973         * tests/test-crc.c: Likewise.
55974         * tests/test-dirname.c: Likewise.
55975         * tests/test-fbufmode.c: Likewise.
55976         * tests/test-fcntl.c: Likewise.
55977         * tests/test-fflush.c: Likewise.
55978         * tests/test-floorf.c: Likewise.
55979         * tests/test-floorl.c: Likewise.
55980         * tests/test-fopen.c: Likewise.
55981         * tests/test-fprintf-posix.c: Likewise.
55982         * tests/test-fprintf-posix.h: Likewise.
55983         * tests/test-fpurge.c: Likewise.
55984         * tests/test-freadable.c: Likewise.
55985         * tests/test-freadahead.c: Likewise.
55986         * tests/test-freading.c: Likewise.
55987         * tests/test-freopen.c: Likewise.
55988         * tests/test-frexp.c: Likewise.
55989         * tests/test-frexpl.c: Likewise.
55990         * tests/test-fseek.c: Likewise.
55991         * tests/test-fseeko.c: Likewise.
55992         * tests/test-fseterr.c: Likewise.
55993         * tests/test-fstrcmp.c: Likewise.
55994         * tests/test-ftell.c: Likewise.
55995         * tests/test-ftello.c: Likewise.
55996         * tests/test-fwritable.c: Likewise.
55997         * tests/test-fwriting.c: Likewise.
55998         * tests/test-getaddrinfo.c: Likewise.
55999         * tests/test-getpass.c: Likewise.
56000         * tests/test-gettimeofday.c: Likewise.
56001         * tests/test-hmac-md5.c: Likewise.
56002         * tests/test-hmac-sha1.c: Likewise.
56003         * tests/test-iconv.c: Likewise.
56004         * tests/test-iconvme.c: Likewise.
56005         * tests/test-inttypes.c: Likewise.
56006         * tests/test-isnan.c: Likewise.
56007         * tests/test-isnanf.c: Likewise.
56008         * tests/test-isnanl-nolibm.c: Likewise.
56009         * tests/test-isnanl.c: Likewise.
56010         * tests/test-isnanl.h: Likewise.
56011         * tests/test-ldexpl.c: Likewise.
56012         * tests/test-linked_list.c: Likewise.
56013         * tests/test-linkedhash_list.c: Likewise.
56014         * tests/test-locale.c: Likewise.
56015         * tests/test-localename.c: Likewise.
56016         * tests/test-lock.c: Likewise.
56017         * tests/test-lseek.c: Likewise.
56018         * tests/test-malloca.c: Likewise.
56019         * tests/test-math.c: Likewise.
56020         * tests/test-mbscasecmp.c: Likewise.
56021         * tests/test-mbscasestr1.c: Likewise.
56022         * tests/test-mbscasestr2.c: Likewise.
56023         * tests/test-mbscasestr3.c: Likewise.
56024         * tests/test-mbscasestr4.c: Likewise.
56025         * tests/test-mbschr.c: Likewise.
56026         * tests/test-mbscspn.c: Likewise.
56027         * tests/test-mbsncasecmp.c: Likewise.
56028         * tests/test-mbspbrk.c: Likewise.
56029         * tests/test-mbspcasecmp.c: Likewise.
56030         * tests/test-mbsrchr.c: Likewise.
56031         * tests/test-mbsspn.c: Likewise.
56032         * tests/test-mbsstr1.c: Likewise.
56033         * tests/test-mbsstr2.c: Likewise.
56034         * tests/test-mbsstr3.c: Likewise.
56035         * tests/test-md5.c: Likewise.
56036         * tests/test-memmem.c: Likewise.
56037         * tests/test-netinet_in.c: Likewise.
56038         * tests/test-open.c: Likewise.
56039         * tests/test-printf-frexp.c: Likewise.
56040         * tests/test-printf-frexpl.c: Likewise.
56041         * tests/test-printf-posix.c: Likewise.
56042         * tests/test-printf-posix.h: Likewise.
56043         * tests/test-rbtree_list.c: Likewise.
56044         * tests/test-rbtree_oset.c: Likewise.
56045         * tests/test-rbtreehash_list.c: Likewise.
56046         * tests/test-read-file.c: Likewise.
56047         * tests/test-rijndael.c: Likewise.
56048         * tests/test-search.c: Likewise.
56049         * tests/test-signbit.c: Likewise.
56050         * tests/test-sleep.c: Likewise.
56051         * tests/test-snprintf-posix.c: Likewise.
56052         * tests/test-snprintf-posix.h: Likewise.
56053         * tests/test-snprintf.c: Likewise.
56054         * tests/test-sprintf-posix.c: Likewise.
56055         * tests/test-sprintf-posix.h: Likewise.
56056         * tests/test-stat-time.c: Likewise.
56057         * tests/test-stdbool.c: Likewise.
56058         * tests/test-stdint.c: Likewise.
56059         * tests/test-stdio.c: Likewise.
56060         * tests/test-stdlib.c: Likewise.
56061         * tests/test-stpncpy.c: Likewise.
56062         * tests/test-strcasestr.c: Likewise.
56063         * tests/test-striconv.c: Likewise.
56064         * tests/test-striconveh.c: Likewise.
56065         * tests/test-striconveha.c: Likewise.
56066         * tests/test-string.c: Likewise.
56067         * tests/test-sys_select.c: Likewise.
56068         * tests/test-sys_socket.c: Likewise.
56069         * tests/test-sys_stat.c: Likewise.
56070         * tests/test-sys_time.c: Likewise.
56071         * tests/test-sysexits.c: Likewise.
56072         * tests/test-time.c: Likewise.
56073         * tests/test-tls.c: Likewise.
56074         * tests/test-trunc.c: Likewise.
56075         * tests/test-truncf.c: Likewise.
56076         * tests/test-truncl.c: Likewise.
56077         * tests/test-unistd.c: Likewise.
56078         * tests/test-vasnprintf-posix.c: Likewise.
56079         * tests/test-vasnprintf-posix2.c: Likewise.
56080         * tests/test-vasnprintf.c: Likewise.
56081         * tests/test-vasprintf-posix.c: Likewise.
56082         * tests/test-vasprintf.c: Likewise.
56083         * tests/test-verify.c: Likewise.
56084         * tests/test-vfprintf-posix.c: Likewise.
56085         * tests/test-vprintf-posix.c: Likewise.
56086         * tests/test-vsnprintf-posix.c: Likewise.
56087         * tests/test-vsnprintf.c: Likewise.
56088         * tests/test-vsprintf-posix.c: Likewise.
56089         * tests/test-wchar.c: Likewise.
56090         * tests/test-wctype.c: Likewise.
56091         * tests/test-wcwidth.c: Likewise.
56092         * tests/test-xstrtol.c: Likewise.
56093         * tests/test-xvasprintf.c: Likewise.
56094         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56095         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56096         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56097         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56098         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56099         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56100         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56101         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56102         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56103         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56104         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56105         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56106         * tests/uniname/test-uninames.c: Likewise.
56107         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56108         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56109         * tests/unistdio/test-u16-printf1.h: Likewise.
56110         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56111         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56112         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56113         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56114         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56115         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56116         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56117         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56118         * tests/unistdio/test-u32-printf1.h: Likewise.
56119         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56120         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56121         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56122         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56123         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56124         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56125         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56126         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56127         * tests/unistdio/test-u8-printf1.h: Likewise.
56128         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56129         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56130         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56131         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56132         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56133         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56134         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56135         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56136         * tests/unistdio/test-ulc-printf1.h: Likewise.
56137         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56138         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56139         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56140         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56141         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56142         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56143         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56144         * tests/uniwidth/test-u16-width.c: Likewise.
56145         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56146         * tests/uniwidth/test-u32-width.c: Likewise.
56147         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56148         * tests/uniwidth/test-u8-width.c: Likewise.
56149         * tests/uniwidth/test-uc_width.c: Likewise.
56150         * config/srclist-update: Likewise.
56151         (fixlicense): Update to GPLv3+.
56152
56153         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56154         * tests/test-tsearch.c: Change copyright notice.
56155
56156         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56157         * lib/c-strcaseeq.h: Change copyright notice.
56158         * lib/streq.h: Likewise.
56159         * lib/uniconv.h: Likewise.
56160         * lib/uniconv/u-conv-from-enc.h: Likewise.
56161         * lib/uniconv/u-conv-to-enc.h: Likewise.
56162         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56163         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56164         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56165         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56166         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56167         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56168         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56169         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56170         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56171         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56172         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56173         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56174         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56175         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56176         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56177         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56178         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56179         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56180         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56181         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56182         * lib/uniname.h: Likewise.
56183         * lib/uniname/uniname.c: Likewise.
56184         * lib/unistdio.h: Likewise.
56185         * lib/unistdio/u-asnprintf.h: Likewise.
56186         * lib/unistdio/u-asprintf.h: Likewise.
56187         * lib/unistdio/u-printf-args.c: Likewise.
56188         * lib/unistdio/u-printf-args.h: Likewise.
56189         * lib/unistdio/u-printf-parse.h: Likewise.
56190         * lib/unistdio/u-snprintf.h: Likewise.
56191         * lib/unistdio/u-sprintf.h: Likewise.
56192         * lib/unistdio/u-vasprintf.h: Likewise.
56193         * lib/unistdio/u-vsnprintf.h: Likewise.
56194         * lib/unistdio/u-vsprintf.h: Likewise.
56195         * lib/unistdio/u16-asnprintf.c: Likewise.
56196         * lib/unistdio/u16-asprintf.c: Likewise.
56197         * lib/unistdio/u16-printf-parse.c: Likewise.
56198         * lib/unistdio/u16-snprintf.c: Likewise.
56199         * lib/unistdio/u16-sprintf.c: Likewise.
56200         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56201         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56202         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56203         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56204         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56205         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56206         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56207         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56208         * lib/unistdio/u16-vasnprintf.c: Likewise.
56209         * lib/unistdio/u16-vasprintf.c: Likewise.
56210         * lib/unistdio/u16-vsnprintf.c: Likewise.
56211         * lib/unistdio/u16-vsprintf.c: Likewise.
56212         * lib/unistdio/u32-asnprintf.c: Likewise.
56213         * lib/unistdio/u32-asprintf.c: Likewise.
56214         * lib/unistdio/u32-printf-parse.c: Likewise.
56215         * lib/unistdio/u32-snprintf.c: Likewise.
56216         * lib/unistdio/u32-sprintf.c: Likewise.
56217         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56218         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56219         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56220         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56221         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56222         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56223         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56224         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56225         * lib/unistdio/u32-vasnprintf.c: Likewise.
56226         * lib/unistdio/u32-vasprintf.c: Likewise.
56227         * lib/unistdio/u32-vsnprintf.c: Likewise.
56228         * lib/unistdio/u32-vsprintf.c: Likewise.
56229         * lib/unistdio/u8-asnprintf.c: Likewise.
56230         * lib/unistdio/u8-asprintf.c: Likewise.
56231         * lib/unistdio/u8-printf-parse.c: Likewise.
56232         * lib/unistdio/u8-snprintf.c: Likewise.
56233         * lib/unistdio/u8-sprintf.c: Likewise.
56234         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56235         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56236         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56237         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56238         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56239         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56240         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56241         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56242         * lib/unistdio/u8-vasnprintf.c: Likewise.
56243         * lib/unistdio/u8-vasprintf.c: Likewise.
56244         * lib/unistdio/u8-vsnprintf.c: Likewise.
56245         * lib/unistdio/u8-vsprintf.c: Likewise.
56246         * lib/unistdio/ulc-asnprintf.c: Likewise.
56247         * lib/unistdio/ulc-asprintf.c: Likewise.
56248         * lib/unistdio/ulc-printf-parse.c: Likewise.
56249         * lib/unistdio/ulc-snprintf.c: Likewise.
56250         * lib/unistdio/ulc-sprintf.c: Likewise.
56251         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56252         * lib/unistdio/ulc-vasprintf.c: Likewise.
56253         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56254         * lib/unistdio/ulc-vsprintf.c: Likewise.
56255         * lib/unistr.h: Likewise.
56256         * lib/unistr/u-cpy-alloc.h: Likewise.
56257         * lib/unistr/u-cpy.h: Likewise.
56258         * lib/unistr/u-endswith.h: Likewise.
56259         * lib/unistr/u-move.h: Likewise.
56260         * lib/unistr/u-set.h: Likewise.
56261         * lib/unistr/u-startswith.h: Likewise.
56262         * lib/unistr/u-stpcpy.h: Likewise.
56263         * lib/unistr/u-stpncpy.h: Likewise.
56264         * lib/unistr/u-strcat.h: Likewise.
56265         * lib/unistr/u-strcpy.h: Likewise.
56266         * lib/unistr/u-strcspn.h: Likewise.
56267         * lib/unistr/u-strdup.h: Likewise.
56268         * lib/unistr/u-strlen.h: Likewise.
56269         * lib/unistr/u-strncat.h: Likewise.
56270         * lib/unistr/u-strncpy.h: Likewise.
56271         * lib/unistr/u-strnlen.h: Likewise.
56272         * lib/unistr/u-strpbrk.h: Likewise.
56273         * lib/unistr/u-strspn.h: Likewise.
56274         * lib/unistr/u-strstr.h: Likewise.
56275         * lib/unistr/u-strtok.h: Likewise.
56276         * lib/unistr/u16-check.c: Likewise.
56277         * lib/unistr/u16-chr.c: Likewise.
56278         * lib/unistr/u16-cmp.c: Likewise.
56279         * lib/unistr/u16-cpy-alloc.c: Likewise.
56280         * lib/unistr/u16-cpy.c: Likewise.
56281         * lib/unistr/u16-endswith.c: Likewise.
56282         * lib/unistr/u16-mblen.c: Likewise.
56283         * lib/unistr/u16-mbsnlen.c: Likewise.
56284         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56285         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56286         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56287         * lib/unistr/u16-mbtouc.c: Likewise.
56288         * lib/unistr/u16-mbtoucr.c: Likewise.
56289         * lib/unistr/u16-move.c: Likewise.
56290         * lib/unistr/u16-next.c: Likewise.
56291         * lib/unistr/u16-prev.c: Likewise.
56292         * lib/unistr/u16-set.c: Likewise.
56293         * lib/unistr/u16-startswith.c: Likewise.
56294         * lib/unistr/u16-stpcpy.c: Likewise.
56295         * lib/unistr/u16-stpncpy.c: Likewise.
56296         * lib/unistr/u16-strcat.c: Likewise.
56297         * lib/unistr/u16-strchr.c: Likewise.
56298         * lib/unistr/u16-strcmp.c: Likewise.
56299         * lib/unistr/u16-strcpy.c: Likewise.
56300         * lib/unistr/u16-strcspn.c: Likewise.
56301         * lib/unistr/u16-strdup.c: Likewise.
56302         * lib/unistr/u16-strlen.c: Likewise.
56303         * lib/unistr/u16-strmblen.c: Likewise.
56304         * lib/unistr/u16-strmbtouc.c: Likewise.
56305         * lib/unistr/u16-strncat.c: Likewise.
56306         * lib/unistr/u16-strncmp.c: Likewise.
56307         * lib/unistr/u16-strncpy.c: Likewise.
56308         * lib/unistr/u16-strnlen.c: Likewise.
56309         * lib/unistr/u16-strpbrk.c: Likewise.
56310         * lib/unistr/u16-strrchr.c: Likewise.
56311         * lib/unistr/u16-strspn.c: Likewise.
56312         * lib/unistr/u16-strstr.c: Likewise.
56313         * lib/unistr/u16-strtok.c: Likewise.
56314         * lib/unistr/u16-to-u32.c: Likewise.
56315         * lib/unistr/u16-to-u8.c: Likewise.
56316         * lib/unistr/u16-uctomb-aux.c: Likewise.
56317         * lib/unistr/u16-uctomb.c: Likewise.
56318         * lib/unistr/u32-check.c: Likewise.
56319         * lib/unistr/u32-chr.c: Likewise.
56320         * lib/unistr/u32-cmp.c: Likewise.
56321         * lib/unistr/u32-cpy-alloc.c: Likewise.
56322         * lib/unistr/u32-cpy.c: Likewise.
56323         * lib/unistr/u32-endswith.c: Likewise.
56324         * lib/unistr/u32-mblen.c: Likewise.
56325         * lib/unistr/u32-mbsnlen.c: Likewise.
56326         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56327         * lib/unistr/u32-mbtouc.c: Likewise.
56328         * lib/unistr/u32-mbtoucr.c: Likewise.
56329         * lib/unistr/u32-move.c: Likewise.
56330         * lib/unistr/u32-next.c: Likewise.
56331         * lib/unistr/u32-prev.c: Likewise.
56332         * lib/unistr/u32-set.c: Likewise.
56333         * lib/unistr/u32-startswith.c: Likewise.
56334         * lib/unistr/u32-stpcpy.c: Likewise.
56335         * lib/unistr/u32-stpncpy.c: Likewise.
56336         * lib/unistr/u32-strcat.c: Likewise.
56337         * lib/unistr/u32-strchr.c: Likewise.
56338         * lib/unistr/u32-strcmp.c: Likewise.
56339         * lib/unistr/u32-strcpy.c: Likewise.
56340         * lib/unistr/u32-strcspn.c: Likewise.
56341         * lib/unistr/u32-strdup.c: Likewise.
56342         * lib/unistr/u32-strlen.c: Likewise.
56343         * lib/unistr/u32-strmblen.c: Likewise.
56344         * lib/unistr/u32-strmbtouc.c: Likewise.
56345         * lib/unistr/u32-strncat.c: Likewise.
56346         * lib/unistr/u32-strncmp.c: Likewise.
56347         * lib/unistr/u32-strncpy.c: Likewise.
56348         * lib/unistr/u32-strnlen.c: Likewise.
56349         * lib/unistr/u32-strpbrk.c: Likewise.
56350         * lib/unistr/u32-strrchr.c: Likewise.
56351         * lib/unistr/u32-strspn.c: Likewise.
56352         * lib/unistr/u32-strstr.c: Likewise.
56353         * lib/unistr/u32-strtok.c: Likewise.
56354         * lib/unistr/u32-to-u16.c: Likewise.
56355         * lib/unistr/u32-to-u8.c: Likewise.
56356         * lib/unistr/u32-uctomb.c: Likewise.
56357         * lib/unistr/u8-check.c: Likewise.
56358         * lib/unistr/u8-chr.c: Likewise.
56359         * lib/unistr/u8-cmp.c: Likewise.
56360         * lib/unistr/u8-cpy-alloc.c: Likewise.
56361         * lib/unistr/u8-cpy.c: Likewise.
56362         * lib/unistr/u8-endswith.c: Likewise.
56363         * lib/unistr/u8-mblen.c: Likewise.
56364         * lib/unistr/u8-mbsnlen.c: Likewise.
56365         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56366         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56367         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56368         * lib/unistr/u8-mbtouc.c: Likewise.
56369         * lib/unistr/u8-mbtoucr.c: Likewise.
56370         * lib/unistr/u8-move.c: Likewise.
56371         * lib/unistr/u8-next.c: Likewise.
56372         * lib/unistr/u8-prev.c: Likewise.
56373         * lib/unistr/u8-set.c: Likewise.
56374         * lib/unistr/u8-startswith.c: Likewise.
56375         * lib/unistr/u8-stpcpy.c: Likewise.
56376         * lib/unistr/u8-stpncpy.c: Likewise.
56377         * lib/unistr/u8-strcat.c: Likewise.
56378         * lib/unistr/u8-strchr.c: Likewise.
56379         * lib/unistr/u8-strcmp.c: Likewise.
56380         * lib/unistr/u8-strcpy.c: Likewise.
56381         * lib/unistr/u8-strcspn.c: Likewise.
56382         * lib/unistr/u8-strdup.c: Likewise.
56383         * lib/unistr/u8-strlen.c: Likewise.
56384         * lib/unistr/u8-strmblen.c: Likewise.
56385         * lib/unistr/u8-strmbtouc.c: Likewise.
56386         * lib/unistr/u8-strncat.c: Likewise.
56387         * lib/unistr/u8-strncmp.c: Likewise.
56388         * lib/unistr/u8-strncpy.c: Likewise.
56389         * lib/unistr/u8-strnlen.c: Likewise.
56390         * lib/unistr/u8-strpbrk.c: Likewise.
56391         * lib/unistr/u8-strrchr.c: Likewise.
56392         * lib/unistr/u8-strspn.c: Likewise.
56393         * lib/unistr/u8-strstr.c: Likewise.
56394         * lib/unistr/u8-strtok.c: Likewise.
56395         * lib/unistr/u8-to-u16.c: Likewise.
56396         * lib/unistr/u8-to-u32.c: Likewise.
56397         * lib/unistr/u8-uctomb-aux.c: Likewise.
56398         * lib/unistr/u8-uctomb.c: Likewise.
56399         * lib/unitypes.h: Likewise.
56400         * lib/uniwidth.h: Likewise.
56401         * lib/uniwidth/cjk.h: Likewise.
56402         * lib/uniwidth/u16-strwidth.c: Likewise.
56403         * lib/uniwidth/u16-width.c: Likewise.
56404         * lib/uniwidth/u32-strwidth.c: Likewise.
56405         * lib/uniwidth/u32-width.c: Likewise.
56406         * lib/uniwidth/u8-strwidth.c: Likewise.
56407         * lib/uniwidth/u8-width.c: Likewise.
56408         * lib/uniwidth/width.c: Likewise.
56409
56410 2007-10-07  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56413         The file is still under LGPL (see modules/inttypes).
56414
56415 2007-10-06  Bruno Haible  <bruno@clisp.org>
56416
56417         * modules/trunc (Dependencies): Add 'extensions'.
56418         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56419         Reported by Ben Pfaff <blp@gnu.org>.
56420
56421 2007-10-06  Bruno Haible  <bruno@clisp.org>
56422
56423         * modules/freopen-tests: New file.
56424         * tests/test-freopen.c: New file.
56425
56426         * modules/fopen-tests: New file.
56427         * tests/test-fopen.c: New file.
56428
56429         * modules/fopen: New file.
56430         * lib/fopen.c: New file.
56431         * m4/fopen.m4: New file.
56432         * modules/freopen: New file.
56433         * lib/freopen.c: New file.
56434         * m4/freopen.m4: New file.
56435         * lib/stdio.in.h (fopen, freopen): New declarations.
56436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56437         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56438         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56439         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56440         * doc/functions/fopen.texi: Mention the 'fopen' module.
56441         * doc/functions/freopen.texi: Mention the 'freopen' module.
56442
56443 2007-10-06  Bruno Haible  <bruno@clisp.org>
56444
56445         * modules/open-tests: New file.
56446         * tests/test-open.c: New file.
56447
56448         * modules/open: New file.
56449         * lib/open.c: New file.
56450         * m4/open.m4: New file.
56451         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56452         lib/open.c does.
56453         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56454         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56455         macros.
56456         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56457         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56458         REPLACE_OPEN.
56459         * doc/functions/open.texi: Mention the 'open' module.
56460
56461 2007-10-04  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/ceill-tests: New file.
56464         * tests/test-ceill.c: New file.
56465
56466         * modules/ceill: New file.
56467         * lib/ceill.c: Replace entire file.
56468         * m4/ceill.m4: New file.
56469         * lib/math.in.h (ceill): Replace declaration.
56470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56471         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56472         * doc/functions/ceill.texi: Mention the 'ceill' module.
56473         * modules/mathl (Files): Remove lib/ceill.c.
56474         (Depends-on): Add ceill.
56475
56476 2007-10-04  Bruno Haible  <bruno@clisp.org>
56477
56478         * modules/ceilf-tests: New file.
56479         * tests/test-ceilf.c: New file.
56480
56481         * modules/ceilf: New file.
56482         * lib/ceil.c: New file.
56483         * lib/ceilf.c: New file.
56484         * m4/ceilf.m4: New file.
56485         * lib/math.in.h (ceilf): New declaration.
56486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56487         HAVE_DECL_CEILF.
56488         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56489         HAVE_DECL_CEILF.
56490         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56491
56492 2007-10-04  Bruno Haible  <bruno@clisp.org>
56493
56494         * modules/floorl-tests: New file.
56495         * tests/test-floorl.c: New file.
56496
56497         * modules/floorl: New file.
56498         * lib/floorl.c: Replace entire file.
56499         * m4/floorl.m4: New file.
56500         * lib/math.in.h (floorl): Replace declaration.
56501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56502         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56503         * doc/functions/floorl.texi: Mention the 'floorl' module.
56504         * modules/mathl (Files): Remove lib/floorl.c.
56505         (Depends-on): Add floorl.
56506
56507 2007-10-04  Bruno Haible  <bruno@clisp.org>
56508
56509         * modules/floorf-tests: New file.
56510         * tests/test-floorf.c: New file.
56511
56512         * modules/floorf: New file.
56513         * lib/floor.c: New file.
56514         * lib/floorf.c: New file.
56515         * m4/floorf.m4: New file.
56516         * lib/math.in.h (floorf): New declaration.
56517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56518         HAVE_DECL_FLOORF.
56519         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56520         HAVE_DECL_FLOORF.
56521         * doc/functions/floorf.texi: Mention the 'floorf' module.
56522
56523 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56524             Bruno Haible  <bruno@clisp.org>
56525
56526         Advertise for the Git server instead of the CVS server.
56527         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56528         repository instead of the CVS one.
56529         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56530         about all VCS systems generically.
56531         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56532
56533 2007-10-04  Bruno Haible  <bruno@clisp.org>
56534
56535         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56536         means.
56537         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56538
56539 2007-10-04  Bruno Haible  <bruno@clisp.org>
56540
56541         * modules/truncl-tests: New file.
56542         * tests/test-truncl.c: New file.
56543
56544         * modules/truncl: New file.
56545         * lib/truncl.c: New file.
56546         * m4/truncl.m4: New file.
56547         * lib/math.in.h (truncl): New declaration.
56548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56549         HAVE_DECL_TRUNCL.
56550         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56551         HAVE_DECL_TRUNCL.
56552         * doc/functions/truncl.texi: Mention the 'truncl' module.
56553
56554 2007-10-04  Bruno Haible  <bruno@clisp.org>
56555
56556         * modules/truncf-tests: New file.
56557         * tests/test-truncf.c: New file.
56558
56559         * modules/truncf: New file.
56560         * lib/trunc.c: Make paramerizable through USE_* macros.
56561         * lib/truncf.c: New file.
56562         * m4/truncf.m4: New file.
56563         * lib/math.in.h (truncf): New declaration.
56564         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56565         HAVE_DECL_TRUNCF.
56566         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56567         HAVE_DECL_TRUNCF.
56568         * doc/functions/truncf.texi: Mention the 'truncf' module.
56569
56570 2007-10-03  Bruno Haible  <bruno@clisp.org>
56571
56572         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56573         augmentation also for tests modules.
56574         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56575         * modules/atexit-tests (Makefile.am): Likewise.
56576         * modules/binary-io-tests (Makefile.am): Likewise.
56577         * modules/c-strcase-tests (Makefile.am): Likewise.
56578         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56579         * modules/canonicalize-tests (Makefile.am): Likewise.
56580         * modules/closein-tests (Makefile.am): Likewise.
56581         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56582         * modules/freadahead-tests (Makefile.am): Likewise.
56583         * modules/fseek-tests (Makefile.am): Likewise.
56584         * modules/fseeko-tests (Makefile.am): Likewise.
56585         * modules/ftell-tests (Makefile.am): Likewise.
56586         * modules/ftello-tests (Makefile.am): Likewise.
56587         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56588         * modules/isnanl-tests (Makefile.am): Likewise.
56589         * modules/lseek-tests (Makefile.am): Likewise.
56590         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56591         * modules/mbscasestr-tests (Makefile.am): Likewise.
56592         * modules/mbschr-tests (Makefile.am): Likewise.
56593         * modules/mbscspn-tests (Makefile.am): Likewise.
56594         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56595         * modules/mbspbrk-tests (Makefile.am): Likewise.
56596         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56597         * modules/mbsrchr-tests (Makefile.am): Likewise.
56598         * modules/mbsspn-tests (Makefile.am): Likewise.
56599         * modules/mbsstr-tests (Makefile.am): Likewise.
56600         * modules/printf-posix-tests (Makefile.am): Likewise.
56601         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56602         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56603         * modules/tsearch-tests (Makefile.am): Likewise.
56604         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56605         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56606         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56607         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56608         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56609         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56610         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56611         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56612         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56613         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56614         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56615         * modules/xstrtol-tests (Makefile.am): Likewise.
56616         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56617         * modules/yesno-tests (Makefile.am): Likewise.
56618
56619 2007-10-03  Bruno Haible  <bruno@clisp.org>
56620
56621         * modules/trunc-tests: New file.
56622         * tests/test-trunc.c: New file.
56623
56624         * modules/trunc: New file.
56625         * lib/trunc.c: New file.
56626         * m4/trunc.m4: New file.
56627         * lib/math.in.h (trunc): New declaration.
56628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56629         HAVE_DECL_TRUNC.
56630         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56631         HAVE_DECL_TRUNC.
56632         * doc/functions/trunc.texi: Mention the 'trunc' module.
56633
56634 2007-10-03  Bruno Haible  <bruno@clisp.org>
56635
56636         * tests/test-fpending.c: New file, mostly copied
56637         from coreutils/lib/t-fpending.c.
56638         * modules/fpending-tests: New file.
56639
56640 2007-10-03  Bruno Haible  <bruno@clisp.org>
56641
56642         Port the stdio extensions to QNX (untested).
56643         * lib/fseterr.c (fseterr): Add support for QNX.
56644         * lib/fbufmode.c (fbufmode): Likewise.
56645         * lib/freadable.c (freadable): Likewise.
56646         * lib/fwritable.c (fwritable): Likewise.
56647         * lib/freading.c (freading): Likewise.
56648         * lib/fwriting.c (fwriting): Likewise.
56649         * lib/freadahead.c (freadahed): Likewise.
56650         * lib/fpurge.c (fpurge): Likewise.
56651         * lib/fseeko.c (rpl_fseeko): Likewise.
56652
56653 2007-10-03  Bruno Haible  <bruno@clisp.org>
56654             Jim Meyering  <jim@meyering.net>
56655             Eric Blake  <ebb9@byu.net>
56656
56657         * doc/relocatable.texi: Use @command instead of @program.
56658
56659 2007-10-02  Jim Meyering  <jim@meyering.net>
56660
56661         Perform one more "_.h" -> ".in.h" substitution.
56662         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56663         instead of unistd_.h here, too.
56664
56665 2007-10-01  Bruno Haible  <bruno@clisp.org>
56666
56667         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56668         Needed for the alloca-opt module.
56669
56670 2007-09-30  Bruno Haible  <bruno@clisp.org>
56671
56672         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56673         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56674         alloca_.h.
56675         * lib/argz.in.h: Renamed from lib/argz_.h.
56676         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56677         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56678         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56679         byteswap_.h.
56680         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56681         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56682         dirent_.h.
56683         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56684         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56685         fcntl_.h.
56686         * lib/float.in.h: Renamed from lib/float_.h.
56687         * modules/float (Files, Makefile.am): Use float.in.h instead of
56688         float_.h.
56689         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56690         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56691         fnmatch_.h.
56692         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56693         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56694         getopt_.h.
56695         * lib/glob.in.h: Renamed from lib/glob_.h.
56696         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56697         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56698         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56699         iconv_.h.
56700         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56701         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56702         inttypes_.h.
56703         * lib/locale.in.h: Renamed from lib/locale_.h.
56704         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56705         locale_.h.
56706         * lib/math.in.h: Renamed from lib/math_.h.
56707         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56708         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56709         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56710         of netinet_in_.h. Add dependency.
56711         * lib/poll.in.h: Renamed from lib/poll_.h.
56712         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56713         * lib/search.in.h: Renamed from lib/search_.h.
56714         * modules/search (Files, Makefile.am): Use search.in.h instead of
56715         search_.h.
56716         * lib/signal.in.h: Renamed from lib/signal_.h.
56717         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56718         _signal.h.
56719         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56720         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56721         stdbool_.h.
56722         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56723         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56724         stdint_.h.
56725         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56726         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56727         stdio_.h.
56728         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56729         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56730         stdlib_.h.
56731         * lib/string.in.h: Renamed from lib/string_.h.
56732         * modules/string (Files, Makefile.am): Use string.in.h instead of
56733         string_.h.
56734         * doc/gnulib-tool.texi (Initial import): Update.
56735         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56736         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56737         of sys_select_.h. Add dependency.
56738         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56739         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56740         of sys_socket_.h.
56741         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56742         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56743         sys_stat_.h.
56744         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56745         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56746         sys_time_.h.
56747         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56748         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56749         sysexits_.h.
56750         * lib/time.in.h: Renamed from lib/time_.h.
56751         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56752         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56753         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56754         unistd_.h.
56755         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56756         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56757         wchar_.h.
56758         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56759         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56760         wctype_.h.
56761         * build-aux/bootstrap (slurp): Update.
56762         * lib/.cppi-disable: Update.
56763
56764 2007-09-30  Bruno Haible  <bruno@clisp.org>
56765
56766         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56767         Needed on BeOS.
56768
56769 2007-09-30  Bruno Haible  <bruno@clisp.org>
56770
56771         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56772
56773 2007-09-29  Bruno Haible  <bruno@clisp.org>
56774
56775         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56776
56777 2007-09-29  Bruno Haible  <bruno@clisp.org>
56778
56779         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56780         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56781         * build-aux/install-reloc: Compile also areadlink.c.
56782         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56783
56784 2007-09-29  Bruno Haible  <bruno@clisp.org>
56785
56786         * gnulib-tool (func_emit_initmacro_done): Indentation.
56787
56788 2007-09-29  Bruno Haible  <bruno@clisp.org>
56789
56790         * README: Add CVS checkout update instructions.
56791         Info from Bob Proulx <bob@proulx.com>.
56792
56793 2007-09-28  Eric Blake  <ebb9@byu.net>
56794
56795         Provide move-if-change.
56796         * build-aux/move-if-change: New file, based on best practice
56797         rather than any canonical upstream location.
56798
56799 2007-09-28  Jim Meyering  <jim@meyering.net>
56800
56801         Fix canonicalize loop-detection corner case.
56802         Do not attempt to stat the symlink values stored via seen_triple.
56803         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56804         on linux-2.6.18, (but not 2.6.22).
56805         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56806         triple_compare.  The former compares dev,ino,filename, while the latter
56807         would actually stat dirname(filename) when dev and ino were equal.
56808         * lib/hash-triple.c: Install <string.h>.
56809         (STREQ): Define.
56810         (triple_compare_ino_str): New function.
56811         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56812
56813 2007-09-28  Eric Blake  <ebb9@byu.net>
56814
56815         Enforce that AC_REPLACE_FUNCS files exist.
56816         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56817         override check for typos.
56818
56819         Fix test-closein on Solaris 10.
56820         * tests/test-closein.c (main): Don't assume stdin can be inherited
56821         closed on all systems.
56822         * tests/test-closein.sh: Likewise.
56823         Reported by Piotr Tarnowski.
56824
56825 2007-09-28  Jim Meyering  <jim@meyering.net>
56826
56827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56828
56829 2007-09-27  Jim Meyering  <jim@meyering.net>
56830
56831         canonicalize: Avoid a false-positive cycle failure.
56832         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56833         Sort.  Remove cycle-check.
56834         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56835         not cycle-check.h.
56836         (seen_triple): New function.
56837         (canonicalize_filename_mode): Use it instead of cycle-check.
56838         * tests/test-canonicalize.c: Add a test for this bug.
56839         * tests/test-canonicalize.sh: Set up and run the test.
56840
56841         New module, file-set, from coreutils.
56842         * modules/file-set: Define it.
56843         * lib/file-set.c, lib/file-set.h: Implement.
56844
56845         New module, hash-triple, from coreutils.
56846         * modules/hash-triple: Define it.
56847         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56848
56849 2007-09-25  Eric Blake  <ebb9@byu.net>
56850
56851         Fix strerror on Interix.
56852         * lib/string_.h (strerror): Declare replacement.
56853         * doc/functions/strerror.texi (strerror): Document the Interix
56854         shortcoming.
56855         * modules/string (Makefile.am): Support new hooks.
56856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56857         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56858         gl_FUNC_STRERROR_SEPARATE.
56859         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56860         * lib/strerror.c (rpl_strerror): Provide replacement.
56861         * modules/strerror (Depends-on): Add string.
56862         (configure.ac): Detect use of module.
56863         * tests/test-strerror.c: New file.
56864         * modules/strerror-tests: New test module.
56865         * modules/argp (Depends-on): Add strerror.
56866         * modules/error (Depends-on): Likewise.
56867         Reported by Martin Koeppe.
56868
56869 2007-09-24  Bruno Haible  <bruno@clisp.org>
56870
56871         * README: Update git instructions.
56872
56873 2007-09-24  Eric Blake  <ebb9@byu.net>
56874
56875         Revert fpending breakage from 2007-09-08.
56876         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56877         __fpending.c.
56878
56879 2007-09-24  Jim Meyering  <jim@meyering.net>
56880
56881         filenamecat.c: Add a test.
56882         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56883         showing how the function works when DIR is the empty string.
56884
56885 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56886
56887         * tests/test-canonicalize.sh: Turn on executable bit.
56888
56889 2007-09-19  Eric Blake  <ebb9@byu.net>
56890
56891         * README: Update CVS instructions.
56892
56893 2007-09-18  Bruno Haible  <bruno@clisp.org>
56894
56895         * modules/areadlink: New file.
56896         * lib/areadlink.h (areadlink): New declaration.
56897         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56898
56899 2007-09-17  Jim Meyering  <jim@meyering.net>
56900
56901         * lib/savewd.c (ESTALE) [!defined]: Define.
56902         Reported to be required on Interix by Martin Koeppe.
56903
56904 2007-09-17  Bruno Haible  <bruno@clisp.org>
56905
56906         * gnulib-tool (func_version): Use $version.
56907
56908 2007-09-16  Bruno Haible  <bruno@clisp.org>
56909
56910         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56911         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56912         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56913         Reported by Greg Schafer <gschafer@zip.com.au>.
56914
56915 2007-09-15  Bruno Haible  <bruno@clisp.org>
56916
56917         * gnulib-tool (sed): Try a little harder to make bash understand the
56918         alias.
56919         Reported by Bruce Korb <bruce.korb@gmail.com>.
56920
56921 2007-09-13  Eric Blake  <ebb9@byu.net>
56922
56923         * ChangeLog: Remove conflict markers.
56924
56925 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56926
56927         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56928         Reported by Bruno Haible <bruno@clisp.org>.
56929
56930 2007-09-12  Bruno Haible  <bruno@clisp.org>
56931
56932         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56933         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56934         is not defined.
56935
56936 2007-09-12  Eric Blake  <ebb9@byu.net>
56937
56938         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56939         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56940         Autoconf definition.
56941         * modules/euidaccess (Depends-on): Add extensions, for
56942         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56943         * modules/fnmatch (Depends-on): Likewise.
56944         * modules/getaddrinfo (Depends-on): Likewise.
56945         * modules/getdelim (Depends-on): Likewise.
56946         * modules/getline (Depends-on): Likewise.
56947         * modules/getsubopt (Depends-on): Likewise.
56948         * modules/gettext (Depends-on): Likewise.
56949         * modules/group-member (Depends-on): Likewise.
56950         * modules/mbchar (Depends-on): Likewise.
56951         * modules/memmem (Depends-on): Likewise.
56952         * modules/mempcpy (Depends-on): Likewise.
56953         * modules/memrchr (Depends-on): Likewise.
56954         * modules/pagealign_alloc (Depends-on): Likewise.
56955         * modules/readutmp (Depends-on): Likewise.
56956         * modules/stpcpy (Depends-on): Likewise.
56957         * modules/stpncpy (Depends-on): Likewise.
56958         * modules/strchrnul (Depends-on): Likewise.
56959         * modules/strndup (Depends-on): Likewise.
56960         * modules/strsep (Depends-on): Likewise.
56961         * modules/strverscmp (Depends-on): Likewise.
56962         * modules/vasprintf (Depends-on): Likewise.
56963         * modules/wcwidth (Depends-on): Likewise.
56964         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56965         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56968         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56969         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56970         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56971         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56972         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56973         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56974         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56975         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56976         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56977         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56978         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56979         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56980         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56981         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56982         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56983         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56984         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56985         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56986         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56987         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56988         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56990         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56991         so that lock.m4 can be used in gettext without extensions module.
56992
56993 2007-09-11  Bruno Haible  <bruno@clisp.org>
56994
56995         * m4/isc-posix.m4: Remove file.
56996         Suggested by Eric Blake.
56997
56998 2007-09-11  Eric Blake  <ebb9@byu.net>
56999
57000         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57001
57002 2007-09-10  Bruno Haible  <bruno@clisp.org>
57003
57004         * posix-modules: Fix typo in error message.
57005         Reported by Matt <mkraai@beckman.com>.
57006
57007 2007-09-09  Bruno Haible  <bruno@clisp.org>
57008
57009         * doc/functions/getdelim.texi: Update list of platforms lacking the
57010         function.
57011         * doc/functions/getline.texi: Likewise.
57012
57013 2007-09-09  Jim Meyering  <jim@meyering.net>
57014
57015         * lib/hash.c (hash_initialize): Detect calloc failure.
57016         Reported by Bruno Haible.
57017
57018 2007-09-09  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57021         malloc or realloc fails.
57022
57023 2007-09-09  Bruno Haible  <bruno@clisp.org>
57024
57025         * modules/getcwd (Depends-on): Add malloc-posix.
57026         * modules/glob (Depends-on): Likewise.
57027         * modules/putenv (Depends-on): Likewise.
57028         * modules/strdup (Depends-on): Likewise.
57029         * modules/getdelim (Depends-on): Add realloc-posix.
57030         * modules/read-file (Depends-on): Likewise.
57031
57032 2007-09-09  Bruno Haible  <bruno@clisp.org>
57033
57034         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57035         (gl_FUNC_MALLOC_POSIX): Require it.
57036         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57037         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57038         * modules/realloc (Files): Add m4/malloc.m4.
57039         * modules/calloc (Files): Likewise.
57040
57041 2007-09-09  Bruno Haible  <bruno@clisp.org>
57042
57043         * modules/malloc-posix: New file.
57044         * modules/malloc (Depends-on): Add malloc-posix.
57045         * lib/malloc.c: Include errno.h.
57046         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57047         and a POSIX-compatible malloc into a single function. Set ENOMEM
57048         when returning NULL.
57049         * m4/malloc.m4: New file.
57050         * doc/functions/malloc.texi: Mention the malloc-posix module.
57051         * lib/stdlib_.h (malloc): New declaration.
57052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57053         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57054         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57055         and HAVE_MALLOC_POSIX.
57056
57057 2007-09-09  Bruno Haible  <bruno@clisp.org>
57058
57059         * modules/realloc-posix: New file.
57060         * modules/realloc (Depends-on): Add realloc-posix.
57061         * lib/realloc.c: Include errno.h.
57062         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57063         and a POSIX-compatible realloc into a single function. Set ENOMEM
57064         when returning NULL.
57065         * m4/realloc.m4: New file.
57066         * doc/functions/realloc.texi: Mention the realloc-posix module.
57067         * lib/stdlib_.h (realloc): New declaration.
57068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57069         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57070         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57071         and HAVE_REALLOC_POSIX.
57072
57073 2007-09-09  Bruno Haible  <bruno@clisp.org>
57074
57075         * modules/calloc-posix: New file.
57076         * modules/calloc (Depends-on): Add calloc-posix.
57077         * lib/calloc.c: Include errno.h.
57078         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57079         and a POSIX-compatible calloc into a single function. Set ENOMEM
57080         when returning NULL.
57081         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57082         * doc/functions/calloc.texi: Mention the calloc-posix module.
57083         * lib/stdlib_.h (calloc): New declaration.
57084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57085         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57086         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57087         and HAVE_CALLOC_POSIX.
57088
57089 2007-09-09  Bruno Haible  <bruno@clisp.org>
57090
57091         Allow for modules to show an arbitrary notice.
57092         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57093         * gnulib-tool: New option --extract-notice.
57094         (func_usage): Document it.
57095         (sed_extract_prog): Update.
57096         (func_get_notice): New function.
57097         (func_modules_notice): New function.
57098         (func_import, func_create_testdir): Invoke it.
57099         Suggested by Jim Meyering.
57100
57101 2007-09-09  Bruno Haible  <bruno@clisp.org>
57102
57103         * gnulib-tool: New options --verbose, --quiet.
57104         (func_usage): Document them.
57105         (verbose): New variable.
57106         (func_execute_command): New function.
57107         (func_import): Don't show the module list and the file list if
57108         $verbose < 0.
57109         (func_create_testdir): Likewise. Use func_execute_command.
57110         (func_create_megatestdir): Use func_execute_command.
57111
57112 2007-09-08  Bruno Haible  <bruno@clisp.org>
57113
57114         * gnulib-tool (func_import): Prefer rsync over wget when available,
57115         for fetching the PO files.
57116
57117 2007-09-08  Bruno Haible  <bruno@clisp.org>
57118
57119         * posix-modules: New file. Portions copied from gnulib-tool.
57120         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57121
57122 2007-09-08  Jim Meyering  <jim@meyering.net>
57123
57124         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57125         * lib/fpending.h: Rename from __fpending.h.
57126         * lib/fpending.c: Rename from __fpending.c.
57127         Include "fpending.h", not "__fpending.h".
57128         * lib/__fpending.h, lib/__fpending.c: Remove files.
57129         * modules/fpending (Files): Reflect new file names.
57130         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57131
57132 2007-09-08  Bruno Haible  <bruno@clisp.org>
57133
57134         * m4/inttypes-h.m4: Remove stub file.
57135
57136 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57137
57138         * doc/headers/stdint.texi: Discuss #include_next issue.
57139
57140 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57141
57142         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57143
57144 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57145
57146         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57147         in variable name.
57148
57149 2007-09-03  Jim Meyering  <jim@meyering.net>
57150
57151         New module: git-version-gen.
57152         * modules/git-version-gen: New file.
57153
57154         Import changes from coreutils for bootstrap script.
57155
57156         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57157
57158         bootstrap: uses rsync to download the .po files
57159         * build-aux/bootstrap (po_download_command_format): New global.
57160         (download_po_files): Use rsync.
57161         (update_po_files): Don't remove .po files after download,
57162         so future rsync runs can take advantage of the copies.
57163
57164         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57165
57166         Solve the unnecessary-.po-file-regeneration problem once and for all.
57167         * build-aux/bootstrap (download_po_files): New function, renamed from
57168         get_translations.  Now, downloads, but doesn't update LINGUAS.
57169         (update_po_files): New function.
57170
57171         bootstrap: Ignore more.
57172         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57173         uniwidth to e.g., lib/.gitignore.
57174         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57175
57176         * build-aux/bootstrap: New setting: vc_ignore.
57177         (insert_sorted_if_absent): Create $file if absent.
57178         Adapt to new, possibly empty, list: $vc_ignore.
57179
57180         bootstrap: generate more ignorable names
57181         * build-aux/bootstrap (slurp): When generating ignorable names,
57182         also map .sin to .sed, .gperf to .c, and .y to .c.
57183
57184 2007-09-03  Jim Meyering  <jim@meyering.net>
57185
57186         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57187         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57188
57189 2007-09-02  Bruno Haible  <bruno@clisp.org>
57190
57191         Fix mis-recognition of 'mcs' on QNX 6.
57192         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57193         output contains the string "Mono".
57194         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57195         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57196
57197 2007-09-01  Bruno Haible  <bruno@clisp.org>
57198
57199         Fix collision between uniwidth/* and linebreak modules.
57200         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57201         u32_width): Remove declarations.
57202         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57203         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57204         streq3, streq2, streq1, streq0): Remove functions.
57205         (STREQ): Remove macro.
57206         (is_cjk_encoding): Remove function.
57207         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57208         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57209         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57210         * NEWS: Document the change.
57211
57212 2007-09-01  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/streq.h: Add double-inclusion guard.
57215
57216 2007-09-01  Karl Berry  <karl@gnu.org>
57217
57218         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57219
57220 2007-08-28  Jim Meyering  <jim@meyering.net>
57221
57222         Rename mreadlink_with_size to areadlink_with_size.
57223         * NEWS: Document the change.
57224         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57225         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57226         * lib/mreadlink.h: Rename this to...
57227         * lib/areadlink.h: ...this.
57228         * modules/mreadlink-with-size: Rename this to...
57229         * modules/areadlink-with-size: ...this.
57230         * lib/canonicalize.c: Reflect the renaming.
57231         * modules/canonicalize: Likewise.
57232
57233 2007-08-26  Bruno Haible  <bruno@clisp.org>
57234
57235         * gnulib-tool (func_import): When deciding which files to remove,
57236         consider also dangling symbolic links.
57237         Reported by Eric Blake.
57238
57239 2007-08-26  Bruno Haible  <bruno@clisp.org>
57240
57241         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57242
57243 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57244
57245         * lib/readline.c: Don't include getline.h, the prototype is now
57246         found in stdio.h.
57247
57248 2007-08-23  Jim Meyering  <jim@meyering.net>
57249
57250         Getdelim touchup.
57251         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57252         around the funlockfile call, since funlockfile never sets errno.
57253         Don't set errno upon failed realloc.
57254
57255 2007-08-22  Eric Blake  <ebb9@byu.net>
57256
57257         Getline touchups.
57258         * lib/getdelim.c (getdelim): Revert regression that required *n to
57259         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57260         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57261         getdelim, rather than whether implementation is missing.
57262         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57263         * lib/stdio_.h (getline): Also declare if replacement is
57264         required.
57265         * doc/functions/getdelim.texi: New file.
57266         * doc/functions/getline.texi: Likewise.
57267         * doc/gnulib.texi (Function Substitutes): Add new files.
57268         Reported by Bruno Haible.
57269
57270 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57271
57272         * users.txt: Add Guile.
57273
57274 2007-08-22  Eric Blake  <ebb9@byu.net>
57275
57276         * tests/test-getdelim.c (main): Use remove, not unlink.
57277         * tests/test-getline.c (main): Likewise.
57278
57279         Move getline and getdelim into stdio.h, per POSIX 200x.
57280         * modules/getline (Files): Remove getline.h.
57281         (Depends-on): Add stdio.
57282         (configure.ac): Add module indicator.
57283         * modules/getdelim (Files): Remove getdelim.h.
57284         (Depends-on): Add stdio.
57285         (configure.ac): Add module indicator.
57286         * modules/stdio (Makefile.am): Work with new indicators.
57287         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57288         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57289         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57290         * lib/getdelim.h: Delete.
57291         * lib/getline.h: Delete.
57292         * lib/stdio_.h (getdelim, getline): Declare.
57293         * modules/getdelim-tests: New module.
57294         * modules/getline-tests: Likewise.
57295         * tests/test-getdelim.c: New file.
57296         * tests/test-getline.c: Likewise.
57297         * NEWS: Document the change.
57298         * lib/getline.c: Update choice of header.
57299         * lib/csharpcomp.c: Likewise.
57300         * lib/getpass.c: Likewise.
57301         * lib/javacomp.c: Likewise.
57302         * lib/javaversion.c: Likewise.
57303         * lib/yesno.c: Likewise.
57304         * lib/getdelim.c: Likewise.
57305         (getdelim): Set errno on failure, and avoid memory leak.
57306
57307 2007-08-19  Bruno Haible  <bruno@clisp.org>
57308
57309         * modules/closein (Depends-on): Add freadahead.
57310         * lib/closein.c: Include freadahead.h.
57311         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57312         is zero.
57313
57314 2007-08-19  Bruno Haible  <bruno@clisp.org>
57315
57316         * modules/freadahead-tests: New file.
57317         * tests/test-freadahead.sh: New file.
57318         * tests/test-freadahead.c: New file.
57319
57320         * modules/freadahead: New file.
57321         * lib/freadahead.h: New file.
57322         * lib/freadahead.c: New file.
57323         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57324         fbufmode, fpurge, freadable, fwritable.
57325
57326 2007-08-19  Eric Blake  <ebb9@byu.net>
57327
57328         Test yesno in combination with closein.
57329         * lib/yesno.c (yesno): Document use of stdin.
57330         * modules/yesno-tests (Files): New module.
57331         * tests/test-yesno.c (main): New file.
57332         * tests/test-yesno.sh: Likewise.
57333
57334 2007-08-19  Bruno Haible  <bruno@clisp.org>
57335
57336         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57337         * lib/fseeko.c (rpl_fseeko): Likewise.
57338         * lib/fseterr.c (fseterr): Likewise.
57339
57340 2007-08-19  Bruno Haible  <bruno@clisp.org>
57341
57342         * tests/test-lseek.c (main): Disable a test for BeOS.
57343         * doc/functions/lseek.texi: Document the BeOS bug.
57344
57345 2007-08-19  Bruno Haible  <bruno@clisp.org>
57346             Eric Blake  <ebb9@byu.net>
57347
57348         * lib/lseek.c: Include <sys/stat.h>.
57349         (rpl_lseek): Add workaround code also for Unix platforms.
57350         Needed for BeOS.
57351         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57352         * doc/functions/lseek.texi: Document BeOS definiency.
57353
57354 2007-08-18  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/fstrcmp-tests: New file.
57357         * tests/test-fstrcmp.c: New file.
57358
57359 2007-08-18  Bruno Haible  <bruno@clisp.org>
57360
57361         * modules/fstrcmp: New file, from GNU gettext with modifications.
57362         * lib/fstrcmp.h: New file, from GNU gettext.
57363         * lib/fstrcmp.c: New file, from GNU gettext.
57364         * MODULES.html.sh (String handling): Add fstrcmp.
57365
57366 2007-08-18  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57369         'bool'.
57370         (diag, compareseq): Remove const from the ctxt argument.
57371         (USE_HEURISTIC): Undefine at the end.
57372
57373 2007-08-18  Jim Meyering  <jim@meyering.net>
57374
57375         New file: lib/idcache.h
57376         * NEWS: Mention the addition.
57377         * modules/idcache (Files): Add lib/idcache.h
57378         * lib/idcache.c: Include "idcache.h".
57379         Don't include <sys/types.h>.
57380         Add a FIXME comment.
57381         Move file-scoped "static" declarations to the top.
57382         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57383
57384 2007-08-17  Bruno Haible  <bruno@clisp.org>
57385         and Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * MODULES.html.sh: Add diffseq.
57388         * modules/diffseq: New file.
57389         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57390         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57391
57392 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57393
57394         Import changes from coreutils for bootstrap script.
57395
57396         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57397
57398         * build-aux/bootstrap (slurp): Work even in environments where
57399         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57400         current code does not slurp files whose names start with ".", and
57401         this looks like it might be a troublesome area.
57402
57403         2007-07-11  Jim Meyering  <jim@meyering.net>
57404
57405         If there's a GPL vN copyright comment, require that N == 3.
57406
57407         2007-07-08  Jim Meyering  <jim@meyering.net>
57408
57409         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57410         * build-aux/bootstrap (mam_template): Move definition out of loop.
57411
57412         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57413
57414         * build-aux/bootstrap (symlink_to_dir): Rename function from
57415         symlink_to_gnulib.  Add a directory parameter.  Update all
57416         callers.
57417         (cp_mark_as_generated): Also check for -- and link to -- files in
57418         gl/.
57419
57420         2007-07-08  Jim Meyering  <jim@meyering.net>
57421
57422         Adapt to deeper hierarchy in gnulib.
57423         * build-aux/bootstrap (symlink_to_dir): If the destination
57424         directory doesn't exist, create it. This is required at least for
57425         "lib/uniwidth/cjk.h".
57426
57427         2007-05-15  Jim Meyering  <jim@meyering.net>
57428
57429         * build-aux/bootstrap: Now that generated Makefile.am files
57430         are no longer under version control, they must be created at
57431         bootstrap time.
57432
57433 2007-08-14  Ben Pfaff  <blp@gnu.org>
57434
57435         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57436
57437 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57440         given the changes below.
57441         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57442         even on hosts that have padding bits beyond the supported 64.
57443
57444 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57447         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57448         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57449         depends on it.
57450         (xstrtol_error): Remove.
57451         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57452         but with a different signature.
57453         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57454         * lib/xstrtol-error.c: Include exitfail.h.
57455         (xstrtol_fatal): New function, with a different signature from the
57456         old xstrtol_error, so that the caller need not worry about passing
57457         in an exit status, or about storage management of the option argument.
57458         (xstrtol_error): Now a static function.  Redo signature to
57459         implement xstrtol_fatal.  Output the correct number of hyphens in
57460         front of the option so that the caller need not worry about
57461         storage management.
57462         (N_): New macro.
57463         (_): Remove; not used now.
57464         * modules/xstrtol: Depend on getopt.
57465         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57466         of old STRTOL_FATAL_ERROR macro.
57467         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57468         of test program.
57469         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57470         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57471
57472 2007-08-08  Eric Blake  <ebb9@byu.net>
57473
57474         * lib/xstrtol-error.c: Add missing include.
57475
57476         Move xstrtol messages into gnulib domain, when --pobase is used.
57477         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57478         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57479         * modules/xstrtol (Files): Distribute new file.
57480         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57481         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57482         * tests/test-xstrtol.c: ...into new file.
57483         * tests/test-xstrtoul.c: Also test xstrtoul.
57484         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57485         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57486         * tests/test-xstrtol.sh: Drive the tests.
57487         * tests/test-xstrtoimax.sh: Likewise.
57488         * tests/test-xstrtoumax.sh: Likewise.
57489         * modules/xstrtol-tests: New module.
57490         * modules/xstrtoimax-tests: Likewise.
57491         * modules/xstrtoumax-tests: Likewise.
57492
57493 2007-08-08  Jim Meyering  <jim@meyering.net>
57494
57495         New function: mfile_name_concat.
57496         * lib/filenamecat.c (mfile_name_concat): New function, just like
57497         file_name_concat, but return NULL upon failure rather than exiting
57498         with a diagnostic.
57499         * lib/filenamecat.h: Declare it.
57500
57501 2007-08-07  Bruno Haible  <bruno@clisp.org>
57502
57503         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57504         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57505         warning from gcc.
57506         Reported by Eric Blake.
57507
57508 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57509
57510         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57511         * modules/crypto/arcfour (License): Likewise.
57512         * modules/crypto/des-tests (License): Likewise.
57513         * modules/crypto/gc-arctwo-tests (License): Likewise.
57514         * modules/crypto/gc-des-tests (License): Likewise.
57515         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57516         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57517         * modules/crypto/gc-md2-tests (License): Likewise.
57518         * modules/crypto/gc-md4-tests (License): Likewise.
57519         * modules/crypto/gc-md5-tests (License): Likewise.
57520         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57521         * modules/crypto/gc-rijndael-tests (License): Likewise.
57522         * modules/crypto/gc-sha1-tests (License): Likewise.
57523         * modules/crypto/gc-tests (License): Likewise.
57524         * modules/crypto/hmac-md5 (License): Likewise.
57525         * modules/crypto/hmac-sha1 (License): Likewise.
57526         * modules/crypto/md2-tests (License): Likewise.
57527         * modules/crypto/md4-tests (License): Likewise.
57528         * modules/crypto/md5 (License): Likewise.
57529         * modules/crypto/rijndael (License): Likewise.
57530         * modules/crypto/sha1 (License): Likewise.
57531         * modules/memxor (License): Likewise.
57532
57533 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57534         and Bruno Haible  <bruno@clisp.org>
57535
57536         * NEWS: Describe interface changes to human, xstrtol.
57537         * lib/human.h: Include <xstrtol.h>.
57538         (human_options): Return enum strtol_error, not int.  Remove
57539         bool arg; take int * instead.
57540         * lib/human.c: Don't include "gettext.h".
57541         (_): Remove; no longer used.
57542         Don't include <xstrtol.h>, since human.h does it.
57543         (human_options): Adjust to abovementioned interface changes.
57544         Do not report error to stderr; that's now the caller's
57545         responsibility.
57546         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57547         interface change.
57548         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57549         Str, Argument_type_string.  All uses changed.  Put " argument"
57550         in diagnostics to make them clearer.  Change wording of suffix
57551         message for clarity.
57552         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57553         Argument_type_string.
57554         (STRTOL_FATAL_WARN): Remove; no longer used.
57555         * modules/human (Depends-on): Remove gettext-h.
57556
57557 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57558
57559         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57560
57561 2007-07-31  Bruno Haible  <bruno@clisp.org>
57562
57563         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57564         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57565         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57566
57567 2007-07-31  Bruno Haible  <bruno@clisp.org>
57568
57569         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57570         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57571
57572 2007-07-30  Bruno Haible  <bruno@clisp.org>
57573
57574         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57575         * modules/c-ctype (License): Likewise.
57576         * modules/c-strcase (License): Likewise.
57577         * modules/check-version (License): Likewise.
57578         * modules/iconv (License): Likewise.
57579         * modules/iconv_open (License): Likewise.
57580         * modules/read-file (License): Likewise.
57581         * modules/striconv (License): Likewise.
57582         * modules/strverscmp (License): Likewise.
57583         * modules/vasprintf (License): Likewise.
57584         * modules/crypto/des (License): Likewise.
57585         * modules/crypto/gc (License): Likewise.
57586         * modules/crypto/gc-arcfour (License): Likewise.
57587         * modules/crypto/gc-arctwo (License): Likewise.
57588         * modules/crypto/gc-des (License): Likewise.
57589         * modules/crypto/gc-hmac-md5 (License): Likewise.
57590         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57591         * modules/crypto/gc-md2 (License): Likewise.
57592         * modules/crypto/gc-md4 (License): Likewise.
57593         * modules/crypto/gc-md5 (License): Likewise.
57594         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57595         * modules/crypto/gc-random (License): Likewise.
57596         * modules/crypto/gc-rijndael (License): Likewise.
57597         * modules/crypto/gc-sha1 (License): Likewise.
57598         * modules/crypto/md2 (License): Likewise.
57599         * modules/crypto/md4 (License): Likewise.
57600
57601 2007-07-30  Jim Meyering  <jim@meyering.net>
57602
57603         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57604         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57605         it has valid stat data.  This bug would cause du not to count the
57606         sizes of inaccessible directories.
57607         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57608         in <http://bugzilla.redhat.com/250077>.
57609
57610 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57611             Bruno Haible  <bruno@clisp.org>
57612
57613         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57614         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57615         #include_next, gives a diagnostic about it, but reports no error in
57616         the exit code.
57617         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57618
57619 2007-07-24  Ben Pfaff  <blp@gnu.org>
57620
57621         Improve name: "count-one-bits" is better than "popcount".
57622         * MODULES.html.sh: Update name.
57623         * lib/popcount.h: Renamed lib/count-one-bits.h.
57624         (popcount): Renamed count_one_bits.
57625         (popcountl): Renamed count_one_bits_l.
57626         (popcountll): Renamed count_one_bits_ll.
57627         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57628         * modules/popcount: Renamed module/count-one-bits.
57629         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57630         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57631
57632 2007-07-23  Ben Pfaff  <blp@gnu.org>
57633
57634         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57635         better code generation, and add U to large constants to avoid
57636         warnings, in non-GCC case.
57637         Suggested by Bruno Haible.
57638
57639 2007-07-23  Ben Pfaff  <blp@gnu.org>
57640
57641         * lib/popcount.h: Use verify_true instead of if...abort.
57642         * modules/popcount: Depend on verify module.
57643         Suggested by Jim Meyering.
57644
57645 2007-07-23  Bruno Haible  <bruno@clisp.org>
57646
57647         * gnulib-tool (func_import): Create a .cvsignore file also when the
57648         directory is not yet in CVS but the toplevel directory is. When
57649         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57650         Reported by Karl Berry.
57651
57652 2007-07-22  Ben Pfaff  <blp@gnu.org>
57653
57654         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57655         case.
57656         Suggested by Eric Blake.
57657
57658 2007-07-22  Ben Pfaff  <blp@gnu.org>
57659
57660         New module: popcount.
57661         * MODULES.html.sh: Add popcount.
57662         * modules/popcount: New file.
57663         * modules/popcount-tests: New file.
57664         * tests/test-popcount.c: New file.
57665         * lib/popcount.h: New file.
57666         * m4/popcount.m4: New file.
57667
57668 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57669
57670         * build-aux/announce-gen: Update to GPLv3.
57671
57672         * build-aux/config.guess: Update from config.
57673
57674 2007-07-21  Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57677         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57678
57679 2007-07-20  Jim Meyering  <jim@meyering.net>
57680
57681         * check-module: Diagnose a self-dependency.
57682
57683 2007-07-19  Bruno Haible  <bruno@clisp.org>
57684
57685         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57686         empty.
57687         Reported by Eric Blake.
57688
57689 2007-07-18  Bruno Haible  <bruno@clisp.org>
57690
57691         * gnulib-tool: New options --po-base, --po-domain.
57692         (func_usage): Document them.
57693         (pobase, po_domain): New variables.
57694         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57695         DEFAULT_TEXT_DOMAIN.
57696         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57697         (func_import): Consider pobase and po_domain. Create a po/ directory.
57698         (func_create_testdir): Set pobase and po_domain to empty.
57699         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57700         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57701
57702 2007-07-18  Bruno Haible  <bruno@clisp.org>
57703
57704         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57705         EXTRA_DIST augmentation for files in build-aux/.
57706
57707 2007-07-16  Bruno Haible  <bruno@clisp.org>
57708
57709         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57710         * modules/getdelim (License): Likewise.
57711
57712 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57713
57714         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57715         * modules/d-type (License): Likewise.
57716         * modules/extensions (License): Likewise.
57717         * modules/fnmatch (License): Likewise.
57718         * modules/fseeko (License): Likewise.
57719         * modules/getaddrinfo (License): Likewise.
57720         * modules/getline (License): Likewise.
57721         * modules/getlogin_r (License): Likewise.
57722         * modules/getpass (License): Likewise.
57723         * modules/gettimeofday (License): Likewise.
57724         * modules/glob (License): Likewise.
57725         * modules/inet_ntop (License): Likewise.
57726         * modules/malloc (License): Likewise.
57727         * modules/malloca (License): Likewise.
57728         * modules/memmem (License): Likewise.
57729         * modules/mempcpy (License): Likewise.
57730         * modules/memset (License): Likewise.
57731         * modules/minmax (License): Likewise.
57732         * modules/mktime (License): Likewise.
57733         * modules/netinet_in (License): Likewise.
57734         * modules/pathmax (License): Likewise.
57735         * modules/poll (License): Likewise.
57736         * modules/regex (License): Likewise.
57737         * modules/snprintf (License): Likewise.
57738         * modules/stdbool (License): Likewise.
57739         * modules/stdint (License): Likewise.
57740         * modules/stdio (License): Likewise.
57741         * modules/strcase (License): Likewise.
57742         * modules/strcasestr (License): Likewise.
57743         * modules/strdup (License): Likewise.
57744         * modules/string (License): Likewise.
57745         * modules/strndup (License): Likewise.
57746         * modules/strnlen (License): Likewise.
57747         * modules/strpbrk (License): Likewise.
57748         * modules/strptime (License): Likewise.
57749         * modules/strsep (License): Likewise.
57750         * modules/sys_select (License): Likewise.
57751         * modules/sys_socket (License): Likewise.
57752         * modules/sys_stat (License): Likewise.
57753         * modules/sys_time (License): Likewise.
57754         * modules/time (License): Likewise.
57755         * modules/time_r (License): Likewise.
57756         * modules/timegm (License): Likewise.
57757         * modules/unistd (License): Likewise.
57758         * modules/vsnprintf (License): Likewise.
57759         * modules/wctype (License): Likewise.
57760
57761 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57762
57763         * modules/argz (License): LGPLv2+.
57764
57765 2007-07-15  Karl Berry  <karl@gnu.org>
57766
57767         * doc/gnulib.texi: revise node structure per new fdl.texi.
57768
57769 2007-07-14  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57772         the output file.
57773         * lib/uniname/uninames.h: Regenerated.
57774
57775 2007-07-14  Karl Berry  <karl@gnu.org>
57776
57777         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57778         omitting sectioning and index commands.
57779
57780 2007-07-13  Bruno Haible  <bruno@clisp.org>
57781
57782         New gnulib-tool option --more-symlinks.
57783         * gnulib-tool (func_usage): Document --more-symlinks.
57784         (do_copyrights): New variable.
57785         Recognize option --more-symlinks.
57786         (func_import): Don't add a copyright notice transform to
57787         sed_transform_lib_file if do_copyrights is empty.
57788
57789 2007-07-13  Bruno Haible  <bruno@clisp.org>
57790
57791         * lib/vasnprintf.c (decimal_point_char): Define also if
57792         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57793         && !NEED_PRINTF_DIRECTIVE_A.
57794         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57795         Gary V. Vaughan <gary@gnu.org>.
57796
57797 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57798
57799         * lib/inttypes_.h: Undo previous change, since it was fixed
57800         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57801
57802 2007-07-13  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57805         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57806
57807 2007-07-13  Jim Meyering  <jim@meyering.net>
57808
57809         df: Don't fail for Tru64's "file-on-file mount".
57810         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57811         so we fall through and use statfs instead.  Details here:
57812         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57813         Reported by Albert Chin.
57814
57815 2007-07-13  Bruno Haible  <bruno@clisp.org>
57816
57817         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57818         * modules/configmake (License): Likewise.
57819         * modules/gettext (License): Likewise.
57820         * modules/gettext-h (License): Likewise.
57821         * modules/include_next (License): Likewise.
57822         * modules/link-warning (License): Likewise.
57823         * modules/localcharset (License): Likewise.
57824         * modules/localename (License): Likewise.
57825         * modules/lock (License): Likewise.
57826         * modules/relocatable-lib-lgpl (License): Likewise.
57827         * modules/size_max (License): Likewise.
57828         * modules/vasnprintf (License): Likewise.
57829         * modules/wchar (License): Likewise.
57830         * modules/xsize (License): Likewise.
57831
57832 2007-07-13  Bruno Haible  <bruno@clisp.org>
57833
57834         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57835         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57836
57837 2007-07-12  Bruno Haible  <bruno@clisp.org>
57838
57839         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57840         in the modules files.
57841
57842 2007-07-11  Karl Berry  <karl@gnu.org>
57843
57844         * MODULES.html.sh (func_module): use
57845          sed -e '\|^'"${includefile}"'$|d'
57846          instead of /.../d, to avoid errors on $includefile's containing /.
57847
57848 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57849
57850         * gnulib-tool (func_import): Avoid duplication of --avoid
57851         statements
57852         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57853         names to `_' in variable names.
57854
57855 2007-07-10  Eric Blake  <ebb9@byu.net>
57856
57857         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57858         * NEWS: Document this change.
57859
57860 2007-07-08  Bruno Haible  <bruno@clisp.org>
57861
57862         Update to Unicode 5.0.
57863         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57864         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57865         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57866         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57867         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57868         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57869         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57870         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57871         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57872         U+10A3F, U+1D242..U+1D244.
57873         (nonspacing_table_ind): Update.
57874         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57875         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57876
57877 2007-07-08  Bruno Haible  <bruno@clisp.org>
57878
57879         Update to Unicode 5.0.
57880         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57881         code transform. Extend the name index field of unicode_name_to_code and
57882         unicode_code_to_name from 16 to 24 bits.
57883         * lib/uniname/uniname.c (unicode_character_name,
57884         unicode_name_character): Add the range 0x12xxx to the code transform.
57885         * lib/uniname/uninames.h: Regenerated.
57886         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57887
57888 2007-07-07  Bruno Haible  <bruno@clisp.org>
57889
57890         * modules/wcwidth-tests: New file.
57891         * tests/test-wcwidth.c: New file.
57892
57893         Work around MacOS X wcwidth() bug.
57894         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57895         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57896         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57897         original wcwidth in non-UTF-8 locales.
57898         * modules/wcwidth (Depends-on): Add localcharset, streq,
57899         uniwidth/width.
57900         * doc/functions/wcwidth.texi: Update.
57901
57902 2007-07-07  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57905         (wcwidth): New declaration.
57906         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57907         macros.
57908         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57909         here. Prepare for creating <wchar.h> unconditionally.
57910         * modules/wchar (Depends-on): Add link-warning.
57911         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57912         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57913         * lib/wcwidth.h: Remove file.
57914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57915         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57916         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57917         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57918         (Include): Replace wcwidth.h with <wchar.h>.
57919         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57920         * lib/mbchar.h: Don't include wcwidth.h.
57921         * lib/mbswidth.c: Likewise.
57922         * NEWS: Mention the change.
57923
57924 2007-07-07  Bruno Haible  <bruno@clisp.org>
57925
57926         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57927         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57928         definition with an external declaration.
57929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57930         defined as a function. Remove AC_C_INLINE requirement.
57931         * modules/wcwidth (Files): Add lib/wcwidth.c.
57932         (Makefile.am): Remove redundant statement.
57933
57934 2007-07-07  Bruno Haible  <bruno@clisp.org>
57935
57936         * MODULES.html.sh (Unicode string functions): Add the new modules.
57937
57938         * tests/uniwidth/test-u32-strwidth.c: New file.
57939         * modules/uniwidth/u32-strwidth-tests: New file.
57940
57941         * lib/uniwidth/u32-strwidth.c: New file.
57942         * modules/uniwidth/u32-strwidth: New file.
57943
57944         * tests/uniwidth/test-u16-strwidth.c: New file.
57945         * modules/uniwidth/u16-strwidth-tests: New file.
57946
57947         * lib/uniwidth/u16-strwidth.c: New file.
57948         * modules/uniwidth/u16-strwidth: New file.
57949
57950         * tests/uniwidth/test-u8-strwidth.c: New file.
57951         * modules/uniwidth/u8-strwidth-tests: New file.
57952
57953         * lib/uniwidth/u8-strwidth.c: New file.
57954         * modules/uniwidth/u8-strwidth: New file.
57955
57956         * tests/uniwidth/test-u32-width.c: New file.
57957         * modules/uniwidth/u32-width-tests: New file.
57958
57959         * lib/uniwidth/u32-width.c: New file.
57960         * modules/uniwidth/u32-width: New file.
57961
57962         * tests/uniwidth/test-u16-width.c: New file.
57963         * modules/uniwidth/u16-width-tests: New file.
57964
57965         * lib/uniwidth/u16-width.c: New file.
57966         * modules/uniwidth/u16-width: New file.
57967
57968         * tests/uniwidth/test-u8-width.c: New file.
57969         * modules/uniwidth/u8-width-tests: New file.
57970
57971         * lib/uniwidth/u8-width.c: New file.
57972         * modules/uniwidth/u8-width: New file.
57973
57974         * tests/uniwidth/test-uc_width.c: New file.
57975         * modules/uniwidth/width-tests: New file.
57976
57977         * lib/uniwidth/width.c: New file, from GNU libiconv.
57978         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57979         * modules/uniwidth/width: New file.
57980
57981         * lib/uniwidth.h: New file, from GNU libiconv.
57982         * modules/uniwidth/base: New file.
57983
57984 2007-07-07  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/uniname.h: New file, from GNU gettext.
57987         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57988         * lib/uniname/uninames.h: New file, from GNU gettext.
57989         * lib/uniname/uniname.c: New file, from GNU gettext.
57990         * tests/uniname/test-uninames.sh: New file.
57991         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57992         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57993         * modules/uniname/base: New file.
57994         * modules/uniname/uniname: New file.
57995         * modules/uniname/uniname-tests: New file.
57996         * MODULES.html.sh (Unicode string functions): Add the new modules.
57997
57998 2007-07-06  Bruno Haible  <bruno@clisp.org>
57999
58000         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58001
58002 2007-07-06  Bruno Haible  <bruno@clisp.org>
58003
58004         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58005         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58006         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58007         include <sys/time.h>.
58008         Reported by Eric Blake.
58009
58010 2007-07-06  Eric Blake  <ebb9@byu.net>
58011
58012         Fix testing canonicalize on cygwin.
58013         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58014         Revert patch from 2007-06-19.
58015         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58016         canonicalize module is also in use.
58017         * tests/test-canonicalize.c: New file.
58018         * tests/test-canonicalize.sh: Likewise.
58019         * modules/canonicalize-tests: Likewise.
58020
58021 2007-07-06  Jim Meyering  <jim@meyering.net>
58022
58023         * lib/getugroups.c (getugroups): Detect getgrent failure.
58024         Adjust comment to reflect reality: this function may return -1.
58025
58026 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58027
58028         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58029         the new TP address.
58030         (usage): Fix typo
58031         (gnulib_mk): New variable.
58032
58033 2007-07-05  Jim Meyering  <jim@meyering.net>
58034
58035         Don't let endgrent clobber errno, no matter how improbable.
58036         * lib/getugroups.c (getugroups): Save and restore errno around
58037         endgrent call.
58038
58039         Close the group DB even when failing with 2^31 or more members.
58040         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58041
58042 2007-07-04  Jim Meyering  <jim@meyering.net>
58043
58044         * lib/getugroups.h: New file.
58045         * lib/getugroups.c: Include "getugroups.h".
58046         Remove uses of "register" keyword.
58047         Move local variable, "cp", down into scope where used.
58048         Give "username" parameter the "const" attribute.
58049         * modules/getugroups (Files): Add lib/getugroups.h
58050
58051 2007-07-04  Karl Berry  <karl@gnu.org>
58052
58053         * MODULES.html.sh (func_all_modules): Complete rename of
58054         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58055
58056 2007-07-02  Bruno Haible  <bruno@clisp.org>
58057
58058         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58059         mode, when inttypes.h comes from gnulib.
58060         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58061
58062 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58063
58064         * NEWS: Mention lgpl module name change.
58065
58066         * modules/lgpl-2.1: Renamed from lgpl.
58067
58068         * NEWS: Mention gpl module name change.
58069
58070         * modules/gpl-3.0: New file, based on gpl-2.0.
58071
58072         * modules/gpl-2.0: Renamed from gpl.
58073
58074         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58075         doc/gpl-2.0.texi.
58076
58077 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58078
58079         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58080         #define __STDC_LIMIT_MACROS temporarily while including
58081         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58082         Problem reported by Joel E. Denny in
58083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58084
58085 2007-07-01  Bruno Haible  <bruno@clisp.org>
58086
58087         * lib/unistdio.h: New file.
58088         * lib/unistdio/u-asnprintf.h: New file.
58089         * lib/unistdio/u-asprintf.h: New file.
58090         * lib/unistdio/u-printf-args.c: New file.
58091         * lib/unistdio/u-printf-args.h: New file.
58092         * lib/unistdio/u-printf-parse.h: New file.
58093         * lib/unistdio/u-snprintf.h: New file.
58094         * lib/unistdio/u-sprintf.h: New file.
58095         * lib/unistdio/u-vasprintf.h: New file.
58096         * lib/unistdio/u-vsnprintf.h: New file.
58097         * lib/unistdio/u-vsprintf.h: New file.
58098         * lib/unistdio/ulc-asnprintf.c: New file.
58099         * lib/unistdio/ulc-asprintf.c: New file.
58100         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58101         * lib/unistdio/ulc-printf-parse.c: New file.
58102         * lib/unistdio/ulc-snprintf.c: New file.
58103         * lib/unistdio/ulc-sprintf.c: New file.
58104         * lib/unistdio/ulc-vasnprintf.c: New file.
58105         * lib/unistdio/ulc-vasprintf.c: New file.
58106         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58107         * lib/unistdio/ulc-vsnprintf.c: New file.
58108         * lib/unistdio/ulc-vsprintf.c: New file.
58109         * lib/unistdio/u8-asnprintf.c: New file.
58110         * lib/unistdio/u8-asprintf.c: New file.
58111         * lib/unistdio/u8-printf-parse.c: New file.
58112         * lib/unistdio/u8-snprintf.c: New file.
58113         * lib/unistdio/u8-sprintf.c: New file.
58114         * lib/unistdio/u8-vasnprintf.c: New file.
58115         * lib/unistdio/u8-vasprintf.c: New file.
58116         * lib/unistdio/u8-vsnprintf.c: New file.
58117         * lib/unistdio/u8-vsprintf.c: New file.
58118         * lib/unistdio/u8-u8-asnprintf.c: New file.
58119         * lib/unistdio/u8-u8-asprintf.c: New file.
58120         * lib/unistdio/u8-u8-snprintf.c: New file.
58121         * lib/unistdio/u8-u8-sprintf.c: New file.
58122         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58123         * lib/unistdio/u8-u8-vasprintf.c: New file.
58124         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58125         * lib/unistdio/u8-u8-vsprintf.c: New file.
58126         * lib/unistdio/u16-asnprintf.c: New file.
58127         * lib/unistdio/u16-asprintf.c: New file.
58128         * lib/unistdio/u16-printf-parse.c: New file.
58129         * lib/unistdio/u16-snprintf.c: New file.
58130         * lib/unistdio/u16-sprintf.c: New file.
58131         * lib/unistdio/u16-vasnprintf.c: New file.
58132         * lib/unistdio/u16-vasprintf.c: New file.
58133         * lib/unistdio/u16-vsnprintf.c: New file.
58134         * lib/unistdio/u16-vsprintf.c: New file.
58135         * lib/unistdio/u16-u16-asnprintf.c: New file.
58136         * lib/unistdio/u16-u16-asprintf.c: New file.
58137         * lib/unistdio/u16-u16-snprintf.c: New file.
58138         * lib/unistdio/u16-u16-sprintf.c: New file.
58139         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58140         * lib/unistdio/u16-u16-vasprintf.c: New file.
58141         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58142         * lib/unistdio/u16-u16-vsprintf.c: New file.
58143         * lib/unistdio/u32-asnprintf.c: New file.
58144         * lib/unistdio/u32-asprintf.c: New file.
58145         * lib/unistdio/u32-printf-parse.c: New file.
58146         * lib/unistdio/u32-snprintf.c: New file.
58147         * lib/unistdio/u32-sprintf.c: New file.
58148         * lib/unistdio/u32-vasnprintf.c: New file.
58149         * lib/unistdio/u32-vasprintf.c: New file.
58150         * lib/unistdio/u32-vsnprintf.c: New file.
58151         * lib/unistdio/u32-vsprintf.c: New file.
58152         * lib/unistdio/u32-u32-asnprintf.c: New file.
58153         * lib/unistdio/u32-u32-asprintf.c: New file.
58154         * lib/unistdio/u32-u32-snprintf.c: New file.
58155         * lib/unistdio/u32-u32-sprintf.c: New file.
58156         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58157         * lib/unistdio/u32-u32-vasprintf.c: New file.
58158         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58159         * lib/unistdio/u32-u32-vsprintf.c: New file.
58160         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58161         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58162         * tests/unistdio/test-ulc-printf1.h: New file.
58163         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58164         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58165         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58166         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58167         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58168         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58169         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58170         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58171         * tests/unistdio/test-u8-asnprintf1.c: New file.
58172         * tests/unistdio/test-u8-asnprintf1.h: New file.
58173         * tests/unistdio/test-u8-printf1.h: New file.
58174         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58175         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58176         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58177         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58178         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58179         * tests/unistdio/test-u8-vasprintf1.c: New file.
58180         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58181         * tests/unistdio/test-u8-vsprintf1.c: New file.
58182         * tests/unistdio/test-u16-asnprintf1.c: New file.
58183         * tests/unistdio/test-u16-asnprintf1.h: New file.
58184         * tests/unistdio/test-u16-printf1.h: New file.
58185         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58186         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58187         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58188         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58189         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58190         * tests/unistdio/test-u16-vasprintf1.c: New file.
58191         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58192         * tests/unistdio/test-u16-vsprintf1.c: New file.
58193         * tests/unistdio/test-u32-asnprintf1.c: New file.
58194         * tests/unistdio/test-u32-asnprintf1.h: New file.
58195         * tests/unistdio/test-u32-printf1.h: New file.
58196         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58197         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58198         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58199         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58200         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58201         * tests/unistdio/test-u32-vasprintf1.c: New file.
58202         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58203         * tests/unistdio/test-u32-vsprintf1.c: New file.
58204         * modules/unistdio/base: New file.
58205         * modules/unistdio/u-printf-args: New file.
58206         * modules/unistdio/ulc-asnprintf: New file.
58207         * modules/unistdio/ulc-asprintf: New file.
58208         * modules/unistdio/ulc-fprintf: New file.
58209         * modules/unistdio/ulc-printf-parse: New file.
58210         * modules/unistdio/ulc-snprintf: New file.
58211         * modules/unistdio/ulc-sprintf: New file.
58212         * modules/unistdio/ulc-vasnprintf: New file.
58213         * modules/unistdio/ulc-vasprintf: New file.
58214         * modules/unistdio/ulc-vfprintf: New file.
58215         * modules/unistdio/ulc-vsnprintf: New file.
58216         * modules/unistdio/ulc-vsprintf: New file.
58217         * modules/unistdio/u8-asnprintf: New file.
58218         * modules/unistdio/u8-asprintf: New file.
58219         * modules/unistdio/u8-printf-parse: New file.
58220         * modules/unistdio/u8-snprintf: New file.
58221         * modules/unistdio/u8-sprintf: New file.
58222         * modules/unistdio/u8-vasnprintf: New file.
58223         * modules/unistdio/u8-vasprintf: New file.
58224         * modules/unistdio/u8-vsnprintf: New file.
58225         * modules/unistdio/u8-vsprintf: New file.
58226         * modules/unistdio/u8-u8-asnprintf: New file.
58227         * modules/unistdio/u8-u8-asprintf: New file.
58228         * modules/unistdio/u8-u8-snprintf: New file.
58229         * modules/unistdio/u8-u8-sprintf: New file.
58230         * modules/unistdio/u8-u8-vasnprintf: New file.
58231         * modules/unistdio/u8-u8-vasprintf: New file.
58232         * modules/unistdio/u8-u8-vsnprintf: New file.
58233         * modules/unistdio/u8-u8-vsprintf: New file.
58234         * modules/unistdio/u16-asnprintf: New file.
58235         * modules/unistdio/u16-asprintf: New file.
58236         * modules/unistdio/u16-printf-parse: New file.
58237         * modules/unistdio/u16-snprintf: New file.
58238         * modules/unistdio/u16-sprintf: New file.
58239         * modules/unistdio/u16-vasnprintf: New file.
58240         * modules/unistdio/u16-vasprintf: New file.
58241         * modules/unistdio/u16-vsnprintf: New file.
58242         * modules/unistdio/u16-vsprintf: New file.
58243         * modules/unistdio/u16-u16-asnprintf: New file.
58244         * modules/unistdio/u16-u16-asprintf: New file.
58245         * modules/unistdio/u16-u16-snprintf: New file.
58246         * modules/unistdio/u16-u16-sprintf: New file.
58247         * modules/unistdio/u16-u16-vasnprintf: New file.
58248         * modules/unistdio/u16-u16-vasprintf: New file.
58249         * modules/unistdio/u16-u16-vsnprintf: New file.
58250         * modules/unistdio/u16-u16-vsprintf: New file.
58251         * modules/unistdio/u32-asnprintf: New file.
58252         * modules/unistdio/u32-asprintf: New file.
58253         * modules/unistdio/u32-printf-parse: New file.
58254         * modules/unistdio/u32-snprintf: New file.
58255         * modules/unistdio/u32-sprintf: New file.
58256         * modules/unistdio/u32-vasnprintf: New file.
58257         * modules/unistdio/u32-vasprintf: New file.
58258         * modules/unistdio/u32-vsnprintf: New file.
58259         * modules/unistdio/u32-vsprintf: New file.
58260         * modules/unistdio/u32-u32-asnprintf: New file.
58261         * modules/unistdio/u32-u32-asprintf: New file.
58262         * modules/unistdio/u32-u32-snprintf: New file.
58263         * modules/unistdio/u32-u32-sprintf: New file.
58264         * modules/unistdio/u32-u32-vasnprintf: New file.
58265         * modules/unistdio/u32-u32-vasprintf: New file.
58266         * modules/unistdio/u32-u32-vsnprintf: New file.
58267         * modules/unistdio/u32-u32-vsprintf: New file.
58268         * modules/unistdio/ulc-asnprintf-tests: New file.
58269         * modules/unistdio/ulc-vasnprintf-tests: New file.
58270         * modules/unistdio/ulc-vasprintf-tests: New file.
58271         * modules/unistdio/ulc-vsnprintf-tests: New file.
58272         * modules/unistdio/ulc-vsprintf-tests: New file.
58273         * modules/unistdio/u8-asnprintf-tests: New file.
58274         * modules/unistdio/u8-vasnprintf-tests: New file.
58275         * modules/unistdio/u8-vasprintf-tests: New file.
58276         * modules/unistdio/u8-vsnprintf-tests: New file.
58277         * modules/unistdio/u8-vsprintf-tests: New file.
58278         * modules/unistdio/u16-asnprintf-tests: New file.
58279         * modules/unistdio/u16-vasnprintf-tests: New file.
58280         * modules/unistdio/u16-vasprintf-tests: New file.
58281         * modules/unistdio/u16-vsnprintf-tests: New file.
58282         * modules/unistdio/u16-vsprintf-tests: New file.
58283         * modules/unistdio/u32-asnprintf-tests: New file.
58284         * modules/unistdio/u32-vasnprintf-tests: New file.
58285         * modules/unistdio/u32-vasprintf-tests: New file.
58286         * modules/unistdio/u32-vsnprintf-tests: New file.
58287         * modules/unistdio/u32-vsprintf-tests: New file.
58288         * MODULES.html.sh (Unicode string functions): Add the new modules.
58289
58290 2007-07-01  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/sprintf.c (sprintf): Limit the available length estimation,
58293         to avoid address wraparound.
58294         * lib/vsprintf.c (vsprintf): Likewise.
58295         * modules/sprintf-posix (Dependencies): Add stdint.
58296         * modules/vsprintf-posix (Dependencies): Likewise.
58297
58298 2007-07-01  Bruno Haible  <bruno@clisp.org>
58299
58300         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58301         Windows PATH as well. Conservative double-quoting. Comments.
58302
58303 2007-07-01  Bruno Haible  <bruno@clisp.org>
58304             Eric Blake  <ebb9@byu.net>
58305             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58306
58307         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58308         empty components in $PATH, denoting '.'.
58309
58310 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58311
58312         * gnulib-tool: Fix indentation.
58313         (func_create_megatestdir): Likewise.
58314         Report by Bruno Haible.
58315
58316 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58317
58318         Sync from Automake.
58319         * build-aux/gnupload: Fix shell portability issues with for loops.
58320         Report by Karl Berry.
58321
58322 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58323
58324         * build-aux/maint.mk (POURL): Use translationproject.org.
58325
58326 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58327             Bruno Haible  <bruno@clisp.org>
58328
58329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58330         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58331         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58332         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58333         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58334
58335 2007-06-27  Bruno Haible  <bruno@clisp.org>
58336
58337         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58338         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58339
58340 2007-06-26  Karl Berry  <karl@gnu.org>
58341
58342         * MODULES.html.sh: remove xreadlink-with-size.
58343
58344 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58345
58346         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58347         method that I hope also handles the double-include problem noted
58348         by Bruno Haible in
58349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58350
58351 2007-06-23  Bruno Haible  <bruno@clisp.org>
58352
58353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58354         Don't let the 'mostlyclean' target fail if the last subdirectory could
58355         not be removed.
58356         Reported by Karl Berry.
58357
58358 2007-06-23  Bruno Haible  <bruno@clisp.org>
58359
58360         * gnulib-tool (echo): Add a speedier workaround for ksh.
58361         * tests/test-echo.sh: Likewise.
58362
58363 2007-06-23  Bruno Haible  <bruno@clisp.org>
58364
58365         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58366         * tests/test-echo.sh: Likewise.
58367
58368 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58369
58370         * gnulib-tool (IFS): Initialize early, so we don't set it to
58371         empty later.
58372         (self_abspathname): Rewrite algorithm to set it, reindent.
58373         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58374         (func_create_megatestdir): Merge some sed scripts.
58375
58376 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58379         exposed by Sun Studio 11 cc on Solaris 8.
58380
58381 2007-06-22  Bruno Haible  <bruno@clisp.org>
58382
58383         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58384         backslashes.
58385         * tests/test-echo.sh: New file.
58386
58387 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58388
58389         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58390         simplify `sed_replace_build_aux' scripts, they are portable but
58391         echoing them with `echo' is not.
58392         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58393
58394 2007-06-21  Karl Berry  <karl@gnu.org>
58395
58396         * config/srclist.txt: guess we can't handle the licenses via
58397         srclist at the moment.
58398
58399 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58400
58401         * MODULES.html.sh: Add include_next.
58402         * modules/include_next: New file.
58403
58404 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58405
58406         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58407         INCLUDE_NEXT.
58408         (gl_CHECK_NEXT_HEADERS): New macro.
58409         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58410         the obsolescent gl_ABSOLUTE_HEADER.
58411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58412         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58413         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58414         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58415         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58416         * m4/math_h.m4 (gl_MATH_H): Likewise.
58417         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58418         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58419         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58420         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58421         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58422         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58423         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58425         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58427         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58428         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58429         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58430         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58431         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58432         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58433         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58434         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58435         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58436         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58437         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58438         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58439         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58440         * lib/float_.h: Likewise.
58441         * lib/inttypes_.h: Likewise.
58442         * lib/math_.h: Likewise.
58443         * lib/search_.h: Likewise.
58444         * lib/signal_.h: Likewise.
58445         * lib/stdint_.h: Likewise.
58446         * lib/stdio_.h: Likewise.
58447         * lib/stdlib_.h: Likewise.
58448         * lib/string_.h: Likewise.
58449         * lib/sys_stat_.h: Likewise.
58450         * lib/sys_time_.h: Likewise.
58451         * lib/time_.h: Likewise.
58452         * lib/unistd_.h: Likewise.
58453         * lib/wchar_.h: Likewise.
58454         * lib/wctype_.h: Likewise.
58455         * lib/dirent_.h: Likewise.
58456         * lib/iconv_.h: Likewise.
58457         * lib/locale_.h: Likewise.
58458         * lib/netinet_in_.h: Likewise.
58459         * lib/sys_select_.h: Likewise.
58460         * lib/sys_socket_.h: Likewise.
58461         * lib/sysexits_.h: Likewise.
58462         * modules/fcntl (Depends-on): Depend on include_next, not
58463         absolute_header.
58464         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58465         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58466         * modules/fchdir: Likewise.
58467         * modules/float: Likewise.
58468         * modules/iconv_open: Likewise.
58469         * modules/inttypes: Likewise.
58470         * modules/locale: Likewise.
58471         * modules/math: Likewise.
58472         * modules/netinet_in: Likewise.
58473         * modules/search: Likewise.
58474         * modules/signal: Likewise.
58475         * modules/stdint: Likewise.
58476         * modules/stdio: Likewise.
58477         * modules/stdlib: Likewise.
58478         * modules/string: Likewise.
58479         * modules/sys_select: Likewise.
58480         * modules/sys_socket: Likewise.
58481         * modules/sys_stat: Likewise.
58482         * modules/sys_time: Likewise.
58483         * modules/sysexits: Likewise.
58484         * modules/time: Likewise.
58485         * modules/unistd: Likewise.
58486         * modules/wchar: Likewise.
58487         * modules/wctype: Likewise.
58488         * modules/sys_stat: Change maintainer to "all".
58489         * modules/unistd: Likewise.
58490
58491 2007-06-20  Karl Berry  <karl@gnu.org>
58492
58493         * config/srclist.txt: track www changes in license files.
58494
58495 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58496
58497         * build-aux/bootstrap: Remove stray dot.
58498         Make sure build_aux settings are honored when linking
58499         gnulib_extra_files.
58500
58501 2007-06-19  Eric Blake  <ebb9@byu.net>
58502
58503         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58504         Allow compilation on cygwin.
58505
58506 2007-06-19  Jim Meyering  <jim@meyering.net>
58507
58508         xreadlink-with-size: Remove module.  No longer used.
58509         Ex-callers now use xreadlink or mreadlink-with-size.
58510         * modules/xreadlink-with-size: Remove module.
58511         * lib/xreadlink-with-size.c: Remove file.
58512         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58513         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58514         just before the function definition *is* accurate.
58515
58516         Eliminate one way canonicalize_filename_mode could exit.
58517         * lib/canonicalize.c (canonicalize_filename_mode):
58518         Use mreadlink_with_size, not xreadlink_with_size.
58519
58520 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58521
58522         Detect porting problems to FreeBSD/arm, which has time_t wider than
58523         long int.  Original problem reported for GNU diff by Xin Li in
58524         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58525         * modules/getdate (Depends-on): Add intprops, verify.
58526         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58527         is an integer type no wider than long int.
58528
58529 2007-06-18  Jim Meyering  <jim@meyering.net>
58530
58531         New module: mreadlink-with-size.
58532         * MODULES.html.sh: Add mreadlink-with-size.
58533         * modules/mreadlink-with-size: New module
58534         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58535         not xreadlink-with-size.
58536         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58537
58538 2007-06-16  Bruno Haible  <bruno@clisp.org>
58539
58540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58541         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58542         Reported by Gary V. Vaughan <gary@gnu.org>.
58543
58544 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58545
58546         Revamp lchown so that it lives in unistd.h where it belongs.
58547         * lib/lchown.h: Remove.
58548         * lib/dirchownmod.c: Don't include lib/lchown.h.
58549         * lib/fchownat.c: Likewise.
58550         * lib/openat.c: Likewise.
58551         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58552         does not follow symlinks.
58553         (EOPNOTSUPP): Define if not defined.
58554         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58555         is defined to 0.
58556         (lchown): New decl.
58557         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58558         Do not check for lchown decl.
58559         Set REPLACE_LCHOWN.
58560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58561         REPLACE_LCHOWN.
58562         * modules/chown: Make it clear it follows symlinks.
58563         * modules/lchown: Make it clear it doesn't follow symlinks.
58564         (Files): Remove lib/lchown.h
58565         (Depends-on): Add unistd.
58566         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58567         (Include): Include <unistd.h>, not "lchown.h".
58568         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58569         REPLACE_LCHOWN.
58570
58571 2007-06-15  Jim Meyering  <jim@meyering.net>
58572
58573         Change license (GPL to LGPL) of fsusage and dependents.
58574         * modules/fsusage (License): Change to LGPL.
58575         * modules/full-read (License): Likewise.
58576         * modules/full-write (License): Likewise.
58577         * modules/safe-read (License): Likewise.
58578         * modules/safe-write (License): Likewise.
58579
58580 2007-06-14  Ben Pfaff  <blp@gnu.org>
58581
58582         Missing part of allocsa -> malloca transition.
58583         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58584         gl_MALLOCA.
58585
58586 2007-06-12  Bruno Haible  <bruno@clisp.org>
58587
58588         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58589         to ia64, x86_64, i386.
58590         Reported by Eric Blake.
58591
58592 2007-06-12  Bruno Haible  <bruno@clisp.org>
58593
58594         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58595         cross-compiling to x86_64.
58596
58597 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58598
58599         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58600         glitch reported by Ralf Wildenhues in
58601         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58602
58603         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58604         Vin Shelton.
58605
58606 2007-06-11  Bruno Haible  <bruno@clisp.org>
58607
58608         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58609         replacement string.
58610         Reported by Eric Blake.
58611
58612 2007-06-10  Bruno Haible  <bruno@clisp.org>
58613
58614         Prepare vasnprintf code for use with Unicode strings.
58615         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58616         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58617         TYPE_U32_STRING.
58618         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58619         a_u32_string variants.
58620         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58621         * lib/printf-args.c: Don't include config.h and the specification
58622         header if PRINTF_FETCHARGS is already defined.
58623         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58624         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58625         TYPE_U16_STRING, TYPE_U32_STRING.
58626         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58627         u16_directive, u16_directives, u32_directive, u32_directives): New
58628         types.
58629         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58630         New declarations.
58631         * lib/printf-parse.c: Don't include config.h and the specification
58632         header if PRINTF_PARSE is already defined. Eliminate the set of
58633         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58634         them now. Include c-ctype.h.
58635         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58636         directive and CHAR_T_ONLY_ASCII.
58637         * lib/vasnprintf.c: Don't include config.h and the specification header
58638         if VASNPRINTF is already defined.
58639         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58640         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58641         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58642         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58643         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58644         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58645         code accordingly.
58646         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58647         pad_ourselves also in this case, with the 'c' and 's' directives, and
58648         with a different notion of "width".
58649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58650
58651 2007-06-10  Bruno Haible  <bruno@clisp.org>
58652
58653         * modules/unistr/u32-mbsnlen: New file.
58654         * lib/unistr/u32-mbsnlen.c: New file.
58655
58656         * modules/unistr/u16-mbsnlen: New file.
58657         * lib/unistr/u16-mbsnlen.c: New file.
58658
58659         * modules/unistr/u8-mbsnlen: New file.
58660         * lib/unistr/u8-mbsnlen.c: New file.
58661
58662         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58663         declarations.
58664
58665 2007-06-10  Bruno Haible  <bruno@clisp.org>
58666
58667         * lib/string_.h (mbsnlen): New declaration.
58668         * lib/mbsnlen.c: New file.
58669         * m4/mbsnlen.m4: New file.
58670         * modules/mbsnlen: New file.
58671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58672         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58673         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58674
58675 2007-06-10  Bruno Haible  <bruno@clisp.org>
58676
58677         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58678
58679 2007-06-10  Bruno Haible  <bruno@clisp.org>
58680
58681         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58682         * lib/mbuiter.h: Likewise.
58683
58684 2007-06-10  Bruno Haible  <bruno@clisp.org>
58685
58686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58687         declaration.
58688
58689 2007-06-10  Karl Berry  <karl@gnu.org>
58690
58691         * config/srclist.txt: remove gettext entries, Bruno prefers
58692         to update individually.
58693
58694 2007-06-10  Bruno Haible  <bruno@clisp.org>
58695
58696         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58697         'maxlen'. Ensure only length + width bytes are allocated, not
58698         length + 1 + width.
58699
58700 2007-06-09  Bruno Haible  <bruno@clisp.org>
58701
58702         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58703         (CHAR_T): Remove macro.
58704         (VASNPRINTF): Update.
58705
58706 2007-06-09  Bruno Haible  <bruno@clisp.org>
58707
58708         * MODULES.html.sh (Unicode string functions): Add the new modules.
58709
58710         * modules/uniconv/u32-conv-to-enc: New file.
58711         * lib/uniconv/u32-conv-to-enc.c: New file.
58712         * modules/uniconv/u32-conv-to-enc-tests: New file.
58713         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58714
58715         * modules/uniconv/u16-conv-to-enc: New file.
58716         * lib/uniconv/u16-conv-to-enc.c: New file.
58717         * lib/uniconv/u-conv-to-enc.h: New file.
58718         * modules/uniconv/u16-conv-to-enc-tests: New file.
58719         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58720
58721         * modules/uniconv/u8-conv-to-enc: New file.
58722         * lib/uniconv/u8-conv-to-enc.c: New file.
58723         * modules/uniconv/u8-conv-to-enc-tests: New file.
58724         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58725
58726         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58727         u32_conv_to_encoding): New declarations.
58728
58729 2007-06-09  Bruno Haible  <bruno@clisp.org>
58730
58731         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58732
58733 2007-06-09  Bruno Haible  <bruno@clisp.org>
58734
58735         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58736         * modules/malloca: Renamed from modules/allocsa, updated.
58737         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58738         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58739         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58740         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58741         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58742         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58743         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58744         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58745         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58746         * modules/c-strcasestr (Depends-on): Update.
58747         * lib/c-strcasestr.c: Update.
58748         * modules/c-strstr (Depends-on): Update.
58749         * lib/c-strstr.c: Update.
58750         * modules/canonicalize-lgpl (Depends-on): Update.
58751         * lib/canonicalize-lgpl.c: Update.
58752         * modules/clean-temp (Depends-on): Update.
58753         * lib/clean-temp.c: Update.
58754         * modules/csharpcomp (Depends-on): Update.
58755         * lib/csharpcomp.c: Update.
58756         * modules/csharpexec (Depends-on): Update.
58757         * lib/csharpexec.c: Update.
58758         * modules/javacomp (Depends-on): Update.
58759         * lib/javacomp.c: Update.
58760         * modules/javaexec (Depends-on): Update.
58761         * lib/javaexec.c: Update.
58762         * modules/mbscasestr (Depends-on): Update.
58763         * lib/mbscasestr.c: Update.
58764         * modules/mbsstr (Depends-on): Update.
58765         * lib/mbsstr.c: Update.
58766         * modules/setenv (Depends-on): Update.
58767         * lib/setenv.c: Update.
58768         * modules/strcasestr (Depends-on): Update.
58769         * lib/strcasestr.c: Update.
58770         * modules/striconveha (Depends-on): Update.
58771         * lib/striconveha.c: Update.
58772         * modules/relocatable-prog-wrapper (Files): Update.
58773         * lib/relocwrapper.c: Update.
58774         * build-aux/install-reloc: Update.
58775         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58776
58777 2007-06-08  Bruno Haible  <bruno@clisp.org>
58778
58779         Port to uClibc.
58780         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58781         * lib/fpurge.c (fpurge): Likewise.
58782         * lib/freading.c (freading): Likewise.
58783         * lib/fseeko.c (rpl_fseeko): Likewise.
58784         * lib/fseterr.c (fseterr): Likewise.
58785         * lib/fwriting.c (fwriting): Likewise.
58786         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58787
58788 2007-06-08  Bruno Haible  <bruno@clisp.org>
58789
58790         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58791         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58792         * modules/gettext (Files): Add m4/intlmacosx.m4.
58793
58794 2007-06-07  Bruno Haible  <bruno@clisp.org>
58795
58796         * modules/localename-tests: New file.
58797         * tests/test-localename.c: New file.
58798
58799         New module 'localename'.
58800         * lib/localename.h: New file.
58801         * lib/localename.c: New file, from GNU gettext.
58802         * m4/localename.m4: New file.
58803         * modules/localename: New file.
58804
58805 2007-06-07  Bruno Haible  <bruno@clisp.org>
58806
58807         Work around the lack of <wchar.h> on some builds of uClibc.
58808         * doc/headers/wchar.texi: Update.
58809         * lib/wchar_.h: Include <wchar.h> only if it exists.
58810         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58811         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58812         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58813         doesn't exist.
58814         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58815         * modules/mbfile (Depends-on): Add wchar.
58816         * modules/mbiter (Depends-on): Likewise.
58817         * modules/mbuiter (Depends-on): Likewise.
58818         Reported by Simon Josefsson.
58819
58820 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58821
58822         Work around problem reported by Steven M. Schweda in
58823         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58824         Tru64 5.1B with the Compaq compiler environment installed declares
58825         an 'isblank' function but does not define it in the C library.
58826         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58827         * lib/regex_internal.h (isblank): Likewise.
58828         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58829         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58830
58831 2007-06-05  Bruno Haible  <bruno@clisp.org>
58832
58833         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58834         ia64.
58835         * modules/printf-safe: New file.
58836         * modules/fprintf-posix (Depends-on): Add printf-safe.
58837         * modules/printf-posix (Depends-on): Likewise.
58838         * modules/snprintf-posix (Depends-on): Likewise.
58839         * modules/sprintf-posix (Depends-on): Likewise.
58840         * modules/vasnprintf-posix (Depends-on): Likewise.
58841         * modules/vasprintf-posix (Depends-on): Likewise.
58842         * modules/vfprintf-posix (Depends-on): Likewise.
58843         * modules/vprintf-posix (Depends-on): Likewise.
58844         * modules/vsnprintf-posix (Depends-on): Likewise.
58845         * modules/vsprintf-posix (Depends-on): Likewise.
58846         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58847         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58848         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58849         "no" on i386, x86_64, ia64.
58850         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58851         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58852         on i386, x86_64, ia64.
58853         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58854         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58855         on i386, x86_64, ia64.
58856         * tests/test-vasnprintf-posix.c: Include float.h.
58857         (LDBL80_WORDS): New macro.
58858         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58859         on i386, x86_64, ia64.
58860         * tests/test-vasprintf-posix.c: Include float.h.
58861         (LDBL80_WORDS): New macro.
58862         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58863         on i386, x86_64, ia64.
58864         * tests/test-snprintf-posix.c: Include float.h.
58865         * tests/test-sprintf-posix.c: Likewise.
58866         * tests/test-vsnprintf-posix.c: Likewise.
58867         * tests/test-vsprintf-posix.c: Likewise.
58868
58869 2007-06-05  Bruno Haible  <bruno@clisp.org>
58870
58871         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58872         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58873         non-IEEE numbers on i386, x86_64, ia64.
58874         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58875         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58876         * tests/test-isnanl.h: Include float.h.
58877         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58878
58879 2007-06-05  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58882         also the %a / %A. Handle the %a / %A code before this extra handling.
58883
58884 2007-06-05  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58887         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58888
58889 2007-06-05  Bruno Haible  <bruno@clisp.org>
58890
58891         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58892         typo in variable name.
58893
58894 2007-06-05  Eric Blake  <ebb9@byu.net>
58895
58896         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58897         Reported by Simon Josefsson.
58898
58899 2007-06-04  Bruno Haible  <bruno@clisp.org>
58900
58901         Avoid test failures on some PowerPC platforms.
58902         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58903         Define differently for PowerPC.
58904         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58905         Reported by Gary V. Vaughan <gary@gnu.org>.
58906
58907 2007-06-02  Bruno Haible  <bruno@clisp.org>
58908
58909         Fix test-stdint failure on FreeBSD/ia64.
58910         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58911         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58912         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58913         * doc/headers/stdint.texi: Update.
58914
58915 2007-06-01  Bruno Haible  <bruno@clisp.org>
58916
58917         * tests/test-binary-io.c (main): Pass a third argument to open().
58918         Reported by Gary V. Vaughan <gary@gnu.org>.
58919
58920 2007-06-01  Bruno Haible  <bruno@clisp.org>
58921
58922         * doc/functions/frexpl.texi: Update for mingw.
58923
58924 2007-06-01  Bruno Haible  <bruno@clisp.org>
58925
58926         * tests/test-lseek.c (main): Disable test of errno for invalid third
58927         argument.
58928         * doc/functions/lseek.texi: Update.
58929         Reported by Gary V. Vaughan <gary@gnu.org>.
58930
58931 2007-05-28  Bruno Haible  <bruno@clisp.org>
58932
58933         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58934
58935 2007-05-31  Eric Blake  <ebb9@byu.net>
58936
58937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58938         cross compiling.
58939
58940 2007-05-30  Eric Blake  <ebb9@byu.net>
58941         and Bruno Haible  <bruno@clisp.org>
58942
58943         Work around mingw test failures exposed by m4-1.4.9b.
58944         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58945         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58946         moment.
58947
58948 2007-05-30  Bruno Haible  <bruno@clisp.org>
58949
58950         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58951         assuming that they are closed. Needed on HP-UX 11.
58952
58953 2007-05-29  Bruno Haible  <bruno@clisp.org>
58954
58955         Fix a problem with #include_next.
58956         * lib/dirent_.h: Split the double-inclusion guard.
58957         * lib/fcntl_.h: Likewise.
58958         * lib/float_.h: Likewise.
58959         * lib/iconv_.h: Likewise.
58960         * lib/inttypes_.h: Likewise.
58961         * lib/locale_.h: Likewise.
58962         * lib/math_.h: Likewise.
58963         * lib/netinet_in_.h: Likewise.
58964         * lib/search_.h: Likewise.
58965         * lib/signal_.h: Likewise.
58966         * lib/stdint_.h: Likewise.
58967         * lib/stdio_.h: Likewise.
58968         * lib/stdlib_.h: Likewise.
58969         * lib/string_.h: Likewise.
58970         * lib/sys_select_.h: Likewise.
58971         * lib/sys_socket_.h: Likewise.
58972         * lib/sys_stat_.h: Likewise.
58973         * lib/sys_time_.h: Likewise.
58974         * lib/sysexits_.h: Likewise.
58975         * lib/time_.h: Likewise.
58976         * lib/unistd_.h: Likewise.
58977         * lib/wchar_.h: Likewise.
58978         * lib/wctype_.h: Likewise.
58979
58980 2007-05-29  Bruno Haible  <bruno@clisp.org>
58981
58982         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58983         for the moment.
58984
58985 2007-05-29  Bruno Haible  <bruno@clisp.org>
58986
58987         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58988         invocation.
58989         Reported by Eric Blake.
58990
58991 2007-05-29  Bruno Haible  <bruno@clisp.org>
58992
58993         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58994         compiling case.
58995
58996 2007-05-29  Eric Blake  <ebb9@byu.net>
58997             Bruno Haible  <bruno@clisp.org>
58998
58999         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59000         cross compiles.
59001
59002 2007-05-28  Eric Blake  <ebb9@byu.net>
59003
59004         * modules/closein-tests (test_closein_LDADD): Support test on
59005         cygwin with libtool.
59006
59007 2007-05-28  Bruno Haible  <bruno@clisp.org>
59008
59009         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59010         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59011         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59012         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59013         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59014         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59015         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59016         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59017         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59018
59019 2007-05-28  Eric Blake  <ebb9@byu.net>
59020
59021         Unconditionally include <config.h> in unit tests.
59022         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59023         * tests/test-allocsa.c, tests/test-arcfour.c,
59024         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59025         tests/test-array_list.c, tests/test-array_oset.c,
59026         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59027         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59028         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59029         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59030         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59031         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59032         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59033         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59034         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59035         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59036         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59037         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59038         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59039         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59040         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59041         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59042         test-md5.c, test-memmem.c, test-printf-posix.c,
59043         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59044         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59045         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59046         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59047         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59048         test-vasnprintf-posix2.c, test-vasnprintf.c,
59049         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59050         test-vfprintf-posix.c, test-vprintf-posix.c,
59051         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59052         test-xvasprintf.c: Likewise.
59053
59054 2007-05-28  Bruno Haible  <bruno@clisp.org>
59055
59056         * gnulib-tool (func_import): Remember the --with-tests command-line
59057         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59058         Reported by Eric Blake.
59059
59060 2007-05-28  Bruno Haible  <bruno@clisp.org>
59061
59062         * modules/ftell-tests: New file.
59063         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59064         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59065
59066         * lib/ftell.c: New file.
59067         * modules/ftell: New file.
59068         * m4/ftell.m4: New file.
59069         * doc/functions/ftell.texi: Update.
59070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59071         REPLACE_FTELL.
59072         * lib/stdio_.h (rpl_ftell): New declaration.
59073         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59074         REPLACE_FTELL.
59075
59076 2007-05-28  Eric Blake  <ebb9@byu.net>
59077
59078         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59079
59080 2007-05-28  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/fseek-tests: New file.
59083         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59084         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59085
59086         * lib/fseek.c: New file.
59087         * modules/fseek: New file.
59088         * m4/fseek.m4: New file.
59089         * doc/functions/fseek.texi: Update.
59090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59091         REPLACE_FSEEK.
59092         * lib/stdio_.h (rpl_fseek): New declaration.
59093         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59094         REPLACE_FSEEK.
59095
59096 2007-05-28  Bruno Haible  <bruno@clisp.org>
59097
59098         * lib/stdio_.h (fflush): More comments.
59099
59100 2007-05-28  Bruno Haible  <bruno@clisp.org>
59101
59102         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59103         runtime test.
59104
59105 2007-05-28  Eric Blake  <ebb9@byu.net>
59106
59107         Improve lseek module.
59108         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59109         * lib/unistd_.h (lseek): Scale back link warning message.
59110         * tests/test-lseek.c: Beef up test.
59111         * tests/test-lseek.sh: Exercise more facets of lseek.
59112         Reported by Bruno Haible.
59113
59114 2007-05-28  Bruno Haible  <bruno@clisp.org>
59115
59116         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59117         to define.
59118
59119 2007-05-27  Bruno Haible  <bruno@clisp.org>
59120
59121         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59122
59123 2007-05-27  Bruno Haible  <bruno@clisp.org>
59124
59125         * modules/openmp: New file.
59126         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59127         Noah Misch.
59128
59129 2007-05-26  Bruno Haible  <bruno@clisp.org>
59130
59131         * modules/chdir-long (Depends-on): Add fchdir.
59132         * modules/chdir-safer (Depends-on): Likewise.
59133         * modules/fts (Depends-on): Likewise.
59134         * modules/fts-lgpl (Depends-on): Likewise.
59135         * modules/openat (Depends-on): Likewise.
59136         * modules/savewd (Depends-on): Likewise.
59137
59138 2007-05-24  Eric Blake  <ebb9@byu.net>
59139
59140         Fix lseek on mingw.
59141         * modules/lseek: New module.
59142         * m4/lseek.m4: New file.
59143         * lib/lseek.c: New file.
59144         * modules/lseek-tests: New file.
59145         * tests/test-lseek.c: New file.
59146         * tests/test-lseek.sh: New file.
59147         * MODULES.html.sh: Document lseek module.
59148         * modules/fflush (Depends-on): Add lseek, fseeko.
59149         * modules/fseeko (Depends-on): Likewise.
59150         * modules/ftello (Depends-on): Likewise.
59151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59152         broken.
59153         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59154         broken.
59155         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59156         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59157         * lib/ftello.c (rpl_ftello): Likewise.
59158         * tests/test-fseeko.c (main): Test this.
59159         * tests/test-fseeko.sh: Likewise.
59160         * tests/test-ftello.c (main): Likewise.
59161         * tests/test-ftello.sh: Likewise.
59162         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59163         implies replacing fseek.
59164         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59165         HAVE_FTELLO.
59166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59167         * modules/unistd (Makefile.am): Likewise.
59168         * lib/unistd_.h (lseek): Declare a replacement.
59169         * doc/functions/lseek.texi (lseek): Document this fix.
59170         * doc/functions/fseek.texi (fseek): Likewise.
59171         * doc/functions/ftell.texi (ftell): Likewise.
59172
59173 2007-05-24  Bruno Haible  <bruno@clisp.org>
59174
59175         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59176         in the printed representation of a NaN.
59177         * tests/test-vasprintf-posix.c (test_function): Likewise.
59178         * tests/test-snprintf-posix.h (test_function): Likewise.
59179         * tests/test-sprintf-posix.h (test_function): Likewise.
59180         Reported by Eric Blake.
59181
59182 2007-05-23  Eric Blake  <ebb9@byu.net>
59183
59184         Fix fseeko/ftello on cygwin 1.5.24.
59185         * doc/functions/fseeko.texi (fseeko): Document the fix.
59186         * doc/functions/ftello.texi (ftello): Document the fix.
59187         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59188         * doc/functions/stdout.text (stdout): New file.
59189         * doc/functions/stderr.text (stderr): New file.
59190         * doc/gnulib.texi (Function Substitutes): Use new files.
59191         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59192         prior to 1.7.0.
59193         * tests/test-ftello.c (main): Likewise for ftello.
59194         * tests/test-fseeko.sh: New file.
59195         * tests/test-ftello.sh: New file.
59196         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59197         with seekable stdin.
59198         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59199         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59200         (gl_REPLACE_FSEEKO): New macro.
59201         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59202         * modules/fseeko (Files): Distribute fseeko.c.
59203         * modules/ftello (Files): Distribute ftello.c.
59204         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59205         mode.
59206         * lib/ftello.c (rpl_ftello): New file.
59207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59208         fseeko, ftello.
59209         (gl_STDIN_LARGE_OFFSET): New macro.
59210         * modules/stdio (Makefile.am): Perform the replacement.
59211         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59212
59213 2007-05-23  Bruno Haible  <bruno@clisp.org>
59214
59215         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59216         GNULIB_POSIXCHECK is defined.
59217
59218 2007-05-21  Bruno Haible  <bruno@clisp.org>
59219
59220         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59221         Check also the output for NaN arguments. When cross-compiling, guess
59222         no on IRIX.
59223         * lib/vasnprintf.c: Update comments.
59224         * tests/test-vasnprintf-posix.c (strisnan): New function.
59225         (test_function): Use it.
59226         * tests/test-vasprintf-posix.c (strisnan): New function.
59227         (test_function): Use it.
59228         * tests/test-snprintf-posix.h (strisnan): New function.
59229         (test_function): Use it.
59230         * tests/test-sprintf-posix.h (strisnan): New function.
59231         (test_function): Use it.
59232         Reported by Eric Blake.
59233
59234 2007-05-20  Bruno Haible  <bruno@clisp.org>
59235
59236         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59237         numbers that fails on BeOS.
59238         * doc/functions/frexpl.texi: Update.
59239
59240 2007-05-20  Jim Meyering  <jim@meyering.net>
59241
59242         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59243         forced upon us by glibc-2.6.
59244
59245 2007-05-20  Bruno Haible  <bruno@clisp.org>
59246
59247         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59248         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59249         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59250         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59251         NEED_PRINTF_INFINITE.
59252         (is_infinitel): New function.
59253         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59255         gl_PREREQ_VASNPRINTF_INFINITE.
59256         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59257         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59258         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59259         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59260         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59261         gl_PREREQ_VASNPRINTF_INFINITE.
59262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59269         * doc/functions/fprintf.texi: Update.
59270         * doc/functions/printf.texi: Update.
59271         * doc/functions/snprintf.texi: Update.
59272         * doc/functions/sprintf.texi: Update.
59273         * doc/functions/vfprintf.texi: Update.
59274         * doc/functions/vprintf.texi: Update.
59275         * doc/functions/vsnprintf.texi: Update.
59276         * doc/functions/vsprintf.texi: Update.
59277
59278 2007-05-20  Bruno Haible  <bruno@clisp.org>
59279
59280         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59281         was not found in libc.
59282         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59283
59284 2007-05-20  Bruno Haible  <bruno@clisp.org>
59285
59286         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59287         printed as "-nan" instead of "nan".
59288         * tests/test-vasprintf-posix.c (test_function): Likewise.
59289         * tests/test-snprintf-posix.h (test_function): Likewise.
59290         * tests/test-sprintf-posix.h (test_function): Likewise.
59291         Needed for HP-UX 11.
59292
59293 2007-05-20  Jim Meyering  <jim@meyering.net>
59294
59295         Fix buggy test for the fchownat-deref bug.
59296         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59297         symlink required for the run-test.  Without it, this test would
59298         always declare that fchownat doesn't work, and client code would
59299         unnecessarily use the replacement function with fixed libc.
59300         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59301         Reported by Greg Schafer.
59302
59303 2007-05-19  Bruno Haible  <bruno@clisp.org>
59304
59305         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59306         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59307         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59308         Needed for IRIX 6.5 and Solaris 2.5.1.
59309
59310 2007-05-19  Bruno Haible  <bruno@clisp.org>
59311
59312         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59313         (test_function): Skip tests involving -0.0 on platforms where
59314         -0.0 = 0.0.
59315         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59316         (test_function): Skip tests involving -0.0 on platforms where
59317         -0.0 = 0.0.
59318         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59319         (test_function): Skip tests involving -0.0 on platforms where
59320         -0.0 = 0.0.
59321         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59322         (test_function): Skip tests involving -0.0 on platforms where
59323         -0.0 = 0.0.
59324         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59325         tests.
59326         * tests/test-printf-posix.h (test_function): Likewise.
59327         * tests/test-printf-posix.output: Remove all -0.0 related results.
59328         Needed for IRIX 6.5.
59329
59330 2007-05-19  Bruno Haible  <bruno@clisp.org>
59331
59332         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59333         printed as "nan0x7fffffff" instead of "nan".
59334         * tests/test-vasprintf-posix.c (test_function): Likewise.
59335         * tests/test-snprintf-posix.h (test_function): Likewise.
59336         * tests/test-sprintf-posix.h (test_function): Likewise.
59337         * tests/test-fprintf-posix.h (NaN): Remove macro.
59338         (test_function): Remove all NaN related tests.
59339         * tests/test-printf-posix.h (NaN): Remove macro.
59340         (test_function): Remove all NaN related tests.
59341         * tests/test-printf-posix.output: Remove all NaN related results.
59342         Needed for IRIX 6.5.
59343
59344 2007-05-19  Bruno Haible  <bruno@clisp.org>
59345
59346         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59347         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59348
59349 2007-05-19  Bruno Haible  <bruno@clisp.org>
59350
59351         * lib/float_.h: New file.
59352         * m4/float_h.m4: New file.
59353         * modules/float: New file.
59354         * modules/isnanl (Dependencies): Add float.
59355         * modules/isnanl-nolibm (Dependencies): Likewise.
59356         * modules/mathl (Dependencies): Likewise.
59357         * modules/printf-frexpl (Dependencies): Likewise.
59358         * modules/signbit (Dependencies): Likewise.
59359         * modules/vasnprintf (Dependencies): Likewise.
59360         * doc/headers/float.texi: Update.
59361
59362 2007-05-19  Jim Meyering  <jim@meyering.net>
59363
59364         * lib/utimens.c (gl_futimens): Rename from futimens,
59365         now that glibc-2.6 declares futimens.
59366         * lib/utimens.h: Likewise.
59367
59368 2007-05-19  Bruno Haible  <bruno@clisp.org>
59369
59370         Avoid test failures on mingw.
59371         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59372         * tests/test-printf-posix.sh: Likewise.
59373         * tests/test-vfprintf-posix.sh: Likewise.
59374         * tests/test-vprintf-posix.sh: Likewise.
59375
59376 2007-05-19  Bruno Haible  <bruno@clisp.org>
59377
59378         Fix *printf result for NaN, Inf, -0.0 on mingw.
59379         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59380         * lib/vasnprintf.c: Include math.h and isnan.h.
59381         (is_infinite_or_zero): New function.
59382         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59383         values in the %f, %F, %e, %E, %g, %G directives.
59384         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59385         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59386         gl_PRINTF_INFINITE and test its result. Invoke
59387         gl_PREREQ_VASNPRINTF_INFINITE.
59388         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59392         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59394         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59395         * doc/functions/fprintf.texi: Update.
59396         * doc/functions/printf.texi: Update.
59397         * doc/functions/snprintf.texi: Update.
59398         * doc/functions/sprintf.texi: Update.
59399         * doc/functions/vfprintf.texi: Update.
59400         * doc/functions/vprintf.texi: Update.
59401         * doc/functions/vsnprintf.texi: Update.
59402         * doc/functions/vsprintf.texi: Update.
59403
59404 2007-05-19  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59407         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59408         Instead of multiplying with 10^k, set extra_zeroes to k.
59409         (scale10_round_long_double): Remove function.
59410
59411 2007-05-18  Bruno Haible  <bruno@clisp.org>
59412
59413         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59414         introduced on 2007-05-06.
59415
59416 2007-05-18  Bruno Haible  <bruno@clisp.org>
59417
59418         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59419         %g directives.
59420         * tests/test-vasprintf-posix.c (test_function): Likewise.
59421         * tests/test-snprintf-posix.h (test_function): Likewise.
59422         * tests/test-sprintf-posix.h (test_function): Likewise.
59423
59424 2007-05-18  Bruno Haible  <bruno@clisp.org>
59425
59426         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59427         (strmatch): New function.
59428         (test_function): Test the %f directive on numbers of various exponents.
59429         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59430         (strmatch): New function.
59431         (test_function): Test the %f directive on numbers of various exponents.
59432         * tests/test-snprintf-posix.h (strmatch): New function.
59433         (test_function): Test the %f directive on numbers of various exponents.
59434         * tests/test-sprintf-posix.h (strmatch): New function.
59435         (test_function): Test the %f directive on numbers of various exponents.
59436         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59437         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59438         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59439         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59440
59441 2007-05-18  Bruno Haible  <bruno@clisp.org>
59442
59443         Add support for 'long double' number output.
59444         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59445         * lib/vasnprintf.c: Include math.h and float+.h.
59446         (mp_limb_t): New type.
59447         (GMP_LIMB_BITS): New macro.
59448         (mp_twolimb_t): New type.
59449         (GMP_TWOLIMB_BITS): New macro.
59450         (mpn_t): New type.
59451         (multiply, divide, convert_to_decimal, decode_long_double,
59452         scale10_round_long_double, scale10_round_decimal_long_double,
59453         floorlog10l): New functions.
59454         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59455         for the %f, %F, %e, %E, %g, %G directives.
59456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59458         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59459         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59467         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59468         * modules/snprintf-posix (Depends-on): Likewise.
59469         * modules/sprintf-posix (Depends-on): Likewise.
59470         * modules/vasnprintf-posix (Depends-on): Likewise.
59471         * modules/vasprintf-posix (Depends-on): Likewise.
59472         * modules/vfprintf-posix (Depends-on): Likewise.
59473         * modules/vsnprintf-posix (Depends-on): Likewise.
59474         * modules/vsprintf-posix (Depends-on): Likewise.
59475         * modules/vasnprintf (Files): Add lib/float+.h.
59476         * doc/functions/fprintf.texi: Update.
59477         * doc/functions/printf.texi: Update.
59478         * doc/functions/snprintf.texi: Update.
59479         * doc/functions/sprintf.texi: Update.
59480         * doc/functions/vfprintf.texi: Update.
59481         * doc/functions/vprintf.texi: Update.
59482         * doc/functions/vsnprintf.texi: Update.
59483         * doc/functions/vsprintf.texi: Update.
59484
59485 2007-05-18  Bruno Haible  <bruno@clisp.org>
59486
59487         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59488
59489 2007-05-18  Bruno Haible  <bruno@clisp.org>
59490
59491         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59492         for printing 64-bit integers. Needed for mingw.
59493
59494 2007-05-18  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59497         gl_FUNC_FREXPL_WORKS.
59498         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59499
59500 2007-05-18  Bruno Haible  <bruno@clisp.org>
59501
59502         * modules/frexpl-nolibm-tests: New file.
59503
59504         * modules/frexpl-nolibm: New file.
59505         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59506
59507 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59510         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59511         GCC 4.2, which otherwise issues a lot of warnings.
59512         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59513         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59514         Likewise.
59515         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59516         * modules/iconv_open (iconv.h): Likewise.
59517         * modules/locale (locale.h): Likewise.
59518         * modules/netinet_in (netinet/in.h): Likewise.
59519         * modules/sys_select (sys_select.h): Likewise.
59520         * modules/sys_socket (sys/socket.h): Likewise.
59521         * modules/sys_stat (sys/stat.h): Likewise.
59522         * modules/sysexits (sysexits.h): Likewise.
59523         * modules/unistd (unistd.h): Likewise.
59524
59525 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59526
59527         * modules/closein-tests (Makefile.am): Distribute
59528         `test-closein.sh'.
59529
59530 2007-05-17  Bruno Haible  <bruno@clisp.org>
59531
59532         * tests/test-printf-posix.output: Renamed from
59533         tests/test-fprintf-posix.out.
59534         * modules/fprintf-posix-tests: Update.
59535         * modules/printf-posix-tests: Update.
59536         * modules/vfprintf-posix-tests: Update.
59537         * modules/vprintf-posix-tests: Update.
59538         * tests/test-fprintf-posix.sh: Update.
59539         * tests/test-printf-posix.sh: Update.
59540         * tests/test-vfprintf-posix.sh: Update.
59541         * tests/test-vprintf-posix.sh: Update.
59542         Reported by Ralf Wildenhues.
59543
59544 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59545
59546         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59547         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59548         GCC 4.2, which otherwise issues a lot of warnings.
59549         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59550         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59551         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59552         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59553         it should no longer be needed.
59554         * lib/string_.h: Likewise.
59555         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59556         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59557         * modules/inttypes (inttypes.h): Likewise.
59558         * modules/math (math.h): Likewise.
59559         * modules/search (search.h): Likewise.
59560         * modules/signal (signal.h): Likewise.
59561         * modules/stdint (stdint.h): Likewise.
59562         * modules/stdio (stdio.h): Likewise.
59563         * modules/stdlib (stdlib.h): Likewise.
59564         * modules/string (string.h): Likewise.
59565         * modules/sys_time (sys/time.h): Likewise.
59566         * modules/time (time.h): Likewise.
59567         * modules/wchar (wchar.h): Likewise.
59568         * modules/wctype (wtype.h): Likewise.
59569
59570 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59571
59572         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59573
59574 2007-05-13  Bruno Haible  <bruno@clisp.org>
59575
59576         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59577         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59578         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59579         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59580         (gl_PREREQ_STRTOK_R): Don't require it here.
59581
59582 2007-05-13  Bruno Haible  <bruno@clisp.org>
59583
59584         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59585         when used in C++ mode.
59586
59587 2007-05-12  Bruno Haible  <bruno@clisp.org>
59588
59589         * lib/linebuffer.h: Tweak doc.
59590         * lib/linebuffer.c: Likewise.
59591
59592 2007-05-12  James Youngman  <jay@gnu.org>
59593
59594         * lib/linebuffer.c (readlinebuffer_delim): New function,
59595         like readlinebuffer, but use a caller-specified delimiter.
59596         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59597         as the delimiter.
59598         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59599
59600 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59601
59602         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59603         * modules/openat (Files): Remove openat-die.c.
59604         (Depends-on): Add openat-die.
59605         * modules/openat-die: New module.
59606
59607 2007-05-06  Bruno Haible  <bruno@clisp.org>
59608
59609         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59610         Update with info about Cygwin.
59611         * doc/functions/fprintf.texi: Update.
59612         * doc/functions/printf.texi: Update.
59613         * doc/functions/snprintf.texi: Update.
59614         * doc/functions/sprintf.texi: Update.
59615         * doc/functions/vfprintf.texi: Update.
59616         * doc/functions/vprintf.texi: Update.
59617         * doc/functions/vsnprintf.texi: Update.
59618         * doc/functions/vsprintf.texi: Update.
59619         Reported by Eric Blake.
59620
59621 2007-05-06  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59624         padding ourselves for the floating-point directives.
59625         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59628         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59629         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59630         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59634         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59636         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59637         * tests/test-snprintf-posix.h (test_function): Also check the width
59638         and some flags in the %f directive.
59639         * tests/test-sprintf-posix.h (test_function): Likewise.
59640         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59641         * tests/test-vasprintf-posix.c (test_function): Likewise.
59642         * doc/functions/fprintf.texi: Update.
59643         * doc/functions/printf.texi: Update.
59644         * doc/functions/snprintf.texi: Update.
59645         * doc/functions/sprintf.texi: Update.
59646         * doc/functions/vfprintf.texi: Update.
59647         * doc/functions/vprintf.texi: Update.
59648         * doc/functions/vsnprintf.texi: Update.
59649         * doc/functions/vsprintf.texi: Update.
59650
59651 2007-05-06  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59654         pass the ' flag character to sprintf or snprintf.
59655         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59657         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59658         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59659         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59661         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59664         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59665         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59666         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59667         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59668         flag.
59669         * tests/test-sprintf-posix.h (test_function): Likewise.
59670         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59671         * tests/test-vasprintf-posix.c (test_function): Likewise.
59672         * doc/functions/fprintf.texi: Update.
59673         * doc/functions/printf.texi: Update.
59674         * doc/functions/snprintf.texi: Update.
59675         * doc/functions/sprintf.texi: Update.
59676         * doc/functions/vfprintf.texi: Update.
59677         * doc/functions/vprintf.texi: Update.
59678         * doc/functions/vsnprintf.texi: Update.
59679         * doc/functions/vsprintf.texi: Update.
59680
59681 2007-05-01  Bruno Haible  <bruno@clisp.org>
59682
59683         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59684
59685 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59688         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59689
59690 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59691
59692         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59693         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59694         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59695
59696 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59697
59698         * lib/argp-help.c (struct hol_entry): New member `ord'.
59699         (HOL_ENTRY_PTRCMP): Use ord for comparison
59700         (hol_sort): Initialize ord.
59701
59702 2007-05-01  Bruno Haible  <bruno@clisp.org>
59703
59704         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59705         Reported by Eric Blake.
59706         * doc/gnulib.texi (Function Substitutes): Update.
59707
59708 2007-05-01  Bruno Haible  <bruno@clisp.org>
59709
59710         * doc/functions.texi: Remove file, now redundant through
59711         doc/functions/*.texi.
59712
59713 2007-05-01  Bruno Haible  <bruno@clisp.org>
59714
59715         * modules/argp (Depends-on): Add sleep.
59716
59717 2007-05-01  Bruno Haible  <bruno@clisp.org>
59718
59719         * modules/sleep-tests: New file.
59720         * tests/test-sleep.c: New file.
59721
59722         * modules/sleep: New file.
59723         * lib/sleep.c: New file.
59724         * m4/sleep.m4: New file.
59725         * lib/unistd_.h (sleep): New declaration.
59726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59727         HAVE_SLEEP.
59728         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59729         * doc/functions/sleep.texi: Document the sleep module.
59730
59731 2007-05-01  Bruno Haible  <bruno@clisp.org>
59732
59733         * lib/sigprocmask.h: Remove file.
59734         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59735         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59736         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59737         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59738         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59739         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59740         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59741         HAVE_SIGSET_T as a shell variable.
59742         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59743         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59744         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59745         (Depends-on): Add signal. Remove verify.
59746         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59747         (Include): Mention <signal.h> instead of sigprocmask.h.
59748         * NEWS: Mention the change.
59749         * lib/fatal-signal.c: Don't include sigprocmask.h.
59750
59751 2007-05-01  Bruno Haible  <bruno@clisp.org>
59752
59753         * modules/signal: New file.
59754         * lib/signal_.h: New file.
59755         * m4/signal_h.m4: New file.
59756
59757 2007-05-01  Bruno Haible  <bruno@clisp.org>
59758
59759         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59760         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59761         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59762         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59763
59764 2007-05-01  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59767         configure time.
59768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59769         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59770         * modules/sys_stat (Makefile.am): Substitute their values into
59771         sys/stat.h.
59772
59773 2007-05-01  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59776         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59777         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59778
59779 2007-05-01  Bruno Haible  <bruno@clisp.org>
59780
59781         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59782         'assert' module here.
59783
59784 2007-05-01  Bruno Haible  <bruno@clisp.org>
59785
59786         * doc/functions/*.texi: New files.
59787         * doc/functions/google-ranking.txt: New file.
59788         * doc/gnulib.texi (Function Substitutes): New chapter.
59789         (ctime, inet_ntoa): Remove sections.
59790         * doc/ctime.texi: Remove file.
59791         * doc/inet_ntoa.texi: Remove file.
59792         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59793         dependencies.
59794         (%.info): New rule, specifying a --reference-limit.
59795
59796 2007-05-01  Bruno Haible  <bruno@clisp.org>
59797
59798         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59799
59800 2007-05-01  Bruno Haible  <bruno@clisp.org>
59801
59802         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59803         the portability of 'mkdir' to mingw systems.
59804
59805 2007-05-01  Bruno Haible  <bruno@clisp.org>
59806
59807         * doc/headers/google-ranking.txt: New file.
59808
59809 2007-04-30  Eric Blake  <ebb9@byu.net>
59810
59811         Prefer fseeko to fseek.
59812         * modules/getpass (Depends-on): Add fseeko.
59813         * lib/getpass.c (getpass): Use fseeko, not fseek.
59814
59815 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59816
59817         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59818         assumes the sorting is stable, while most qsort implementations
59819         are not.  Use argument addresses to ensure they never compare as
59820         equal.
59821
59822         * tests/test-argp-2.sh (usage-indent test): Fix output
59823         (func_compare): Restore diff options
59824         * tests/test-argp.c: Restore #include "progname.h"
59825
59826 2007-04-29  Bruno Haible  <bruno@clisp.org>
59827
59828         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59829         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59830         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59831         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59832         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59833         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59834         (TESTS, check_PROGRAMS): Add test-snprintf.
59835         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59836         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59837         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59838         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59839         assertions that fail on HP-UX, OSF/1, or IRIX.
59840         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59841
59842 2007-04-29  Bruno Haible  <bruno@clisp.org>
59843
59844         * MODULES.html.sh (posix_functions): Remove 'contents'.
59845
59846 2007-04-29  Karl Berry  <karl@gnu.org>
59847
59848         * config/srclist.txt (gendocs_template_min): new entry.
59849
59850 2007-04-29  Bruno Haible  <bruno@clisp.org>
59851
59852         Work around fpurge bug on BSD systems.
59853         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59854         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59855         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59856         fpurge to rpl_fpurge if the system already has this function.
59857         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59858         the case where the system already has this function. Correct invariants
59859         on BSD systems.
59860         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59861         BSD systems.
59862
59863 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59864
59865         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59866         proposed by Sven Verdoolaege.
59867
59868         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59869         options.
59870         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59871         (usage and help tests): Update
59872
59873 2007-04-29  Bruno Haible  <bruno@clisp.org>
59874
59875         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59876         Print more information in case of failure. Disable a test on BeOS.
59877
59878 2007-04-29  Bruno Haible  <bruno@clisp.org>
59879
59880         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59881         This helps debugging on systems on which no gdb is available.
59882
59883 2007-04-29  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/freading.h: Improve comments.
59886         * lib/fwriting.h: Likewise.
59887         * tests/test-freading.c (main): Don't check freading immediately after
59888         repositioning. Needed for glibc.
59889
59890 2007-04-29  Bruno Haible  <bruno@clisp.org>
59891
59892         * lib/freading.c (freading): Trivial simplification.
59893
59894 2007-04-28  Bruno Haible  <bruno@clisp.org>
59895
59896         * tests/test-fwriting.c (main): Also test the interaction between
59897         fflush and fwriting.
59898         * modules/fwriting-tests (Depends-on): Add fflush.
59899
59900         * tests/test-freading.c (main): Also test the interaction between
59901         fflush and freading.
59902         * modules/freading-tests (Depends-on): Add fflush.
59903
59904 2007-04-28  Bruno Haible  <bruno@clisp.org>
59905
59906         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59907         fseeko and ftello.
59908         Suggested by Eric Blake.
59909
59910 2007-04-28  Jim Meyering  <jim@meyering.net>
59911
59912         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59913         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59914         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59915
59916 2007-04-27  Eric Blake  <ebb9@byu.net>
59917
59918         * doc/headers/assert.texi (assert.h): Document assert module use.
59919
59920 2007-04-27  Bruno Haible  <bruno@clisp.org>
59921
59922         * doc/headers/*.texi: New files.
59923         * doc/gnulib.texi (Header File Substitutes): New chapter.
59924         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59925         dependencies.
59926         (standards.info ,standards.html, standards.dvi): Update dependencies.
59927         (mostlyclean, clean): New targets.
59928
59929 2007-04-27  Bruno Haible  <bruno@clisp.org>
59930
59931         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59932         * modules/sysexits (Files, Makefile.am): Update.
59933
59934         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59935         * modules/sys_socket (Files, Makefile.am): Update.
59936
59937         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59938         * modules/sys_stat (Files, Makefile.am): Update.
59939
59940 2007-04-27  Eric Blake  <ebb9@byu.net>
59941
59942         * lib/freading.h: Improve comments.
59943         * lib/fwriting.h: Likewise.
59944         * lib/fflush.c: Likewise.
59945
59946         Fix closein for mingw.
59947         * modules/closein-tests: Add tests for closein.
59948         * tests/test-closein.c: New file.
59949         * tests/test-closein.sh: Likewise.
59950         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59951         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59952
59953 2007-04-27  Bruno Haible  <bruno@clisp.org>
59954
59955         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59956         version is < 6.
59957         * lib/math_.h [__DECC]: Likewise.
59958         * lib/stdio_.h [__DECC]: Likewise.
59959         * lib/stdlib_.h [__DECC]: Likewise.
59960         * lib/string_.h [__DECC]: Likewise.
59961         * lib/time_.h [__DECC]: Likewise.
59962         * lib/wchar_.h [__DECC]: Likewise.
59963         * lib/wctype_.h [__DECC]: Likewise.
59964
59965 2007-04-27  Bruno Haible  <bruno@clisp.org>
59966
59967         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59968
59969 2007-04-27  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/fflush.c: Add comments.
59972         * modules/fpurge-tests (Depends-on): Add fflush.
59973         * modules/freadable-tests (Depends-on): Likewise.
59974         * modules/fwritable-tests (Depends-on): Likewise.
59975
59976 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59977
59978         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59979         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59980         Report by Bruno Haible <bruno@clisp.org>.
59981
59982 2007-04-26  Eric Blake  <ebb9@byu.net>
59983
59984         Fix fflush on mingw.
59985         * modules/fflush (Depends-on): Add freading.
59986         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59987         but unread data.
59988
59989 2007-04-26  Eric Blake  <ebb9@byu.net>
59990         and Bruno Haible  <bruno@clisp.org>
59991
59992         Implement freading and fwriting.
59993         * lib/freading.c: New file.
59994         * lib/freading.h: Likewise.
59995         * m4/freading.m4: Likewise.
59996         * modules/freading: Likewise.
59997         * modules/freading-tests: Likewise.
59998         * tests/test-freading.c: Likewise.
59999         * lib/fwriting.c: New file.
60000         * lib/fwriting.h: Likewise.
60001         * m4/fwriting.m4: Likewise.
60002         * modules/fwriting: Likewise.
60003         * modules/fwriting-tests: Likewise.
60004         * tests/test-fwriting.c: Likewise.
60005         * MODULES.html.sh (File stream based Input/Output): Mention them.
60006
60007 2007-04-26  Bruno Haible  <bruno@clisp.org>
60008
60009         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60010         'long' when we assume it.
60011         Suggested by Eric Blake.
60012
60013 2007-04-26  Bruno Haible  <bruno@clisp.org>
60014
60015         Ensure fseeko, ftello are declared on glibc systems.
60016         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60017         * modules/fseeko (configure.ac-early): Likewise.
60018         * modules/ftello (configure.ac-early): Likewise.
60019         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60020         AC_FUNC_FSEEKO for this.
60021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60022         (gl_CHECK_FSEEKO): Remove macro.
60023
60024 2007-04-26  Bruno Haible  <bruno@clisp.org>
60025
60026         * tests/test-fflush.c (main): Also check the ftell result after
60027         fflush and fseek/fseeko.
60028         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60029         file descriptor position cache in the stream.
60030         * lib/fseeko.c (rpl_fseeko): Likewise.
60031
60032 2007-04-26  Bruno Haible  <bruno@clisp.org>
60033
60034         * modules/fflush-tests (Depends-on): Add fseeko.
60035
60036 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60037             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60038
60039         * lib/argz_.h: ensure error_t definition is obtained in same
60040         mechanism system argz.h would have.
60041         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60042         argz facilities are known bad.  Err on the side of caution if
60043         cross-compiling.
60044
60045 2007-04-25  Eric Blake  <ebb9@byu.net>
60046
60047         * lib/fpurge.c (includes): Use stdlib.h for free.
60048         * tests/test-fflush.c (main): Also test fflush-fseeko.
60049
60050 2007-04-25  Bruno Haible  <bruno@clisp.org>
60051
60052         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60053         * lib/fseeko.c: New file.
60054         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60055         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60056         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60057         gl_FUNC_FSEEKO.
60058         (gl_FUNC_FSEEKO): Invoke it.
60059         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60060         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60061         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60062
60063 2007-04-25  Bruno Haible  <bruno@clisp.org>
60064
60065         * modules/fflush (Depends-on): Add ftello.
60066
60067 2007-04-25  Bruno Haible  <bruno@clisp.org>
60068
60069         * modules/ftello-tests: New file.
60070         * tests/test-ftello.c: New file.
60071
60072         * modules/ftello: New file.
60073         * m4/ftello.m4: New file.
60074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60075         HAVE_FTELLO.
60076         * lib/stdio_.h (ftello): New declaration.
60077         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60078         HAVE_FTELLO.
60079
60080 2007-04-25  Bruno Haible  <bruno@clisp.org>
60081
60082         * modules/fseeko-tests: New file.
60083         * tests/test-fseeko.c: New file.
60084
60085         * modules/fseeko: New file.
60086         * m4/fseeko.m4: New file.
60087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60088         HAVE_FSEEKO.
60089         * lib/stdio_.h (fseeko): New declaration.
60090         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60091         HAVE_FSEEKO.
60092
60093 2007-04-25  Bruno Haible  <bruno@clisp.org>
60094
60095         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60096
60097 2007-04-25  Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60100         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60101         * tests/test-unistd.c: Likewise.
60102         * tests/test-fcntl.c: Likewise.
60103
60104 2007-04-23  Eric Blake  <ebb9@byu.net>
60105
60106         * lib/fflush.c: Fix missing include.
60107         Reported by Bruno Haible.
60108
60109 2007-04-23  Bruno Haible  <bruno@clisp.org>
60110
60111         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60112         Reported by Eric Blake.
60113
60114 2007-04-23  Bruno Haible  <bruno@clisp.org>
60115
60116         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60117
60118 2007-04-23  Bruno Haible  <bruno@clisp.org>
60119
60120         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60121
60122 2007-04-23  Bruno Haible  <bruno@clisp.org>
60123
60124         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60125         Needed on HP-UX 11.
60126
60127 2007-04-16  Eric Blake  <ebb9@byu.net>
60128
60129         Make fflush rely on fpurge.
60130         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60131         open coding all variants.
60132         * modules/fflush (Depends-on): Add fpurge and unistd.
60133         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60134         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60135
60136         Fix --with-tests compilation on cygwin.
60137         * modules/argmatch-tests (Makefile.am): List gnulib library first
60138         in LDADD.
60139         * modules/argp-tests (Makefile.am): Likewise.
60140         * modules/array-list-tests (Makefile.am): Likewise.
60141         * modules/array-oset-tests (Makefile.am): Likewise.
60142         * modules/avltree-list-tests (Makefile.am): Likewise.
60143         * modules/avltree-oset-tests (Makefile.am): Likewise.
60144         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60145         * modules/carray-list-tests (Makefile.am): Likewise.
60146         * modules/dirname-tests (Makefile.am): Likewise.
60147         * modules/frexp-tests (Makefile.am): Likewise.
60148         * modules/isnanl-tests (Makefile.am): Likewise.
60149         * modules/linked-list-tests (Makefile.am): Likewise.
60150         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60151         * modules/lock-tests (Makefile.am): Likewise.
60152         * modules/rbtree-list-tests (Makefile.am): Likewise.
60153         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60154         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60155         * modules/tls-tests (Makefile.am): Likewise.
60156         * modules/tsearch-tests (Makefile.am): Likewise.
60157         * modules/xvasprintf-tests (Makefile.am): Likewise.
60158
60159         Fix fpurge for cygwin.
60160         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60161         value.
60162         * modules/fpurge-tests (Depends-on): Clean up trash.
60163
60164 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60165
60166         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60167
60168         * m4/autobuild.m4: Re-indent.
60169
60170 2007-04-13  Bruno Haible  <bruno@clisp.org>
60171
60172         * modules/fpurge-tests: New file.
60173         * tests/test-fpurge.c: New file.
60174
60175         * modules/fpurge: New file.
60176         * lib/fpurge.h: New file.
60177         * lib/fpurge.c: New file.
60178         * m4/fpurge.m4: New file.
60179
60180 2007-04-13  Bruno Haible  <bruno@clisp.org>
60181
60182         * modules/fbufmode-tests: New file.
60183         * tests/test-fbufmode.c: New file.
60184
60185         * modules/fbufmode: New file.
60186         * lib/fbufmode.h: New file.
60187         * lib/fbufmode.c: New file.
60188         * m4/fbufmode.m4: New file.
60189
60190 2007-04-13  Bruno Haible  <bruno@clisp.org>
60191
60192         * modules/fwritable-tests: New file.
60193         * tests/test-fwritable.c: New file.
60194
60195         * modules/fwritable: New file.
60196         * lib/fwritable.h: New file.
60197         * lib/fwritable.c: New file.
60198         * m4/fwritable.m4: New file.
60199
60200 2007-04-13  Bruno Haible  <bruno@clisp.org>
60201
60202         * modules/freadable-tests: New file.
60203         * tests/test-freadable.c: New file.
60204
60205         * modules/freadable: New file.
60206         * lib/freadable.h: New file.
60207         * lib/freadable.c: New file.
60208         * m4/freadable.m4: New file.
60209
60210 2007-04-13  Bruno Haible  <bruno@clisp.org>
60211
60212         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60213         MOSTLYCLEANFILES.
60214
60215 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60218         gzip bootstrap.conf to avoid dragging in i18n machinery.
60219         (gnulib_tool_option): Use it.
60220
60221 2007-04-13  Bruno Haible  <bruno@clisp.org>
60222
60223         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60224         %F directives.
60225         * tests/test-vasprintf-posix.c (test_function): Likewise.
60226         * tests/test-snprintf-posix.h (test_function): Likewise.
60227         * tests/test-sprintf-posix.h (test_function): Likewise.
60228         * tests/test-fprintf-posix.h (test_function): Likewise.
60229         * tests/test-printf-posix.h (test_function): Likewise.
60230         * tests/test-fprintf-posix.out: Likewise.
60231
60232 2007-04-13  Bruno Haible  <bruno@clisp.org>
60233
60234         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60235         * modules/tls-tests (configure.ac): Likewise.
60236         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60237
60238 2007-04-13  Bruno Haible  <bruno@clisp.org>
60239
60240         * lib/tls.c (glthread_tls_get): Fix return type.
60241         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60242
60243 2007-04-12  Eric Blake  <ebb9@byu.net>
60244
60245         * modules/gettime (Depends-on): Remove gettime.
60246         Reported by Dmitry V. Levin.
60247
60248 2007-04-12  Bruno Haible  <bruno@clisp.org>
60249
60250         * modules/fflush (Include): Mention <stdio.h>.
60251         * modules/strtoimax (Include): Mention <inttypes.h>.
60252         * modules/strtoumax (Include): Likewise.
60253
60254 2007-04-12  Eric Blake  <ebb9@byu.net>
60255
60256         * .cvsignore: New file.
60257         * .gitignore: Likewise.
60258
60259 2007-04-12  Bruno Haible  <bruno@clisp.org>
60260
60261         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60262         not before, since $(LDADD) often contains libgnu.a.
60263         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60264         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60265         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60266         Needed on Cygwin.
60267
60268 2007-04-12  Eric Blake  <ebb9@byu.net>
60269
60270         Work around glibc's failure to flush stdin on fclose.
60271         * lib/closein.c (close_stdin): Flush stdin before closing.
60272
60273         Work around glibc's failure to reset seekable stdin on exit.
60274         * modules/closein: New module.
60275         * lib/closein.c: New file.
60276         * lib/closein.h: Likewise.
60277         * m4/closein.m4: Likewise.
60278         * MODULES.html.sh (File stream based Input/Output): Document it.
60279
60280 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60281
60282         * gnulib-tool: Rename generated 'autobuild' script to
60283         'do-autobuild' in --create-megatestdir output.
60284
60285         * doc/gnulib.texi (Build robot for gnulib): Fix.
60286
60287 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60288
60289         * modules/sysexits (Depends-on): Add absolute-header.
60290
60291 2007-04-12  Eric Blake  <ebb9@byu.net>
60292
60293         No need to preserve errno on success.
60294         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60295         Reported by Bruno Haible.
60296
60297 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60298
60299         * MODULES.html.sh (Support for maintaining and releasing
60300         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60301
60302 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60303
60304         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60305
60306 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60307
60308         * modules/autobuild: New module.
60309
60310         * m4/autobuild.m4: New file.
60311
60312 2007-04-11  Bruno Haible  <bruno@clisp.org>
60313
60314         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60315         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60316         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60321         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60324         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60334         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60335         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60337         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60338         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60340         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60341         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60342         Reported by Eric Blake.
60343
60344 2007-04-11  Bruno Haible  <bruno@clisp.org>
60345
60346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60347
60348 2007-04-10  Bruno Haible  <bruno@clisp.org>
60349
60350         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60351         for NaN and Infinity. Needed on FreeBSD 6.1.
60352         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60353         regarding results for "%010a" of Infinity and NaN.
60354         * tests/test-vasprintf-posix.c (test_function): Likewise.
60355         * tests/test-snprintf-posix.h (test_function): Likewise.
60356         * tests/test-sprintf-posix.h (test_function): Likewise.
60357         * tests/test-fprintf-posix.h (test_function): Likewise.
60358         * tests/test-printf-posix.h (test_function): Likewise.
60359         * tests/test-fprintf-posix.out: Likewise.
60360
60361 2007-04-10  Bruno Haible  <bruno@clisp.org>
60362
60363         * modules/locale-tests: New file.
60364         * tests/test-locale.c: New file.
60365
60366         * modules/locale: New file.
60367         * lib/locale_.h: New file.
60368         * m4/locale_h.m4: New file.
60369
60370 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60371             Bruno Haible  <bruno@clisp.org>
60372
60373         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60374         be determined, test for availability of the copysignf, copysign,
60375         copysignl functions.
60376         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60377         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60378         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60379
60380 2007-04-09  Eric Blake  <ebb9@byu.net>
60381
60382         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60383         * modules/stdio (Makefile.am): Support fflush.
60384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60385         * modules/fflush: New file.
60386         * lib/fflush.c: Likewise.
60387         * m4/fflush.m4: Likewise.
60388         * modules/fflush-tests: New test.
60389         * tests/test-fflush.c: Likewise.
60390         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60391
60392 2007-04-06  Bruno Haible  <bruno@clisp.org>
60393
60394         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60395         (VASNPRINTF): Use signbit for faster determination whether to print a
60396         minus sign.
60397         * modules/vasnprintf (Files): Remove lib/float+.h.
60398         * modules/fprintf-posix (Depends-on): Add signbit.
60399         * modules/snprintf-posix (Depends-on): Likewise.
60400         * modules/sprintf-posix (Depends-on): Likewise.
60401         * modules/vasnprintf-posix (Depends-on): Likewise.
60402         * modules/vasprintf-posix (Depends-on): Likewise.
60403         * modules/vfprintf-posix (Depends-on): Likewise.
60404         * modules/vsnprintf-posix (Depends-on): Likewise.
60405         * modules/vsprintf-posix (Depends-on): Likewise.
60406
60407 2007-04-06  Bruno Haible  <bruno@clisp.org>
60408
60409         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60410         * tests/test-frexpl.c (main): Likewise.
60411         * tests/test-ldexpl.c (main): Likewise.
60412         * modules/frexp-tests (Depends-on): Add signbit.
60413         * modules/frexpl-tests (Depdends-on): Likewise.
60414         * modules/ldexpl-tests (Depdends-on): Likewise.
60415
60416 2007-04-06  Bruno Haible  <bruno@clisp.org>
60417
60418         * modules/signbit-tests: New file.
60419         * tests/test-signbit.c: New file.
60420
60421         * modules/signbit: New file.
60422         * lib/signbitf.c: New file.
60423         * lib/signbitd.c: New file.
60424         * lib/signbitl.c: New file.
60425         * m4/signbit.m4: New file.
60426         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60427         (signbit): New macro.
60428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60429         REPLACE_SIGNBIT.
60430         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60431         REPLACE_FREXPL into math.h.
60432
60433 2007-04-06  Bruno Haible  <bruno@clisp.org>
60434
60435         * modules/isnanf-nolibm-tests: New file.
60436         * tests/test-isnanf.c: New file.
60437
60438         * modules/isnanf-nolibm: New file.
60439         * lib/isnanf.h: New file.
60440         * lib/isnanf.c: New file.
60441         * lib/isnan.c: Consider the USE_FLOAT macro.
60442         * m4/isnanf.m4: New file.
60443
60444 2007-04-06  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60447         (Link): New section.
60448
60449         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60450
60451 2007-04-06  Bruno Haible  <bruno@clisp.org>
60452
60453         Assume the 'long double' type.
60454         * m4/longdouble.m4: Remove file.
60455         * config/srclist.txt: Don't mention longdouble.m4.
60456         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60457         * lib/float+.h: Likewise.
60458         * lib/frexp.c: Likewise.
60459         * lib/printf-args.h: Likewise.
60460         * lib/printf-args.c: Likewise.
60461         * lib/printf-frexp.c: Likewise.
60462         * lib/printf-parse.c: Likewise.
60463         * lib/vasnprintf.c: Likewise.
60464         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60465         * m4/intl.m4: Likewise.
60466         * m4/isnanl.m4: Likewise.
60467         * m4/printf.m4: Likewise.
60468         * m4/printf-frexpl.m4: Likewise.
60469         * m4/vasnprintf.m4: Likewise.
60470         * modules/allocsa (Files): Remove m4/longdouble.m4.
60471         * modules/gettext (Files): Likewise.
60472         * modules/relocatable-prog-wrapper (Files): Likewise.
60473         * modules/vasnprintf (Files): Likewise.
60474         * modules/isnanl (Files): Likewise.
60475         (Include): Simplify.
60476         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60477         (Include): Simplify.
60478         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60479         (Include): Simplify.
60480         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60481         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60482         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60483         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60484         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60485         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60486         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60487         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60488         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60489         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60490         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60491         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60492         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60493         * tests/test-isnanl.c: Likewise.
60494         * tests/test-snprintf-posix.h: Likewise.
60495         * tests/test-sprintf-posix.h: Likewise.
60496         * tests/test-vasnprintf-posix.c: Likewise.
60497         * tests/test-vasnprintf-posix2.c: Likewise.
60498         * tests/test-vasprintf-posix.c: Likewise.
60499
60500 2007-04-06  Bruno Haible  <bruno@clisp.org>
60501
60502         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60503         * lib/math_.h [__DECC]: Include the overridden include file through
60504         #include_next, outside the double-inclusion guard.
60505         * lib/stdio_.h [__DECC]: Likewise.
60506         * lib/stdlib_.h [__DECC]: Likewise.
60507         * lib/string_.h [__DECC]: Likewise.
60508         * lib/time_.h [__DECC]: Likewise.
60509         * lib/wchar_.h [__DECC]: Likewise.
60510         * lib/wctype_.h [__DECC]: Likewise.
60511         * lib/inttypes_.h [__DECC]: Likewise.
60512         Reported by Albert Chin <china@thewrittenword.com> in
60513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60514
60515 2007-04-04  Eric Blake  <ebb9@byu.net>
60516
60517         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60518         1.5.x.
60519
60520 2007-04-04  Bruno Haible  <bruno@clisp.org>
60521
60522         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60523         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60524
60525 2007-04-04  Bruno Haible  <bruno@clisp.org>
60526
60527         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60528         results for "%010a" of Infinity and NaN.
60529         * tests/test-vasprintf-posix.c (test_function): Likewise.
60530         * tests/test-snprintf-posix.h (test_function): Likewise.
60531         * tests/test-sprintf-posix.h (test_function): Likewise.
60532         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60533         * tests/test-printf-posix.h (test_function): Likewise.
60534         * tests/test-fprintf-posix.out: Update.
60535         Needed for FreeBSD 6.1.
60536
60537 2007-04-04  Bruno Haible  <bruno@clisp.org>
60538
60539         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60540         directly used by the gnulib modules nor by gnulib-tool.
60541
60542 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60543
60544         * DEPENDENCIES: Give overall description of version dependency
60545         desirability.  Use more-typical names for apps.
60546         Add shell, coreutils, diffutils, grep, tar, gzip.
60547
60548 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60549
60550         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60551
60552 2007-04-04  Karl Berry  <karl@gnu.org>
60553
60554         * MODULES.html.sh (func_module): missing '.
60555
60556 2007-04-03  Bruno Haible  <bruno@clisp.org>
60557
60558         * modules/argmatch-tests (Makefile.am): New variable
60559         test_argmatch_LDADD.
60560         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60561         * modules/array-list-tests (Makefile.am): New variable
60562         test_array_list_LDADD.
60563         * modules/array-oset-tests (Makefile.am): New variable
60564         test_array_oset_LDADD.
60565         * modules/avltree-list-tests (Makefile.am): New variable
60566         test_avltree_list_LDADD.
60567         * modules/avltree-oset-tests (Makefile.am): New variable
60568         test_avltree_oset_LDADD.
60569         * modules/avltreehash-list-tests (Makefile.am): New variable
60570         test_avltreehash_list_LDADD.
60571         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60572         test_canonicalize_lgpl_LDADD.
60573         * modules/carray-list-tests (Makefile.am): New variable
60574         test_carray_list_LDADD.
60575         * modules/dirname-tests (Makefile.am): New variable
60576         test_dirname_LDADD.
60577         * modules/linked-list-tests (Makefile.am): New variable
60578         test_linked_list_LDADD.
60579         * modules/linkedhash-list-tests (Makefile.am): New variable
60580         test_linkedhash_list_LDADD.
60581         * modules/rbtree-list-tests (Makefile.am): New variable
60582         test_rbtree_list_LDADD.
60583         * modules/rbtree-oset-tests (Makefile.am): New variable
60584         test_rbtree_oset_LDADD.
60585         * modules/rbtreehash-list-tests (Makefile.am): New variable
60586         test_rbtreehash_list_LDADD.
60587         * modules/xvasprintf-tests (Makefile.am): New variable
60588         test_xvasprintf_LDADD.
60589         Reported by Eric Blake.
60590
60591 2007-04-03  Eric Blake  <ebb9@byu.net>
60592
60593         * DEPENDENCIES: Weaken m4 requirements.
60594
60595 2007-04-03  Bruno Haible  <bruno@clisp.org>
60596
60597         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60598         * modules/isnanl-tests (configure.ac): Likewise.
60599
60600 2007-04-03  Ben Pfaff  <blp@gnu.org>
60601
60602         * modules/iconv_open: Add $(srcdir)/ to source directory
60603         references in Makefile fragments that call gperf, to fix VPATH
60604         builds.
60605
60606 2007-04-03  Bruno Haible  <bruno@clisp.org>
60607
60608         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60609         * lib/ldexpl.c: Undo last change.
60610
60611 2007-04-03  Bruno Haible  <bruno@clisp.org>
60612
60613         * modules/printf-frexpl (Depends-on): Undo last change.
60614         (Files): Add m4/ldexpl.m4.
60615
60616 2007-04-03  Bruno Haible  <bruno@clisp.org>
60617
60618         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60619         * modules/isnanl (Link): New section.
60620
60621         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60622         * modules/frexp (Link): New section.
60623
60624         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60625         * modules/frexpl (Link): New section.
60626
60627         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60628         * modules/ldexpl (Link): New section.
60629
60630 2007-04-03  Bruno Haible  <bruno@clisp.org>
60631
60632         * modules/TEMPLATE-EXTENDED: New file.
60633         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60634
60635 2007-04-03  Bruno Haible  <bruno@clisp.org>
60636
60637         * DEPENDENCIES: New file.
60638         Suggested by Simon Josefsson.
60639
60640 2007-04-03  Bruno Haible  <bruno@clisp.org>
60641
60642         * doc/gnulib.texi: Escape @.
60643
60644 2007-04-03  James Youngman  <jay@gnu.org>
60645         and Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60648         birthtime on all systems that have birthtime, not just those which
60649         use st_birthtimensec rather than st_birthtim.  Putting zero in
60650         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60651         that the birth time is not available for files on an NFS mount.
60652
60653 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60654
60655         * modules/memxor: Move back from crypto/, suggested by Bruno.
60656         * modules/crypto/hmac-sha1: Fix memxor dependency.
60657
60658         * modules/crypto/gc: Moved from ../.
60659
60660 2007-04-02  Eric Blake  <ebb9@byu.net>
60661
60662         * lib/ldexpl.c (includes): Avoid libm.
60663
60664         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60665
60666 2007-04-02  Bruno Haible  <bruno@clisp.org>
60667
60668         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60669         on IRIX.
60670
60671 2007-04-02  Bruno Haible  <bruno@clisp.org>
60672
60673         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60674         x86 or x86_64 platforms running MacOS X.
60675         Reported by Ryan Schmidt <@ryandesign.com>.
60676
60677 2007-04-02  Bruno Haible  <bruno@clisp.org>
60678
60679         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60680         i386.
60681
60682 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60683
60684         * modules/crypto/arcfour: Moved from ../.
60685         * modules/crypto/arcfour-tests: Moved from ../.
60686         * modules/crypto/arctwo: Moved from ../.
60687         * modules/crypto/arctwo-tests: Moved from ../.
60688         * modules/crypto/des: Moved from ../.
60689         * modules/crypto/des-tests: Moved from ../.
60690         * modules/crypto/gc-arcfour: Moved from ../.
60691         * modules/crypto/gc-arcfour-tests: Moved from ../.
60692         * modules/crypto/gc-arctwo: Moved from ../.
60693         * modules/crypto/gc-arctwo-tests: Moved from ../.
60694         * modules/crypto/gc-des: Moved from ../.
60695         * modules/crypto/gc-des-tests: Moved from ../.
60696         * modules/crypto/gc-hmac-md5: Moved from ../.
60697         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60698         * modules/crypto/gc-hmac-sha1: Moved from ../.
60699         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60700         * modules/crypto/gc-md2: Moved from ../.
60701         * modules/crypto/gc-md2-tests: Moved from ../.
60702         * modules/crypto/gc-md4: Moved from ../.
60703         * modules/crypto/gc-md4-tests: Moved from ../.
60704         * modules/crypto/gc-md5: Moved from ../.
60705         * modules/crypto/gc-md5-tests: Moved from ../.
60706         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60707         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60708         * modules/crypto/gc-random: Moved from ../.
60709         * modules/crypto/gc-rijndael: Moved from ../.
60710         * modules/crypto/gc-rijndael-tests: Moved from ../.
60711         * modules/crypto/gc-sha1: Moved from ../.
60712         * modules/crypto/gc-sha1-tests: Moved from ../.
60713         * modules/crypto/gc-tests: Moved from ../.
60714         * modules/crypto/hmac-md5: Moved from ../.
60715         * modules/crypto/hmac-md5-tests: Moved from ../.
60716         * modules/crypto/hmac-sha1: Moved from ../.
60717         * modules/crypto/hmac-sha1-tests: Moved from ../.
60718         * modules/crypto/md2: Moved from ../.
60719         * modules/crypto/md2-tests: Moved from ../.
60720         * modules/crypto/md4: Moved from ../.
60721         * modules/crypto/md4-tests: Moved from ../.
60722         * modules/crypto/md5: Moved from ../.
60723         * modules/crypto/md5-tests: Moved from ../.
60724         * modules/crypto/memxor: Moved from ../.
60725         * modules/crypto/rijndael: Moved from ../.
60726         * modules/crypto/rijndael-tests: Moved from ../.
60727         * modules/crypto/sha1: Moved from ../.
60728
60729 2007-03-30  James Youngman  <jay@gnu.org>
60730
60731         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60732         rename() to change the ctime of a file (because ctime is unaffected
60733         by rename on jfs2 on AIX 5.1).
60734         (main): Start by doing cleanup, in case a previous run failed leaving
60735         test files behind.
60736
60737 2007-03-31  Bruno Haible  <bruno@clisp.org>
60738
60739         Support old proprietary implementations of iconv.
60740         * modules/iconv_open: New file.
60741         * lib/iconv_.h: New file.
60742         * m4/iconv_h.m4: New file.
60743         * lib/iconv_open.c: New file.
60744         * lib/iconv_open-aix.gperf: New file.
60745         * lib/iconv_open-hpux.gperf: New file.
60746         * lib/iconv_open-irix.gperf: New file.
60747         * lib/iconv_open-osf.gperf: New file.
60748         * m4/iconv_open.m4: New file.
60749         * modules/linebreak (Depends-on): Add iconv_open.
60750         * modules/striconv (Depends-on): Likewise.
60751         * modules/striconveh (Depends-on): Likewise.
60752         * modules/unicodeio (Depends-on): Likewise.
60753         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60754         (iconv_t)(-1).
60755         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60756         conversion if cd is (iconv_t)(-1).
60757         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60758         is not possible.
60759
60760 2007-03-31  Bruno Haible  <bruno@clisp.org>
60761
60762         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60763         work on Solaris either. Protect also second use of "autodetect_jp".
60764
60765 2007-03-31  Bruno Haible  <bruno@clisp.org>
60766
60767         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60768         the function is not present.
60769
60770 2007-03-31  Bruno Haible  <bruno@clisp.org>
60771
60772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60773         the function is not present.
60774
60775 2007-03-31  Bruno Haible  <bruno@clisp.org>
60776
60777         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60778         a bug in HP-UX iconv_open().
60779
60780 2007-03-31  Bruno Haible  <bruno@clisp.org>
60781
60782         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60783         (Mathematics <math.h>): New section, add fpieee.
60784         (Input/output <stdio.h>): Add fseterr.
60785         (Mathematics <math.h>): New section, add printf-frexp.
60786         (Container data structures): Add sublist.
60787         (Core language properties): Add fpucw, inline.
60788         (Functions for greatest-width integer types <inttypes.h>): Add
60789         imaxabs, imaxdiv, inttypes.
60790         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60791         isnanl-nolibm, ldexp.
60792         (Mathematics <math.h>): New section, add printf-frexpl.
60793         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60794         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60795         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60796         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60797         (Unicode string functions): Add unistr/u*-mbtoucr.
60798         (Java): Add javacomp-script, javaexec-script.
60799         (C#): Add csharpcomp-script, csharpexec-script.
60800         (Support for building libraries and executables): Add havelib,
60801         relocatable-*.
60802         (Support for maintaining and releasing projects): Renamed from
60803         'Support for maintaining and release projects'. Add announce-gen.
60804
60805 2007-03-31  Bruno Haible  <bruno@clisp.org>
60806
60807         * README: Talk primarily about git.
60808         (git and CVS): Renamed from CVS.
60809         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60810         gnulib is available through git.
60811         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60812
60813 2007-03-30  Bruno Haible  <bruno@clisp.org>
60814
60815         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60816         * lib/poll_.h: Likewise.
60817         * lib/stat_.h: Likewise.
60818         * lib/sys_time_.h: Likewise.
60819         * lib/sysexit_.h: Likewise.
60820         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60821         * lib/stdbool_.h: Likewise.
60822         * lib/byteswap_.h: Add double-inclusion guard.
60823
60824 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60825
60826         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60827
60828 2007-03-30  Karl Berry  <karl@gnu.org>
60829
60830         * config/srclist-update: double space after USA in the license
60831         substitution, since that's how it's usually (?) written.
60832
60833 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60834
60835         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60836         reported by Bruno Haible.
60837
60838 2007-03-29  Bruno Haible  <bruno@clisp.org>
60839
60840         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60841         a bug in AIX iconv().
60842
60843 2007-03-29  Bruno Haible  <bruno@clisp.org>
60844
60845         * modules/ldexpl-tests: New file.
60846         * tests/test-ldexpl.c: New file.
60847
60848 2007-03-29  Bruno Haible  <bruno@clisp.org>
60849
60850         * lib/ldexpl.c: Include fpucw.h.
60851         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60852         multiplication.
60853         * modules/ldexpl (Depends-on): Add fpucw.
60854
60855 2007-03-29  Bruno Haible  <bruno@clisp.org>
60856
60857         * modules/ldexpl: New file.
60858         * m4/ldexpl.m4: New file.
60859         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60860         set.
60861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60862         REPLACE_LDEXPL.
60863         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60864         REPLACE_LDEXPL.
60865         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60866         gl_FUNC_LDEXPL_WORKS.
60867         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60868         * modules/mathl (Files): Remove lib/ldexpl.c.
60869         (Depends-on): Add ldexpl.
60870
60871 2007-03-29  Bruno Haible  <bruno@clisp.org>
60872
60873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60874
60875 2007-03-29  Bruno Haible  <bruno@clisp.org>
60876
60877         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60878         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60879         and possibly also HP-UX.
60880         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60881         work on AIX, IRIX, HP-UX, OSF/1.
60882         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60883         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60884         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60885         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60886         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60887         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60888
60889 2007-03-29  Bruno Haible  <bruno@clisp.org>
60890
60891         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60892
60893 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60894
60895         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60896         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60897
60898 2007-03-29  Eric Blake  <ebb9@byu.net>
60899
60900         * lib/acl-internal.h: Remove redundant include.
60901         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60902         Cygwin when a file is locked.
60903
60904 2007-03-29  Bruno Haible  <bruno@clisp.org>
60905
60906         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60907         file.
60908         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60909
60910 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60911
60912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60913         try to remove a parent directory if the child couldn't be removed
60914         (except for the first rmdir, which could fail because the child
60915         doesn't exist).  Problem reported by Jeff Blaine in
60916         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60917
60918 2007-03-28  Bruno Haible  <bruno@clisp.org>
60919
60920         * lib/striconveh.c (utf8conv_carefully): New function.
60921         (mem_cd_iconveh_internal): Invoke it.
60922
60923 2007-03-28  Bruno Haible  <bruno@clisp.org>
60924
60925         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60926         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60927         input.
60928         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60929         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60930         unistr/u8-uctomb.
60931
60932 2007-03-28  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/unistr/u8-mbtoucr: New file.
60935         * lib/unistr/u8-mbtoucr.c: New file.
60936         * modules/unistr/u16-mbtoucr: New file.
60937         * lib/unistr/u16-mbtoucr.c: New file.
60938         * modules/unistr/u16-mbtoucr: New file.
60939         * lib/unistr/u16-mbtoucr.c: New file.
60940         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60941
60942 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60943             Bruno Haible  <bruno@clisp.org>
60944
60945         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60946         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60947         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60948
60949         * m4/stdio_h.m4: Add stubs for vasprintf too.
60950
60951         * modules/stdio: Support vasprintf in sed command.
60952
60953         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60954         vasprintf.h.  Add stdio module indicator.
60955
60956         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60957         vasprintf.h.
60958
60959         * lib/vasprintf.h: File removed.
60960
60961         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60962         * lib/vasprintf.c: Ditto.
60963         * lib/xvasprintf.c: Ditto.
60964         * tests/test-vasprintf-posix.c: Ditto.
60965         * tests/test-vasprintf.c: Ditto.
60966
60967 2007-03-27  Bruno Haible  <bruno@clisp.org>
60968
60969         Make vasnprintf multithread-safe.
60970         * lib/vasnprintf.c (decimal_point_char): New function.
60971         (VASNPRINTF): Use it.
60972         Suggested by Simon Josefsson.
60973
60974 2007-03-27  Eric Blake  <ebb9@byu.net>
60975
60976         Support sub-second birthtime on cygwin.
60977         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60978         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60979         (get_stat_birthtime): Also work with st_birthtim.
60980
60981 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60984         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60985         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60986         (get_stat_birthtime_ns): Simplify compile-time tests.
60987         (get_stat_birthtime): Change the API to look like
60988         get_stat_mtime etc., except return a negative tv_nsec on error.
60989         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60990         Don't check for "spare" fields.
60991         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60992         or for struct stat.st_birthtime, as these tests aren't used.
60993         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60994
60995 2007-03-27  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/stat-time.h: Include <sys/stat.h>.
60998
60999 2007-03-27  James Youngman  <jay@gnu.org>
61000
61001         * lib/stat-time.h (get_stat_birthtime): New function for
61002           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61003         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61004           and its variants.
61005         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61006         * modules/stat-time-test: New file.
61007         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61008
61009 2007-03-26  Bruno Haible  <bruno@clisp.org>
61010
61011         Better support of signalling NaNs.
61012         * lib/atanl.c: Include isnanl.h.
61013         (atanl): Perform test for NaN at the beginning of the function and
61014         through a call to isnanl.
61015         * lib/cosl.c: Include isnanl.h.
61016         (cosl): Perform test for NaN at the beginning of the function and
61017         through a call to isnanl.
61018         * lib/ldexpl.c: Include isnanl.h.
61019         (ldexpl): Perform test for NaN through a call to isnanl.
61020         * lib/logl.c: Include isnanl.h.
61021         (logl): Perform test for NaN at the beginning of the function and
61022         through a call to isnanl.
61023         * lib/sinl.c: Include isnanl.h.
61024         (sinl): Perform test for NaN at the beginning of the function and
61025         through a call to isnanl.
61026         * lib/sqrtl.c: Include isnanl.h.
61027         (sqrtl): Perform test for NaN at the beginning of the function and
61028         through a call to isnanl.
61029         * lib/tanl.c: Include isnanl.h.
61030         (tanl): Perform test for NaN at the beginning of the function and
61031         through a call to isnanl.
61032         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61033         * modules/mathl (Depends-on): Add isnanl.
61034
61035 2007-03-26  Eric Blake  <ebb9@byu.net>
61036
61037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61038         regression in logic sense of previous patch.
61039
61040 2007-03-26  Bruno Haible  <bruno@clisp.org>
61041
61042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61043         unportable shell command "if ! ...".
61044         Reported by Ralf Wildenhues.
61045
61046 2007-03-25  Bruno Haible  <bruno@clisp.org>
61047
61048         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61049         <sysexits.h> file, and only add EX_CONFIG.
61050         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61051         absolute file name and whether it is sufficient. Substitute also
61052         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61053         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61054         ABSOLUTE_SYSEXITS_H into sysexits.h.
61055
61056 2007-03-25  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61059         hints is NULL.
61060
61061 2007-03-25  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61064         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61065
61066 2007-03-25  Bruno Haible  <bruno@clisp.org>
61067
61068         * lib/vasnprintf.c: Include langinfo.h.
61069         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61070         multithread-safe.
61071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61072         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61074         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61075         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61076         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61077         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61079         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61080         Reported by Simon Josefsson.
61081
61082 2007-03-25  Bruno Haible  <bruno@clisp.org>
61083
61084         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61085         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61086         * modules/vasnprintf (Depends-on): Add stdint.
61087
61088 2007-03-25  Bruno Haible  <bruno@clisp.org>
61089
61090         * modules/fpieee: New file.
61091         * m4/fpieee.m4: New file.
61092         * modules/isnan-nolibm (Depends-on): Add fpieee.
61093         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61094         * modules/isnanl (Depends-on): Add fpieee.
61095
61096 2007-03-25  Bruno Haible  <bruno@clisp.org>
61097
61098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61099
61100 2007-03-25  Bruno Haible  <bruno@clisp.org>
61101
61102         Avoid test failures on IRIX 6.5.
61103         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61104         (main): Use it.
61105         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61106         macros.
61107         (main): Use them.
61108
61109 2007-03-25  Bruno Haible  <bruno@clisp.org>
61110
61111         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61112         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61113         exists but doesn't work.
61114         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61115         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61117         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61118         math.h.
61119
61120 2007-03-25  Bruno Haible  <bruno@clisp.org>
61121
61122         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61123         returns inf. Needed on IRIX 6.5.
61124
61125 2007-03-25  Bruno Haible  <bruno@clisp.org>
61126
61127         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61128         (main): Use isnanl instead of x != x idiom.
61129         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61130
61131         * tests/test-frexp.c: Include isnan.h.
61132         (main): Use isnan instead of x != x idiom.
61133         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61134
61135 2007-03-25  Bruno Haible  <bruno@clisp.org>
61136
61137         * tests/test-frexp.c (NaN): New function/macro.
61138         (main): Use it instead of 0.0 / 0.0.
61139         * tests/test-isnan.c (NaN): New function/macro.
61140         (main): Use it instead of 0.0 / 0.0.
61141         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61142         (test_function): Use it instead of 0.0 / 0.0.
61143         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61144         (test_function): Use it instead of 0.0 / 0.0.
61145         * tests/test-snprintf-posix.h (NaN): New function/macro.
61146         (test_function): Use it instead of 0.0 / 0.0.
61147         * tests/test-sprintf-posix.h (NaN): New function/macro.
61148         (test_function): Use it instead of 0.0 / 0.0.
61149         * tests/test-fprintf-posix.h (NaN): New function/macro.
61150         (test_function): Use it instead of 0.0 / 0.0.
61151         * tests/test-printf-posix.h (NaN): New function/macro.
61152         (test_function): Use it instead of 0.0 / 0.0.
61153
61154         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61155
61156 2007-03-25  Bruno Haible  <bruno@clisp.org>
61157
61158         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61159
61160 2007-03-25  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/regexec.c (merge_state_with_log): Make static.
61163
61164 2007-03-25  Bruno Haible  <bruno@clisp.org>
61165
61166         * lib/trigl.c (kernel_rem_pio2): Make static.
61167
61168 2007-03-25  Bruno Haible  <bruno@clisp.org>
61169
61170         * lib/sincosl.c (sincosl_table): Make static.
61171
61172 2007-03-25  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61175         if the compiler does not support C99.
61176
61177 2007-03-25  Bruno Haible  <bruno@clisp.org>
61178
61179         * modules/time (Makefile.am): Ensure all rule action lines start with a
61180         tab.
61181
61182 2007-03-24  Bruno Haible  <bruno@clisp.org>
61183
61184         * modules/tsearch-tests: New file.
61185         * tests/test-tsearch.sh: New file.
61186         * tests/test-tsearch.c: New file, mostly copied from glibc.
61187
61188         * modules/search-tests: New file.
61189         * tests/test-search.c: New file.
61190
61191         * modules/search: New file.
61192         * lib/search_.h: New file, incorporating lib/tsearch.h.
61193         * m4/search_h.m4: New file.
61194         * lib/tsearch.h: Remove file.
61195         * lib/tsearch.c: Include search.h instead of tsearch.h.
61196         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61197         HAVE_TSEARCH.
61198         * modules/tsearch (Files): Remove lib/tsearch.h.
61199         (Depends-on): Add search.
61200         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61201         (Include): Change tsearch.h into search.h.
61202
61203 2007-03-24  Bruno Haible  <bruno@clisp.org>
61204
61205         * modules/fpucw: New file.
61206         * lib/fpucw.h: New file.
61207         * lib/frexp.c: Include fpucw.h.
61208         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61209         (FUNC): Use them.
61210         * lib/printf-frexp.c: Include fpucw.h.
61211         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61212         (FUNC): Use them.
61213         * lib/vasnprintf.c: Include fpucw.h.
61214         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61215         'long double' calculations.
61216         * tests/test-frexpl.c: Include fpucw.h.
61217         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61218         * tests/test-printf-frexpl.c: Include fpucw.h.
61219         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61220         * modules/frexpl (Depends-on): Add fpucw.
61221         * modules/printf-frexpl (Depends-on): Likewise.
61222         * modules/fprintf-posix (Depends-on): Likewise.
61223         * modules/snprintf-posix (Depends-on): Likewise.
61224         * modules/sprintf-posix (Depends-on): Likewise.
61225         * modules/vasnprintf-posix (Depends-on): Likewise.
61226         * modules/vasprintf-posix (Depends-on): Likewise.
61227         * modules/vfprintf-posix (Depends-on): Likewise.
61228         * modules/vsnprintf-posix (Depends-on): Likewise.
61229         * modules/vsprintf-posix (Depends-on): Likewise.
61230         * modules/frexpl-tests (Depends-on): Likewise.
61231         * modules/printf-frexpl-tests (Depends-on): Likewise.
61232
61233 2007-03-24  Bruno Haible  <bruno@clisp.org>
61234
61235         * lib/float+.h: New file.
61236         * lib/isnan.c: Include float+.h.
61237         (SIZE): New macro.
61238         (FUNC): Compare only SIZE bytes of the value.
61239         * lib/vasnprintf.c: Include float+.h.
61240         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61241         SIZEOF_LDBL or SIZEOF_DBL bytes.
61242         * modules/isnan-nolibm (Files): Add lib/float+.h.
61243         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61244         * modules/isnanl (Files): Add lib/float+.h.
61245         * modules/vasnprintf (Files): Add lib/float+.h.
61246
61247 2007-03-24  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61250         include isnanl-nolibm.h.
61251
61252 2007-03-24  Bruno Haible  <bruno@clisp.org>
61253
61254         * tests/test-read-file.c (main): Don't produce spurious output for
61255         expected situations. Make the test fail if it encountered unexpected
61256         results.
61257
61258 2007-03-24  Bruno Haible  <bruno@clisp.org>
61259
61260         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61261         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61262
61263 2007-03-24  Bruno Haible  <bruno@clisp.org>
61264
61265         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61266
61267 2007-03-24  Bruno Haible  <bruno@clisp.org>
61268
61269         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61270         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61271
61272         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61273         * modules/utf8-ucs4: Turn into a symbolic link to module
61274         unistr/u8-mbtouc.
61275
61276         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61277         utf8-ucs4-unsafe.
61278         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61279         unistr/u8-mbtouc-unsafe.
61280
61281         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61282         * modules/utf16-ucs4: Turn into a symbolic link to module
61283         unistr/u16-mbtouc.
61284
61285         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61286         utf16-ucs4-unsafe.
61287         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61288         unistr/u16-mbtouc-unsafe.
61289
61290         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61291         * modules/ucs4-utf8: Turn into a symbolic link to module
61292         unistr/u8-ubtomb.
61293
61294         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61295         * modules/ucs4-utf16: Turn into a symbolic link to module
61296         unistr/u16-ubtomb.
61297
61298 2007-03-24  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61301         Enable the function only if HAVE_INLINE.
61302         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61303         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61304         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61305         Enable the function only if HAVE_INLINE.
61306         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61307         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61308         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61309         Enable the function only if HAVE_INLINE.
61310         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61311         Enable the function only if HAVE_INLINE.
61312         * modules/utf8-ucs4: Update.
61313         * modules/utf8-ucs4-unsafe: Update.
61314         * modules/utf16-ucs4: Update.
61315         * modules/utf16-ucs4-unsafe: Update.
61316         * modules/ucs4-utf8: Update.
61317         * modules/ucs4-utf16: Update.
61318
61319 2007-03-24  Bruno Haible  <bruno@clisp.org>
61320
61321         * lib/utf8-ucs4.h: Remove file.
61322         * lib/utf8-ucs4-unsafe.h: Remove file.
61323         * lib/utf16-ucs4.h: Remove file.
61324         * lib/utf16-ucs4-unsafe.h: Remove file.
61325         * lib/ucs4-utf8.h: Remove file.
61326         * lib/ucs4-utf16.h: Remove file.
61327         * lib/unistr.h: Include their previous contents.
61328         * m4/utf-ucs4.m4: Remove file.
61329         * m4/ucs4-utf.m4: Remove file.
61330         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61331         (Depends-on): Add unistr/base.
61332         (configure.ac): Remove gl_UTF_UCS4.
61333         (Makefile.am): Update.
61334         (Include): Change to unistr.h.
61335         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61336         (Depends-on): Add unistr/base.
61337         (configure.ac): Remove gl_UTF_UCS4.
61338         (Makefile.am): Update.
61339         (Include): Change to unistr.h.
61340         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61341         (Depends-on): Add unistr/base.
61342         (configure.ac): Remove gl_UTF_UCS4.
61343         (Makefile.am): Update.
61344         (Include): Change to unistr.h.
61345         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61346         (Depends-on): Add unistr/base.
61347         (configure.ac): Remove gl_UTF_UCS4.
61348         (Makefile.am): Update.
61349         (Include): Change to unistr.h.
61350         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61351         (Depends-on): Add unistr/base.
61352         (configure.ac): Remove gl_UCS4_UTF.
61353         (Makefile.am): Update.
61354         (Include): Change to unistr.h.
61355         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61356         (Depends-on): Add unistr/base.
61357         (configure.ac): Remove gl_UCS4_UTF.
61358         (Makefile.am): Update.
61359         (Include): Change to unistr.h.
61360         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61361         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61362         utf8-ucs4-unsafe.h.
61363         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61364         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61365         utf16-ucs4-unsafe.h.
61366         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61367         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61368         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61369         * lib/unistr/u8-strchr.c: Likewise.
61370         * lib/unistr/u8-strrchr.c: Likewise.
61371         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61372         * lib/unistr/u16-strchr.c: Likewise.
61373         * lib/unistr/u16-strrchr.c: Likewise.
61374         * lib/striconveh.c: Update.
61375         * lib/linebreak.c: Update.
61376
61377 2007-03-24  Bruno Haible  <bruno@clisp.org>
61378
61379         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61380         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61381
61382 2007-03-22  Bruno Haible  <bruno@clisp.org>
61383
61384         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61385
61386 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         * MODULES.html.sh (File system functions): New module write-any-file.
61389         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61390         * m4/write-any-file.m4: New files.
61391
61392 2007-03-23  Eric Blake  <ebb9@byu.net>
61393
61394         * gnulib-tool: Rearrange space-tab sequences, since some editors
61395         like to eat them.
61396
61397 2007-03-23  Eric Blake  <ebb9@byu.net>
61398
61399         * lib/version-etc.c (version_etc_va): Update license wording to
61400         be more concise.  Recommended by Richard Stallman.
61401
61402 2007-03-22  Bruno Haible  <bruno@clisp.org>
61403
61404         * lib/poll.c (MSG_PEEK): New fallback definition.
61405
61406 2007-03-22  Bruno Haible  <bruno@clisp.org>
61407
61408         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61409         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61410         (main): Update.
61411         Fixes a compilation error on BeOS.
61412
61413 2007-03-22  Bruno Haible  <bruno@clisp.org>
61414
61415         * modules/frexpl-tests: New file.
61416         * tests/test-frexpl.c: New file.
61417
61418         * modules/frexpl: New file.
61419         * m4/frexpl.m4: New file.
61420         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61421         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61423         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61424         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61425         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61426
61427 2007-03-22  Bruno Haible  <bruno@clisp.org>
61428
61429         * lib/frexpl.c: Share code with lib/frexp.c.
61430         * modules/mathl (Files): Add lib/frexp.c.
61431         (Depends-on): Add isnanl-nolibm.
61432
61433 2007-03-22  Bruno Haible  <bruno@clisp.org>
61434
61435         * modules/printf-frexp (Files): Add m4/frexp.m4.
61436         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61437         only if the found frexp function actually works.
61438
61439 2007-03-22  Bruno Haible  <bruno@clisp.org>
61440
61441         * lib/frexp.c: Remove older implementation that uses divisions.
61442
61443 2007-03-21  Bruno Haible  <bruno@clisp.org>
61444
61445         * modules/frexp-tests: New file.
61446         * tests/test-frexp.c: New file.
61447
61448         * modules/frexp: New file.
61449         * lib/frexp.c: New file.
61450         * m4/frexp.m4: New file.
61451         * lib/math_.h (frexp): New declaration.
61452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61453         REPLACE_FREXP.
61454         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61455
61456 2007-03-21  Bruno Haible  <bruno@clisp.org>
61457
61458         * modules/isnanl-tests: New file.
61459         * tests/test-isnanl.c: New file.
61460
61461         * modules/isnanl: New file.
61462         * lib/isnanl.h: New file.
61463         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61464         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61465         gl_FUNC_ISNANL_WORKS.
61466         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61467         New macros.
61468
61469 2007-03-21  Bruno Haible  <bruno@clisp.org>
61470
61471         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61472         lib/isnanl.h.
61473         (Include): Update.
61474         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61475         * lib/vasnprintf.c: Update.
61476         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61477         tests/test-isnanl.h, remove tests/test-isnanl.c.
61478         (Makefile.am): Update.
61479         * tests/test-isnanl-nolibm.c: New file.
61480         * tests/test-isnanl.h: New file.
61481         * tests/test-isnanl.c: Remove file.
61482
61483 2007-03-21  Jim Meyering  <jim@meyering.net>
61484
61485         When trying to open ".", treat ESTALE like EACCES.
61486         * lib/savewd.c (savewd_save): Resort to forking not just upon
61487         failure with EACCES, but also when errno is ESTALE.
61488
61489 2007-03-20  Bruno Haible  <bruno@clisp.org>
61490
61491         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61492         Needed on AIX 5.1. Reported by Matthew Woehlke.
61493
61494 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         Suggestions by Bruno Haible:
61497         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61498         our own.
61499         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61500         * modules/acl (Depends-on): Add gettext.
61501
61502 2007-03-19  Bruno Haible  <bruno@clisp.org>
61503
61504         * modules/iconvme: Remove file.
61505         * lib/iconvme.h: Remove file.
61506         * lib/iconvme.c: Remove file.
61507         * m4/iconvme.m4: Remove file.
61508
61509 2007-03-19  Bruno Haible  <bruno@clisp.org>
61510
61511         * doc/relocatable-maint.texi: Break long shell script line.
61512         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61513
61514 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61517         handle file_has_acl.
61518         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61519         * lib/acl.c: Move header inclusions and related macro defns into
61520         lib/acl-internal.h.
61521         (S_ISLNK): Remove defn, since that's now done for us.
61522         (file_has_acl): Move to lib/file-has-acl.c.
61523         Call acl_trivial if available.  This is the crucial part of the fix.
61524         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61525         shared within the library.  Rewrite a bit, partly to make it compatible
61526         with the GNU coding style.
61527         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61528         Remove unnecessary double-quotes.
61529         Don't test for acl_to_text; the build will catch that.
61530         Replace acl_entries if it doesn't exist and it is needed.
61531         Check for -lsec and acl_trivial (as used on Solaris 10).
61532         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61533         lib/file-has-acl.c.
61534         (Depends-on): Add sys_stat, for S_ISLNK.
61535
61536 2007-03-19  Ben Pfaff  <blp@gnu.org>
61537
61538         * doc/gnulib.texi: Fix typos.
61539         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61540
61541 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61544         If size is zero here, buf must be zero.
61545
61546 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61547
61548         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61549         <bruno@clisp.org>.
61550
61551 2007-03-18  Bruno Haible  <bruno@clisp.org>
61552
61553         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61554         Suggested by Eric Blake.
61555
61556 2007-03-18  Ben Pfaff  <blp@gnu.org>
61557
61558         * doc/relocatable.texi: Recommend using as prefix a directory
61559         that does not exist and will never be created.  Based on
61560         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61561         and others.
61562
61563 2007-03-17  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/fchownat.c: Include lchown.h.
61566
61567 2007-03-17  Bruno Haible  <bruno@clisp.org>
61568
61569         Fix endless loop when the given allocated size was > INT_MAX.
61570         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61571         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61572         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61573         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61574         * lib/sprintf.c (sprintf): Likewise.
61575
61576 2007-03-17  Bruno Haible  <bruno@clisp.org>
61577
61578         * tests/test-argp-2.sh (func_compare): Output a context diff.
61579
61580 2007-03-17  Bruno Haible  <bruno@clisp.org>
61581
61582         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61583         locale's decimal-point character.
61584
61585 2007-03-17  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61588         before comparing it. Needed because on some platforms (e.g. x86) a
61589         'long double' occupies less bytes than sizeof (long double).
61590
61591 2007-03-17  Bruno Haible  <bruno@clisp.org>
61592
61593         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61594         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61595         * tests/test-getaddrinfo.c (simple): Likewise.
61596         * tests/test-read-file.c (main): Likewise.
61597
61598 2007-03-17  Bruno Haible  <bruno@clisp.org>
61599
61600         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61601
61602 2007-03-17  Bruno Haible  <bruno@clisp.org>
61603
61604         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61605         unused variable.
61606
61607 2007-03-17  Bruno Haible  <bruno@clisp.org>
61608
61609         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61610         * tests/test-c-strncasecmp.c: Likewise.
61611
61612 2007-03-17  Bruno Haible  <bruno@clisp.org>
61613
61614         * modules/stdlib (Depends-on): Add unistd.
61615         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61616         Needed for MacOS X 10.3.
61617
61618 2007-03-17  Bruno Haible  <bruno@clisp.org>
61619
61620         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61621
61622 2007-03-17  Bruno Haible  <bruno@clisp.org>
61623
61624         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61625
61626 2007-03-17  Bruno Haible  <bruno@clisp.org>
61627
61628         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61629         to reflect files copied from gnulib (with or without modifications).
61630         Suggested by Jim Meyering.
61631
61632 2007-03-17  Eric Blake  <ebb9@byu.net>
61633
61634         * NEWS: Document stdlib change from 2007-02-18.
61635
61636 2007-03-17  Jim Meyering  <jim@meyering.net>
61637
61638         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61639         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61640         someone uses a name containing shell meta-characters.
61641         Reported by Alfred M. Szmidt.
61642
61643         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61644
61645 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61646
61647         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61648         and copy gettext configuration files only if configure.ac contains
61649         a use of AM_GNU_GETTEXT_VERSION.
61650
61651 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61652
61653         * build-aux/bootstrap (gnulib_name): New variable.
61654         (gnulib_tool_options): Use it.
61655
61656 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61657
61658         * tests/test-des.c: Use new namespace.
61659
61660 2007-03-15  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61663         Reported by James Youngman <jay@gnu.org>.
61664
61665 2007-03-15  Bruno Haible  <bruno@clisp.org>
61666
61667         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61668         declared prototype. Needed with cc on OSF/1 5.1.
61669
61670 2007-03-15  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61673         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61674         (struct gl_list_implementation): Add dispose_fn argument to the
61675         'create_empty', 'create' methods.
61676         (struct gl_list_impl_base): Add field 'dispose_fn'.
61677         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61678         argument.
61679         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61680         dispose_fn argument.
61681         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61682         dispose_fn on the dropped values.
61683         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61684         dispose_fn argument.
61685         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61686         dropped values.
61687         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61688         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61689         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61690         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61691         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61692         argument.
61693         (gl_tree_list_free): Call dispose_fn on the dropped values.
61694         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61695         the dropped values.
61696         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61697         Add dispose_fn argument.
61698         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61699         Call dispose_fn on the dropped values.
61700         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61701         Add dispose_fn argument.
61702         (gl_sublist_create): Initialize the 'dispose_fn' field.
61703         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61704         * tests/test-array_list.c (main): Update.
61705         * tests/test-carray_list.c (main): Update.
61706         * tests/test-avltree_list.c (main): Update.
61707         * tests/test-rbtree_list.c (main): Update.
61708         * tests/test-avltreehash_list.c (main): Update.
61709         * tests/test-rbtreehash_list.c (main): Update.
61710         * tests/test-linked_list.c (main): Update.
61711         * tests/test-linkedhash_list.c (main): Update.
61712         * tests/test-array_oset.c (main): Update.
61713
61714 2007-03-15  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61717         (gl_oset_create_empty): Add dispose_fn argument.
61718         (struct gl_oset_implementation): Add dispose_fn argument to
61719         'create_empty' method.
61720         (struct gl_oset_impl_base): Add dispose_fn field.
61721         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61722         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61723         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61724         values.
61725         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61726         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61727         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61728         dropped value.
61729         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61730         dropped value.
61731         * tests/test-array_oset.c (main): Update.
61732         * tests/test-avltree_oset.c (main): Update.
61733         * tests/test-rbtree_oset.c (main): Update.
61734         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61735
61736 2007-03-13  Bruno Haible  <bruno@clisp.org>
61737
61738         * tests/test-stdbool.c (i): Update after last patch.
61739
61740 2007-03-12  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61743         the iswprint macro. Needed on Solaris 2.5.1.
61744
61745 2007-03-12  Bruno Haible  <bruno@clisp.org>
61746
61747         * tests/test-printf-frexp.c (main): Declare x as volatile.
61748
61749 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61750
61751         * doc/gnulib.texi (Build robot for gnulib): New section.
61752
61753 2007-03-12  Jim Meyering  <jim@meyering.net>
61754
61755         * build-aux/bootstrap: New file.
61756         * build-aux/bootstrap.conf: New file, from coreutils.
61757
61758 2007-03-11  Bruno Haible  <bruno@clisp.org>
61759
61760         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61761
61762 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61763
61764         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61765         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61766         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61767
61768 2007-03-11  Bruno Haible  <bruno@clisp.org>
61769
61770         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61771         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61772
61773 2007-03-11  Bruno Haible  <bruno@clisp.org>
61774
61775         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61776         formula. Needed for SunPRO C 5.0.
61777
61778 2007-03-11  Bruno Haible  <bruno@clisp.org>
61779
61780         * modules/long-options (Depends-on): Add getopt.
61781
61782 2007-03-11  Bruno Haible  <bruno@clisp.org>
61783
61784         * modules/modechange (Depends-on): Add stdbool.
61785
61786 2007-03-11  Bruno Haible  <bruno@clisp.org>
61787
61788         * modules/i-ring (Depends-on): Add stdbool.
61789
61790 2007-03-11  Bruno Haible  <bruno@clisp.org>
61791
61792         * modules/gc-des (Depends-on): Add stdbool.
61793
61794 2007-03-11  Bruno Haible  <bruno@clisp.org>
61795
61796         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61797
61798 2007-03-11  Bruno Haible  <bruno@clisp.org>
61799
61800         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61801
61802 2007-03-11  Bruno Haible  <bruno@clisp.org>
61803
61804         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61805
61806 2007-03-11  Bruno Haible  <bruno@clisp.org>
61807
61808         * lib/vasnprintf.c (sprintf): Undefine.
61809
61810 2007-03-11  Bruno Haible  <bruno@clisp.org>
61811
61812         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61813         initializers in SunPRO C and Compaq C compilers.
61814
61815 2007-03-11  Bruno Haible  <bruno@clisp.org>
61816
61817         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61818         decrementing code ANSI C compliant.
61819
61820 2007-03-11  Bruno Haible  <bruno@clisp.org>
61821
61822         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61823         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61824
61825 2007-03-11  Bruno Haible  <bruno@clisp.org>
61826
61827         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61828         <stdbool.h> substitute doesn't pass.
61829
61830 2007-03-11  Bruno Haible  <bruno@clisp.org>
61831
61832         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61833
61834 2007-03-11  Bruno Haible  <bruno@clisp.org>
61835
61836         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61837         script, for submission to autobuild.josefsson.org.
61838
61839 2007-03-10  Bruno Haible  <bruno@clisp.org>
61840
61841         * modules/canonicalize-lgpl-tests: New file.
61842         * tests/test-canonicalize-lgpl.sh: New file.
61843         * tests/test-canonicalize-lgpl.c: New file.
61844
61845         * modules/c-strcase-tests: New file.
61846         * tests/test-c-strcase.sh: New file.
61847         * tests/test-c-strcasecmp.c: New file.
61848         * tests/test-c-strncasecmp.c: New file.
61849
61850         * modules/atexit-tests: New file.
61851         * tests/test-atexit.sh: New file.
61852         * tests/test-atexit.c: New file.
61853
61854 2007-03-10  Bruno Haible  <bruno@clisp.org>
61855
61856         * tests/test-binary-io.sh: Use temporary filenames that are not so
61857         likely to clash with those of other tests (in a parallel make).
61858         * tests/test-binary-io.c: Likewise.
61859
61860 2007-03-10  Bruno Haible  <bruno@clisp.org>
61861
61862         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61863         fallback; use #error instead.
61864         Suggested by Simon Josefsson.
61865
61866 2007-03-10  Bruno Haible  <bruno@clisp.org>
61867
61868         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61869         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61870         first and the last.
61871
61872 2007-03-10  Bruno Haible  <bruno@clisp.org>
61873
61874         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61875
61876 2007-03-10  Bruno Haible  <bruno@clisp.org>
61877
61878         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61879         "make distcheck".
61880         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61881         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61882         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61883
61884 2007-03-10  Bruno Haible  <bruno@clisp.org>
61885
61886         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61887         variable.
61888         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61889         variable.
61890
61891 2007-03-09  Eric Blake  <ebb9@byu.net>
61892         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61893
61894         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61895         types are not being provided by gnulib.
61896         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61897         types are supported.
61898
61899 2007-03-10  Bruno Haible  <bruno@clisp.org>
61900
61901         * lib/stdio_.h (__attribute__): New macro.
61902         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61903         vsprintf): Specify __attribute__ __format__ for GCC.
61904         Suggested by Eric Blake.
61905
61906 2007-03-09  Bruno Haible  <bruno@clisp.org>
61907
61908         * modules/printf-posix-tests: New file.
61909         * tests/test-printf-posix.sh: New file.
61910         * tests/test-printf-posix.c: New file.
61911
61912         * modules/printf-posix: New file.
61913         * lib/printf.c: New file.
61914         * m4/printf-posix-rpl.m4: New file.
61915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61916         REPLACE_PRINTF.
61917         * lib/stdio_.h (printf): New declaration.
61918         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61919         ____strfmon____): New macros.
61920         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61921         REPLACE_PRINTF.
61922
61923 2007-03-09  Bruno Haible  <bruno@clisp.org>
61924
61925         * tests/test-vasnprintf-posix2.sh: New file.
61926         * tests/test-vasnprintf-posix2.c: New file.
61927         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61928         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61929         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61930
61931         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61932         a locale dependent decimal point, rather than always '.'.
61933
61934 2007-03-09  Eric Blake  <ebb9@byu.net>
61935
61936         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61937         spite of platforms like Tandem/NSK that define it to -1.
61938
61939 2007-03-08  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/vprintf-posix-tests: New file.
61942         * tests/test-vprintf-posix.sh: New file.
61943         * tests/test-vprintf-posix.c: New file.
61944         * tests/test-printf-posix.h: New file.
61945
61946         * modules/vprintf-posix: New file.
61947         * lib/vprintf.c: New file.
61948         * m4/vprintf-posix.m4: New file.
61949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61950         REPLACE_VPRINTF.
61951         * lib/stdio_.h (vprintf): New declaration.
61952         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61953         REPLACE_VPRINTF.
61954
61955 2007-03-08  Bruno Haible  <bruno@clisp.org>
61956
61957         * modules/fprintf-posix-tests: New file.
61958         * tests/test-fprintf-posix.sh: New file.
61959         * tests/test-fprintf-posix.c: New file.
61960
61961         * modules/fprintf-posix: New file.
61962         * lib/fprintf.c: New file.
61963         * m4/fprintf-posix.m4: New file.
61964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61965         REPLACE_FPRINTF.
61966         * lib/stdio_.h (fprintf): New declaration.
61967         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61968         REPLACE_FPRINTF.
61969
61970 2007-03-08  Bruno Haible  <bruno@clisp.org>
61971
61972         * modules/vfprintf-posix-tests: New file.
61973         * tests/test-vfprintf-posix.sh: New file.
61974         * tests/test-vfprintf-posix.c: New file.
61975         * tests/test-fprintf-posix.h: New file.
61976         * tests/test-fprintf-posix.out: New file.
61977
61978         * modules/vfprintf-posix: New file.
61979         * lib/vfprintf.c: New file.
61980         * m4/vfprintf-posix.m4: New file.
61981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61982         REPLACE_VFPRINTF.
61983         * lib/stdio_.h (vfprintf): New declaration.
61984         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61985         REPLACE_VFPRINTF.
61986
61987 2007-03-08  Bruno Haible  <bruno@clisp.org>
61988
61989         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61990
61991 2007-03-08  Bruno Haible  <bruno@clisp.org>
61992
61993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61994         instead of 'expr' invocations.
61995         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62000         Suggested by Paul Eggert.
62001
62002 2007-03-08  Bruno Haible  <bruno@clisp.org>
62003
62004         * modules/fseterr-tests: New file.
62005         * tests/test-fseterr.c: New file.
62006
62007         * modules/fseterr: New file.
62008         * lib/fseterr.h: New file.
62009         * lib/fseterr.c: New file.
62010
62011 2007-03-08  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62014         * lib/getopt_.h: Likewise.
62015         * lib/mbswidth.h: Likewise.
62016         * lib/setenv.h: Likewise.
62017         * lib/vasnprintf.h: Likewise.
62018         * lib/vasprintf.h: Likewise.
62019         * lib/verror.h: Likewise.
62020         * lib/xsetenv.h: Likewise.
62021         * lib/xvasprintf.h: Likewise.
62022
62023 2007-03-08  Jim Meyering  <jim@meyering.net>
62024
62025         * users.txt: Add parted.
62026
62027         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62028
62029 2007-03-07  Bruno Haible  <bruno@clisp.org>
62030
62031         * m4/printf.m4: Make the shell script snippets copy&pastable.
62032
62033 2007-03-02  Bruno Haible  <bruno@clisp.org>
62034
62035         * lib/netinet_in_.h: New file.
62036         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62037         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62038         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62039         (Depends-on): Add absolute-header.
62040         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62041         into netinet/in.h.
62042
62043 2007-03-03  Bruno Haible  <bruno@clisp.org>
62044
62045         * lib/sys_select_.h: New file.
62046         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62047         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62048         * modules/sys_select (Files): Add lib/sys_select_.h.
62049         (Depends-on): Add absolute-header.
62050         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62051         into sys/select.h.
62052
62053 2007-03-02  Bruno Haible  <bruno@clisp.org>
62054
62055         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62056         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62057         values.
62058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62059         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62060         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62061         * modules/sys_socket (Depends-on): Add absolute-header.
62062         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62063         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62064         (Include): Remove requirement of inclusion of <sys/types.h>.
62065
62066 2007-03-02  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/byteswap_.h (bswap_32): Fix formula.
62069
62070 2007-03-06  Bruno Haible  <bruno@clisp.org>
62071
62072         * modules/sprintf-posix-tests: New file.
62073         * tests/test-sprintf-posix.c: New file.
62074
62075         * modules/sprintf-posix: New file.
62076         * lib/sprintf.c: New file.
62077         * m4/sprintf-posix.m4: New file.
62078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62079         REPLACE_SPRINTF.
62080         * lib/stdio_.h (sprintf): New declaration.
62081         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62082         REPLACE_SPRINTF.
62083
62084 2007-03-06  Bruno Haible  <bruno@clisp.org>
62085
62086         * modules/vsprintf-posix-tests: New file.
62087         * tests/test-vsprintf-posix.c: New file.
62088         * tests/test-sprintf-posix.h: New file.
62089
62090         * modules/vsprintf-posix: New file.
62091         * lib/vsprintf.c: New file.
62092         * m4/vsprintf-posix.m4: New file.
62093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62094         REPLACE_VSPRINTF.
62095         * lib/stdio_.h (vsprintf): New declaration.
62096         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62097         REPLACE_VSPRINTF.
62098
62099 2007-03-06  Bruno Haible  <bruno@clisp.org>
62100
62101         * modules/vsnprintf (Depend-on): Remove minmax.
62102
62103 2007-03-06  Bruno Haible  <bruno@clisp.org>
62104
62105         * modules/snprintf-posix-tests: New file.
62106         * tests/test-snprintf-posix.c: New file.
62107
62108         * modules/snprintf-posix: New file.
62109         * m4/snprintf-posix.m4: New file.
62110         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62111         gl_FUNC_SNPRINTF.
62112         (gl_FUNC_SNPRINTF): Invoke it.
62113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62114         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62115         is set.
62116         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62117
62118 2007-03-06  Bruno Haible  <bruno@clisp.org>
62119
62120         * modules/vsnprintf-posix-tests: New file.
62121         * tests/test-vsnprintf-posix.c: New file.
62122         * tests/test-snprintf-posix.h: New file.
62123
62124         * modules/vsnprintf-posix: New file.
62125         * m4/vsnprintf-posix.m4: New file.
62126         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62127         gl_FUNC_VSNPRINTF.
62128         (gl_FUNC_VSNPRINTF): Invoke it.
62129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62130         * lib/stdio_.h (vsnprintf): Define as a replacement if
62131         REPLACE_VSNPRINTF is set.
62132         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62133
62134 2007-03-06  Bruno Haible  <bruno@clisp.org>
62135
62136         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62137         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62138
62139 2007-03-06  Bruno Haible  <bruno@clisp.org>
62140
62141         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62142         (asinl): Declare also if HAVE_DECL_ASINL is set.
62143         (atanl): Declare also if HAVE_DECL_ATANL is set.
62144         (ceill): Declare also if HAVE_DECL_CEILL is set.
62145         (cosl): Declare also if HAVE_DECL_COSL is set.
62146         (expl): Declare also if HAVE_DECL_EXPL is set.
62147         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62148         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62149         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62150         (logl): Declare also if HAVE_DECL_LOGL is set.
62151         (sinl): Declare also if HAVE_DECL_SINL is set.
62152         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62153         (tanl): Declare also if HAVE_DECL_TANL is set.
62154         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62157         declaration of frexpl, ldexpl.
62158         * modules/printf-frexpl (Depends-on): Add math.
62159         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62160
62161 2007-03-05  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62164         frexpl and ldexpl are declared.
62165         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62166
62167 2007-03-05  Bruno Haible  <bruno@clisp.org>
62168
62169         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62170         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62171
62172 2007-03-05  Bruno Haible  <bruno@clisp.org>
62173
62174         * lib/stdio_.h: Include <stddef.h>.
62175
62176 2007-03-05  Bruno Haible  <bruno@clisp.org>
62177
62178         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62179
62180 2007-03-05  Bruno Haible  <bruno@clisp.org>
62181
62182         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62183         NetBSD 4, from Ralf Wildenhues.
62184
62185 2007-03-04  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/vasprintf.h: Update #if logic for the case when the functions
62188         exist but are overridden.
62189
62190 2007-03-04  Bruno Haible  <bruno@clisp.org>
62191
62192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62193         implementations: glibc-2.4 and MacOS X 10.3.
62194         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62195         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62196         * tests/test-vasprintf-posix.c (test_function): Likewise.
62197
62198 2007-03-04  Bruno Haible  <bruno@clisp.org>
62199
62200         * modules/vasprintf-posix-tests: New file.
62201         * tests/test-vasprintf-posix.c: New file.
62202
62203         * modules/vasprintf-posix: New file.
62204         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62205         defined.
62206         * m4/vasprintf-posix.m4: New file.
62207         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62208         gl_FUNC_VASPRINTF.
62209         (gl_FUNC_VASPRINTF): Invoke it.
62210         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62211         here.
62212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62213
62214 2007-03-04  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62217         REPLACE_GETTIMEOFDAY.
62218         * modules/sys_time (Makefile.am): Likewise.
62219         * m4/sys_time_h.m4: Likewise.
62220         * m4/gettimeofday.m4: Likewise.
62221
62222 2007-03-04  Bruno Haible  <bruno@clisp.org>
62223
62224         * modules/vasnprintf-posix-tests: New file.
62225         * tests/test-vasnprintf-posix.c: New file.
62226
62227         * modules/vasnprintf-posix: New file.
62228         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62229         printf-frexpl.h.
62230         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62231         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62232         REPLACE_VASNPRINTF is defined.
62233         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62234         gl_FUNC_VASNPRINTF.
62235         (gl_FUNC_VASNPRINTF): Invoke it.
62236         * m4/vasnprintf-posix.m4: New file.
62237         * m4/printf.m4: New file.
62238
62239 2007-03-04  Bruno Haible  <bruno@clisp.org>
62240
62241         Compile progreloc.c only if --enable-relocatable is specified.
62242         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62243         if --enable-relocatable was specified.
62244         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62245         lib_SOURCES.
62246
62247 2007-03-04  Jim Meyering  <jim@meyering.net>
62248
62249         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62250         Use it consistently, rather than enumerating errno constants.
62251
62252 2007-03-04  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/xvasprintf-tests: New file.
62255         * tests/test-xvasprintf.c: New file.
62256
62257         * modules/vasprintf-tests: New file.
62258         * tests/test-vasprintf.c: New file.
62259
62260         * modules/vasnprintf-tests: New file.
62261         * tests/test-vasnprintf.c: New file.
62262
62263         * modules/vsnprintf-tests: New file.
62264         * tests/test-vsnprintf.c: New file.
62265
62266         * modules/snprintf-tests: New file.
62267         * tests/test-snprintf.c: New file.
62268
62269 2007-03-04  Bruno Haible  <bruno@clisp.org>
62270
62271         Compile relocatable.c only if --enable-relocatable is specified.
62272         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62273         gl_RELOCATABLE_LIBRARY.
62274         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62275         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62276         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62277         gl_RELOCATABLE_LIBRARY.
62278         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62279         (Makefile.am): Remove lib_SOURCES.
62280         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62281         gl_RELOCATABLE_LIBRARY.
62282         (Makefile.am): Remove lib_SOURCES.
62283         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62284         always.
62285         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62286         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62287
62288 2007-03-04  Bruno Haible  <bruno@clisp.org>
62289
62290         * modules/argmatch-tests: New file.
62291         * tests/test-argmatch.c: New file.
62292
62293         * tests/test-allocsa.c (main): Halve the number of loop runs.
62294
62295         * modules/alloca-opt-tests: New file.
62296         * tests/test-alloca-opt.c: New file.
62297
62298 2007-03-04  Jim Meyering  <jim@meyering.net>
62299
62300         Work around difference between Linux ACLs and Solaris 10 ZFS.
62301         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62302         for EINVAL.
62303
62304 2007-03-03  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/relocatable-prog (Depends-on): Add back progreloc's
62307         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62308
62309 2007-03-03  Bruno Haible  <bruno@clisp.org>
62310
62311         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62312         * modules/relocatable-lib: New file.
62313
62314 2007-03-03  Bruno Haible  <bruno@clisp.org>
62315
62316         * modules/relocatable-prog: Renamed from modules/relocatable.
62317         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62318
62319 2007-03-03  Bruno Haible  <bruno@clisp.org>
62320
62321         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62322         m4/relocatable-lib.m4.
62323         (Depends-on): Remove 'relocatable'.
62324         (configure.ac): Add gl_RELOCATABLE_NOP.
62325
62326 2007-03-03  Bruno Haible  <bruno@clisp.org>
62327
62328         * modules/relocatable-prog-wrapper: New file.
62329         * modules/relocatable (Depends-on): Add it. Remove all other
62330         dependencies except progname.
62331         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62332
62333         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62334         (gl_FUNC_STRERROR): Nop.
62335         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62336
62337         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62338         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62339
62340         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62341         (gl_FUNC_READLINK): Update.
62342
62343         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62344
62345 2007-03-03  Bruno Haible  <bruno@clisp.org>
62346
62347         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62348         * modules/xreadlink (Depends-on): Add unistd.
62349         * modules/xreadlink-with-size (Depends-on): Likewise.
62350
62351 2007-03-03  Bruno Haible  <bruno@clisp.org>
62352
62353         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62354         extracted from gt_FUNC_SETENV.
62355         (gt_FUNC_SETENV): Remove macro.
62356         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62357         remove gt_FUNC_SETENV.
62358
62359 2007-03-03  Bruno Haible  <bruno@clisp.org>
62360
62361         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62362         ENABLE_RELOCATABLE here.
62363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62364
62365 2007-03-03  Bruno Haible  <bruno@clisp.org>
62366
62367         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62368         * tests/test-rbtreehash_list.c: Include progname.h.
62369         (main): Call set_program_name.
62370
62371         * modules/rbtree-oset-tests (Depends-on): Add progname.
62372         * tests/test-rbtree_oset.c: Include progname.h.
62373         (main): Call set_program_name.
62374
62375         * modules/rbtree-list-tests (Depends-on): Add progname.
62376         * tests/test-rbtree_list.c: Include progname.h.
62377         (main): Call set_program_name.
62378
62379         * modules/linked-list-tests (Depends-on): Add progname.
62380         * tests/test-linked_list.c: Include progname.h.
62381         (main): Call set_program_name.
62382
62383 2007-03-03  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62386         All uses of __restrict changed to _Restrict_.
62387         * lib/glob_.h (__restrict): Remove macro.
62388
62389 2007-03-02  Bruno Haible  <bruno@clisp.org>
62390
62391         * modules/gettext (configure.ac): Require gettext infrastructure
62392         from version 0.16.1.
62393
62394 2007-03-02  Bruno Haible  <bruno@clisp.org>
62395
62396         * modules/linkedhash-list-tests (Depends-on): Add progname.
62397         * tests/test-linkedhash_list.c: Include progname.h.
62398         (main): Call set_program_name.
62399
62400         * modules/carray-list-tests (Depends-on): Add progname.
62401         * tests/test-carray_list.c: Include progname.h.
62402         (main): Call set_program_name.
62403
62404         * modules/avltreehash-list-tests (Depends-on): Add progname.
62405         * tests/test-avltreehash_list.c: Include progname.h.
62406         (main): Call set_program_name.
62407
62408         * modules/avltree-oset-tests (Depends-on): Add progname.
62409         * tests/test-avltree_oset.c: Include progname.h.
62410         (main): Call set_program_name.
62411
62412         * modules/avltree-list-tests (Depends-on): Add progname.
62413         * tests/test-avltree_list.c: Include progname.h.
62414         (main): Call set_program_name.
62415
62416         * modules/array-oset-tests (Depends-on): Add progname.
62417         * tests/test-array_oset.c: Include progname.h.
62418         (main): Call set_program_name.
62419
62420         * modules/array-list-tests (Depends-on): Add progname.
62421         * tests/test-array_list.c: Include progname.h.
62422         (main): Call set_program_name.
62423
62424         * modules/argp-tests (Depends-on): Add progname.
62425         * tests/test-argp.c: Include argp.h first. Include progname.h.
62426         (main): Call set_program_name.
62427
62428 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62429
62430         * doc/gnulib-tool.texi (Initial import): Reword description of
62431         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62432         limited effect even if defined after the first system include.
62433
62434 2007-03-01  Bruno Haible  <bruno@clisp.org>
62435
62436         * build-aux/config.libpath: Update to libtool-1.5.22.
62437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62438
62439 2007-03-01  Bruno Haible  <bruno@clisp.org>
62440
62441         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62442         foo_CFLAGS.
62443         Reported by Ralf Wildenhues.
62444
62445 2007-03-01  Bruno Haible  <bruno@clisp.org>
62446
62447         * build-aux/install-reloc: Remove object files left over by some
62448         compilers.
62449         Reported by Ralf Wildenhues.
62450
62451 2007-03-01  Bruno Haible  <bruno@clisp.org>
62452
62453         * build-aux/install-reloc: Break long lines.
62454
62455 2007-03-01  Bruno Haible  <bruno@clisp.org>
62456
62457         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62458         Reported by Ralf Wildenhues.
62459
62460 2007-03-01  Bruno Haible  <bruno@clisp.org>
62461
62462         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62463         include ordering constraints.
62464
62465 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62466
62467         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62469         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62470         as another example.
62471         * lib/time_.h: Fix misspelling.
62472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62473         Require gl_HEADER_TIME_H_DEFAULTS.
62474         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62475         * m4/time_r.m4 (gl_TIME_R): Likewise.
62476         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62477
62478 2007-03-01  Bruno Haible  <bruno@clisp.org>
62479
62480         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62481         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62482
62483 2007-03-01  Jim Meyering  <jim@meyering.net>
62484
62485         * modules/xreadlink (Maintainer): Add my name.
62486         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62487
62488 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62489             Bruno Haible  <bruno@clisp.org>
62490
62491         * build-aux/install-reloc: Compile also c-ctype.c.
62492         * build-aux/relocatable.sh.in: New file.
62493         * doc/relocatable.texi: New file.
62494         * doc/relocatable-maint.texi: New file.
62495         * doc/gnulib.texi: Include relocatable-maint.texi.
62496         * lib/progreloc.c: Include unistd.h unconditionally.
62497         * lib/relocwrapper.c: Include unistd.h unconditionally.
62498         Include c-ctype.h.
62499         (add_dotbin): Use c_tolower.
62500         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62501         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62502         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62503         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62504         to m4/relocatable-lib.m4.
62505         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62506         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62507         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62508         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62509         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62510         * modules/relocatable: New file.
62511         * modules/relocatable-lib: New file.
62512         * modules/relocatable-script: New file.
62513
62514 2007-02-28  Bruno Haible  <bruno@clisp.org>
62515
62516         Import --enable-relocatable infrastructure.
62517         * build-aux/config.libpath: New file, from GNU gettext.
62518         * build-aux/install-reloc: New file, from GNU gettext.
62519         * build-aux/reloc-ldflags: New file, from GNU gettext.
62520         * lib/relocatable.h: New file, from GNU gettext.
62521         * lib/relocatable.c: New file, from GNU gettext.
62522         * lib/relocwrapper.c: New file, from GNU gettext.
62523         * m4/relocatable.m4: New file, from GNU gettext.
62524
62525 2007-02-28  Bruno Haible  <bruno@clisp.org>
62526
62527         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62528
62529         * modules/xreadlink: New file, from GNU gettext with modifications.
62530         * lib/xreadlink.c: New file, from GNU gettext.
62531         * lib/xreadlink.h: Add comments.
62532         (xreadlink): New declaration.
62533
62534         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62535         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62536         lib/xreadlink-with-size.c.
62537         (configure.ac): Remove gl_XREADLINK invocation.
62538         (Makefile.am): Augment lib_SOURCES.
62539         * m4/xreadlink.m4: Remove file.
62540         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62541         (xreadlink_with_size): Renamed from xreadink.
62542         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62543         * modules/canonicalize (Depends-on): Replace xreadlink with
62544         xreadlink-with-size.
62545         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62546
62547 2007-02-25  Jim Meyering  <jim@meyering.net>
62548
62549         * build-aux/announce-gen: When complaining about excess arguments,
62550         list them.
62551
62552 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62553
62554         * README: Document signed integer overflow situation more
62555         accurately.
62556
62557 2007-02-25  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62560         'a' or 'A' conversion.
62561
62562 2007-02-25  Bruno Haible  <bruno@clisp.org>
62563
62564         * modules/filename: Renamed from modules/pathname.
62565         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62566         lib/concatpath.c with lib/concat-filename.c.
62567         (Makefile.am): Update.
62568         (Include): Replace pathname.h with filename.h.
62569         * lib/filename.h: Renamed from lib/pathname.h.
62570         (concatenated_filename): Renamed from concatenated_pathname.
62571         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62572         (concatenated_filename): Renamed from concatenated_pathname.
62573         * lib/findprog.c: Include filename.h instead of pathname.h.
62574         (find_in_path): Update.
62575         * lib/javacomp.c: Include filename.h instead of pathname.h.
62576         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62577         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62578         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62579         is_oldgcj_14_13_usable, is_javac_usable): Update.
62580         * lib/javaexec.c: Include filename.h instead of pathname.h.
62581         (execute_java_class): Update.
62582         * modules/findprog: Update.
62583         * modules/javacomp: Update.
62584         * modules/javaexec: Update.
62585         * MODULES.html.sh (File system functions): Add 'filename', remove
62586         'pathname'.
62587
62588 2007-02-25  Bruno Haible  <bruno@clisp.org>
62589
62590         * modules/printf-frexpl-tests: New file.
62591         * tests/test-printf-frexpl.c: New file.
62592
62593         * modules/printf-frexpl: New file.
62594         * lib/printf-frexpl.h: New file.
62595         * lib/printf-frexpl.c: New file.
62596         * m4/printf-frexpl.m4: New file.
62597
62598 2007-02-25  Bruno Haible  <bruno@clisp.org>
62599
62600         * modules/printf-frexp-tests: New file.
62601         * tests/test-printf-frexp.c: New file.
62602
62603         * modules/printf-frexp: New file.
62604         * lib/printf-frexp.h: New file.
62605         * lib/printf-frexp.c: New file.
62606         * m4/printf-frexp.m4: New file.
62607
62608 2007-02-25  Bruno Haible  <bruno@clisp.org>
62609
62610         Assume automake >= 1.10 for the tests.
62611         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62612         * modules/arctwo-tests: Likewise.
62613         * modules/argp-tests: Likewise.
62614         * modules/avltree-list-tests: Likewise.
62615         * modules/avltree-oset-tests: Likewise.
62616         * modules/avltreehash-list-tests: Likewise.
62617         * modules/carray-list-tests: Likewise.
62618         * modules/crc-tests: Likewise.
62619         * modules/des-tests: Likewise.
62620         * modules/gc-arcfour-tests: Likewise.
62621         * modules/gc-arctwo-tests: Likewise.
62622         * modules/gc-des-tests: Likewise.
62623         * modules/gc-hmac-md5-tests: Likewise.
62624         * modules/gc-hmac-sha1-tests: Likewise.
62625         * modules/gc-md2-tests: Likewise.
62626         * modules/gc-md4-tests: Likewise.
62627         * modules/gc-md5-tests: Likewise.
62628         * modules/gc-pbkdf2-sha1-tests: Likewise.
62629         * modules/gc-rijndael-tests: Likewise.
62630         * modules/gc-sha1-tests: Likewise.
62631         * modules/gc-tests: Likewise.
62632         * modules/getaddrinfo-tests: Likewise.
62633         * modules/hmac-md5-tests: Likewise.
62634         * modules/hmac-sha1-tests: Likewise.
62635         * modules/linked-list-tests: Likewise.
62636         * modules/linkedhash-list-tests: Likewise.
62637         * modules/lock-tests: Likewise.
62638         * modules/md2-tests: Likewise.
62639         * modules/md4-tests: Likewise.
62640         * modules/md5-tests: Likewise.
62641         * modules/rbtree-list-tests: Likewise.
62642         * modules/rbtree-oset-tests: Likewise.
62643         * modules/rbtreehash-list-tests: Likewise.
62644         * modules/read-file-tests: Likewise.
62645         * modules/rijndael-tests: Likewise.
62646         * modules/stdint-tests: Likewise.
62647         * modules/tls-tests: Likewise.
62648
62649 2007-02-24  Bruno Haible  <bruno@clisp.org>
62650
62651         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62652         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62653         function; instead check whether isnan with a double argument links.
62654         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62655         function; instead check whether isnan with a 'long double' argument
62656         links.
62657         Reported by Eric Blake <ebb9@byu.net>.
62658
62659 2007-02-24  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62662         defined.
62663         * lib/isnanl.c: Remove all code. Just include isnan.c.
62664         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62665
62666 2007-02-25  Jim Meyering  <jim@meyering.net>
62667
62668         Avoid conflicting types for 'unsetenv' on FreeBSD.
62669         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62670         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62671         in stdlib.h.
62672
62673 2007-02-24  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/isnanl-nolibm-tests: New file.
62676         * tests/test-isnanl.c: New file.
62677
62678         * modules/isnanl-nolibm: New file.
62679         * lib/isnanl.h: New file.
62680         * lib/isnanl.c: New file.
62681         * m4/isnanl.m4: New file.
62682
62683 2007-02-24  Bruno Haible  <bruno@clisp.org>
62684
62685         * modules/isnan-nolibm-tests: New file.
62686         * tests/test-isnan.c: New file.
62687
62688         * modules/isnan-nolibm: New file.
62689         * lib/isnan.h: New file.
62690         * lib/isnan.c: New file.
62691         * m4/isnan.m4: New file.
62692
62693 2007-02-24  Bruno Haible  <bruno@clisp.org>
62694
62695         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62696         assume that an exponent fits in 20 bits.
62697
62698 2007-02-24  Jim Meyering  <jim@meyering.net>
62699
62700         * m4/regex.m4: Update the description of the configure-time option,
62701         --without-included-regex, to state accurately what the defaults are,
62702         and perhaps to give people an idea why using this option is risky.
62703
62704 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62707         loops on small arguments.  This attempts to avoid the problem
62708         Bruno Haible reported for AIX 4.3.2 in
62709         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62710
62711 2007-02-23  Bruno Haible  <bruno@clisp.org>
62712
62713         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62714         Needed for help2man.
62715
62716 2007-02-23  Karl Berry  <karl@gnu.org>
62717
62718         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62719         exists, foo.h should be cvs-ignored, not committed.
62720
62721 2007-02-23  Eric Blake  <ebb9@byu.net>
62722
62723         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62724         * lib/stat-time.h (includes): Likewise.
62725         * lib/utimecmp.c (includes): Likewise.
62726         * lib/utimens.h (includes): Likewise.
62727         * lib/getdate.y (includes): Also include "timespec.h" for use
62728         internal to the module.
62729         * modules/utimens (Depends-on): Revert yesterday's patch.
62730         * modules/nanosleep (Depends-on): Add missing dependency.
62731
62732 2007-02-22  Bruno Haible  <bruno@clisp.org>
62733
62734         * lib/glob.c: Don't include getlogin_r.h.
62735
62736 2007-02-22  Jim Meyering  <jim@meyering.net>
62737
62738         * modules/utimens (Depends-on): Add timespec, required for
62739         utimens.h's inclusion of timespec.h.
62740
62741 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62742
62743         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62744         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62745         Schwab in
62746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62747         I'll try to think of a better way to fix the Solaris problem.
62748
62749         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62750         like glibc; on Solaris 10, it fails with errno == EINVAL.
62751         POSIX says the behavior is unspecified if the first argument is NULL,
62752         so play it safe and never pass NULL to the system getcwd.
62753
62754 2007-02-21  Jim Meyering  <jim@meyering.net>
62755
62756         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62757         of gettimeofday.  It would conflict with the one now always
62758         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62759         an IRIX 6.5 build failure.
62760
62761 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62762
62763         Minor fixups to port to Solaris 10 with Sun C 5.8.
62764         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62765         * modules/getcwd (Depends-on): Add dirfd.
62766         * lib/putenv.c (putenv): #undef it.
62767         (rpl_putenv): New decl.
62768         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62769
62770 2007-02-20  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/stdio-tests: New file.
62773         * tests/test-stdio.c: New file.
62774
62775         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62776         (Depends-on): Add stdio.
62777         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62778         (Include): Use <stdio.h> instead of vsnprintf.h.
62779         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62780         HAVE_DECL_VSNPRINTF.
62781         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62782
62783         * modules/snprintf (Files): Remove lib/snprintf.h.
62784         (Depends-on): Add stdio.
62785         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62786         (Include): Use <stdio.h> instead of snprintf.h.
62787         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62788         HAVE_DECL_SNPRINTF.
62789         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62790         * lib/getaddrinfo.c: Likewise.
62791
62792         * modules/stdio: New file.
62793         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62794         * lib/snprintf.h: Remove file.
62795         * lib/vsnprintf.h: Remove file.
62796         * lib/.cppi-disable: Remove snprintf.h.
62797         * m4/stdio_h.m4: New file.
62798         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62799
62800 2007-02-20  Jim Meyering  <jim@meyering.net>
62801
62802         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62803         used by e.g., mingw.  From Bruno Haible.
62804
62805 2007-02-19  Bruno Haible  <bruno@clisp.org>
62806
62807         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62808         warnings.
62809         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62810
62811 2007-02-19  Bruno Haible  <bruno@clisp.org>
62812
62813         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62814         from mingw users.
62815
62816 2007-02-19  Bruno Haible  <bruno@clisp.org>
62817
62818         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62819         warnings.
62820         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62821
62822 2007-02-19  Jim Meyering  <jim@meyering.net>
62823
62824         Don't use FD after a successful "fdopendir (fd)".
62825         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62826         Reset it by calling dirfd on the just-obtained DIR*.
62827
62828         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62829         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62830
62831 2007-02-18  Bruno Haible  <bruno@clisp.org>
62832
62833         * lib/readlink.c: Include <unistd.h>.
62834         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62835         HAVE_READLINK.
62836         * modules/readlink (Depends-on): Add unistd.
62837         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62838         (Include): Add <unistd.h>.
62839
62840         * lib/getlogin_r.h: Remove file.
62841         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62842         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62843         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62844         HAVE_DECL_GETLOGIN_R.
62845         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62847         (Include): Use <unistd.h> instead of getlogin_r.h.
62848
62849         * lib/getcwd.h: Remove file.
62850         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62851         * lib/xgetcwd.c: Likewise.
62852         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62853         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62854         * modules/getcwd (Files): Remove lib/getcwd.h.
62855         (Depends-on): Add unistd.
62856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62857         (Include): Use <unistd.h> instad of getcwd.h.
62858
62859         * lib/ftruncate.c: Include <unistd.h> first.
62860         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62861         Set HAVE_FTRUNCATE.
62862         * modules/ftruncate (Depends-on): Add unistd.
62863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62864
62865         * lib/fchdir.c: Include <unistd.h> first.
62866         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62868         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62869         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62870         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62871
62872         * lib/dup2.c: Include <unistd.h> first.
62873         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62874         HAVE_DUP2.
62875         * modules/dup2 (Depends-on): Add unistd.
62876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62877
62878         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62879         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62880         REPLACE_CHOWN. Don't define chown as a macro here.
62881         * modules/chown (Depends-on): Add unistd.
62882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62883
62884         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62885         Add definition for GL_LINK_WARNING.
62886         (chown, dup2): New declarations.
62887         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62888         link warning.
62889         (ftruncate): New declaration.
62890         (getcwd): New declaration, taken from old getcwd.h.
62891         (getlogin_r): New declaration, taken from old getlogin_r.h.
62892         (readlink): New declaration.
62893         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62894         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62895         (gl_PREREQ_UNISTD): Remove macro.
62896         (gl_UNISTD_MODULE_INDICATOR): New macro.
62897         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62898         many new variables. Don't set UNISTD_H.
62899         * modules/unistd (Description): Change.
62900         (Depends-on): Add link-warning.
62901         (configure.ac): Update.
62902         (Makefile.am): Create unistd.h always. Substitute many new variables
62903         into it.
62904
62905 2007-02-18  Bruno Haible  <bruno@clisp.org>
62906
62907         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62908         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62909         HAVE_GETSUBOPT.
62910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62911         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62912         * lib/getsubopt.h: Remove file.
62913         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62914         (Depends-on): Add stdlib.
62915         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62916         (Includes): Use <stdlib.h> instead of getsubopt.h.
62917         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62918         Set HAVE_GETSUBOPT.
62919         * lib/getsubopt.c: Don't include getsubopt.h.
62920
62921 2007-02-18  Bruno Haible  <bruno@clisp.org>
62922
62923         * modules/fchdir (Depends-on): Add dup2.
62924
62925 2007-02-18  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/stdlib_.h: Handle glibc's special invocation convention
62928         specially.
62929
62930 2007-02-18  Bruno Haible  <bruno@clisp.org>
62931
62932         * modules/stdlib-tests: New file.
62933         * tests/test-stdlib.c: New file.
62934
62935         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62936         (Depends-on): Add stdlib.
62937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62938         (Includes): Use <stdlib.h> instead of mkstemp.h.
62939         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62940         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62941         * lib/mkstemp.c: Don't include mkstemp.h.
62942         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62943         * lib/stdlib--.h: Don't include mkstemp.h.
62944
62945         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62946         (Depends-on): Add stdlib.
62947         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62948         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62949         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62950         HAVE_MKDTEMP.
62951         * lib/mkdtemp.c: Don't include mkdtemp.h.
62952         * lib/clean-temp.c: Don't include mkdtemp.h.
62953
62954         * modules/exit (Files): Remove lib/exit.h.
62955         (Depends-on): Add stdlib.
62956         (Makefile.am): Remove lib_SOURCES.
62957         (Include): Use <stdlib.h> instead of exit.h.
62958         * lib/argmatch.c: Don't include exit.h.
62959         * lib/execute.c: Likewise.
62960         * lib/pagealign_alloc.c: Likewise.
62961         * lib/pipe.c: Likewise.
62962         * lib/wait-process.c: Likewise.
62963         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62964         * lib/exitfail.c: Likewise.
62965         * lib/savewd.c: Likewise.
62966         * lib/xsetenv.c: Likewise.
62967
62968         * modules/stdlib: New file.
62969         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62970         and extra comments about mkstemp().
62971         * lib/exit.h: Remove file.
62972         * lib/mkdtemp.h: Remove file.
62973         * lib/mkstemp.h: Remove file.
62974         * m4/stdlib_h.m4: New file.
62975         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62976
62977 2007-02-18  Bruno Haible  <bruno@clisp.org>
62978
62979         * modules/math-tests: New file.
62980         * tests/test-math.c: New file.
62981
62982         * modules/math: New file.
62983         * modules/mathl (Files): Remove lib/mathl.h.
62984         (Depends-on): Add math.
62985         (Makefile.am): Don't mention mathl.h.
62986         (Include): Use <math.h> instead of mathl.h.
62987         * lib/math_.h: New file.
62988         * lib/mathl.h: Remove file.
62989         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62990         mathl.h.
62991         * lib/asinl.c: Likewise.
62992         * lib/atanl.c: Likewise.
62993         * lib/ceill.c: Likewise.
62994         * lib/cosl.c: Likewise.
62995         * lib/expl.c: Likewise.
62996         * lib/floorl.c: Likewise.
62997         * lib/frexpl.c: Likewise.
62998         * lib/ldexpl.c: Likewise.
62999         * lib/logl.c: Likewise.
63000         * lib/sincosl.c: Likewise.
63001         * lib/sinl.c: Likewise.
63002         * lib/sqrtl.c: Likewise.
63003         * lib/tanl.c: Likewise.
63004         * lib/trigl.c: Likewise.
63005         * m4/math_h.m4: New file.
63006         * MODULES.html.sh (Mathematics): Add math.
63007
63008 2007-02-17  Bruno Haible  <bruno@clisp.org>
63009
63010         * modules/wctype-tests: New file.
63011         * tests/test-wctype.c: New file.
63012
63013         * modules/wchar-tests: New file.
63014         * tests/test-wchar.c: New file.
63015
63016         * modules/unistd-tests: New file.
63017         * tests/test-unistd.c: New file.
63018
63019         * modules/time-tests: New file.
63020         * tests/test-time.c: New file.
63021
63022         * modules/sysexits-tests: New file.
63023         * tests/test-sysexits.c: New file.
63024
63025         * modules/sys_time-tests: New file.
63026         * tests/test-sys_time.c: New file.
63027
63028         * modules/sys_stat-tests: New file.
63029         * tests/test-sys_stat.c: New file.
63030
63031         * modules/sys_socket-tests: New file.
63032         * tests/test-sys_socket.c: New file.
63033
63034         * modules/sys_select-tests: New file.
63035         * tests/test-sys_select.c: New file.
63036
63037         * modules/string-tests: New file.
63038         * tests/test-string.c: New file.
63039
63040         * modules/stdbool-tests: New file.
63041         * tests/test-stdbool.c: New file.
63042
63043         * modules/netinet_in-tests: New file.
63044         * tests/test-netinet_in.c: New file.
63045
63046         * modules/inttypes-tests: New file.
63047         * tests/test-inttypes.c: New file.
63048
63049         * modules/fcntl-tests: New file.
63050         * tests/test-fcntl.c: New file.
63051
63052         * modules/byteswap-tests: New file.
63053         * tests/test-byteswap.c: New file.
63054
63055         * modules/arpa_inet-tests: New file.
63056         * tests/test-arpa_inet.c: New file.
63057
63058 2007-02-17  Bruno Haible  <bruno@clisp.org>
63059
63060         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63061         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63062         if the corresponding module is not enabled. Emit link warnings if
63063         the function is used nevertheless.
63064         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63065         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63066         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63067         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63068         * modules/inttypes (Depends-on): Add link-warning.
63069         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63070         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63071         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63072         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63073         * modules/imaxdiv (configure.ac): Likewise.
63074         * modules/strtoimax (configure.ac): Likewise.
63075         * modules/strtoumax (configure.ac): Likewise.
63076
63077 2007-02-17  Bruno Haible  <bruno@clisp.org>
63078
63079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63080         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63081         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63082         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63083
63084 2007-02-17  Bruno Haible  <bruno@clisp.org>
63085
63086         * modules/link-warning: New file.
63087         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63088         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63089         * modules/string (Depends-on): Add link-warning.
63090         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63091         string.h.
63092         * MODULES.html.sh (Support for building libraries and executables): Add
63093         link-warning.
63094
63095 2007-02-17  Bruno Haible  <bruno@clisp.org>
63096
63097         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63098         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63099         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63100         long lines.
63101
63102 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63103             Bruno Haible  <bruno@clisp.org>
63104
63105         * modules/tmpfile: New file.
63106         * lib/tmpfile.c: New file.
63107         * m4/tmpfile.m4: New file.
63108         * MODULES.html.sh (func_all_modules): New section "Input/output".
63109
63110 2007-02-15  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63113         (supports_delete_on_close): New function.
63114         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63115
63116 2007-02-14  Bruno Haible  <bruno@clisp.org>
63117
63118         * modules/mbspcasecmp-tests: New file.
63119         * tests/test-mbspcasecmp.sh: New file.
63120         * tests/test-mbspcasecmp.c: New file.
63121
63122         New module mbspcasecmp.
63123         * modules/mbspcasecmp: New file.
63124         * lib/mbspcasecmp.c: New file.
63125         * lib/string_.h (strncasecmp): Change warning message.
63126         (mbspcasecmp): New declaration.
63127         * m4/mbspcasecmp.m4: New file.
63128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63129         GNULIB_MBSPCASECMP.
63130         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63131         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63132
63133 2007-02-14  Bruno Haible  <bruno@clisp.org>
63134
63135         * modules/mbsncasecmp-tests: New file.
63136         * tests/test-mbsncasecmp.sh: New file.
63137         * tests/test-mbsncasecmp.c: New file.
63138
63139         New module mbsncasecmp.
63140         * modules/mbsncasecmp: New file.
63141         * lib/mbsncasecmp.c: New file.
63142         * lib/string_.h (mbsncasecmp): New declaration.
63143         * m4/mbsncasecmp.m4: New file.
63144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63145         GNULIB_MBSNCASECMP.
63146         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63147         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63148
63149 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63150
63151         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63152         Verify that it doesn't overlap with our flags.
63153         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63154         do not have the desired effect in multibyte locales; instead, use
63155         mbscasecmp.
63156         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63157         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63158         we don't require GNU fnmatch ourselves (if our users require it, they
63159         should do so explicitly).
63160
63161         Fix regex code so it doesn't rely on strcasecmp.
63162         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63163         Otherwise, include gnulib's langinfo.h.
63164         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63165         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63166         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63167         * modules/regex (FILES): Remove m4/codeset.m4.
63168         (Depends-on): Add localcharset.  Remove strcase.
63169
63170 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63171
63172         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63173         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63174
63175 2007-02-13  Bruno Haible  <bruno@clisp.org>
63176
63177         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63179
63180 2007-02-12  Bruno Haible  <bruno@clisp.org>
63181
63182         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63183         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63184         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63185         time warning rather than a link error.
63186
63187 2007-02-12  Bruno Haible  <bruno@clisp.org>
63188
63189         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63190         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63192
63193 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63194
63195         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63196         args, not 2.
63197
63198 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         New module 'time', so that apps can include <time.h> as per
63201         POSIX and GNU instead of separate include files like time_r.h
63202         and timegm.h.  This implementation tries out a simpler approach
63203         for replacing decls in standard include files (as compared to
63204         the string module), somewhat as an experiment.
63205
63206         * config/srclist.txt: Comment out mktime.c for now.
63207         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63208         since it doesn't apply any more.  Use generic wording instead.
63209         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63210         'time'.
63211         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63212         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63213         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63214         Don't include <sys/types.h>; no longer needed since we assume C89.
63215         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63216         * lib/strftime.c: Likewise.
63217         * lib/time_r.c: Likewise.
63218         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63219         * lib/nanosleep.c: Include <time.h> first, to check interface.
63220         * lib/strptime.c: Likewise.
63221         * lib/time_r.c: Likewise.
63222         * lib/timegm.c: Likewise.
63223         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63224         needed.
63225         * lib/timegm.c: Don't include timegm.h; no longer needed.
63226         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63227         time.h now handles any problems in that area.
63228         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63229         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63230         that time.h defines struct timespec.
63231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63232         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63233         handles that.
63234         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63235         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63236         needed.  Set REPLACE_LOCALTIME.
63237         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63238         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63239         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63240         nanosleep; time_h.m4 now does that.  Don't require
63241         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63242         module handles this now.
63243         * modules/getdate (Depends-on): Remove timespec.  Add time.
63244         * modules/nanosleep (Depends-on): Likewise.
63245         * modules/stat-time (Depends-on): Likewise.
63246         * modules/nanosleep (Include): Include time.h, not timespec.h.
63247         * modules/strptime (Files): Remove lib/strptime.h.
63248         (Depends-on): Add extensions, time.
63249         (Include): Include time.h, not strptime.h.
63250         * modules/time_r (Files): Remove lib/time_r.h.
63251         (Depends-on): Add time.
63252         (Include): Include time.h, not time_r.h.
63253         * modules/timegm: Likewise.
63254         * modules/timespec (Description): Now does timespec-related decls
63255         of our own, instead of struct timespec itself.
63256         (Depends-on): Add time; remove extensions.
63257         (Maintainer): Add self.
63258         * modules/utimecmp (Depends-on): Add time; remove timespec.
63259         * modules/utimens (Depends-on): Likewise.
63260         * modules/xnanosleep (Depends-on): Likewise.
63261
63262 2007-02-11  Bruno Haible  <bruno@clisp.org>
63263
63264         * lib/c-strstr.c: Include allocsa.h.
63265         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63266         * lib/c-strcasestr.c: Include allocsa.h.
63267         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63268         * lib/strcasestr.c: Include allocsa.h.
63269         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63270         * lib/mbsstr.c: Include allocsa.h.
63271         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63272         allocsa/freesa instead of malloc/free.
63273         * lib/mbscasestr.c: Include allocsa.h.
63274         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63275         allocsa/freesa instead of malloc/free.
63276         * modules/c-strstr (Depends-on): Add allocsa.
63277         * modules/c-strcasestr (Depends-on): Likewise.
63278         * modules/strcasestr (Depends-on): Likewise.
63279         * modules/mbsstr (Depends-on): Likewise.
63280         * modules/mbscasestr (Depends-on): Likewise.
63281
63282 2007-02-11  Bruno Haible  <bruno@clisp.org>
63283
63284         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63285
63286         * modules/mbsspn-tests: New file.
63287         * tests/test-mbsspn.sh: New file.
63288         * tests/test-mbsspn.c: New file.
63289
63290 2007-02-11  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63293
63294         * modules/mbspbrk-tests: New file.
63295         * tests/test-mbspbrk.sh: New file.
63296         * tests/test-mbspbrk.c: New file.
63297
63298 2007-02-11  Bruno Haible  <bruno@clisp.org>
63299
63300         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63301         unneeded cast.
63302
63303         * modules/mbscspn-tests: New file.
63304         * tests/test-mbscspn.sh: New file.
63305         * tests/test-mbscspn.c: New file.
63306
63307 2007-02-11  Bruno Haible  <bruno@clisp.org>
63308
63309         * modules/mbscasecmp-tests: New file.
63310         * tests/test-mbscasecmp.sh: New file.
63311         * tests/test-mbscasecmp.c: New file.
63312
63313 2007-02-11  Bruno Haible  <bruno@clisp.org>
63314
63315         Ensure O(n) worst-case complexity of mbscasestr.
63316         * lib/mbscasestr.c: Include stdbool.h.
63317         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63318         functions.
63319         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63320         the bookkeeping indicates that it's worth it.
63321         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63322
63323         * modules/mbscasestr-tests: New file.
63324         * tests/test-mbscasestr1.c: New file.
63325         * tests/test-mbscasestr2.sh: New file.
63326         * tests/test-mbscasestr2.c: New file.
63327         * tests/test-mbscasestr3.sh: New file.
63328         * tests/test-mbscasestr3.c: New file.
63329         * tests/test-mbscasestr4.sh: New file.
63330         * tests/test-mbscasestr4.c: New file.
63331         * m4/locale-tr.m4: New file.
63332
63333 2007-02-11  Bruno Haible  <bruno@clisp.org>
63334
63335         Ensure O(n) worst-case complexity of mbsstr.
63336         * lib/mbsstr.c: Include stdbool.h.
63337         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63338         functions.
63339         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63340         bookkeeping indicates that it's worth it.
63341         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63342
63343         * modules/mbsstr-tests: New file.
63344         * tests/test-mbsstr1.c: New file.
63345         * tests/test-mbsstr2.sh: New file.
63346         * tests/test-mbsstr2.c: New file.
63347         * tests/test-mbsstr3.sh: New file.
63348         * tests/test-mbsstr3.c: New file.
63349         * m4/locale-fr.m4: New file.
63350
63351 2007-02-11  Bruno Haible  <bruno@clisp.org>
63352
63353         * lib/mbsrchr.c (mbsrchr): Fix bug.
63354
63355         * modules/mbsrchr-tests: New file.
63356         * tests/test-mbsrchr.sh: New file.
63357         * tests/test-mbsrchr.c: New file.
63358
63359 2007-02-11  Bruno Haible  <bruno@clisp.org>
63360
63361         * lib/mbschr.c (mbschr): Fix bug.
63362
63363         * modules/mbschr-tests: New file.
63364         * tests/test-mbschr.sh: New file.
63365         * tests/test-mbschr.c: New file.
63366         * m4/locale-zh.m4: New file.
63367
63368 2007-02-11  Bruno Haible  <bruno@clisp.org>
63369
63370         Support for copying multibyte string iterators.
63371         * lib/mbiter.h: Include <string.h>.
63372         (mbiter_multi_copy): New function.
63373         (mbi_copy): New macro.
63374         * lib/mbuiter.h: Include <string.h>.
63375         (mbuiter_multi_copy): New function.
63376         (mbui_copy): New macro.
63377
63378 2007-02-11  Bruno Haible  <bruno@clisp.org>
63379
63380         New module mbslen.
63381         * modules/mbslen: New file.
63382         * lib/mbslen.c: New file.
63383         * lib/string_.h (mbslen): New declaration.
63384         * m4/mbslen.m4: New file.
63385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63386         GNULIB_MBSLEN.
63387         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63388         * MODULES.html.sh (Internationalization functions): Add mbslen.
63389
63390 2007-02-11  Bruno Haible  <bruno@clisp.org>
63391
63392         Ensure O(n) worst-case complexity of strcasestr substitute.
63393         * lib/strcasestr.c: Include stdbool.h.
63394         (knuth_morris_pratt): New function.
63395         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63396         bookkeeping indicates that it's worth it.
63397         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63398
63399         * modules/strcasestr-tests: New file.
63400         * tests/test-strcasestr.c: New file.
63401
63402 2007-02-11  Bruno Haible  <bruno@clisp.org>
63403
63404         Ensure O(n) worst-case complexity of c_strcasestr.
63405         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63406         (knuth_morris_pratt): New function.
63407         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63408         the bookkeeping indicates that it's worth it.
63409         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63410
63411         * modules/c-strcasestr-tests: New file.
63412         * tests/test-c-strcasestr.c: New file.
63413
63414 2007-02-11  Bruno Haible  <bruno@clisp.org>
63415
63416         Ensure O(n) worst-case complexity of c_strstr.
63417         * lib/c-strstr.c: Include stdbool.h, string.h.
63418         (knuth_morris_pratt): New function.
63419         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63420         bookkeeping indicates that it's worth it.
63421         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63422
63423         * lib/c-strstr.c: Complete rewrite for maintainability.
63424
63425         * modules/c-strstr-tests: New file.
63426         * tests/test-c-strstr.c: New file.
63427
63428 2007-02-11  Bruno Haible  <bruno@clisp.org>
63429
63430         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63431         5.2.1 and earlier, whereby \055 was treated just like the range
63432         delimiter '-'.
63433         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63434
63435 2007-02-08  Bruno Haible  <bruno@clisp.org>
63436
63437         * modules/regex (Depends-on): Add stdbool.
63438         Reported by Dalibor Topic <robilad@kaffe.org>.
63439
63440 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63441
63442         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63443         Prefer returning from main to exiting from it.
63444         Remove unnecessary parens after sizeof.
63445
63446 2007-02-05  Bruno Haible  <bruno@clisp.org>
63447
63448         New module mbssep.
63449         * modules/mbssep: New file.
63450         * lib/mbssep.c: New file.
63451         * lib/string_.h (strsep): Add a conditional link warning.
63452         (mbssep): New declaration.
63453         * m4/mbssep.m4: New file.
63454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63455         GNULIB_MBSSEP.
63456         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63457         * MODULES.html.sh (Internationalization functions): Add mbssep.
63458
63459 2007-02-05  Bruno Haible  <bruno@clisp.org>
63460
63461         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63462         Optimize search in case of 1 delimiter.
63463
63464 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63465
63466         * lib/acl.h: Include sys/types.h before sys/acl.h.
63467
63468 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63469
63470         Merge upstream fix for glibc bugzilla #3957:
63471
63472         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63473
63474         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63475         bit for RE_HAT_LISTS_NOT_NEWLINE.
63476         (build_charclass_op): Remove bogus comment.
63477
63478 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63479
63480         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63481
63482 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63483
63484         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63485         * lib/memmem.c [!defined _LIBC]: Include config.h.
63486
63487 2007-02-04  Bruno Haible  <bruno@clisp.org>
63488
63489         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63490         warning message.
63491
63492 2007-02-04  Bruno Haible  <bruno@clisp.org>
63493
63494         New module mbstok_r.
63495         * modules/mbstok_r: New file.
63496         * lib/mbstok_r.c: New file.
63497         * lib/string_.h (strtok_r): Change argument names to match the
63498         comments. Add a conditional link warning.
63499         (mbstok_r): New declaration.
63500         * m4/mbstok_r.m4: New file.
63501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63502         GNULIB_MBSTOK_R.
63503         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63504         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63505
63506 2007-02-04  Bruno Haible  <bruno@clisp.org>
63507
63508         New module mbsspn.
63509         * modules/mbsspn: New file.
63510         * lib/mbsspn.c: New file.
63511         * lib/string_.h (strspn): Add a conditional link warning.
63512         (mbsspn): New declaration.
63513         * m4/mbsspn.m4: New file.
63514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63515         GNULIB_MBSSPN.
63516         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63517         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63518
63519 2007-02-04  Bruno Haible  <bruno@clisp.org>
63520
63521         New module mbspbrk.
63522         * modules/mbspbrk: New file.
63523         * lib/mbspbrk.c: New file.
63524         * lib/string_.h (strpbrk): Add a conditional link warning.
63525         (mbspbrk): New declaration.
63526         * m4/mbspbrk.m4: New file.
63527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63528         GNULIB_MBSPBRK.
63529         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63530         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63531
63532 2007-02-04  Bruno Haible  <bruno@clisp.org>
63533
63534         New module mbscspn.
63535         * modules/mbscspn: New file.
63536         * lib/mbscspn.c: New file.
63537         * lib/string_.h (strcspn): Add a conditional link warning.
63538         (mbscspn): New declaration.
63539         * m4/mbscspn.m4: New file.
63540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63541         GNULIB_MBSCSPN.
63542         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63543         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63544
63545 2007-02-04  Bruno Haible  <bruno@clisp.org>
63546
63547         New module mbscasestr, reduced goal of strcasestr.
63548         * modules/mbscasestr: New file.
63549         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63550         (mbscasestr): Renamed from strcasestr.
63551         * lib/strcasestr.c: Don't include mbuiter.h.
63552         (strcasestr): Remove support for multibyte locales.
63553         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63554         Change the conditional link warning.
63555         (mbscasestr): New declaration.
63556         * m4/mbscasestr.m4: New file.
63557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63558         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63559         REPLACE_STRCASESTR.
63560         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63562         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63563         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63564         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63565         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63566         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63567         (Depends-on): Remove mbuiter.
63568         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63569
63570 2007-02-04  Bruno Haible  <bruno@clisp.org>
63571
63572         Simplify handling of strncasecmp.
63573         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63574         the conditional link warning.
63575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63576         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63577         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63578         * modules/strcase (configure.ac): Don't invoke
63579         gl_STRING_MODULE_INDICATOR.
63580         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63581
63582 2007-02-04  Bruno Haible  <bruno@clisp.org>
63583
63584         New module mbscasecmp, reduced goal of strcasecmp.
63585         * modules/mbscasecmp: New file.
63586         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63587         (mbscasecmp): Renamed from strcasecmp.
63588         * lib/strcasecmp.c: Don't include mbuiter.h.
63589         (strcasecmp): Remove support for multibyte locales.
63590         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63591         Change the conditional link warning.
63592         (mbscasecmp): New declaration.
63593         * m4/mbscasecmp.m4: New file.
63594         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63595         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63596         REPLACE_STRCASECMP.
63597         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63598         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63599         GNULIB_MBSCASECMP.
63600         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63601         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63602         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63603         (Depends-on): Remove mbuiter.
63604         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63605
63606 2007-02-04  Bruno Haible  <bruno@clisp.org>
63607
63608         New module mbsstr. Remove module strstr.
63609         * modules/mbsstr: New file.
63610         * modules/strstr: Remove file.
63611         * lib/mbsstr.c: Renamed from lib/strstr.c.
63612         (mbsstr): Renamed from strstr.
63613         * lib/string_.h (strstr): Remove declaration. Change the conditional
63614         link warning.
63615         (mbsstr): New declaration.
63616         * m4/mbsstr.m4: New file.
63617         * m4/strstr.m4: Remove file.
63618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63619         REPLACE_STRSTR.
63620         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63621         Don't initialize GNULIB_STRSTR.
63622         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63623         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63624         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63625         (Support for systems lacking ANSI C 89): Remove strstr.
63626
63627 2007-02-04  Bruno Haible  <bruno@clisp.org>
63628
63629         New module mbsrchr.
63630         * modules/mbsrchr: New file.
63631         * lib/mbsrchr.c: New file.
63632         * lib/string_.h (strrchr): Add a conditional link warning.
63633         (mbsrchr): New declaration.
63634         * m4/mbsrchr.m4: New file.
63635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63636         GNULIB_MBSRCHR.
63637         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63638         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63639
63640 2007-02-04  Bruno Haible  <bruno@clisp.org>
63641
63642         New module mbschr.
63643         * modules/mbschr: New file.
63644         * lib/mbschr.c: New file.
63645         * lib/string_.h (strchr): Add a conditional link warning.
63646         (mbschr): New declaration.
63647         * m4/mbschr.m4: New file.
63648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63649         GNULIB_MBSCHR.
63650         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63651         * MODULES.html.sh (Internationalization functions): Add mbschr.
63652
63653 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63654
63655         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63656
63657         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63658
63659 2007-02-04  Bruno Haible  <bruno@clisp.org>
63660
63661         New module description section 'configure.ac-early'.
63662         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63663         (func_get_autoconf_early_snippet): New function.
63664         (func_import, func_create_testdir): Use it. Remove special cases for
63665         modules 'extensions' and 'lock'.
63666         * modules/extensions (configure.ac-early): Require
63667         gl_USE_SYSTEM_EXTENSIONS.
63668         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63669
63670 2007-02-04  Bruno Haible  <bruno@clisp.org>
63671
63672         Make use of gcj-4.3's -fsource and -ftarget option.
63673         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63674         and if so try the options -fsource and -ftarget.
63675         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63676         source_version, ftarget_option, target_version arguments.
63677         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63678         (is_envjavac_oldgcj_14_14_usable): Renamed from
63679         is_envjavac_gcj_14_14_usable.
63680         (is_envjavac_oldgcj_14_13_usable): Renamed from
63681         is_envjavac_gcj_14_13_usable.
63682         (is_gcj_present): Update.
63683         (is_gcj_43, is_gcj43_usable): New functions.
63684         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63685         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63686         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63687         try the options -fsource and -ftarget.
63688
63689 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63690
63691         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63692         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63693         larger value.
63694
63695 2007-02-03  Jim Meyering  <jim@meyering.net>
63696
63697         Give tools a better chance to allocate space for very large buffers.
63698         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63699
63700         Make pwd and readlink work also when run with an unreadable parent dir
63701         on systems with openat support.
63702         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63703         provided getcwd function, even when we have openat support.
63704         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63705
63706 2007-02-02  Bruno Haible  <bruno@clisp.org>
63707
63708         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63709         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63710         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63711         portability problems if one of these functions is only used on specific
63712         platforms.
63713         Reported by Paul Eggert.
63714
63715 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63716
63717         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63718         is causing more trouble than it's curing.
63719         * lib/regex_internal.h (__mempcpy): Remove.
63720         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63721         (and make the code a tad smaller to boot).
63722         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63723
63724 2007-02-02  Jim Meyering  <jim@meyering.net>
63725
63726         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63727         section, not in the Makefile.am: one.
63728
63729 2007-02-02  Eric Blake  <ebb9@byu.net>
63730
63731         * lib/strchrnul.c: Always include config.h first.
63732
63733         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63734         gnulib strstr is not necessary here.
63735
63736 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63737
63738         * m4/socklen.m4: Fix typo.
63739
63740 2007-02-02  Eric Blake  <ebb9@byu.net>
63741
63742         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63743         * modules/netinet_in (Makefile.am): Likewise.
63744
63745 2007-02-01  Bruno Haible  <bruno@clisp.org>
63746
63747         * lib/string_.h (GL_LINK_WARNING): New macro.
63748         (strcasecmp, strstr, strcasestr): If provided by the system,
63749         conditionally define as a macro that leads to a warning instead of to
63750         an error.
63751         (strncasecmp): Conditionally define as a macro that leads to a warning.
63752
63753 2007-02-01  Karl Berry  <karl@gnu.org>
63754
63755         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63756
63757 2007-02-01  Bruno Haible  <bruno@clisp.org>
63758
63759         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63760         renamings.
63761
63762 2007-02-01  Eric Blake  <ebb9@byu.net>
63763
63764         * modules/regex (Depends-on): Revert dependence on mempcpy.
63765         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63766         module's definition of mempcpy.
63767         Reported by Paul Eggert.
63768
63769 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63770
63771         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63772         the symbol XYZ before redefining it.  This fixes a problem with
63773         programs that don't use XYZ, when compiled on systems that define
63774         XYZ to something else.
63775
63776 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63777
63778         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63779         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63780         writeable to group or other and (2) is intended to have a special
63781         mode bit that is set or cleared.  In such a case, the directory
63782         should be neither group- nor other-writeable until the special
63783         mode bits are right.
63784
63785 2007-01-31  Eric Blake  <ebb9@byu.net>
63786
63787         * modules/mountlist (Depends-on): Add strstr.
63788
63789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63790         bug.
63791         * modules/string (Makefile.am): Remove redundant replacement.
63792         * modules/regex (Depends-on): Add mempcpy.
63793
63794 2007-01-31  Bruno Haible  <bruno@clisp.org>
63795
63796         New module description field 'Link'.
63797         * gnulib-tool (func_usage): Document --extract-link-directive.
63798         (sed_extract_prog): Recognize 'Link' directive.
63799         (func_get_link_directive): New function.
63800         (func_import): Show summary of link directives.
63801         Handle --extract-link-directive option.
63802         * modules/acl (Link): New section.
63803         * modules/clock-time (Link): New section.
63804         * modules/euidaccess (Link): New section.
63805         * modules/gettext (Link): New section.
63806         * modules/iconv (Link): New section.
63807         * modules/lock (Link): New section.
63808         * modules/nanosleep (Link): New section.
63809         * modules/readline (Link): New section.
63810
63811 2007-01-27  Bruno Haible  <bruno@clisp.org>
63812
63813         Enforce the use of gnulib modules for unportable <string.h> functions.
63814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63815         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63816         (gl_HEADER_STRING_H_BODY): Require it.
63817         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63818         the symbol XYZ to one that gives a link error.
63819         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63820         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63821         * modules/mempcpy (configure.ac): Likewise.
63822         * modules/memrchr (configure.ac): Likewise.
63823         * modules/stpcpy (configure.ac): Likewise.
63824         * modules/stpncpy (configure.ac): Likewise.
63825         * modules/strcase (configure.ac): Likewise.
63826         * modules/strcasestr (configure.ac): Likewise.
63827         * modules/strchrnul (configure.ac): Likewise.
63828         * modules/strdup (configure.ac): Likewise.
63829         * modules/strndup (configure.ac): Likewise.
63830         * modules/strnlen (configure.ac): Likewise.
63831         * modules/strpbrk (configure.ac): Likewise.
63832         * modules/strsep (configure.ac): Likewise.
63833         * modules/strstr (configure.ac): Likewise.
63834         * modules/strtok_r (configure.ac): Likewise.
63835
63836 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63837
63838         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63839
63840 2007-01-30  Jim Meyering  <jim@meyering.net>
63841
63842         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63843
63844 2007-01-29  Bruno Haible  <bruno@clisp.org>
63845
63846         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63847         * lib/execute.c: Likewise.
63848         * lib/pipe.c: Likewise.
63849         * lib/printf-args.h: Likewise.
63850         * lib/printf-args.c: Likewise.
63851         * lib/printf-parse.c: Likewise.
63852         * lib/vasnprintf.c: Likewise.
63853
63854 2007-01-29  Eric Blake  <ebb9@byu.net>
63855
63856         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63857         declaration.
63858
63859 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63860
63861         * lib/strptime.h (strptime): Use 'restrict' for args where
63862         POSIX requires this.
63863         * lib/strptime.c (strptime): Likewise.
63864         Change license notice from LGPL to GPL, since gnulib-tool will
63865         change this as needed.
63866         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63867         defined.
63868         Include "strptime.h" first, to check interface.
63869         Do not #undef _LIBC and _NL_CURRENT.
63870         Do not include <stdlib.h>; no longer needed.
63871         Include "time_r.h" and declare ptime_locale_status
63872         only if _LIBC is not defined.
63873         (__P): Remove unused macro.
63874         (match_string): Bring back glibc version, but use it only if _LIBC
63875         is defined.
63876         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63877         Remove unnecessary assertion and abort() call.
63878         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63879         * m4/strptime.m4: Fix serial number comment.
63880         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63881         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63882         (Depends-on): Add time_r.
63883
63884 2007-01-29  Bruno Haible  <bruno@clisp.org>
63885
63886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63887         strptime.
63888         * modules/strptime (Depends-on): Add stdbool.
63889         * lib/strptime.h: Include <time.h> always. Add comments.
63890
63891 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63892
63893         * modules/strptime: New file.
63894         * lib/strptime.h: New file.
63895         * lib/strptime.c: New file.
63896         * m4/strptime.m4: New file.
63897
63898 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63899
63900         * MODULES.html.sh: New module mpsort.
63901         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63902
63903         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63904         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63906         All uses changed.
63907         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63908         All uses changed.
63909         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63910         to _Restrict_.
63911         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63912         the parameter matches the prototype.
63913
63914 2007-01-28  Jim Meyering  <jim@meyering.net>
63915
63916         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63917         sys/time.h here, reverting that part of the previous patch:
63918         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63919
63920 2007-01-28  Bruno Haible  <bruno@clisp.org>
63921
63922         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63923         value of $(SYS_TIME_H).
63924         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63925         remove it conditionally, too. [added by Jim Meyering]
63926         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63927         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63928         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63929         GETTIMEOFDAY_REPLACEMENT to 1.
63930
63931 2007-01-28  Bruno Haible  <bruno@clisp.org>
63932
63933         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63934         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63936         Set UNISTD_H instead of UNISTD_H2.
63937         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63938
63939 2007-01-28  Bruno Haible  <bruno@clisp.org>
63940
63941         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63942         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63943
63944 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63945
63946         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63947         (func_create_testdir): Ensure C locale for `grep' and `tr'
63948         character ranges.
63949         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63950         ACLOCAL_AMFLAGS parsing state machine.
63951
63952 2007-01-27  Bruno Haible  <bruno@clisp.org>
63953
63954         * modules/unistr/base: Update.
63955
63956 2007-01-27  Bruno Haible  <bruno@clisp.org>
63957
63958         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63959         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63960         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63961         modules/unistr/u32-mbtouc.
63962         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63963         * lib/unistr.h: Update.
63964         * lib/linebreak.c: Update.
63965         * modules/unistr/u32-mbtouc: Renamed from
63966         modules/unistr/u32-mbtouc-safe.
63967         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63968         * lib/unistr.h: Update.
63969         * lib/unistr/u32-to-u8.c: Update.
63970         * lib/unistr/u32-to-u16.c: Update.
63971
63972 2007-01-27  Bruno Haible  <bruno@clisp.org>
63973
63974         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63975         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63976         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63977         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63978         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63979         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63980         modules/unistr/u16-mbtouc.
63981         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63982         * lib/unistr.h: Update.
63983         * lib/linebreak.c: Update.
63984         * modules/linebreak: Update.
63985         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63986         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63987         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63988         * modules/unistr/u16-mbtouc: Renamed from
63989         modules/unistr/u16-mbtouc-safe.
63990         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63991         * lib/unistr.h: Update.
63992         * lib/unistr/u16-to-u8.c: Update.
63993         * modules/unistr/u16-to-u8: Update.
63994         * lib/unistr/u16-to-u32.c: Update.
63995         * modules/unistr/u16-to-u32: Update.
63996
63997 2007-01-27  Bruno Haible  <bruno@clisp.org>
63998
63999         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64000         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64001         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64002         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64003         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64004         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64005         modules/unistr/u8-mbtouc.
64006         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64007         * lib/unistr.h: Update.
64008         * lib/striconveh.c: Update.
64009         * modules/striconveh: Update.
64010         * lib/linebreak.c: Update.
64011         * modules/linebreak: Update.
64012         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64013         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64014         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64015         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64016         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64017         * lib/unistr.h: Update.
64018         * lib/striconveh.c: Update.
64019         * modules/striconveh: Update.
64020         * lib/unistr/u8-to-u16.c: Update.
64021         * modules/unistr/u8-to-u16: Update.
64022         * lib/unistr/u8-to-u32.c: Update.
64023         * modules/unistr/u8-to-u32: Update.
64024
64025 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64026
64027         Sync from Libtool.
64028         * lib/argz.c: Do not include strings.h nor memory.h, include
64029         string.h unconditionally.  Patch by Simon Josefsson.
64030
64031 2007-01-27  Bruno Haible  <bruno@clisp.org>
64032
64033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64034         from gl_HEADER_STRING_H_BODY.
64035         (gl_HEADER_STRING_H_BODY): Require it.
64036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64037         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64038         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64039         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64040         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64041         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64043         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64044         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64045         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64046         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64047         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64048         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64049         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64050         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64051
64052 2007-01-27  Bruno Haible  <bruno@clisp.org>
64053
64054         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64055         check_PROGRAMS into noinst_PROGRAMS.
64056         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64057         check_PROGRAMS in this case.
64058         (func_import): Set for_test to false.
64059         (func_create_testdir): Set for_test to true.
64060
64061 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64062             Bruno Haible  <bruno@clisp.org>
64063
64064         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64065         (Depends-on): Add string.
64066         (Includes): Use <string.h> instead of strcasestr.h.
64067         * modules/string (Makefile.am): Also substitute the value of
64068         REPLACE_STRCASESTR.
64069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64070         assume strcasestr is declared in <string.h> not <strings.h>. Also
64071         set REPLACE_STRCASESTR.
64072         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64073         REPLACE_STRCASESTR.
64074         * lib/strcasestr.h: Remove file.
64075         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64076         * lib/string_.h (strcasestr): New declaration.
64077
64078 2007-01-27  Bruno Haible  <bruno@clisp.org>
64079
64080         * lib/string_.h: Use 'extern'.
64081
64082 2007-01-27  Jim Meyering  <jim@meyering.net>
64083
64084         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64085         of set-but-not-used local, "q".
64086
64087         * lib/mempcpy.c: Include <config.h> before <string.h>.
64088         This fixes a compilation error on HP-UX, due to the system's
64089         "restrict"-using mempcpy prototype.
64090
64091 2007-01-26  Bruno Haible  <bruno@clisp.org>
64092
64093         Small optimization.
64094         * lib/javacomp.c: Include c-strstr.h.
64095          (is_envjavac_gcj): Use c_strstr instead of strstr.
64096         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64097
64098 2007-01-26  Bruno Haible  <bruno@clisp.org>
64099
64100         * MODULES.html.sh (Unicode string functions): Add the new modules.
64101
64102         * modules/uniconv/u32-strconv-to-locale: New file.
64103         * lib/uniconv/u32-strconv-to-locale.c: New file.
64104
64105         * modules/uniconv/u16-strconv-to-locale: New file.
64106         * lib/uniconv/u16-strconv-to-locale.c: New file.
64107
64108         * modules/uniconv/u8-strconv-to-locale: New file.
64109         * lib/uniconv/u8-strconv-to-locale.c: New file.
64110
64111         * modules/uniconv/u32-strconv-from-locale: New file.
64112         * lib/uniconv/u32-strconv-from-locale.c: New file.
64113
64114         * modules/uniconv/u16-strconv-from-locale: New file.
64115         * lib/uniconv/u16-strconv-from-locale.c: New file.
64116
64117         * modules/uniconv/u8-strconv-from-locale: New file.
64118         * lib/uniconv/u8-strconv-from-locale.c: New file.
64119
64120         * modules/uniconv/u32-strconv-to-enc: New file.
64121         * lib/uniconv/u32-strconv-to-enc.c: New file.
64122         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64123         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64124
64125         * modules/uniconv/u16-strconv-to-enc: New file.
64126         * lib/uniconv/u16-strconv-to-enc.c: New file.
64127         * lib/uniconv/u-strconv-to-enc.h: New file.
64128         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64129         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64130
64131         * modules/uniconv/u8-strconv-to-enc: New file.
64132         * lib/uniconv/u8-strconv-to-enc.c: New file.
64133         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64134         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64135
64136         * modules/uniconv/u32-strconv-from-enc: New file.
64137         * lib/uniconv/u32-strconv-from-enc.c: New file.
64138         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64139         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64140
64141         * modules/uniconv/u16-strconv-from-enc: New file.
64142         * lib/uniconv/u16-strconv-from-enc.c: New file.
64143         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64144         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64145
64146         * modules/uniconv/u8-strconv-from-enc: New file.
64147         * lib/uniconv/u8-strconv-from-enc.c: New file.
64148         * lib/uniconv/u-strconv-from-enc.h: New file.
64149         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64150         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64151
64152         * modules/uniconv/u32-conv-from-enc: New file.
64153         * lib/uniconv/u32-conv-from-enc.c: New file.
64154         * modules/uniconv/u32-conv-from-enc-tests: New file.
64155         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64156
64157         * modules/uniconv/u16-conv-from-enc: New file.
64158         * lib/uniconv/u16-conv-from-enc.c: New file.
64159         * lib/uniconv/u-conv-from-enc.h: New file.
64160         * modules/uniconv/u16-conv-from-enc-tests: New file.
64161         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64162
64163         * modules/uniconv/u8-conv-from-enc: New file.
64164         * lib/uniconv/u8-conv-from-enc.c: New file.
64165         * modules/uniconv/u8-conv-from-enc-tests: New file.
64166         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64167
64168         * modules/uniconv/base: New file.
64169         * lib/uniconv.h: New file.
64170
64171 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64172
64173         * doc/gnulib-tool.texi (Initial import): Update to match current
64174         behavior with strdup module.
64175         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64176         * lib/memmem.h: Remove; all uses removed.  This is now done
64177         by <string.h>.
64178         * lib/mempcpy.h: Likewise.
64179         * lib/memrchr.h: Likewise.
64180         * lib/stpcpy.h: Likewise.
64181         * lib/stpncpy.h: Likewise.
64182         * lib/strcase.h: Likewise.
64183         * lib/strchrnul.h: Likewise.
64184         * lib/strdup.h: Likewise.
64185         * lib/strndup.h: Likewise.
64186         * lib/strnlen.h: Likewise.
64187         * lib/strpbrk.h: Likewise.
64188         * lib/strsep.h: Likewise.
64189         * lib/strstr.h: Likewise.
64190         * lib/strtok_r.h: Likewise.
64191         * lib/string_.h: New file.
64192         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64193         Rely on <string.h> instead.
64194         * lib/canon-host.c: Likewise.
64195         * lib/chdir-long.c: Likewise.
64196         * lib/concatpath.c: Likewise.
64197         * lib/exclude.c: Likewise.
64198         * lib/fchdir.c: Likewise.
64199         * lib/getaddrinfo.c: Likewise.
64200         * lib/getcwd.c: Likewise.
64201         * lib/getsubopt.c: Likewise.
64202         * lib/glob.c: Likewise.
64203         * lib/hard-locale.c: Likewise.
64204         * lib/iconvme.c: Likewise.
64205         * lib/javacomp.c: Likewise.
64206         * lib/mempcpy.c: Likewise.
64207         * lib/memrchr.c: Likewise.
64208         * lib/regex_internal.h: Likewise.
64209         * lib/stpncpy.c: Likewise.
64210         * lib/strcasecmp.c: Likewise.
64211         * lib/strchrnul.c: Likewise.
64212         * lib/strdup.c: Likewise.
64213         * lib/striconv.c: Likewise.
64214         * lib/striconveh.c: Likewise.
64215         * lib/striconveha.c: Likewise.
64216         * lib/strncasecmp.c: Likewise.
64217         * lib/strndup.c: Likewise.
64218         * lib/strnlen.c: Likewise.
64219         * lib/strsep.c: Likewise.
64220         * lib/strstr.c: Likewise.
64221         * lib/strtok_r.c: Likewise.
64222         * lib/userspec.c: Likewise.
64223         * lib/w32spawn.h: Likewise.
64224         * lib/xstrndup.c: Likewise.
64225         * lib/mountlist.c (strstr): Remove decl.
64226         * m4/string_h.m4: New file.
64227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64228         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64229         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64230         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64231         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64232         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64233         Set REPLACE_STRCASECMP if necessary.
64234         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64235         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64236         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64238         HAVE_DECL_STRDUP if necessary.
64239         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64240         since gl_FUNC_STRNDUP does that now.
64241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64242         Check for decl here...
64243         (gl_PREREQ_STRNLEN): ... not here.
64244         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64245         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64246         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64247         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64248         necessary.
64249         * modules/string: New file.
64250         * modules/memmem (Files): Remove special-purpose include file.
64251         (Depends-on): Add string.
64252         (Include): Include <string.h>, not the removed file.
64253         * modules/mempcpy: Likewise.
64254         * modules/memrchr: Likewise.
64255         * modules/stpcpy: Likewise.
64256         * modules/stpncpy: Likewise.
64257         * modules/strcase: Likewise.
64258         * modules/strchrnul: Likewise.
64259         * modules/strdup: Likewise.
64260         * modules/strndup: Likewise.
64261         * modules/strnlen: Likewise.
64262         * modules/strpbrk: Likewise.
64263         * modules/strsep: Likewise.
64264         * modules/strstr: Likewise.
64265         * modules/strtok_r: Likewise.
64266         * tests/test-dirname.c: Don't include "strdup.h", since
64267         <string.h> now suffices.
64268         * tests/test-memmem.c: Don't include "memmem.h", since
64269         <string.h> now suffices.
64270
64271 2007-01-25  Bruno Haible  <bruno@clisp.org>
64272
64273         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64274         *resultp is 0.
64275
64276         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64277         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64278         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64279         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64280
64281         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64282         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64283         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64284         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64285         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64286         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64287
64288 2007-01-24  Bruno Haible  <bruno@clisp.org>
64289
64290         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64291         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64292         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64293         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64294         gl_FUNC_FTS_CORE.
64295         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64296         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64297         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64298         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64299         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64300         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64301         gl_FUNC_FCHOWNAT.
64302         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64303         gl_FUNC_STRFTIME.
64304         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64305         Reported by Ralf Wildenhues.
64306
64307 2007-01-24  Bruno Haible  <bruno@clisp.org>
64308
64309         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64310         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64311         gl_GETADDRINFO.
64312         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64313         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64314         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64315
64316 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64319         Don't use 'exit'; just return from 'main'.
64320         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64321
64322         * lib/fnmatch_.h: Readjust white space and comments to match
64323         glibc, to avoid spurious diffs.
64324
64325 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64328         2004-12-01 change by Jakub Jelinek, since this code won't compile
64329         if !LIBC.  Problem reported by Bob Proulx.
64330
64331 2007-01-23  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/striconveh.c: Include c-strcaseeq.h.
64334         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64335         * modules/striconveh (Depends-on): Add c-strcaseeq.
64336
64337 2007-01-23  Bruno Haible  <bruno@clisp.org>
64338
64339         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64340
64341         * modules/c-strcaseeq: New file.
64342         * lib/c-strcaseeq.h: New file.
64343
64344         * modules/streq: New file.
64345         * lib/streq.h: New file.
64346
64347 2007-01-23  Bruno Haible  <bruno@clisp.org>
64348
64349         * modules/striconveha-tests: New file.
64350         * tests/test-striconveha.c: New file.
64351
64352         * lib/striconveha.h: Include <stdbool.h>.
64353         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64354         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64355         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64356         (mem_iconveha): New function.
64357         (str_iconveha_notranslit): Renamed from str_iconveha.
64358         (str_iconveha): New function.
64359         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64360         c-strcase.
64361
64362 2007-01-23  Bruno Haible  <bruno@clisp.org>
64363
64364         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64365         encodings without forgiving before trying any encoding with handler.
64366         (str_iconveha): Try all encodings without forgiving before trying any
64367         encoding with handler.
64368
64369 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         Import the following changes from libc.
64372
64373         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64374
64375         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64376
64377         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64378
64379         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64380         normal_bracket label.
64381
64382         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64383
64384         [BZ #361]
64385         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64386         to normal_bracket after fetching the next character.
64387
64388 2007-01-22  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64391         argument.
64392         * lib/striconveh.c (iconv_carefully_1): New function.
64393         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64394         argument.
64395         (str_cd_iconveh): Update.
64396         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64397         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64398         * tests/test-striconveh.c (MAGIC): New macro.
64399         (new_offsets): New function.
64400         (main): Test call with and without offsets.
64401
64402 2007-01-22  Bruno Haible  <bruno@clisp.org>
64403
64404         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64405         * modules/sys_select (Makefile.am): Likewise.
64406         * modules/sys_socket (Makefile.am): Likewise.
64407         * modules/sys_time (Makefile.am): Likewise.
64408
64409 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64410
64411         * modules/gettimeofday (License): Change from GPL to LGPL, since
64412         gettimeofday is a library function.
64413
64414 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64415
64416         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64417
64418 2007-01-21  Bruno Haible  <bruno@clisp.org>
64419
64420         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64421
64422 2007-01-21  Bruno Haible  <bruno@clisp.org>
64423
64424         * modules/striconveha: New file.
64425         * lib/striconveha.h: New file.
64426         * lib/striconveha.c: New file.
64427         * MODULES.html.sh (Internationalization functions): Add striconveha.
64428         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64429         string.
64430         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64431
64432 2007-01-21  Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64435         * lib/striconveh.c (str_iconveh): Likewise.
64436
64437 2007-01-21  Bruno Haible  <bruno@clisp.org>
64438
64439         * lib/striconveh.h (mem_iconveh): New declaration.
64440         * lib/striconveh.c (mem_iconveh): New function.
64441         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64442
64443 2007-01-21  Bruno Haible  <bruno@clisp.org>
64444
64445         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64446
64447         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64448         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64449         original result buffer.
64450         (str_cd_iconveh): Update.
64451         * tests/test-striconveh.c (main): Update.
64452
64453         * lib/striconv.h (mem_cd_iconv): Change specification.
64454         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64455         result buffer.
64456         (str_cd_iconv): Update.
64457         * tests/test-striconv.c (main): Update.
64458
64459 2007-01-21  Bruno Haible  <bruno@clisp.org>
64460
64461         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64462
64463 2007-01-20  Jim Meyering  <jim@meyering.net>
64464
64465         * lib/userspec.c (parse_with_separator): If a user or group string
64466         starts with "+", skip the corresponding name-to-ID look-up, since
64467         such a look-up must fail: user and group names may not include "+".
64468
64469 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64472         since we now assume the sys_time module.
64473         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64474         check for sys/time.h; no longer needed.
64475         * modules/poll (Depends-on): Depend on sys_time.
64476
64477 2007-01-18  Bruno Haible  <bruno@clisp.org>
64478
64479         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64480         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64481
64482         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64483         gettimeofday.
64484
64485         * tests/test-gettimeofday.c: Include <time.h>.
64486         (dummy): Remove variable.
64487
64488         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64489         gl_HEADER_SYS_TIME_H.
64490         (gl_HEADER_SYS_TIME_H): New macro.
64491
64492         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64493         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64495         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64496         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64497         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64498         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64499         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64500         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64501         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64502         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64503
64504         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64505         last change; it caused a compilation error when cross-compiling to
64506         Cygwin.
64507
64508 2007-01-18  Jim Meyering  <jim@meyering.net>
64509
64510         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64511         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64512         than the race-prone "test -d sys || mkdir sys".
64513         (configure.ac): Use AC_PROG_MKDIR_P.
64514         * modules/sys_select: Likewise.
64515         * modules/sys_socket: Likewise.
64516         * modules/sys_time: Likewise.
64517
64518 2007-01-18  Eric Blake  <ebb9@byu.net>
64519
64520         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64521         replace gettimeofday.
64522         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64523         name, to avoid infinite recursion.
64524
64525 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64526
64527         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64528         module sys_time.
64529         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64530         assume timespec.h defines struct timeval.
64531         * lib/settime.c: Likewise.
64532         * lib/utimens.c: Likewise.
64533         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64534         since we now assume the gettimeofday module.
64535         * lib/tempname.c (__gen_tempname): Likewise.
64536         * lib/gettimeofday.h: Remove.
64537         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64538         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64539         Include <time.h>, for 'time()'.
64540         (localtime_buffer_addr): Also use this workaround if
64541         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64542         to simplify the uses.  All uses changed.
64543         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64544         that #undef is inside {}, and 'const' follows type name consistently.
64545         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64546         (gettimeofday): Do not use the maximum possible value for
64547         tv->tv_usec, since that might break usages other than ls.c.
64548         Instead, we'll leave ls.c alone.  This undoes today's patch
64549         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64550         we've never observed the problem but might as well keep the
64551         canary.
64552         * lib/nanosleep.c: Include timespec.h first, for interface check.
64553         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64554         now assume the sys_time module.
64555         * lib/tempname.c: Likewise.
64556         * lib/timespec.h: Likewise.
64557         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64558         needed.
64559         * lib/strftime.c: Likewise.
64560         * lib/timespec.h: Likewise.
64561         * lib/posixtm.c: Include posixtm.h first, for interface check.
64562         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64563         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64564         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64565         * lib/sys_time_.h: New file.
64566         * lib/timespec.h (struct timespec): Use long int, not long.
64567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64568         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64569         Remove obsolescent call to AC_HEADER_TIME.
64570         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64572         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64573         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64574         Likewise.
64575         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64576         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64577         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64578         into the sys_time module.  Check for gettimeofday just once.
64579         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64580         for gettimeofday signature to just check the signature.  Merely
64581         compile it, since linking doesn't test signature.  Improve test for
64582         whether gettimeofday.o is actually needed.
64583         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64584         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64585         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64586         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64587         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64588         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64589         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64590         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64591         than worrying about sys/time.h.
64592         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64593         Don't bother worrying about TIME_WITH_SYS_TIME.
64594         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64595         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64596         * m4/sys_time_h.m4: New file.
64597         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64598         Don't include sys/time.h.  Return from main rather than exiting.
64599         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64600         all uses changed.
64601         * modules/gethrxtime (Depends-on): Add sys_time.
64602         * modules/gettime (Depends-on): Likewise.
64603         * modules/gettimeofday (Depends-on): Likewise.
64604         * modules/nanosleep (Depends-on): Likewise.
64605         * modules/settime (Depends-on): Likewise.
64606         * modules/tempname (Depends-on): Likewise.
64607         * modules/utimens (Depends-on): Likewise.
64608         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64609         (Include): Change back to <sys/time.h>.
64610         (Maintainer): Add self.
64611         * modules/sys_time: New file.
64612         * modules/tempname (Depends-on): Add gettimeofday.
64613         * tests/test-gettimeofday.c: Include <sys/time.h>
64614         rather than gettimeofday.h.
64615
64616 2007-01-17  Bruno Haible  <bruno@clisp.org>
64617
64618         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64619         the license default to GPL.
64620         (func_create_testdir): Don't complain if a module is LGPL and its
64621         tests module depends on GPLed modules.
64622
64623 2007-01-17  Bruno Haible  <bruno@clisp.org>
64624
64625         * lib/gettimeofday.c (gettimeofday): Add code for the case
64626         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64627         maximum possible value for tv->tv_usec, rather than the minimum one.
64628
64629 2005-10-08  Martin Lambers  <marlam@marlam.de>
64630 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64631 2007-01-16  Bruno Haible  <bruno@clisp.org>
64632
64633         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64634         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64635         gl_FUNC_GETTIMEOFDAY.
64636         (Include): Add gettimeofday.h.
64637         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64638         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64639         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64640         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64641         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64642         * lib/gettimeofday.h: New file.
64643         * lib/gettimeofday.c: Include <sys/timeb.h>.
64644         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64645         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64646         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64647         fall back on time().
64648
64649         * tests/test-gettimeofday.c: New file.
64650         * modules/gettimeofday-tests: New file.
64651
64652 2007-01-16  Eric Blake  <ebb9@byu.net>
64653
64654         * modules/fnmatch (Depends-on): Depend on wchar.
64655         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64656         * m4/fnmatch.m4: Likewise.
64657         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64658         * m4/mbchar.m4: Likewise.
64659         * modules/mbswidth (Depends-on): Depend on wchar.
64660         * lib/mbswidth.c: Assume <wchar.h>.
64661         * m4/mbswidth.m4: Likewise.
64662         * modules/quotearg (Depends-on): Depend on wchar.
64663         * lib/quotearg.c: Assume <wchar.h>.
64664         * m4/quotearg.m4: Likewise.
64665         * modules/regex (Depends-on): Depend on wchar.
64666         * lib/regex_internal.h: Assume <wchar.h>.
64667         * m4/regex.m4: Likewise.
64668         * modules/stdint (Depends-on): Depend on wchar.
64669         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64670         * m4/stdint.m4: Likewise.
64671         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64672         * modules/strftime (Depends-on): Depend on wchar.
64673         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64674         * modules/strtol (Depends-on): Depend on wchar.
64675         * lib/strtol.c: Assume <wchar.h>.
64676         * modules/wcwidth (Depends-on): Depend on wchar.
64677         * lib/wcwidth.h: Assume <wchar.h>.
64678         * m4/wcwidth.m4: Likewise.
64679
64680 2007-01-16  Bruno Haible  <bruno@clisp.org>
64681
64682         * modules/csharpexec-script: New, created from...
64683         * modules/csharpexec: ... this.
64684
64685 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64686
64687         * modules/javaexec-script: New, created from...
64688         * modules/javaexec: ... this.
64689
64690 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64691
64692         * modules/poll (Dependencies): Add sys_select.
64693
64694 2007-01-15  Jim Meyering  <jim@meyering.net>
64695
64696         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64697         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64698         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64699         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64700
64701 2007-01-15  Bruno Haible  <bruno@clisp.org>
64702
64703         * modules/striconveh: New file.
64704         * lib/striconveh.h: New file.
64705         * lib/striconveh.c: New file.
64706         * MODULES.html.sh (Internationalization functions): Add striconveh.
64707
64708         * modules/striconveh-tests: New file.
64709         * tests/test-striconveh.c: New file.
64710
64711 2007-01-15  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64714         not from GNU libiconv or GNU libc.
64715
64716 2007-01-15  Bruno Haible  <bruno@clisp.org>
64717
64718         * doc/gnulib-intro.texi (Copyright): Explain the different license
64719         terms for module descriptions, autoconf macros, tests, documentation.
64720
64721 2007-01-14  Bruno Haible  <bruno@clisp.org>
64722
64723         * modules/striconv-tests: New file.
64724         * tests/test-striconv.c: New file.
64725
64726 2007-01-14  Bruno Haible  <bruno@clisp.org>
64727
64728         * modules/iconv-tests: New file.
64729         * tests/test-iconv.c: New file.
64730
64731 2007-01-14  Bruno Haible  <bruno@clisp.org>
64732
64733         * gnulib-tool (func_get_license): For test modules, use the license of
64734         the main module.
64735
64736 2007-01-14  Bruno Haible  <bruno@clisp.org>
64737
64738         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64739         if iconv is found to exist.
64740
64741 2007-01-14  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/c-ctype-tests: New file.
64744         * tests/test-c-ctype.c: New file.
64745
64746 2007-01-14  Bruno Haible  <bruno@clisp.org>
64747
64748         * modules/binary-io-tests: New file.
64749         * tests/test-binary-io.sh: New file.
64750         * tests/test-binary-io.c: New file.
64751
64752 2007-01-14  Bruno Haible  <bruno@clisp.org>
64753
64754         * modules/array-oset-tests: New file.
64755         * tests/test-array_oset.c: New file.
64756
64757 2007-01-14  Bruno Haible  <bruno@clisp.org>
64758
64759         * modules/array-list-tests: New file.
64760         * tests/test-array_list.c: New file.
64761
64762 2007-01-14  Bruno Haible  <bruno@clisp.org>
64763
64764         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64765         and make.
64766         Reported by Simon Josefsson in
64767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64768
64769 2007-01-14  Bruno Haible  <bruno@clisp.org>
64770
64771         * modules/allocsa-tests: New file.
64772         * tests/test-allocsa.c: New file.
64773
64774 2007-01-14  Bruno Haible  <bruno@clisp.org>
64775
64776         * modules/fchdir (Depends-on): Add absolute-header.
64777         * modules/unistd (Depends-on): Likewise.
64778
64779 2006-12-30  Bruno Haible  <bruno@clisp.org>
64780
64781         * modules/fchdir: New file.
64782         * modules/unistd (Files): Add lib/unistd_.h.
64783         (Makefile.am): Generate unistd.h from unistd_.h.
64784         * lib/fchdir.c: New file.
64785         * lib/dirent_.h: New file.
64786         * lib/unistd_.h: New file.
64787         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64788         * m4/fchdir.m4: New file.
64789         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64790         (gl_HEADER_UNISTD): Invoke it.
64791         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64792         function.
64793         * lib/backupfile.c (opendir, closedir): Undefine.
64794         * lib/chown.c (open, close): Undefine.
64795         * lib/clean-temp.c (open, close): Undefine.
64796         * lib/copy-file.c (open, close): Undefine.
64797         * lib/execute.c (open, close): Undefine.
64798         * lib/fsusage.c (open, close): Undefine.
64799         * lib/gc-gnulib.c (open, close): Undefine.
64800         * lib/getcwd.c (opendir, closedir): Undefine.
64801         * lib/glob.c (opendir, closedir): Undefine.
64802         * lib/javacomp.c (open, close): Undefine.
64803         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64804         * lib/openat-proc.c (open, close): Undefine.
64805         * lib/pagealign_alloc.c (open, close): Undefine.
64806         * lib/pipe.c (open, close): Undefine.
64807         * lib/progreloc.c (open, close): Undefine.
64808         * lib/savedir.c (opendir, closedir): Undefine.
64809         * lib/utime.c (open, close): Undefine.
64810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64811
64812 2007-01-10  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64815
64816 2007-01-12  Eric Blake  <ebb9@byu.net>
64817
64818         Provide a robust <wchar.h>.  Further simplifications are now
64819         possible in other modules, but not included here.
64820         * modules/wchar: New module.
64821         * m4/wchar.m4: New file.
64822         * lib/wchar_.h: Likewise.
64823         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64824         of the new module.
64825         * MODULES.html.sh (Extended multibyte and wide character utilities):
64826         New section.
64827
64828 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64829
64830         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64831         to a reasonable default for memory allocation.
64832         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64833         file system that reports garbage st_size values for symlinks.
64834         Problem reported by Liyang Hu.
64835
64836 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64837
64838         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64839         Emacs .#* auto-save files).
64840
64841 2007-01-11  Bruno Haible  <bruno@clisp.org>
64842
64843         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64844         directory.
64845
64846 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         Use @...@ consistently in lib/wctype_.h.
64849         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64850         on it being set to 1 or 0.
64851         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64852         go back to AC_SUBSTing it.
64853         * modules/wctype (Makefile.am): Undo previous change.
64854
64855 2007-01-10  Eric Blake  <ebb9@byu.net>
64856
64857         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64858         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64859         * modules/wctype (Makefile.am): Likewise.
64860         Reported by Chris McGuire.
64861
64862 2007-01-10  Jim Meyering  <jim@meyering.net>
64863
64864         fts.c: a small readability/maintainability improvement
64865         * lib/fts.c (fts_read): Make this code slightly more readable and
64866         maintainable by hoisting the "sp->fts_cur = p" assignments to
64867         immediately follow the statements that set P.  Derived from
64868         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64869
64870 2007-01-10  Eric Blake  <ebb9@byu.net>
64871
64872         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64873         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64875         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64876         Reported by Chris McGuire.
64877
64878 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64879
64880         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64881         in sed script.
64882
64883 2007-01-09  Bruno Haible  <bruno@clisp.org>
64884
64885         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64886         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64887         variables.
64888         (func_module): Use them.
64889
64890 2007-01-09  Bruno Haible  <bruno@clisp.org>
64891
64892         * modules/unistr/base: New file.
64893         * lib/unistr.h: New file.
64894
64895         * modules/unistr/u8-to-u16: New file.
64896         * lib/unistr/u8-to-u16.c: New file.
64897
64898         * modules/unistr/u8-to-u32: New file.
64899         * lib/unistr/u8-to-u32.c: New file.
64900
64901         * modules/unistr/u16-to-u8: New file.
64902         * lib/unistr/u16-to-u8.c: New file.
64903
64904         * modules/unistr/u16-to-u32: New file.
64905         * lib/unistr/u16-to-u32.c: New file.
64906
64907         * modules/unistr/u32-to-u8: New file.
64908         * lib/unistr/u32-to-u8.c: New file.
64909
64910         * modules/unistr/u32-to-u16: New file.
64911         * lib/unistr/u32-to-u16.c: New file.
64912
64913         * modules/unistr/u8-check: New file.
64914         * modules/unistr/u16-check: New file.
64915         * modules/unistr/u32-check: New file.
64916         * lib/unistr/u8-check.c: New file.
64917         * lib/unistr/u16-check.c: New file.
64918         * lib/unistr/u32-check.c: New file.
64919
64920         * modules/unistr/u8-chr: New file.
64921         * modules/unistr/u16-chr: New file.
64922         * modules/unistr/u32-chr: New file.
64923         * lib/unistr/u8-chr.c: New file.
64924         * lib/unistr/u16-chr.c: New file.
64925         * lib/unistr/u32-chr.c: New file.
64926
64927         * modules/unistr/u8-cmp: New file.
64928         * modules/unistr/u16-cmp: New file.
64929         * modules/unistr/u32-cmp: New file.
64930         * lib/unistr/u8-cmp.c: New file.
64931         * lib/unistr/u16-cmp.c: New file.
64932         * lib/unistr/u32-cmp.c: New file.
64933
64934         * modules/unistr/u8-cpy: New file.
64935         * modules/unistr/u16-cpy: New file.
64936         * modules/unistr/u32-cpy: New file.
64937         * lib/unistr/u8-cpy.c: New file.
64938         * lib/unistr/u16-cpy.c: New file.
64939         * lib/unistr/u32-cpy.c: New file.
64940         * lib/unistr/u-cpy.h: New file.
64941
64942         * modules/unistr/u8-cpy-alloc: New file.
64943         * modules/unistr/u16-cpy-alloc: New file.
64944         * modules/unistr/u32-cpy-alloc: New file.
64945         * lib/unistr/u8-cpy-alloc.c: New file.
64946         * lib/unistr/u16-cpy-alloc.c: New file.
64947         * lib/unistr/u32-cpy-alloc.c: New file.
64948         * lib/unistr/u-cpy-alloc.h: New file.
64949
64950         * modules/unistr/u8-endswith: New file.
64951         * modules/unistr/u16-endswith: New file.
64952         * modules/unistr/u32-endswith: New file.
64953         * lib/unistr/u8-endswith.c: New file.
64954         * lib/unistr/u16-endswith.c: New file.
64955         * lib/unistr/u32-endswith.c: New file.
64956         * lib/unistr/u-endswith.h: New file.
64957
64958         * modules/unistr/u8-mblen: New file.
64959         * modules/unistr/u16-mblen: New file.
64960         * modules/unistr/u32-mblen: New file.
64961         * lib/unistr/u8-mblen.c: New file.
64962         * lib/unistr/u16-mblen.c: New file.
64963         * lib/unistr/u32-mblen.c: New file.
64964
64965         * modules/unistr/u8-mbtouc: New file.
64966         * modules/unistr/u16-mbtouc: New file.
64967         * modules/unistr/u32-mbtouc: New file.
64968         * lib/unistr/u8-mbtouc.c: New file.
64969         * lib/unistr/u16-mbtouc.c: New file.
64970         * lib/unistr/u32-mbtouc.c: New file.
64971
64972         * modules/unistr/u8-mbtouc-safe: New file.
64973         * modules/unistr/u16-mbtouc-safe: New file.
64974         * modules/unistr/u32-mbtouc-safe: New file.
64975         * lib/unistr/u8-mbtouc-safe.c: New file.
64976         * lib/unistr/u16-mbtouc-safe.c: New file.
64977         * lib/unistr/u32-mbtouc-safe.c: New file.
64978
64979         * modules/unistr/u8-move: New file.
64980         * modules/unistr/u16-move: New file.
64981         * modules/unistr/u32-move: New file.
64982         * lib/unistr/u8-move.c: New file.
64983         * lib/unistr/u16-move.c: New file.
64984         * lib/unistr/u32-move.c: New file.
64985         * lib/unistr/u-move.h: New file.
64986
64987         * modules/unistr/u8-next: New file.
64988         * modules/unistr/u16-next: New file.
64989         * modules/unistr/u32-next: New file.
64990         * lib/unistr/u8-next.c: New file.
64991         * lib/unistr/u16-next.c: New file.
64992         * lib/unistr/u32-next.c: New file.
64993
64994         * modules/unistr/u8-prev: New file.
64995         * modules/unistr/u16-prev: New file.
64996         * modules/unistr/u32-prev: New file.
64997         * lib/unistr/u8-prev.c: New file.
64998         * lib/unistr/u16-prev.c: New file.
64999         * lib/unistr/u32-prev.c: New file.
65000
65001         * modules/unistr/u8-set: New file.
65002         * modules/unistr/u16-set: New file.
65003         * modules/unistr/u32-set: New file.
65004         * lib/unistr/u8-set.c: New file.
65005         * lib/unistr/u16-set.c: New file.
65006         * lib/unistr/u32-set.c: New file.
65007         * lib/unistr/u-set.h: New file.
65008
65009         * modules/unistr/u8-startswith: New file.
65010         * modules/unistr/u16-startswith: New file.
65011         * modules/unistr/u32-startswith: New file.
65012         * lib/unistr/u8-startswith.c: New file.
65013         * lib/unistr/u16-startswith.c: New file.
65014         * lib/unistr/u32-startswith.c: New file.
65015         * lib/unistr/u-startswith.h: New file.
65016
65017         * modules/unistr/u8-stpcpy: New file.
65018         * modules/unistr/u16-stpcpy: New file.
65019         * modules/unistr/u32-stpcpy: New file.
65020         * lib/unistr/u8-stpcpy.c: New file.
65021         * lib/unistr/u16-stpcpy.c: New file.
65022         * lib/unistr/u32-stpcpy.c: New file.
65023         * lib/unistr/u-stpcpy.h: New file.
65024
65025         * modules/unistr/u8-stpncpy: New file.
65026         * modules/unistr/u16-stpncpy: New file.
65027         * modules/unistr/u32-stpncpy: New file.
65028         * lib/unistr/u8-stpncpy.c: New file.
65029         * lib/unistr/u16-stpncpy.c: New file.
65030         * lib/unistr/u32-stpncpy.c: New file.
65031         * lib/unistr/u-stpncpy.h: New file.
65032
65033         * modules/unistr/u8-strcat: New file.
65034         * modules/unistr/u16-strcat: New file.
65035         * modules/unistr/u32-strcat: New file.
65036         * lib/unistr/u8-strcat.c: New file.
65037         * lib/unistr/u16-strcat.c: New file.
65038         * lib/unistr/u32-strcat.c: New file.
65039         * lib/unistr/u-strcat.h: New file.
65040
65041         * modules/unistr/u8-strchr: New file.
65042         * modules/unistr/u16-strchr: New file.
65043         * modules/unistr/u32-strchr: New file.
65044         * lib/unistr/u8-strchr.c: New file.
65045         * lib/unistr/u16-strchr.c: New file.
65046         * lib/unistr/u32-strchr.c: New file.
65047
65048         * modules/unistr/u8-strcmp: New file.
65049         * modules/unistr/u16-strcmp: New file.
65050         * modules/unistr/u32-strcmp: New file.
65051         * lib/unistr/u8-strcmp.c: New file.
65052         * lib/unistr/u16-strcmp.c: New file.
65053         * lib/unistr/u32-strcmp.c: New file.
65054
65055         * modules/unistr/u8-strcpy: New file.
65056         * modules/unistr/u16-strcpy: New file.
65057         * modules/unistr/u32-strcpy: New file.
65058         * lib/unistr/u8-strcpy.c: New file.
65059         * lib/unistr/u16-strcpy.c: New file.
65060         * lib/unistr/u32-strcpy.c: New file.
65061         * lib/unistr/u-strcpy.h: New file.
65062
65063         * modules/unistr/u8-strcspn: New file.
65064         * modules/unistr/u16-strcspn: New file.
65065         * modules/unistr/u32-strcspn: New file.
65066         * lib/unistr/u8-strcspn.c: New file.
65067         * lib/unistr/u16-strcspn.c: New file.
65068         * lib/unistr/u32-strcspn.c: New file.
65069         * lib/unistr/u-strcspn.h: New file.
65070
65071         * modules/unistr/u8-strdup: New file.
65072         * modules/unistr/u16-strdup: New file.
65073         * modules/unistr/u32-strdup: New file.
65074         * lib/unistr/u8-strdup.c: New file.
65075         * lib/unistr/u16-strdup.c: New file.
65076         * lib/unistr/u32-strdup.c: New file.
65077         * lib/unistr/u-strdup.h: New file.
65078
65079         * modules/unistr/u8-strlen: New file.
65080         * modules/unistr/u16-strlen: New file.
65081         * modules/unistr/u32-strlen: New file.
65082         * lib/unistr/u8-strlen.c: New file.
65083         * lib/unistr/u16-strlen.c: New file.
65084         * lib/unistr/u32-strlen.c: New file.
65085         * lib/unistr/u-strlen.h: New file.
65086
65087         * modules/unistr/u8-strmblen: New file.
65088         * modules/unistr/u16-strmblen: New file.
65089         * modules/unistr/u32-strmblen: New file.
65090         * lib/unistr/u8-strmblen.c: New file.
65091         * lib/unistr/u16-strmblen.c: New file.
65092         * lib/unistr/u32-strmblen.c: New file.
65093
65094         * modules/unistr/u8-strmbtouc: New file.
65095         * modules/unistr/u16-strmbtouc: New file.
65096         * modules/unistr/u32-strmbtouc: New file.
65097         * lib/unistr/u8-strmbtouc.c: New file.
65098         * lib/unistr/u16-strmbtouc.c: New file.
65099         * lib/unistr/u32-strmbtouc.c: New file.
65100
65101         * modules/unistr/u8-strncat: New file.
65102         * modules/unistr/u16-strncat: New file.
65103         * modules/unistr/u32-strncat: New file.
65104         * lib/unistr/u8-strncat.c: New file.
65105         * lib/unistr/u16-strncat.c: New file.
65106         * lib/unistr/u32-strncat.c: New file.
65107         * lib/unistr/u-strncat.h: New file.
65108
65109         * modules/unistr/u8-strncmp: New file.
65110         * modules/unistr/u16-strncmp: New file.
65111         * modules/unistr/u32-strncmp: New file.
65112         * lib/unistr/u8-strncmp.c: New file.
65113         * lib/unistr/u16-strncmp.c: New file.
65114         * lib/unistr/u32-strncmp.c: New file.
65115
65116         * modules/unistr/u8-strncpy: New file.
65117         * modules/unistr/u16-strncpy: New file.
65118         * modules/unistr/u32-strncpy: New file.
65119         * lib/unistr/u8-strncpy.c: New file.
65120         * lib/unistr/u16-strncpy.c: New file.
65121         * lib/unistr/u32-strncpy.c: New file.
65122         * lib/unistr/u-strncpy.h: New file.
65123
65124         * modules/unistr/u8-strnlen: New file.
65125         * modules/unistr/u16-strnlen: New file.
65126         * modules/unistr/u32-strnlen: New file.
65127         * lib/unistr/u8-strnlen.c: New file.
65128         * lib/unistr/u16-strnlen.c: New file.
65129         * lib/unistr/u32-strnlen.c: New file.
65130         * lib/unistr/u-strnlen.h: New file.
65131
65132         * modules/unistr/u8-strpbrk: New file.
65133         * modules/unistr/u16-strpbrk: New file.
65134         * modules/unistr/u32-strpbrk: New file.
65135         * lib/unistr/u8-strpbrk.c: New file.
65136         * lib/unistr/u16-strpbrk.c: New file.
65137         * lib/unistr/u32-strpbrk.c: New file.
65138         * lib/unistr/u-strpbrk.h: New file.
65139
65140         * modules/unistr/u8-strrchr: New file.
65141         * modules/unistr/u16-strrchr: New file.
65142         * modules/unistr/u32-strrchr: New file.
65143         * lib/unistr/u8-strrchr.c: New file.
65144         * lib/unistr/u16-strrchr.c: New file.
65145         * lib/unistr/u32-strrchr.c: New file.
65146
65147         * modules/unistr/u8-strspn: New file.
65148         * modules/unistr/u16-strspn: New file.
65149         * modules/unistr/u32-strspn: New file.
65150         * lib/unistr/u8-strspn.c: New file.
65151         * lib/unistr/u16-strspn.c: New file.
65152         * lib/unistr/u32-strspn.c: New file.
65153         * lib/unistr/u-strspn.h: New file.
65154
65155         * modules/unistr/u8-strstr: New file.
65156         * modules/unistr/u16-strstr: New file.
65157         * modules/unistr/u32-strstr: New file.
65158         * lib/unistr/u8-strstr.c: New file.
65159         * lib/unistr/u16-strstr.c: New file.
65160         * lib/unistr/u32-strstr.c: New file.
65161         * lib/unistr/u-strstr.h: New file.
65162
65163         * modules/unistr/u8-strtok: New file.
65164         * modules/unistr/u16-strtok: New file.
65165         * modules/unistr/u32-strtok: New file.
65166         * lib/unistr/u8-strtok.c: New file.
65167         * lib/unistr/u16-strtok.c: New file.
65168         * lib/unistr/u32-strtok.c: New file.
65169         * lib/unistr/u-strtok.h: New file.
65170
65171         * modules/unistr/u8-uctomb: New file.
65172         * modules/unistr/u16-uctomb: New file.
65173         * modules/unistr/u32-uctomb: New file.
65174         * lib/unistr/u8-uctomb.c: New file.
65175         * lib/unistr/u16-uctomb.c: New file.
65176         * lib/unistr/u32-uctomb.c: New file.
65177
65178         * MODULES.html.sh (Unicode string functions): Add the new modules.
65179
65180 2007-01-08  Bruno Haible  <bruno@clisp.org>
65181
65182         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65183         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65184         subdirectories.
65185
65186 2007-01-08  Karl Berry  <karl@gnu.org>
65187
65188         * doc/error.texi: mention that main() fns must set program_name
65189         when progname is used.
65190
65191 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65192
65193         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65194         WCTYPE_H is empty, for the benefit of builds from non-distclean
65195         directories.  Problem reported by Eric Blake in
65196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65197
65198 2007-01-08  Bruno Haible  <bruno@clisp.org>
65199
65200         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65201         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65202         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65203         PROVIDE_CANONICALIZE_FILENAME_MODE.
65204         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65205
65206 2007-01-08  Bruno Haible  <bruno@clisp.org>
65207
65208         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65209         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65210         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65211         * lib/fts.c: Likewise.
65212         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65213
65214 2006-12-25  Bruno Haible  <bruno@clisp.org>
65215
65216         * modules/utf8-ucs4-safe: New file.
65217         * lib/utf8-ucs4-safe.h: New file.
65218         * lib/unistr/utf8-ucs4-safe.c: New file.
65219
65220         * modules/utf16-ucs4-safe: New file.
65221         * lib/utf16-ucs4-safe.h: New file.
65222         * lib/unistr/utf16-ucs4-safe.c: New file.
65223
65224         * MODULES.html.sh (Unicode string functions): Add the new modules.
65225
65226 2007-01-08  Bruno Haible  <bruno@clisp.org>
65227
65228         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65229         (Depends-on): Add unitypes.
65230         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65231         (u8_mbtouc_aux): Move out to separate file.
65232         (u8_mbtouc): Use ucs4_t, uint8_t types.
65233         * lib/unistr/utf8-ucs4.c: New file.
65234
65235         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65236         (Depends-on): Add unitypes.
65237         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65238         (u16_mbtouc_aux): Move out to separate file.
65239         (u16_mbtouc): Use ucs4_t, uint16_t types.
65240         * lib/unistr/utf16-ucs4.c: New file.
65241
65242         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65243         (Depends-on): Add unitypes.
65244         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65245         (u8_uctomb_aux): Move out to separate file.
65246         (u8_uctomb): Use ucs4_t, uint8_t types.
65247         * lib/unistr/ucs4-utf8.c: New file.
65248
65249         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65250         (Depends-on): Add unitypes.
65251         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65252         (u16_uctomb_aux): Move out to separate file.
65253         (u16_uctomb): Use ucs4_t, uint16_t types.
65254         * lib/unistr/ucs4-utf16.c: New file.
65255
65256 2006-12-25  Bruno Haible  <bruno@clisp.org>
65257
65258         * modules/unitypes: New file.
65259         * lib/unitypes.h: New file.
65260         * MODULES.html.sh (func_all_modules): New section "Unicode string
65261         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65262         this section. Add unitypes.
65263
65264 2007-01-08  Bruno Haible  <bruno@clisp.org>
65265
65266         Avoid variable names that conflict with those from libtool.
65267         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65268         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65269         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65270         library_names_spec to acl_library_names_spec, hardcode_* to
65271         acl_hardcode_*.
65272         Reported by Ralf Wildenhues.
65273
65274 2007-01-08  Bruno Haible  <bruno@clisp.org>
65275
65276         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65277         definition.
65278         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65279         definition.
65280         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65281         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65282         definition.
65283         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65284         definition.
65285         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65286         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65287         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65288         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65289         definition.
65290         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65291         definition.
65292         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65293         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65294         GC_USE_<algorithm>.
65295         * lib/gc-libgcrypt.c: Likewise.
65296         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65297         * modules/gc-arctwo (configure.ac): Likewise.
65298         * modules/gc-des (configure.ac): Likewise.
65299         * modules/gc-hmac-md5 (configure.ac): Likewise.
65300         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65301         * modules/gc-md2 (configure.ac): Likewise.
65302         * modules/gc-md4 (configure.ac): Likewise.
65303         * modules/gc-md5 (configure.ac): Likewise.
65304         * modules/gc-random (configure.ac): Likewise.
65305         * modules/gc-rijndael (configure.ac): Likewise.
65306         * modules/gc-sha1 (configure.ac): Likewise.
65307
65308 2007-01-08  Bruno Haible  <bruno@clisp.org>
65309
65310         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65311         macro definition.
65312         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65313         definition.
65314         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65315         definition.
65316         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65317         * modules/fcntl-safer (configure.ac): Likewise.
65318         * modules/fopen-safer (configure.ac): Likewise.
65319         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65320         GNULIB_FWRITEERROR macro definition.
65321
65322 2007-01-08  Bruno Haible  <bruno@clisp.org>
65323
65324         * m4/gnulib-common.m4: New file.
65325         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65326         (func_get_filelist): Add m4/gnulib-common.m4.
65327
65328 2007-01-08  Bruno Haible  <bruno@clisp.org>
65329
65330         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65331         command.
65332
65333 2007-01-08  Jim Meyering  <jim@meyering.net>
65334
65335         Use a more robust test for a "can't happen" condition.
65336         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65337         narrowed the st_size value.  Presuming the "can't happen" condition
65338         is true, that narrowing could conceivably convert an invalid st_size
65339         value into a valid one.  Instead, use a change based on Matthew
65340         Woehlke's original patch.
65341
65342         Slight readability improvement: use an assert-like macro
65343         in place of literal "abort ()" uses.
65344         * lib/fts.c (fts_assert): Define.
65345         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65346         Use this macro instead of a bare 'abort'.
65347
65348 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65349
65350         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65351         simply work around them.
65352         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65353         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65354         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65355         declaring.
65356         Don't bother to define as macros, since the standard doesn't require it.
65357         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65358         longer worry about IRIX 5.3.
65359         (HAVE_WCTYPE_CTMP_BUG): Remove.
65360
65361 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65364         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65365         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65366         Problems reported by Georg Schwarz for IRIX 5.3.
65367
65368         * gnulib-tool (autoconf_minversion): Take the maximum version number
65369         found, not the minimum.  Problem reported by James Youngman.
65370
65371 2007-01-03  Karl Berry  <karl@gnu.org>
65372
65373         * doc/error.texi: new file, explaining interaction with progname.
65374         * doc/gnulib.texi: include it.  Update copyright.
65375
65376 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65377
65378         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65379         AC_CANONICAL_HOST, to improve autobuild outputs.
65380
65381 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65382             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65383
65384         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65385         sockets, server sockets, and other file descriptors.  Count errors
65386         to compute the return value.  Reorder the code a bit to be easier
65387         to follow.  Don't set event bits that were not requested (except
65388         POLLERR and POLLHUP).
65389
65390 2007-01-01  Bruno Haible  <bruno@clisp.org>
65391
65392         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65393
65394 2007-01-03  Jim Meyering  <jim@meyering.net>
65395
65396         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65397
65398 2007-01-02  Bruno Haible  <bruno@clisp.org>
65399
65400         * modules/settime (Include): Require timespec.h.
65401         * modules/nanosleep (Include): Likewise.
65402
65403 2007-01-01  Bruno Haible  <bruno@clisp.org>
65404
65405         * gnulib-tool (func_emit_copyright_notice): Bump year.
65406         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65407
65408 2007-01-01  Bruno Haible  <bruno@clisp.org>
65409
65410         Improve support for OpenBSD.
65411         * build-aux/config.rpath (libname_spec): Export.
65412         (library_names_spec): New variable. Export.
65413         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65414         library_names_spec from the config.rpath output. Locate shared library
65415         through the name pattern in library_names_spec.
65416
65417 2007-01-01  Eric Blake  <ebb9@byu.net>
65418
65419         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65420
65421 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65422
65423         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65424         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65425         assume the C locale, and avoid an "eval" that could cause trouble.
65426         Problem with SORT reported by Bob Proulx.
65427
65428         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65429         Define.  Trivial patch from Henning Nielsen Lund, originally
65430         sent to bug-grep@gnu.org today.
65431
65432 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65435         struct stat.  Problem reported by Henning Nielsen Lund.
65436         * lib/acl.c: Include acl.h first, to check interface.  Don't
65437         bother to include sys/types.h and sys/stat.h again.
65438
65439 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         Import the following change from libc; problem reported by
65442         Sven Verdoolaege.
65443
65444         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65445
65446         [BZ #1373]
65447         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65448
65449 2006-12-28  Jim Meyering  <jim@meyering.net>
65450
65451         * build-aux/announce-gen: Do not assume that the package
65452         builds any of tar.gz, tar.bz2, and .xdelta files.
65453         Suggestion from Simon Josefsson.
65454
65455 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65456
65457         * modules/announce-gen: New file.
65458
65459 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65460
65461         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65462         handles its gotchas now.
65463         * lib/mbswidth.c: Likewise.
65464         * lib/wcwidth.h: Likewise.
65465         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65466         and iswcntrl; the wctype module does this stuff now.
65467         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65469         * modules/mbchar (Depends-on): Add wctype.
65470         * modules/mbswidth (Depends-on): Likewise.
65471         * modules/wcwidth (Depends-on): Likewise.
65472
65473 2006-12-27  Eric Blake  <ebb9@byu.net>
65474
65475         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65476         module uses more than what <wctype.h> is required to provide.
65477
65478 2006-12-26  Eric Blake  <ebb9@byu.net>
65479
65480         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65481
65482 2006-12-26  Eric Blake  <ebb9@byu.net>
65483
65484         * modules/absolute-header: New module.
65485         * modules/fcntl (Depends-on): Depend on it.
65486         * modules/inttypes (Depends-on): Likewise.
65487         * modules/stdint (Depends-on): Likewise.
65488         * modules/sys_stat (Depends-on): Likewise.
65489         * modules/wctype (Depends-on): Likewise.
65490         * MODULES.html.sh (Support for building libraries and
65491         executables): Document it.
65492
65493 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65494
65495         * gnulib-tool (SED): Remove, undoing previous change.
65496         The problem was that it broke coreutils on Solaris, because
65497         "sed --posix" leaked into a makefile.
65498         (sed): New alias, if 'alias' and GNU sed.
65499
65500 2006-12-24  Jim Meyering  <jim@meyering.net>
65501
65502         Work around an fchownat bug in glibc-2.4:
65503         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65504         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65505         in spite of the -P option.
65506         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65507         New macros.
65508         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65509         * modules/openat (Files): Add lib/fchownat.c.
65510         * lib/openat.c (fchownat): Don't define here.  Move to...
65511         * lib/fchownat.c: ...this new file.
65512
65513 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65514
65515         Fix bug reported by Bruno Haible in
65516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65517         where quotearg.c didn't compile on Mac OS X 10.2 because it
65518         lacks <wchar.h> and wint_t.
65519         * lib/wctype_.h (__wctype_wint_t): New type.
65520         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65521         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65522         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65523         Arg is now of type __wctype_wint_t, not wint_t.
65524         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65525         substitute HAVE_WINT_T.
65526         * modules/wctype (Files): Add m4/wint_t.m4.
65527         (wctype.h): Substitute HAVE_WINT_T.
65528
65529 2006-12-23  Bruno Haible  <bruno@clisp.org>
65530
65531         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65532
65533 2006-12-23  Bruno Haible  <bruno@clisp.org>
65534
65535         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65536         S_ISLNK.
65537         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65538         mingw.
65539
65540 2006-12-22  Bruno Haible  <bruno@clisp.org>
65541
65542         * lib/copy-file.c: Include acl.h.
65543         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65544         Close the file descriptors only after being done with copy_acl.
65545         * modules/copy-file (Depends-on): Add acl.
65546
65547 2006-12-22  Bruno Haible  <bruno@clisp.org>
65548
65549         * gnulib-tool (SED): New variable.
65550         Use $SED instead of sed everywhere.
65551
65552 2006-12-22  Bruno Haible  <bruno@clisp.org>
65553
65554         * modules/no-c++: New file.
65555         * m4/no-c++.m4: New file.
65556         * MODULES.html.sh (Support for building libraries and executables):
65557         Add no-c++.
65558
65559 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65560
65561         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65562         Include <limits.h>, and use its INT_MAX to rewrite the
65563         j loop so that it does not overflow 'int'.  Problem reported by
65564         Ralf Wildenhues in
65565         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65566         Play it safe by shifting left by 1 rather than multiplying by 2,
65567         as GCC is less likely to optimize this away when the value
65568         is signed (when it assumes overflow leads to undefined behavior).
65569         Also, don't assume time_t uses two's complement.
65570
65571 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65572
65573         * MODULES.html.sh: New module wctype.
65574         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65575         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65576         <wctype.h>, since the new wctype module should fix this.
65577         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65578         the wctype module should arrange for it.
65579         * lib/regex_internal.h: Likewise.
65580         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65581         since the wctype module should handle this now.
65582         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65583         * modules/fnmatch (Depends-on): Add wctype.
65584         * modules/quotearg (Depends-on): Likewise.
65585         * modules/regex (Depends-on): Likewise.
65586
65587 2006-12-19  Bruno Haible  <bruno@clisp.org>
65588
65589         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65590         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65591
65592 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65593
65594         * modules/savewd (Depends-on): Fix dependency on fcntl.
65595
65596 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65597
65598         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65599         conforms to C99, rather than relying on the user's environment
65600         setting of STDINT_H.
65601
65602 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65603         and Eric Blake  <ebb9@byu.net>
65604
65605         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65606         This is more consistent with the other defines here.
65607         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65608         Port to z/OS.  Problem reported by Paul Gilmartin.
65609         Change local vars to use gl_ prefix rather than ac_.
65610         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65611         with other defines.
65612         * modules/double-slash-root: New module.
65613         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65614         (Depends-on): Add double-slash-root.
65615         * MODULES.html.sh (File system functions): Mention new module.
65616
65617 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65620         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65621         This is for the benefit of gzip, which doesn't do i18n.
65622
65623 2006-12-12  Jim Meyering  <jim@meyering.net>
65624
65625         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65626         Reported by Andreas Schwab <schwab@suse.de>.
65627
65628 2006-12-12  Bruno Haible  <bruno@clisp.org>
65629
65630         Merge these changes.
65631         2006-09-05  Bruno Haible  <bruno@clisp.org>
65632         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65633         iconv_alloc succeeded.
65634         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65635         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65636         test for " && dest " at the end - dest is always != NULL there. Call
65637         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65638         with 2xNULL arguments, also to flush the state storage. Handle the
65639         IRIX iconv behaviour. Realloc the final result, to throw away unused
65640         memory.
65641
65642 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65643
65644         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65645         and fchmodat unconditionally, since glibc 2.4 has them.
65646         Problem reported by Arkadiusz Miskiewicz.
65647
65648 2006-12-10  Bruno Haible  <bruno@clisp.org>
65649
65650         * gnulib-tool (func_import): Show the include files only for those
65651         modules that are copied and specified.
65652         Reported by Karl Berry.
65653
65654 2006-12-08  Jim Meyering  <jim@meyering.net>
65655
65656         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65657         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65658
65659         * build-aux/announce-gen: Add two new options, both optional:
65660         --bootstrap-tools=TOOL_LIST
65661               a comma-separated list of tools, e.g.,
65662               autoconf,automake,bison,gnulib
65663         --gnulib-snapshot-date=DATE
65664               if gnulib is in the bootstrap tool list,
65665               then report this as the snapshot date.
65666               If not specified, use the current date/time.
65667               If you specify a date here, be sure it's UTC.
65668
65669 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65670
65671         * tests/test-argp-2.sh: Fix test to match actual output.
65672         (func_compare): Fix sed script to be portable.
65673
65674 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65675
65676         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65677         workaround for this case.  It is not autoconfigured now; offhand
65678         it's hard to see how to autoconfigure it.
65679
65680 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65683         a directory that is about to be chowned.  Such a directory's
65684         initial file permissions should permit the owner only and this
65685         should not be changed until after the chown, since the group and
65686         other bits would be incorrect if they granted permission before
65687         the chown.
65688
65689         Fix porting problem for iswctype reported by Georg Schwarz in:
65690         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65691         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65692         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65694         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65695
65696 2006-12-03  Jim Meyering  <jim@meyering.net>
65697
65698         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65699         p->fts_statp may not yet be defined.
65700         (fts_read): Instead, set it in the caller, once p->fts_statp is
65701         sure to be defined, and corresponds to a top-level directory.
65702         This bug made du -x fail.  Here's the coreutils test case:
65703         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65704         Reported by Mike Frysinger.
65705
65706 2006-12-01  Jim Meyering  <jim@meyering.net>
65707
65708         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65709         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65710         Reported by Simon Josefsson.
65711
65712 2006-11-30  Jim Meyering  <jim@meyering.net>
65713
65714         * m4/warning.m4: Use the all-permissive copyright notice
65715         recommended by RMS (rather than LGPL).
65716         * m4/vararrays.m4: Likewise.
65717         * m4/flexmember.m4: Likewise.
65718
65719 2006-11-29  Bruno Haible  <bruno@clisp.org>
65720
65721         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65722         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65723         using +=.
65724         Reported by Simon Josefsson <simon@josefsson.org>.
65725
65726 2006-11-28  James Youngman <jay@gnu.org>
65727
65728         * README: Advise users that they might find the bug-gnulib@gnu.org
65729         and autotools-announce@gnu.org mailing lists useful.
65730
65731 2006-11-28  Bruno Haible  <bruno@clisp.org>
65732
65733         * m4/ptrdiff_max.m4: Remove file.
65734
65735 2006-11-21  Bruno Haible  <bruno@clisp.org>
65736
65737         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65738         _AC_COMPUTE_INT.
65739         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65740         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65741         _AC_COMPUTE_INT.
65742         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65743         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65744         _AC_COMPUTE_INT.
65745         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65746
65747 2006-11-28  Jim Meyering  <jim@meyering.net>
65748
65749         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65750         warning from "gcc -Wshadow" about shadowing the builtin.
65751
65752 2006-11-27  Bruno Haible  <bruno@clisp.org>
65753
65754         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65755         _AC_COMPUTE_INT.
65756         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65757
65758 2006-11-27  Bruno Haible  <bruno@clisp.org>
65759             Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65762
65763 2006-11-26  Bruno Haible  <bruno@clisp.org>
65764
65765         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65766         noinst_LTLIBRARIES.
65767
65768 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65769             Bruno Haible  <bruno@clisp.org>
65770
65771         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65772         if compiling with "gcc -ansi".
65773
65774 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         Fix some incompatibilities with gcc -ansi -pedantic.
65777         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65778         if compiling pedantically with GCC, unless it's C99 or later.
65779         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65780         it mishandles gcc -ansi -pedantic as well.
65781         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65782         if gcc -pedantic.
65783         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65784         initializers for struct if -pedantic, unless it's C99 or later.
65785
65786 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65787
65788         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65789         Don't close an fd more than once. Identical atimes indicate
65790         success, not failure.
65791
65792 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65793
65794         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65795
65796 2006-11-23  Jim Meyering  <jim@meyering.net>
65797
65798         * build-aux/announce-gen: New file.  From coreutils.
65799
65800 2006-11-22  Jim Meyering  <jim@meyering.net>
65801
65802         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65803         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65804         (fts_read): Use a temporary to narrow the overused st_size member
65805         before using it in a switch statement.  Reported by Matthew Woehlke.
65806
65807         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65808         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65809
65810 2006-11-20  Bruno Haible  <bruno@clisp.org>
65811
65812         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65813         changequote instead of pairs of brackets.
65814         Reported by Andreas Schwab <schwab@suse.de>.
65815
65816 2006-11-21  Jim Meyering  <jim@meyering.net>
65817
65818         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65819         so as to remain compatible with older compilers.
65820         Patch from Michael Deutschmann.
65821
65822 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         * MODULES.html.sh (File system functions): Add openat.
65825
65826         * lib/openat.h (rpl_fstatat): New macro, if
65827         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65828         (fstatat): Define to rpl_fstatat under the same conditions,
65829         unless COMPILING_FSTATAT.
65830         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65831         seems to have the bug.
65832         * lib/fstatat.c: New file.
65833         * modules/openat (Files): Add it.
65834
65835 2006-11-20  Bruno Haible  <bruno@clisp.org>
65836
65837         * Makefile: New file.
65838
65839 2006-11-20  Jim Meyering  <jim@meyering.net>
65840
65841         The beginnings of syntax-related checks for gnulib.
65842         * lib/Makefile: New file.
65843         * lib/t-idcache: New script.  Ensure that the two halves of
65844         idcache.c stay in sync.
65845
65846         * lib/idcache.c: Adjust comments in user- and group- portions to
65847         be more accurate, and to be consistent with one another.
65848
65849 2006-11-20  Jim Meyering  <jim@meyering.net>
65850
65851         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65852         continue using the flexible array member (thus, this module performs
65853         half as many malloc calls), with the addition that...
65854         (getgroup, getuser): Consistently record a non-match via an empty
65855         "name" string, and map an empty string match to a NULL return value.
65856         * modules/idcache (Depends-on): Re-add flexmember.
65857
65858         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65859         (getuidbyname, getgroup, getgidbyname): Likewise.
65860
65861         Use cleaner syntax: NULL rather than 0.
65862         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65863
65864 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65865
65866         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65867         It mishandled the case where the group was missing.
65868         Problem reported by Greg Schafer.
65869         * modules/idcache: Likewise.
65870
65871 2006-11-18  Jim Meyering  <jim@meyering.net>
65872
65873         * check-module (%exempt_header): Add exception for some
65874         conditionally-included headers.
65875
65876         * modules/i-ring (Depends-on): Add verify.
65877         (License): Change to LGPL.
65878
65879 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65882         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65883         and inttostr.h.  Use snprintf rather than uinttostr, so that
65884         LGPLed code doesn't depend on GPLed.
65885
65886 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65887
65888         * modules/inline (License): Change from GPL to LGPL.
65889
65890 2006-11-17  Jim Meyering  <jim@meyering.net>
65891
65892         * modules/d-type (License): Switch to LGPL.
65893
65894 2006-11-15  Bruno Haible  <bruno@clisp.org>
65895
65896         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65897
65898 2006-11-15  Eric Blake  <ebb9@byu.net>
65899
65900         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65901         the module dependency.
65902
65903 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65904             Bruno Haible  <bruno@clisp.org>
65905
65906         * gnulib-tool (func_create_testdir): Add license consistency check.
65907
65908 2006-11-15  Eric Blake  <ebb9@byu.net>
65909
65910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65911         random "(cached)" in configure output.
65912
65913 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65914
65915         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65916         test for conforming inttypes.h is both announced and cached.
65917
65918         * MODULES.html.sh (seen_modules, seen_files): New variables.
65919         (func_module): Rewrite to use a few less gnulib-tool and sed
65920         invocations.  Avoid a couple of quadratic algorithms for ...
65921         (missed_modules, missed_files): ... these, with ...
65922         (func_append, func_tmpdir): ... these new functions, from
65923         gnulib-tool.  Analogously, install traps for cleanup.
65924
65925         * tests/test-gc.c (main): Remove unused variables.
65926         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65927
65928 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * modules/inttostr (License): Change to LGPL.
65931
65932 2006-11-14  Eric Blake  <ebb9@byu.net>
65933
65934         * modules/tempname (License): Change to LGPL.
65935
65936 2006-11-14  Eric Blake  <ebb9@byu.net>
65937
65938         * doc/functions.texi (Function Portability): *printf functions on
65939         Cygwin now understand all POSIX size specifiers.
65940
65941 2006-11-14  Bruno Haible  <bruno@clisp.org>
65942
65943         * modules/c-ctype (License): Change to LGPL.
65944
65945 2006-11-12  Bruno Haible  <bruno@clisp.org>
65946
65947         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65948         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65949         for GNOME libraries, for which the include files are installed in
65950         subdirectories of $prefix/include.
65951
65952 2006-11-12  Bruno Haible  <bruno@clisp.org>
65953
65954         * m4/lib-link.m4: Require at least autoconf-2.54.
65955         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65956         name to underscores for the --with option.
65957
65958 2006-11-13  Bruno Haible  <bruno@clisp.org>
65959
65960         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65961         the tests directory.
65962         Reported by Ralf Wildenhues.
65963
65964 2006-11-13  Bruno Haible  <bruno@clisp.org>
65965
65966         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65967         (func_emit_initmacro_end): Undo the override here.
65968         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65969         Works around the famous automake error in coreutils.
65970
65971 2006-11-13  Eric Blake  <ebb9@byu.net>
65972
65973         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65974         element, not its node.
65975
65976 2006-11-12  Bruno Haible  <bruno@clisp.org>
65977
65978         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65979         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65980
65981 2006-11-12  Bruno Haible  <bruno@clisp.org>
65982
65983         * gnulib-tool: New option --local-symlink.
65984         (func_usage): Document it.
65985         (lsymbolic): New variable.
65986         (func_import, func_create_testdir): If --symlink was not specified,
65987         test whether --local-symlink was specified and the file comes from
65988         the local_gnulib_dir.
65989
65990 2006-11-12  Bruno Haible  <bruno@clisp.org>
65991
65992         * gnulib-tool (func_ln): New function.
65993         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65994
65995 2006-11-12  Bruno Haible  <bruno@clisp.org>
65996
65997         Finish support for source files in subdirectories.
65998         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65999         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66000         AUTOMAKE_OPTIONS.
66001         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66002
66003 2006-11-12  Bruno Haible  <bruno@clisp.org>
66004
66005         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66006         EXTRA_lib_SOURCES augmentation.
66007         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66008
66009 2006-11-12  Jim Meyering  <jim@meyering.net>
66010
66011         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66012         file descriptors.  This also averts a failure on systems with
66013         native openat support when a traversed directory lacks "x" access.
66014         * lib/fts_.h: Include "i-ring.h"
66015         (struct FTS) [fts_fd_ring]: New member.
66016         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66017         (FCHDIR): Add parentheses.
66018         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66019         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66020         When descending, rather than simply closing the previous
66021         fts_cwd_fd value, push that file descriptor onto the ring.
66022         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66023         (fts_open): Initialize the new fd_ring member.
66024         (fts_close): Clear the ring.
66025         (fts_safe_changedir): When possible, use our new fd_ring to skip
66026         the diropen and fstat and dev/ino comparison that would normally
66027         accompany a virtual `chdir ("..")'.
66028
66029         * modules/fts (Depends-on): Add i-ring.
66030         * modules/i-ring: New module.
66031         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66032         * m4/i-ring.m4: New file.
66033
66034 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66035
66036         * gnulib-tool (func_create_testdir): Fix replacement of
66037         `build-aux' in configure.ac.  Run autotools in gltests
66038         subdirectory.
66039         (func_create_testdir, func_create_megatestdir, test): There is
66040         no need for '--force' in most autotool invocations in a new
66041         tree.  Actually fail the whole test if any of the tools, or the
66042         configure or make stages fail.
66043
66044         Sync from Automake.
66045         * build-aux/gnupload: Revert last change.  Add pointer to upload
66046         instructions of the GNU Maintenance Instructions.
66047         Suggestion by Karl Berry.
66048
66049 2006-11-10  Jim Meyering  <jim@meyering.net>
66050
66051         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66052
66053 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66056         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66057         (bind_textdomain_codeset) [! ENABLE_NLS]:
66058         Evaluate all the arguments.  That way, callers get compatible behavior
66059         if the arguments have side effects.  Also, it avoids some GCC
66060         diagnostics in some cases; Joel E. Denny reported problems when Bison
66061         was configured with --enable-gcc-warnigs.
66062
66063 2006-11-10  Jim Meyering  <jim@meyering.net>
66064
66065         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66066         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66067         account.
66068
66069 2006-11-10  Jim Meyering  <jim@meyering.net>
66070
66071         * modules/inline: New file/module.
66072         * modules/xalloc (Files): Remove m4/inline.m4.
66073         (Depends-on): Add inline, instead.
66074         * modules/oset: Likewise.
66075         * modules/list: Likewise.
66076
66077 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66078
66079         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66080         Problem reported by Matthew Woehlke.
66081
66082 2006-11-09  Bruno Haible  <bruno@clisp.org>
66083
66084         * lib/tempname.c (gen_tempname): Remove variant that invokes
66085         __gen_tempname.
66086         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66087         __gen_tempname.
66088
66089 2006-11-08  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66092         to 'yes' instead of 'cross-compiling'.
66093
66094 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66095
66096         * lib/quotearg.h (quotearg_free): New decl.
66097         * lib/quotearg.c (quotearg_free): New function.
66098         (slot0, nslots, slotvec0, slotvec):
66099         Now file-scope so that quotearg_free can get at them.
66100
66101 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66102
66103         Sync from Automake.
66104         * build-aux/gnupload: Add missing 'gnu' to example URL.
66105         Report by Karl Berry.
66106
66107 2006-11-08  Bruno Haible  <bruno@clisp.org>
66108
66109         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66110         Suggested by Paul Eggert.
66111
66112 2006-11-08  Jim Meyering  <jim@meyering.net>
66113
66114         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66115         It's already included if !_LIBC.
66116         (fts_safe_changedir): Add a comment.
66117
66118 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66121         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66122         Matthew Woehlke.
66123
66124         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66125         definitions up, to avoid colliding with change below.
66126         (static_inline) [HAVE_INLINE]: New macro.
66127         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66128         Provide extern decls when !HAVE_INLINE.  Do not define unless
66129         static_inline is defined, either by us or by xmalloc.c.  Use
66130         static_inline rather than static inline.
66131         (XCALLOC): Optimize sizeof(T) = 1 case.
66132         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66133
66134 2006-11-07  Bruno Haible  <bruno@clisp.org>
66135
66136         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66137         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66138         AC_C_INLINE.
66139         * modules/xalloc (Files): Add m4/inline.m4.
66140
66141 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66142
66143         * README: Fix typo.
66144         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66145         (Miscellanous Notes): ...from this.
66146
66147 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66148
66149         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66150         Mention that offsetof should be used instead of sizeof.
66151         From Bruno Haible.
66152
66153 2006-11-07  Bruno Haible  <bruno@clisp.org>
66154
66155         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66156
66157 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66158
66159         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66160         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66161         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66162         (gl_tree_add_before, gl_tree_add_after):
66163         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66164         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66165         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66166         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66167         (gl_linked_add_after, gl_linked_add_at): Likewise.
66168         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66169         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66170         (gl_tree_add_before, gl_tree_add_after): Likewise.
66171         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66172         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66173         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66174
66175 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66176
66177         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66178
66179 2006-11-06  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/inline.m4: New file.
66182         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66183         * modules/list (Files): Add m4/inline.m4.
66184         * modules/oset (Files): Likewise.
66185
66186 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66187
66188         * lib/idcache.c: Include <stddef.h>, for offsetof.
66189         (struct userid.name): Change from char * to a flexible array member.
66190         All uses changed.
66191         * modules/idcache (Depends-on): Add flexmember.
66192
66193         * MODULES.html.sh (Core language properties): New module flexmember.
66194         * modules/flexmember, m4/flexmember.m4: New files.
66195
66196         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66197         inline functions that are identical with the old xnmalloc_inline,
66198         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66199         that we can avoid some unnecessary integer multiplications and
66200         divisions in the common case where the element size is known at
66201         compile time.
66202         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66203         needed.
66204         (xnboundedmalloc): Remove.
66205         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66206         arguments, for consistency with rest of this header.
66207         (xcharalloc): Rewrite using XNMALLOC.
66208         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66209         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66210         versions have been moved to lib/xalloc.h and renamed to be the
66211         non-*_inline versions.
66212         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66213         and xnrealloc functions, since those functions are now inline and
66214         now call us.
66215         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66216         renaming described above.
66217         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66218         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66219         captures the dependency in AC_C_INLINE.
66220
66221         New module canonicalize-lgpl, proposed by Charles Wilson in
66222         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66223         with a few small changes afterwards.
66224         * MODULES.html.sh (File system functions): New module
66225         canonicalize-lgpl.
66226         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66227         and canonicalize_file_name.
66228         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66229         * modules/canonicalize-lgpl: New files.
66230
66231 2006-11-05  Bruno Haible  <bruno@clisp.org>
66232
66233         * gnulib-tool (func_import, func_create_testdir): Create directories
66234         also for files in subdirectories of lib/.
66235
66236 2006-11-05  Bruno Haible  <bruno@clisp.org>
66237
66238         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66239         ANSI C compliant.
66240
66241 2006-11-03  Bruno Haible  <bruno@clisp.org>
66242
66243         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66244         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66245         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66246         (xnboundedmalloc): New inline function.
66247         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66248         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66249         xmalloc.
66250         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66251         xmalloc.
66252         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66253         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66254         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66255         xmalloc.
66256         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66257         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66258         xmalloc.
66259         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66260         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66261         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66262         xmalloc.
66263         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66264         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66265         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66266         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66267         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66268         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66269         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66270
66271 2006-11-03  Bruno Haible  <bruno@clisp.org>
66272
66273         * lib/c-ctype.h [C++]: Define functions without name mangling.
66274         * lib/fwriteerror.h [C++]: Likewise.
66275         * lib/gcd.h [C++]: Likewise.
66276         * lib/linebreak.h [C++]: Likewise.
66277
66278 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66281         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66282         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66283         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66284         Check for functions and headers just once.
66285         Check for declaration of canonicalize_file_name.
66286         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66287
66288 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66289
66290         * gnulib-tool (func_import): Fix typo in actioncmd.
66291
66292 2006-11-02  Bruno Haible  <bruno@clisp.org>
66293
66294         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66295         newline sequence in the Makefile.am snippet as a space, like "make"
66296         does.
66297         Reported by Roger Persson <perrog@gmail.com>.
66298
66299 2006-11-01  Bruno Haible  <bruno@clisp.org>
66300
66301         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66302         already declared in <string.h>.
66303         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66304
66305 2006-11-01  Bruno Haible  <bruno@clisp.org>
66306
66307         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66308         * lib/strcase.h: Include <string.h>.
66309         (strcasecmp): Define to rpl_strcasecmp here.
66310
66311 2006-11-01  Bruno Haible  <bruno@clisp.org>
66312
66313         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66314
66315 2006-11-01  Eric Blake  <ebb9@byu.net>
66316
66317         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66318
66319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66320
66321 2006-10-29  Bruno Haible  <bruno@clisp.org>
66322
66323         Make it compile in C++ mode.
66324         * lib/full-write.c (full_rw): Add a cast.
66325
66326 2006-11-01  Bruno Haible  <bruno@clisp.org>
66327
66328         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66329         be POSIX compliant.
66330         Reported by Roger Persson <perrog@gmail.com>.
66331
66332 2006-11-01  Eric Blake  <ebb9@byu.net>
66333
66334         * lib/getopt_.h: Fix comments.
66335
66336 2006-10-31  Eric Blake  <ebb9@byu.net>
66337
66338         * modules/tmpdir (Depends-on): Add sys_stat.
66339         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66340         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66341         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66342         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66343         tempname.
66344
66345 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66346
66347         Avoid some C++ diagnostics reported by Bruno Haible.
66348         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66349         xmalloc.
66350         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66351         (struct slotvec): Move to top level.
66352         (quotearg_n_options): Rewrite to avoid xmalloc.
66353         * lib/xalloc.h (xcharalloc): New function.
66354         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66355         [defined __cplusplus]: Add function template that provides result
66356         type propagation.  This part of the change is from Bruno Haible.
66357
66358 2006-10-29  Bruno Haible  <bruno@clisp.org>
66359
66360         Make it compile in C++ mode.
66361         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66362         * lib/strnlen1.c (strnlen1): Cast memchr result.
66363         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66364         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66365         (create_temp_dir): Rename local variable 'template'.
66366         (compile_csharp_using_sscli): Add cast.
66367         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66368         * lib/findprog.c (find_in_path): Likewise.
66369         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66370         * lib/wait-process.c (register_slave_subprocess): Likewise.
66371
66372 2006-10-22  Bruno Haible  <bruno@clisp.org>
66373
66374         * modules/tsearch: New file.
66375         * lib/tsearch.h: New file.
66376         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66377         * m4/tsearch.m4: New file.
66378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66379
66380 2006-10-29  Eric Blake  <ebb9@byu.net>
66381
66382         * lib/arcfour.c: Assume config.h.
66383         * lib/arctwo.c: Likewise.
66384         * lib/base64.c: Likewise.
66385         * lib/check-version.c: Likewise.
66386         * lib/crc.c: Likewise.
66387         * lib/des.c: Likewise.
66388         * lib/gc-gnulib.c: Likewise.
66389         * lib/gc-libgcrypt.c: Likewise.
66390         * lib/gc-pbkdf2-sha1.c: Likewise.
66391         * lib/getaddrinfo.c: Likewise.
66392         * lib/getdelim.c: Likewise.
66393         * lib/getline.c: Likewise.
66394         * lib/hmac-md5.c: Likewise.
66395         * lib/hmac-sha1.c: Likewise.
66396         * lib/iconvme.c: Likewise.
66397         * lib/md2.c: Likewise.
66398         * lib/md4.c: Likewise.
66399         * lib/memxor.c: Likewise.
66400         * lib/read-file.c: Likewise.
66401         * lib/readline.c: Likewise.
66402         * lib/rijndael-alg-fst.c: Likewise.
66403         * lib/rijndael-api-fst.c: Likewise.
66404         * lib/xgetdomainname.c: Likewise.
66405
66406 2006-10-28  Eric Blake  <ebb9@byu.net>
66407
66408         * lib/xstrndup.c: Assume config.h.
66409
66410 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66413         stat-macros.h is now for our own macros, whereas stat_h is for
66414         macros in the <sys/stat.h> name space.
66415         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66416         (STAT_MACROS_H): Remove.
66417         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66418         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66419         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66420         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66421         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66422         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66423         Move these macros to ...
66424         * lib/stat_.h: here.  Don't include stat-macros.h.
66425         * lib/canonicalize.c: Don't include stat-macros.h.
66426         * lib/chown.c: Likewise.
66427         * lib/euidaccess.c: Likewise.
66428         * lib/file-type.c: Likewise.
66429         * lib/filemode.c: Likewise.
66430         * lib/glob.c: Likewise.
66431         * lib/isapipe.c: Likewise.
66432         * lib/lchown.c: Likewise.
66433         * lib/lstat.c: Likewise.
66434         * lib/mkdir-p.c: Likewise.
66435         * lib/rmdir.c: Likewise.
66436         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66438         unless mkdir isn't declared, to speed up 'configure'.
66439         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66440         would define all the S_* symbols.
66441         * modules/canonicalize (Depends-on):
66442         Depend on sys_stat, not stat-macros.
66443         * modules/chown: Likewise.
66444         * modules/euidaccess: Likewise.
66445         * modules/filemode: Likewise.
66446         * modules/file-type: Likewise.
66447         * modules/glob: Likewise.
66448         * modules/isapipe: Likewise.
66449         * modules/lchown: Likewise.
66450         * modules/lstat: Likewise.
66451         * modules/mkancesdirs: Likewise.
66452         * modules/rmdir: Likewise.
66453         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66454         * modules/modechange: Likewise.
66455         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66456         (configure.ac): Remove gl_STAT_MACROS.
66457         * modules/sys_stat (Depends-on): Remove stat-macros.
66458
66459 2006-10-27  Bruno Haible  <bruno@clisp.org>
66460
66461         * m4/signed.m4: Remove file.
66462         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66463         invocation.
66464         * modules/vasnprintf (Files): Remove m4/signed.m4.
66465
66466 2006-10-27  Bruno Haible  <bruno@clisp.org>
66467
66468         Update to GNU gettext 0.16.
66469         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66470         m4/inttypes-h.m4, m4/signed.m4.
66471         * m4/gettext.m4: Update to GNU gettext 0.16.
66472         * m4/intl.m4: New file, from GNU gettext.
66473         * m4/intldir.m4: New file, from GNU gettext.
66474         * config/srclist.txt: Update
66475
66476 2006-10-27  Eric Blake  <ebb9@byu.net>
66477
66478         * MODULES.html.sh: Document tempname.
66479         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66480         dependencies.
66481         (Files): Move lib/tempname.c...
66482         * modules/tempname: ...to this new module.
66483         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66484         (gl_PREREQ_TEMPNAME): Move...
66485         * m4/tempname.m4: ...to this new file.
66486         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66487         * modules/sys_stat (Depends-on): Add stat-macros.
66488         * lib/stat_.h (includes): Pick up stat macros.
66489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66490         if stat macros are broken.
66491         * lib/tempname.c (includes): No need to include "stat-macros.h".
66492         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66493         (direxists, __path_search) [!_LIBC]: Don't compile these in
66494         gnulib; the tmpdir module covers that.
66495         * lib/tempname.h: New file.
66496
66497 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         * COPYING: Explain how gnulib-tool converts licence headers.
66500         Almost all wording by Eric Blake.
66501
66502 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66503
66504         * lib/mbchar.h (is_basic_table): Make read-only.
66505         * lib/mbchar.c (is_basic_table): Likewise.
66506         Reported by John Darrington.
66507
66508 2006-10-25  Bruno Haible  <bruno@clisp.org>
66509
66510         * lib/progname.h (set_program_name): Undefine before defining.
66511
66512 2006-10-25  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66515         false for non-gcc C++ compilers.
66516         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66517
66518 2006-10-24  Bruno Haible  <bruno@clisp.org>
66519
66520         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66521         iconv implementations like Irix iconv.
66522
66523 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         * modules/vararrays: New file.
66526         * m4/vararrays.m4: New file, taken from diffutils.
66527         * MODULES.html.sh: New module vararrays.
66528
66529 2006-10-24  Karl Berry  <karl@gnu.org>
66530
66531         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66532         Don't call GNU Unix.
66533
66534 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66535
66536         * users.txt: Add Libtool.
66537
66538         Sync from Libtool:
66539
66540         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66541
66542         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66543         to gnulib's policy of including config.h unconditionally.
66544
66545 2006-10-24  Bruno Haible  <bruno@clisp.org>
66546
66547         * modules/wcwidth (Files): Add m4/wint_t.m4.
66548         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66549         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66550
66551 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66552
66553         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66554         to pacify GCC with some -W flags enabled.  Problem reported by
66555         Bruno Haible.
66556
66557 2006-10-24  Jim Meyering  <jim@meyering.net>
66558
66559         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66560         Reported by Karl Berry.
66561
66562 2006-10-23  Bruno Haible  <bruno@clisp.org>
66563
66564         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66565
66566 2006-10-24  Bruno Haible  <bruno@clisp.org>
66567
66568         * lib/gl_list.h: Use C comment style, not C++ comment style.
66569
66570 2006-10-23  Eric Blake  <ebb9@byu.net>
66571
66572         * lib/getaddrinfo.c (includes): Add missing include.
66573
66574 2006-10-23  Bruno Haible  <bruno@clisp.org>
66575             Paul Eggert  <eggert@cs.ucla.edu>
66576
66577         Ability to rename obstack_free.
66578         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66579         obstack_free.
66580         (obstack_free): Invoke the __obstack_free macro.
66581         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66582
66583 2006-10-23  Bruno Haible  <bruno@clisp.org>
66584             Paul Eggert  <eggert@cs.ucla.edu>
66585
66586         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66587         __argc, __argv from the declaration. (They are defined as macros on
66588         mingw.)
66589
66590 2006-10-22  Bruno Haible  <bruno@clisp.org>
66591
66592         * doc/gnulib-intro.texi: New file.
66593         * doc/gnulib.texi: Include it.
66594
66595 2006-10-21  Bruno Haible  <bruno@clisp.org>
66596
66597         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66598         "Introduction", "Miscellanous Notes", "Particular Modules".
66599
66600 2006-10-21  Bruno Haible  <bruno@clisp.org>
66601
66602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66603         Change mostlyclean-local rule to avoid sh syntax error from bash
66604         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66605
66606 2006-10-23  Jim Meyering  <jim@meyering.net>
66607
66608         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66609         in place of snprintf.
66610
66611         * modules/inttostr (Files): Add lib/uinttostr.c.
66612         * lib/uinttostr.c (inttostr): New file/function.
66613         * lib/inttostr.h (uinttostr): Declare.
66614         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66615         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66616         Add uinttostr.
66617         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66618
66619 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         * lib/canonicalize.c (ELOOP): Define if not already defined.
66622         Problem reported by Bruno Haible in
66623         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66624
66625 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66628         Problem reported by Perry Smith and Ville Laurikari.
66629
66630         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66631         uses.
66632
66633 2006-10-19  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66636         for mingw.
66637
66638 2006-10-19  Bruno Haible  <bruno@clisp.org>
66639
66640         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66641         Needed for mingw.
66642
66643 2006-10-19  Bruno Haible  <bruno@clisp.org>
66644
66645         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66646
66647 2006-10-19  Bruno Haible  <bruno@clisp.org>
66648
66649         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66650         it.
66651
66652 2006-10-19  Bruno Haible  <bruno@clisp.org>
66653
66654         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66655         invocation.
66656
66657 2006-10-19  Bruno Haible  <bruno@clisp.org>
66658
66659         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66660         mountlist by default.
66661
66662 2006-10-16  Bruno Haible  <bruno@clisp.org>
66663
66664         * lib/c-strstr.c: Include c-strstr.h.
66665
66666 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66667
66668         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66669         in a slash.
66670
66671 2006-10-18  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/lock.h [C++]: Wrap definitions in extern "C".
66674
66675 2006-10-18  Bruno Haible  <bruno@clisp.org>
66676
66677         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66678         gl_LIBOBJS list.
66679
66680 2006-10-18  Bruno Haible  <bruno@clisp.org>
66681
66682         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66683
66684 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/xstrtol.h: Include gettext.h.
66687         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66688         Problem reported by Eric Blake.
66689         * modules/xstrtol (Depends-on): Add gettext-h.
66690
66691 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66692
66693         * lib/strftime.c (advance): New macro.
66694         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66695         incomplete type, so you can't add 0 to it.  Problem and patch
66696         reported by Eelco Dolstra for dietlibc.
66697
66698 2006-10-18  Jim Meyering  <jim@meyering.net>
66699
66700         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66701         type for a local, and rename it: s/up/user_proc/.
66702
66703 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66704
66705         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66706         READ_UTMP_USER_PROCESS.
66707         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66708
66709 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66710
66711         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66712         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66713
66714 2006-10-17  Eric Blake  <ebb9@byu.net>
66715
66716         * lib/sigprocmask.c (sigprocmask): Fix typo.
66717
66718         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66719
66720         * modules/clean-temp (Makefile.am): Don't add to make output...
66721         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66722         config.h.
66723
66724 2006-10-17  Bruno Haible  <bruno@clisp.org>
66725
66726         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66727         differently if DEFAULT_TEXT_DOMAIN is set.
66728
66729 2006-10-16  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/clean-temp.c: Include fwriteerror.h.
66732
66733 2006-10-16  Bruno Haible  <bruno@clisp.org>
66734
66735         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66736
66737 2006-10-16  Bruno Haible  <bruno@clisp.org>
66738
66739         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66740         * lib/sigprocmask.h: Include <sys/types.h>.
66741         (sigset_t): Use the system's definition if present.
66742
66743 2006-10-17  Eric Blake  <ebb9@byu.net>
66744
66745         * lib/xvasprintf.c (includes): Assume config.h.
66746         * lib/xasprintf.c (includes): Likewise.
66747
66748 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66749
66750         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66751         at least as wide as intmax_t.
66752
66753 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66754
66755         (Imported from Automake.)
66756         * build-aux/gnupload: Update to version 1.1 of directive file.
66757
66758 2006-10-16  Eric Blake  <ebb9@byu.net>
66759
66760         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66761         match Automake 1.10a.
66762
66763 2006-10-14  Bruno Haible  <bruno@clisp.org>
66764
66765         * modules/sigprocmask: New file.
66766         * lib/sigprocmask.h: New file.
66767         * lib/sigprocmask.c: New file.
66768         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66769         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66770         request sigprocmask.o.
66771         (gl_PREREQ_SIGPROCMASK): New macro.
66772         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66773         (Depends-on): Add sigprocmask.
66774         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66775         gt_SIGNALBLOCKING. Test for 'raise' only once.
66776         * lib/fatal-signal.c: Include sigprocmask.h.
66777         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66778         unblock_fatal_signals): Define always.
66779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66780         sigprocmask.
66781
66782 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66783
66784         Sync from Automake.
66785         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66786         which incorrectly sets the mode of an existing destination
66787         directory.  In some cases the unpatched install-sh could do the
66788         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66789         system.  We hope this is rare in practice, but it's clearly worth
66790         fixing.  Problem reported by Alex Unleashed in
66791         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66792         Also, don't bother to check for -m bugs unless we're using -m;
66793         suggested by Stepan Kasal.
66794
66795 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66796
66797         Sync from Automake.
66798         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66799         `-c' flag, so they appear at the same position as in %FASTDEP%
66800         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66801         which ignores unknown options only after the first non-option.
66802         Bug report against M4 by Nelson H. F. Beebe.
66803
66804 2006-10-13  Jim Meyering  <jim@meyering.net>
66805
66806         Fix a bug in yesterday's change.
66807         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66808         p->fts_statp->st_dev would be used uninitialized.
66809         Ensures that we always call fts_stat on the very first entry.
66810         Miklos Szeredi reported that find -xdev stopped working.
66811
66812 2006-10-12  Bruno Haible  <bruno@clisp.org>
66813
66814         * gnulib-tool (func_get_automake_snippet): Append an automatically
66815         computed EXTRA_DIST augmentation.
66816         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66817         * modules/alloca-opt (Makefile.am): Likewise.
66818         * modules/allocsa (Makefile.am): Likewise.
66819         * modules/arcfour (Makefile.am): Likewise.
66820         * modules/arctwo (Makefile.am): Likewise.
66821         * modules/argmatch (Makefile.am): Likewise.
66822         * modules/argz (Makefile.am): Likewise.
66823         * modules/atexit (Makefile.am): Likewise.
66824         * modules/backupfile (Makefile.am): Likewise.
66825         * modules/byteswap (Makefile.am): Likewise.
66826         * modules/c-strtod (Makefile.am): Likewise.
66827         * modules/c-strtold (Makefile.am): Likewise.
66828         * modules/calloc (Makefile.am): Likewise.
66829         * modules/canon-host (Makefile.am): Likewise.
66830         * modules/canonicalize (Makefile.am): Likewise.
66831         * modules/chdir-long (Makefile.am): Likewise.
66832         * modules/chdir-safer (Makefile.am): Likewise.
66833         * modules/check-version (Makefile.am): Likewise.
66834         * modules/chown (Makefile.am): Likewise.
66835         * modules/cloexec (Makefile.am): Likewise.
66836         * modules/close-stream (Makefile.am): Likewise.
66837         * modules/closeout (Makefile.am): Likewise.
66838         * modules/crc (Makefile.am): Likewise.
66839         * modules/csharpexec (Makefile.am): Likewise.
66840         * modules/cycle-check (Makefile.am): Likewise.
66841         * modules/des (Makefile.am): Likewise.
66842         * modules/dev-ino (Makefile.am): Likewise.
66843         * modules/dirfd (Makefile.am): Likewise.
66844         * modules/dirname (Makefile.am): Likewise.
66845         * modules/dup2 (Makefile.am): Likewise.
66846         * modules/eealloc (Makefile.am): Likewise.
66847         * modules/error (Makefile.am): Likewise.
66848         * modules/euidaccess (Makefile.am): Likewise.
66849         * modules/exclude (Makefile.am): Likewise.
66850         * modules/exitfail (Makefile.am): Likewise.
66851         * modules/fcntl-safer (Makefile.am): Likewise.
66852         * modules/fcntl (Makefile.am): Likewise.
66853         * modules/file-type (Makefile.am): Likewise.
66854         * modules/fileblocks (Makefile.am): Likewise.
66855         * modules/filemode (Makefile.am): Likewise.
66856         * modules/filenamecat (Makefile.am): Likewise.
66857         * modules/fnmatch (Makefile.am): Likewise.
66858         * modules/fopen-safer (Makefile.am): Likewise.
66859         * modules/fpending (Makefile.am): Likewise.
66860         * modules/fprintftime (Makefile.am): Likewise.
66861         * modules/free (Makefile.am): Likewise.
66862         * modules/fsusage (Makefile.am): Likewise.
66863         * modules/ftruncate (Makefile.am): Likewise.
66864         * modules/fts (Makefile.am): Likewise.
66865         * modules/gc-arcfour (Makefile.am): Likewise.
66866         * modules/gc-des (Makefile.am): Likewise.
66867         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66868         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66869         * modules/gc-md4 (Makefile.am): Likewise.
66870         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66871         * modules/gc-sha1 (Makefile.am): Likewise.
66872         * modules/gc (Makefile.am): Likewise.
66873         * modules/getaddrinfo (Makefile.am): Likewise.
66874         * modules/getcwd (Makefile.am): Likewise.
66875         * modules/getdelim (Makefile.am): Likewise.
66876         * modules/getdomainname (Makefile.am): Likewise.
66877         * modules/getgroups (Makefile.am): Likewise.
66878         * modules/gethostname (Makefile.am): Likewise.
66879         * modules/gethrxtime (Makefile.am): Likewise.
66880         * modules/getline (Makefile.am): Likewise.
66881         * modules/getloadavg (Makefile.am): Likewise.
66882         * modules/getlogin_r (Makefile.am): Likewise.
66883         * modules/getndelim2 (Makefile.am): Likewise.
66884         * modules/getopt (Makefile.am): Likewise.
66885         * modules/getpagesize (Makefile.am): Likewise.
66886         * modules/getpass-gnu (Makefile.am): Likewise.
66887         * modules/getpass (Makefile.am): Likewise.
66888         * modules/getsubopt (Makefile.am): Likewise.
66889         * modules/gettime (Makefile.am): Likewise.
66890         * modules/gettimeofday (Makefile.am): Likewise.
66891         * modules/getugroups (Makefile.am): Likewise.
66892         * modules/getusershell (Makefile.am): Likewise.
66893         * modules/glob (Makefile.am): Likewise.
66894         * modules/group-member (Makefile.am): Likewise.
66895         * modules/hard-locale (Makefile.am): Likewise.
66896         * modules/hash (Makefile.am): Likewise.
66897         * modules/hmac-md5 (Makefile.am): Likewise.
66898         * modules/hmac-sha1 (Makefile.am): Likewise.
66899         * modules/human (Makefile.am): Likewise.
66900         * modules/idcache (Makefile.am): Likewise.
66901         * modules/imaxabs (Makefile.am): Likewise.
66902         * modules/imaxdiv (Makefile.am): Likewise.
66903         * modules/inet_ntop (Makefile.am): Likewise.
66904         * modules/inet_pton (Makefile.am): Likewise.
66905         * modules/intprops (Makefile.am): Likewise.
66906         * modules/inttostr (Makefile.am): Likewise.
66907         * modules/inttypes (Makefile.am): Likewise.
66908         * modules/isapipe (Makefile.am): Likewise.
66909         * modules/javaversion (Makefile.am): Likewise.
66910         * modules/lchmod (Makefile.am): Likewise.
66911         * modules/lchown (Makefile.am): Likewise.
66912         * modules/localcharset (Makefile.am): Likewise.
66913         * modules/long-options (Makefile.am): Likewise.
66914         * modules/lstat (Makefile.am): Likewise.
66915         * modules/malloc (Makefile.am): Likewise.
66916         * modules/mathl (Makefile.am): Likewise.
66917         * modules/mbchar (Makefile.am): Likewise.
66918         * modules/md2 (Makefile.am): Likewise.
66919         * modules/md4 (Makefile.am): Likewise.
66920         * modules/md5 (Makefile.am): Likewise.
66921         * modules/memcasecmp (Makefile.am): Likewise.
66922         * modules/memchr (Makefile.am): Likewise.
66923         * modules/memcmp (Makefile.am): Likewise.
66924         * modules/memcoll (Makefile.am): Likewise.
66925         * modules/memcpy (Makefile.am): Likewise.
66926         * modules/memmem (Makefile.am): Likewise.
66927         * modules/memmove (Makefile.am): Likewise.
66928         * modules/mempcpy (Makefile.am): Likewise.
66929         * modules/memrchr (Makefile.am): Likewise.
66930         * modules/memset (Makefile.am): Likewise.
66931         * modules/memxor (Makefile.am): Likewise.
66932         * modules/mkancesdirs (Makefile.am): Likewise.
66933         * modules/mkdir-p (Makefile.am): Likewise.
66934         * modules/mkdir (Makefile.am): Likewise.
66935         * modules/mkdtemp (Makefile.am): Likewise.
66936         * modules/mkstemp (Makefile.am): Likewise.
66937         * modules/mktime (Makefile.am): Likewise.
66938         * modules/modechange (Makefile.am): Likewise.
66939         * modules/mountlist (Makefile.am): Likewise.
66940         * modules/nanosleep (Makefile.am): Likewise.
66941         * modules/obstack (Makefile.am): Likewise.
66942         * modules/openat (Makefile.am): Likewise.
66943         * modules/pagealign_alloc (Makefile.am): Likewise.
66944         * modules/pathmax (Makefile.am): Likewise.
66945         * modules/physmem (Makefile.am): Likewise.
66946         * modules/poll (Makefile.am): Likewise.
66947         * modules/posixtm (Makefile.am): Likewise.
66948         * modules/posixver (Makefile.am): Likewise.
66949         * modules/putenv (Makefile.am): Likewise.
66950         * modules/quote (Makefile.am): Likewise.
66951         * modules/quotearg (Makefile.am): Likewise.
66952         * modules/raise (Makefile.am): Likewise.
66953         * modules/read-file (Makefile.am): Likewise.
66954         * modules/readline (Makefile.am): Likewise.
66955         * modules/readlink (Makefile.am): Likewise.
66956         * modules/readtokens (Makefile.am): Likewise.
66957         * modules/readutmp (Makefile.am): Likewise.
66958         * modules/realloc (Makefile.am): Likewise.
66959         * modules/regex (Makefile.am): Likewise.
66960         * modules/rename-dest-slash (Makefile.am): Likewise.
66961         * modules/rename (Makefile.am): Likewise.
66962         * modules/rijndael (Makefile.am): Likewise.
66963         * modules/rmdir (Makefile.am): Likewise.
66964         * modules/rpmatch (Makefile.am): Likewise.
66965         * modules/safe-read (Makefile.am): Likewise.
66966         * modules/safe-write (Makefile.am): Likewise.
66967         * modules/same-inode (Makefile.am): Likewise.
66968         * modules/same (Makefile.am): Likewise.
66969         * modules/save-cwd (Makefile.am): Likewise.
66970         * modules/savedir (Makefile.am): Likewise.
66971         * modules/setenv (Makefile.am): Likewise.
66972         * modules/settime (Makefile.am): Likewise.
66973         * modules/sha1 (Makefile.am): Likewise.
66974         * modules/sig2str (Makefile.am): Likewise.
66975         * modules/snprintf (Makefile.am): Likewise.
66976         * modules/stat-macros (Makefile.am): Likewise.
66977         * modules/stat-time (Makefile.am): Likewise.
66978         * modules/stdbool (Makefile.am): Likewise.
66979         * modules/stdint (Makefile.am): Likewise.
66980         * modules/stdlib-safer (Makefile.am): Likewise.
66981         * modules/stpcpy (Makefile.am): Likewise.
66982         * modules/stpncpy (Makefile.am): Likewise.
66983         * modules/strcase (Makefile.am): Likewise.
66984         * modules/strcasestr (Makefile.am): Likewise.
66985         * modules/strchrnul (Makefile.am): Likewise.
66986         * modules/strcspn (Makefile.am): Likewise.
66987         * modules/strdup (Makefile.am): Likewise.
66988         * modules/strerror (Makefile.am): Likewise.
66989         * modules/strftime (Makefile.am): Likewise.
66990         * modules/strndup (Makefile.am): Likewise.
66991         * modules/strnlen (Makefile.am): Likewise.
66992         * modules/strpbrk (Makefile.am): Likewise.
66993         * modules/strsep (Makefile.am): Likewise.
66994         * modules/strstr (Makefile.am): Likewise.
66995         * modules/strtod (Makefile.am): Likewise.
66996         * modules/strtoimax (Makefile.am): Likewise.
66997         * modules/strtok_r (Makefile.am): Likewise.
66998         * modules/strtol (Makefile.am): Likewise.
66999         * modules/strtoll (Makefile.am): Likewise.
67000         * modules/strtoul (Makefile.am): Likewise.
67001         * modules/strtoull (Makefile.am): Likewise.
67002         * modules/strtoumax (Makefile.am): Likewise.
67003         * modules/strverscmp (Makefile.am): Likewise.
67004         * modules/sys_socket (Makefile.am): Likewise.
67005         * modules/sys_stat (Makefile.am): Likewise.
67006         * modules/sysexits (Makefile.am): Likewise.
67007         * modules/time_r (Makefile.am): Likewise.
67008         * modules/timegm (Makefile.am): Likewise.
67009         * modules/timespec (Makefile.am): Likewise.
67010         * modules/tmpfile-safer (Makefile.am): Likewise.
67011         * modules/trim (Makefile.am): Likewise.
67012         * modules/unistd-safer (Makefile.am): Likewise.
67013         * modules/unlinkdir (Makefile.am): Likewise.
67014         * modules/unlocked-io (Makefile.am): Likewise.
67015         * modules/userspec (Makefile.am): Likewise.
67016         * modules/utime (Makefile.am): Likewise.
67017         * modules/utimecmp (Makefile.am): Likewise.
67018         * modules/utimens (Makefile.am): Likewise.
67019         * modules/vasnprintf (Makefile.am): Likewise.
67020         * modules/vasprintf (Makefile.am): Likewise.
67021         * modules/vsnprintf (Makefile.am): Likewise.
67022         * modules/xalloc (Makefile.am): Likewise.
67023         * modules/xgetcwd (Makefile.am): Likewise.
67024         * modules/xnanosleep (Makefile.am): Likewise.
67025         * modules/xreadlink (Makefile.am): Likewise.
67026         * modules/xstrtod (Makefile.am): Likewise.
67027         * modules/xstrtol (Makefile.am): Likewise.
67028         * modules/xstrtold (Makefile.am): Likewise.
67029         * modules/yesno (Makefile.am): Likewise.
67030         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67031
67032 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67033
67034         * modules/error (Makefile.am): Distribute files through
67035         EXTRA_DIST, not lib_SOURCES.
67036
67037 2006-10-12  Eric Blake  <ebb9@byu.net>
67038
67039         * modules/error (Makefile.am): Distribute files in /lib.
67040         * modules/obstack (Makefile.am): Likewise.
67041
67042 2006-10-12  Bruno Haible  <bruno@clisp.org>
67043
67044         * modules/acl (Makefile.am): Distribute all files in lib/ through
67045         EXTRA_DIST.
67046         * modules/arcfour (Makefile.am): Likewise.
67047         * modules/arctwo (Makefile.am): Likewise.
67048         * modules/argmatch (Makefile.am): Likewise.
67049         * modules/argz (Makefile.am): Likewise.
67050         * modules/atexit (Makefile.am): Likewise.
67051         * modules/backupfile (Makefile.am): Likewise.
67052         * modules/c-strtod (Makefile.am): Likewise.
67053         * modules/c-strtold (Makefile.am): Likewise.
67054         * modules/calloc (Makefile.am): Likewise.
67055         * modules/canon-host (Makefile.am): Likewise.
67056         * modules/canonicalize (Makefile.am): Likewise.
67057         * modules/chdir-long (Makefile.am): Likewise.
67058         * modules/chdir-safer (Makefile.am): Likewise.
67059         * modules/check-version (Makefile.am): Likewise.
67060         * modules/chown (Makefile.am): Likewise.
67061         * modules/cloexec (Makefile.am): Likewise.
67062         * modules/close-stream (Makefile.am): Likewise.
67063         * modules/closeout (Makefile.am): Likewise.
67064         * modules/crc (Makefile.am): Likewise.
67065         * modules/cycle-check (Makefile.am): Likewise.
67066         * modules/des (Makefile.am): Likewise.
67067         * modules/dirfd (Makefile.am): Likewise.
67068         * modules/dirname (Makefile.am): Likewise.
67069         * modules/dup2 (Makefile.am): Likewise.
67070         * modules/euidaccess (Makefile.am): Likewise.
67071         * modules/exclude (Makefile.am): Likewise.
67072         * modules/exitfail (Makefile.am): Likewise.
67073         * modules/fcntl-safer (Makefile.am): Likewise.
67074         * modules/file-type (Makefile.am): Likewise.
67075         * modules/fileblocks (Makefile.am): Likewise.
67076         * modules/filemode (Makefile.am): Likewise.
67077         * modules/filenamecat (Makefile.am): Likewise.
67078         * modules/fnmatch (Makefile.am): Likewise.
67079         * modules/fopen-safer (Makefile.am): Likewise.
67080         * modules/fpending (Makefile.am): Likewise.
67081         * modules/fprintftime (Makefile.am): Likewise.
67082         * modules/free (Makefile.am): Likewise.
67083         * modules/fsusage (Makefile.am): Likewise.
67084         * modules/ftruncate (Makefile.am): Likewise.
67085         * modules/fts (Makefile.am): Likewise.
67086         * modules/gc (Makefile.am): Likewise.
67087         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67088         * modules/getaddrinfo (Makefile.am): Likewise.
67089         * modules/getcwd (Makefile.am): Likewise.
67090         * modules/getdelim (Makefile.am): Likewise.
67091         * modules/getdomainname (Makefile.am): Likewise.
67092         * modules/getgroups (Makefile.am): Likewise.
67093         * modules/gethostname (Makefile.am): Likewise.
67094         * modules/gethrxtime (Makefile.am): Likewise.
67095         * modules/getline (Makefile.am): Likewise.
67096         * modules/getloadavg (Makefile.am): Likewise.
67097         * modules/getlogin_r (Makefile.am): Likewise.
67098         * modules/getopt (Makefile.am): Likewise.
67099         * modules/getpass (Makefile.am): Likewise.
67100         * modules/getpass-gnu (Makefile.am): Likewise.
67101         * modules/getsubopt (Makefile.am): Likewise.
67102         * modules/gettime (Makefile.am): Likewise.
67103         * modules/gettimeofday (Makefile.am): Likewise.
67104         * modules/getugroups (Makefile.am): Likewise.
67105         * modules/getusershell (Makefile.am): Likewise.
67106         * modules/glob (Makefile.am): Likewise.
67107         * modules/group-member (Makefile.am): Likewise.
67108         * modules/hard-locale (Makefile.am): Likewise.
67109         * modules/hash (Makefile.am): Likewise.
67110         * modules/hmac-md5 (Makefile.am): Likewise.
67111         * modules/hmac-sha1 (Makefile.am): Likewise.
67112         * modules/human (Makefile.am): Likewise.
67113         * modules/idcache (Makefile.am): Likewise.
67114         * modules/imaxabs (Makefile.am): Likewise.
67115         * modules/imaxdiv (Makefile.am): Likewise.
67116         * modules/inet_ntop (Makefile.am): Likewise.
67117         * modules/inet_pton (Makefile.am): Likewise.
67118         * modules/inttostr (Makefile.am): Likewise.
67119         * modules/isapipe (Makefile.am): Likewise.
67120         * modules/lchown (Makefile.am): Likewise.
67121         * modules/long-options (Makefile.am): Likewise.
67122         * modules/lstat (Makefile.am): Likewise.
67123         * modules/malloc (Makefile.am): Likewise.
67124         * modules/mathl (Makefile.am): Likewise.
67125         * modules/mbchar (Makefile.am): Likewise.
67126         * modules/md2 (Makefile.am): Likewise.
67127         * modules/md4 (Makefile.am): Likewise.
67128         * modules/md5 (Makefile.am): Likewise.
67129         * modules/memcasecmp (Makefile.am): Likewise.
67130         * modules/memchr (Makefile.am): Likewise.
67131         * modules/memcmp (Makefile.am): Likewise.
67132         * modules/memcoll (Makefile.am): Likewise.
67133         * modules/memcpy (Makefile.am): Likewise.
67134         * modules/memmem (Makefile.am): Likewise.
67135         * modules/memmove (Makefile.am): Likewise.
67136         * modules/mempcpy (Makefile.am): Likewise.
67137         * modules/memrchr (Makefile.am): Likewise.
67138         * modules/memset (Makefile.am): Likewise.
67139         * modules/memxor (Makefile.am): Likewise.
67140         * modules/mkancesdirs (Makefile.am): Likewise.
67141         * modules/mkdir (Makefile.am): Likewise.
67142         * modules/mkdir-p (Makefile.am): Likewise.
67143         * modules/mkdtemp (Makefile.am): Likewise.
67144         * modules/mkstemp (Makefile.am): Likewise.
67145         * modules/mktime (Makefile.am): Likewise.
67146         * modules/modechange (Makefile.am): Likewise.
67147         * modules/mountlist (Makefile.am): Likewise.
67148         * modules/nanosleep (Makefile.am): Likewise.
67149         * modules/openat (Makefile.am): Likewise.
67150         * modules/pagealign_alloc (Makefile.am): Likewise.
67151         * modules/physmem (Makefile.am): Likewise.
67152         * modules/poll (Makefile.am): Likewise.
67153         * modules/posixtm (Makefile.am): Likewise.
67154         * modules/posixver (Makefile.am): Likewise.
67155         * modules/putenv (Makefile.am): Likewise.
67156         * modules/quote (Makefile.am): Likewise.
67157         * modules/quotearg (Makefile.am): Likewise.
67158         * modules/raise (Makefile.am): Likewise.
67159         * modules/read-file (Makefile.am): Likewise.
67160         * modules/readline (Makefile.am): Likewise.
67161         * modules/readlink (Makefile.am): Likewise.
67162         * modules/readtokens (Makefile.am): Likewise.
67163         * modules/readutmp (Makefile.am): Likewise.
67164         * modules/realloc (Makefile.am): Likewise.
67165         * modules/regex (Makefile.am): Likewise.
67166         * modules/rename (Makefile.am): Likewise.
67167         * modules/rename-dest-slash (Makefile.am): Likewise.
67168         * modules/rijndael (Makefile.am): Likewise.
67169         * modules/rmdir (Makefile.am): Likewise.
67170         * modules/rpmatch (Makefile.am): Likewise.
67171         * modules/safe-read (Makefile.am): Likewise.
67172         * modules/safe-write (Makefile.am): Likewise.
67173         * modules/same (Makefile.am): Likewise.
67174         * modules/save-cwd (Makefile.am): Likewise.
67175         * modules/savedir (Makefile.am): Likewise.
67176         * modules/setenv (Makefile.am): Likewise.
67177         * modules/settime (Makefile.am): Likewise.
67178         * modules/sha1 (Makefile.am): Likewise.
67179         * modules/sig2str (Makefile.am): Likewise.
67180         * modules/snprintf (Makefile.am): Likewise.
67181         * modules/stdlib-safer (Makefile.am): Likewise.
67182         * modules/stpcpy (Makefile.am): Likewise.
67183         * modules/stpncpy (Makefile.am): Likewise.
67184         * modules/strcase (Makefile.am): Likewise.
67185         * modules/strcasestr (Makefile.am): Likewise.
67186         * modules/strchrnul (Makefile.am): Likewise.
67187         * modules/strcspn (Makefile.am): Likewise.
67188         * modules/strdup (Makefile.am): Likewise.
67189         * modules/strerror (Makefile.am): Likewise.
67190         * modules/strftime (Makefile.am): Likewise.
67191         * modules/strndup (Makefile.am): Likewise.
67192         * modules/strnlen (Makefile.am): Likewise.
67193         * modules/strpbrk (Makefile.am): Likewise.
67194         * modules/strsep (Makefile.am): Likewise.
67195         * modules/strstr (Makefile.am): Likewise.
67196         * modules/strtod (Makefile.am): Likewise.
67197         * modules/strtoimax (Makefile.am): Likewise.
67198         * modules/strtok_r (Makefile.am): Likewise.
67199         * modules/strtol (Makefile.am): Likewise.
67200         * modules/strtoll (Makefile.am): Likewise.
67201         * modules/strtoul (Makefile.am): Likewise.
67202         * modules/strtoull (Makefile.am): Likewise.
67203         * modules/strtoumax (Makefile.am): Likewise.
67204         * modules/strverscmp (Makefile.am): Likewise.
67205         * modules/time_r (Makefile.am): Likewise.
67206         * modules/timegm (Makefile.am): Likewise.
67207         * modules/tmpfile-safer (Makefile.am): Likewise.
67208         * modules/unistd-safer (Makefile.am): Likewise.
67209         * modules/unlinkdir (Makefile.am): Likewise.
67210         * modules/userspec (Makefile.am): Likewise.
67211         * modules/utime (Makefile.am): Likewise.
67212         * modules/utimecmp (Makefile.am): Likewise.
67213         * modules/utimens (Makefile.am): Likewise.
67214         * modules/vasnprintf (Makefile.am): Likewise.
67215         * modules/vasprintf (Makefile.am): Likewise.
67216         * modules/vsnprintf (Makefile.am): Likewise.
67217         * modules/xalloc (Makefile.am): Likewise.
67218         * modules/xgetcwd (Makefile.am): Likewise.
67219         * modules/xnanosleep (Makefile.am): Likewise.
67220         * modules/xreadlink (Makefile.am): Likewise.
67221         * modules/xstrtod (Makefile.am): Likewise.
67222         * modules/xstrtol (Makefile.am): Likewise.
67223         * modules/xstrtold (Makefile.am): Likewise.
67224         * modules/yesno (Makefile.am): Likewise.
67225
67226 2006-10-12  Jim Meyering  <jim@meyering.net>
67227
67228         * m4/getloadavg.m4: Revert the change below.
67229
67230         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67231         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67232         fail with a symlink, which is what coreutils' ./bootstrap now
67233         creates by default.
67234
67235 2006-10-12  Bruno Haible  <bruno@clisp.org>
67236
67237         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67238         mingw.
67239         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67240         MSVC and mingw explicitly.
67241
67242 2006-10-11  Simon Josefsson  <jas@extundo.com>
67243             Bruno Haible  <bruno@clisp.org>
67244
67245         Add support for multiple gnulib-tool invocations in the scope of a
67246         single configure.ac file.
67247         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67248         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67249         with the same contents as the _LIBADD variable.
67250         (func_emit_initmacro_start, func_emit_initmacro_end,
67251         func_emit_initmacro_done): New functions.
67252         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67253         gl_LIBOBJS and gl_LTLIBOBJS.
67254
67255 2006-10-11  Bruno Haible  <bruno@clisp.org>
67256
67257         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67258         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67259         autoreconf. Instead, invoke autopoint explicitly but move back the
67260         *.m4 files from gnulib.
67261
67262 2006-10-11  Bruno Haible  <bruno@clisp.org>
67263
67264         * gnulib-tool (func_usage): Make module names after --create-testdir
67265         optional.
67266         (func_create_testdir): If no module was specified, use nearly all
67267         modules.
67268
67269 2006-10-12  Jim Meyering  <jim@meyering.net>
67270
67271         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67272         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67273         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67274         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67275         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67276         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67277         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67278         (fts_set_stat_required): New function.
67279         (fts_open): Defer the calls to fts_stat, if possible or requested.
67280         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67281         into fts_stat itself.
67282         (fts_read): Perform any required (deferred) fts_stat call.
67283         (fts_build): Likewise, for the directory we're about to open and read.
67284         In the readdir loop, carefully decide whether each entry will require
67285         an eventual call to fts_stat, using dirent.d_type info if available.
67286         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67287         a command line argument into this function.  Update all callers.
67288         Map a return value of FTS_DOT to FTS_D for a command line argument.
67289         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67290         Thanks to Miklos Szeredi for his tenacity and for the initial
67291         bug report about "find" failing on a FUSE-based file system.
67292
67293         * lib/fts.c (fts_open): Use consistent indentation.
67294
67295 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67296
67297         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67298         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67299         reported by Jim Meyering.  All uses of cache variables renamed
67300         to match Autoconf's.
67301         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67302         the other one.
67303
67304         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67305         Fix misspelling in diagnostic.
67306
67307 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67308
67309         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67310         defined.  Problem reported by Matthew Woehlke.
67311
67312         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67313         Add support for Tandem NonStop R series.
67314         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67315         Use new macro.
67316
67317         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67318         (has_trailing_slash): Omit size arg; all callers changed.
67319         Omit 'inline', since it doesn't help performance and we'd
67320         need to configure it.
67321         Don't count //, ///, etc. as having a trailing slash.
67322         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67323         (rpl_rename_dest_slash): On failure, use rename's errno rather
67324         than (in some cases) an incorrect or junk errno.
67325         Simplify code by removing need to compute length; this does
67326         cause it to make two passes instead of one over the file name,
67327         but it's worth it.
67328
67329         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67330         change, since Autoconf's version may no longer be appropriate now
67331         that we are using CVS Autoconf's version.  Add support for Tandem.
67332
67333 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67334             Bruno Haible  <bruno@clisp.org>
67335
67336         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67337         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67338         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67339         gl_AC_TYPE_LONG_LONG.
67340
67341         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67342         instead of HAVE_LONG_LONG.
67343         * lib/printf-args.c (printf_fetchargs): Likewise.
67344         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67345         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67346         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67347         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67348         gl_AC_TYPE_LONG_LONG.
67349
67350 2006-10-11  Bruno Haible  <bruno@clisp.org>
67351
67352         * m4/longlong.m4: Add comments.
67353         * m4/ulonglong.m4: Likewise.
67354
67355 2006-10-10  Bruno Haible  <bruno@clisp.org>
67356
67357         Make it possible to #define stpcpy, strdup to aliases.
67358         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67359         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67360
67361 2006-10-10  Bruno Haible  <bruno@clisp.org>
67362
67363         Make it possible to #define gcd to an alias.
67364         * lib/gcd.c: Include config.h.
67365
67366 2006-10-10  Bruno Haible  <bruno@clisp.org>
67367
67368         Make it possible to #define c_isascii to an alias.
67369         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67370         defined. Undefine the macros before defining them, to avoid gcc
67371         warnings.
67372         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67373         define NO_C_CTYPE_MACROS early.
67374
67375 2006-10-10  Bruno Haible  <bruno@clisp.org>
67376
67377         Make it possible to #define set_program_name to an alias.
67378         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67379         ENABLE_RELOCATABLE early.
67380
67381 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67384         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67385         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67386         More generally, don't assume that 64-bit signed int is available
67387         if unsigned int is, and vice versa.
67388         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67389         unsigned symbols, not on their signed counterparts.
67390         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67391         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67392         (UINT64_C, UINTMAX_C):
67393         Likewise.
67394         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67395         unsigned counterparts.
67396         (Have_long_long, Unsigned): New macros.
67397         (Int): Renamed from INT.
67398         (strtoimax): Use the new macros.
67399         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67400         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67401         * modules/inttypes (inttypes.h): Substitute
67402         HAVE_UNSIGNED_LONG_LONG_INT.
67403         * modules/stdint (stdint.h): Likewise.
67404         (Files): Add m4/ulonglong.m4.
67405
67406 2006-10-10  Bruno Haible  <bruno@clisp.org>
67407
67408         Fix a gcc -Wshadow warning.
67409         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67410         to 'bucket'.
67411         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67412         gl_linked_indexof_from_to): Likewise.
67413         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67414         Likewise.
67415         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67416         Likewise.
67417         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67418         Reported by Eric Blake.
67419
67420 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67421
67422         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67423         for NetBSD.  Problem reported by Bruno Haible.
67424
67425 2006-10-09  Jim Meyering  <jim@meyering.net>
67426
67427         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67428         Patch from Bruno Haible.
67429
67430 2006-10-09  Jim Meyering  <jim@meyering.net>
67431
67432         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67433         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67434         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67435
67436 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67437
67438         Don't include <config.h> twice; this doesn't work in some cases,
67439         e.g., when config.h has "#define intmax_t long long int" and
67440         we include <config.h>, <inttypes.h>, <config.h> in that order.
67441         Problem reported by Matthew Woehlke in:
67442         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67443         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67444         * lib/fts-cycle.c: Don't include config.h.
67445         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67446         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67447         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67448         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67449         inttypes.h.
67450         * lib/xstrtoumax.c: Likewise.
67451         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67452         __strtol and the like, so that this module is more like its siblings.
67453         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67454         Remove; no longer needed now that we assume gnulib inttypes.h.
67455
67456 2006-10-08  Bruno Haible  <bruno@clisp.org>
67457
67458         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67459         option.
67460
67461 2006-10-07  Jim Meyering  <jim@meyering.net>
67462
67463         * modules/inttypes (inttypes.h): Revert what seems to have been
67464         an inadvertent part of today's change: use "|", not "/" in the
67465         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67466
67467 2006-10-07  Bruno Haible  <bruno@clisp.org>
67468
67469         * modules/sublist: New file.
67470
67471 2006-10-07  Bruno Haible  <bruno@clisp.org>
67472
67473         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67474         * modules/argz (argz.h): Likewise.
67475         * modules/arpa_inet (arpa/inet.h): Likewise.
67476         * modules/byteswap (byteswap.h): Likewise.
67477         * modules/configmake (configmake.h): Likewise.
67478         * modules/fcntl (fcntl.h): Likewise.
67479         * modules/fnmatch (fnmatch.h): Likewise.
67480         * modules/getopt (getopt.h): Likewise.
67481         * modules/glob (glob.h): Likewise.
67482         * modules/inttypes (inttypes.h): Likewise.
67483         * modules/netinet_in (netinet/in.h): Likewise.
67484         * modules/poll (poll.h): Likewise.
67485         * modules/stdbool (stdbool.h): Likewise.
67486         * modules/stdint (stdint.h): Likewise.
67487         * modules/sys_select (sys/select.h): Likewise.
67488         * modules/sys_socket (sys/socket.h): Likewise.
67489         * modules/sys_stat (sys/stat.h): Likewise.
67490         * modules/sysexits (sysexits.h): Likewise.
67491         * modules/unistd (unistd.h): Likewise.
67492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67493         Add a "DO NOT EDIT" comment to the generated file.
67494         (func_import): Likewise for gnulib-comp.m4.
67495
67496 2006-10-07  Bruno Haible  <bruno@clisp.org>
67497
67498         * lib/gl_sublist.h: New file.
67499         * lib/gl_sublist.c: New file.
67500
67501 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67502
67503         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67504         name (relative to the original working directory) and the file
67505         name component (relative to the temporary working directory).  All
67506         callers changed.
67507         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67508         * lib/mkdir-p.c (make_dir_parents): Likewise.
67509         * lib/mkdir-p.h (make_dir_parents): Likewise.
67510
67511 2006-10-06  Eric Blake  <ebb9@byu.net>
67512
67513         Define several macros for use by the clean-temp module.
67514         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67515         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67516         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67517
67518         * lib/clean-temp.h (close_stream_temp): New declaration.
67519         * lib/clean-temp.c (includes): Pull in headers according to what
67520         other modules are in use.
67521         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67522
67523 2006-10-06  Bruno Haible  <bruno@clisp.org>
67524
67525         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67526         instead of fopen, fwriteerror.
67527
67528 2006-10-06  Bruno Haible  <bruno@clisp.org>
67529
67530         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67531         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67532         int.
67533         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67534         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67535         Return an error indicator.
67536         Suggested by Eric Blake.
67537
67538 2006-10-06  Bruno Haible  <bruno@clisp.org>
67539
67540         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67541         Reported by Eric Blake.
67542
67543 2006-10-06  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/closeout (Description): Mention stderr too.
67546
67547 2006-10-06  Bruno Haible  <bruno@clisp.org>
67548         and Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * lib/closeout.c (close_stdout): Also close stderr.
67551         * lib/closeout.h: Update comment.
67552
67553 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67554
67555         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67556         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67557         * lib/dirchownmod.c: Include lchown.h.
67558         * lib/lchown.c: Don't include files that lchown.h now includes.
67559         Don't declare chown, since lchown.h now does that.
67560         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67561         (lchown): Define to rpl_chown if lchown is declared but
67562         does not exist.  Declare using a prototype if lchown is not
67563         declared.  Add a copyright notice.
67564         * lib/mkstemp.h: Include <unistd.h>.
67565         * lib/openat.c: Include lchown.h.
67566
67567         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67568         we now test for that separately.
67569         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67570         rather than O_NOFOLLOW, when testing whether it's possible to
67571         avoid a race condition reliably.
67572         * lib/savewd.c (savewd_chdir): Likewise.
67573
67574         Remove macros that are no longer needed now that stdint.h is
67575         reliable.
67576         * lib/fsusage.c (UINTMAX_MAX): Remove.
67577         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67578         * lib/utimecmp.c (SIZE_MAX): Remove.
67579
67580         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67581
67582         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67583         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67584         O_NOATIME works.
67585
67586 2006-10-05  Bruno Haible  <bruno@clisp.org>
67587
67588         * lib/gl_list.h (gl_sortedlist_search_from_to,
67589         gl_sortedlist_indexof_from_to): New declarations.
67590         (gl_list_implementation): New fields sortedlist_search_from_to,
67591         sortedlist_indexof_from_to.
67592         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67593         inline functions.
67594         * lib/gl_list.c (gl_sortedlist_search_from_to,
67595         gl_sortedlist_indexof_from_to): New functions.
67596         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67597         function.
67598         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67599         (gl_array_sortedlist_search_from_to): New function.
67600         (gl_array_list_implementation): Update.
67601         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67602         function.
67603         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67604         (gl_carray_sortedlist_search_from_to): New function.
67605         (gl_carray_list_implementation): Update.
67606         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67607         gl_linked_sortedlist_indexof_from_to): New functions.
67608         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67609         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67610         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67611         gl_tree_sortedlist_indexof_from_to): New functions.
67612         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67613         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67614         Update.
67615         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67616         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67617         Update.
67618
67619 2006-10-05  Bruno Haible  <bruno@clisp.org>
67620
67621         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67622         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67623         (struct gl_list_implementation): Add fields search_from_to,
67624         indexof_from_to. Remove fields search, indexof.
67625         (gl_list_search): Use the search_from_to method.
67626         (gl_list_search_from, gl_list_search_from_to): New functions.
67627         (gl_list_indexof): Use the indexof_from_to method.
67628         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67629         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67630         (gl_list_search_from, gl_list_search_from_to): New functions.
67631         (gl_list_indexof): Use the indexof_from_to method.
67632         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67633         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67634         gl_array_indexof. Add start_index, end_index arguments.
67635         (gl_array_search_from_to): Renamed from gl_array_search. Add
67636         start_index, end_index arguments.
67637         (gl_array_remove, gl_array_list_implementation): Update.
67638         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67639         gl_carray_indexof. Add start_index, end_index arguments.
67640         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67641         start_index, end_index arguments.
67642         (gl_carray_remove, gl_carray_list_implementation): Update.
67643         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67644         gl_linked_search. Add start_index, end_index arguments.
67645         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67646         start_index, end_index arguments.
67647         (gl_linked_remove): Update.
67648         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67649         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67650         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67651         field to 'size_t'.
67652         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67653         gl_tree_search. Add start_index, end_index arguments.
67654         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67655         start_index, end_index arguments.
67656         (gl_tree_remove): Update.
67657         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67658         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67659         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67660         function.
67661         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67662         gl_tree_search. Add start_index, end_index arguments.
67663         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67664         start_index, end_index arguments.
67665         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67666         Update.
67667         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67668
67669 2006-10-05  Bruno Haible  <bruno@clisp.org>
67670
67671         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67672
67673         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67674         fwriteerror_temp): New declarations.
67675         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67676         (descriptors): New variable.
67677         (cleanup): First, close the descriptors.
67678         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67679         fclose_temp, fwriteerror_temp): New functions.
67680
67681 2006-10-04  Jim Meyering  <jim@meyering.net>
67682
67683         * lib/fts.c (fts_open): Tiny comment change.
67684
67685 2006-10-04  Bruno Haible  <bruno@clisp.org>
67686
67687         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67688         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67689         gl_LOCK_BODY.
67690         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67691         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67692         gl_LOCK_EARLY_BODY.
67693         (gl_LOCK): Require gl_LOCK_BODY.
67694
67695 2006-10-04  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67698         (gl_oset_search_atleast): New declaration.
67699         (struct gl_oset_implementation): Add field 'search_atleast'.
67700         (gl_oset_search_atleast): New inline function.
67701         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67702         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67703         (gl_array_oset_implementation): Update.
67704         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67705         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67706         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67707
67708 2006-10-04  Bruno Haible  <bruno@clisp.org>
67709
67710         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67711
67712 2006-10-03  Bruno Haible  <bruno@clisp.org>
67713
67714         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67715         from gl_avltreehash_list_implementation.
67716
67717 2006-10-03  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/gl_oset.c (gl_oset_add): Fix return type.
67720
67721 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67722
67723         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67724
67725 2006-10-02  Eric Blake  <ebb9@byu.net>
67726
67727         * modules/strnlen (Depends-on): Add extensions.
67728
67729 2006-10-02  Eric Blake  <ebb9@byu.net>
67730
67731         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67732         definition in 2.60+.
67733
67734 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67735
67736         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67737         checks.
67738
67739 2006-10-02  Bruno Haible  <bruno@clisp.org>
67740
67741         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67742         to the AUTOMAKE_OPTIONS.
67743         Reported by Jim Meyering.
67744
67745 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67746
67747         Work around bug in Solaris 10 /proc file system:
67748         /proc/self/fd/NNN/.. isn't the parent directory of
67749         the directory whose file descriptor is NNN.  This needs to
67750         be worked around at run time, not compile time, since a
67751         program might be built on Solaris 8, where things work, and
67752         run on Solaris 10.
67753         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67754         to use the following interface instead:
67755         (OPENAT_BUFFER_SIZE): New macro.
67756         (openat_proc_name): New function.
67757         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67758         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67759         Likewise.
67760         * lib/openat-proc.c: New file.
67761         * modules/openat (Files): Add lib/openat-proc.c.
67762         (Depends-on): Add same-inode, stdbool.
67763         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67764
67765 2006-09-29  Bruno Haible  <bruno@clisp.org>
67766
67767         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67768         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67769         argument. Set stdout_closed before testing for ferror, not after.
67770         (fwriteerror, fwriteerror_no_ebadf): New functions.
67771
67772 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67773
67774         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67775
67776 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67777
67778         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67779         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67780
67781 2006-09-28  Jim Meyering  <jim@meyering.net>
67782
67783         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67784         Include <unistd.h>.
67785
67786 2006-09-28  Bruno Haible  <bruno@clisp.org>
67787
67788         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67789         * modules/linkedhash-list (Depends-on): Likewise.
67790         * modules/rbtreehash-list (Depends-on): Likewise.
67791
67792 2006-09-28  Bruno Haible  <bruno@clisp.org>
67793
67794         * lib/strndup.h: Simplify the redefinition of strndup.
67795         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67797
67798 2006-09-28  Bruno Haible  <bruno@clisp.org>
67799
67800         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67801         * lib/gl_linkedhash_list.c: Likewise.
67802         * lib/gl_rbtreehash_list.c: Likewise.
67803
67804 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67805
67806         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67807         getaddrinfo.
67808
67809         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67810         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67811         it causes <stdio_ext.h> to cause a compile-time error.
67812         Problem reported by Nelson H. F. Beebe.
67813         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67814         of HAVE_DECL___PENDING.
67815
67816         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67818         declaration.
67819
67820 2006-09-27  Jim Meyering  <jim@meyering.net>
67821
67822         This file could end up with a definition for a function
67823         named __strndup, rather than rpl_strndup on a system with
67824         incomplete weak_alias support.
67825         * lib/strndup.c (strndup): Rename from __strndup.
67826         Remove #defines that used to map __strndup to strndup.
67827         Don't use K&R prototypes.
67828         Remove LIBC-related code, since this file is not sync'd with glibc.
67829         * lib/strndup.h: Revamp, accordingly.
67830         * m4/strndup.m4: Modernize.
67831
67832 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67833
67834         * modules/savewd (Depends-on): Add 'raise'.
67835         * lib/savewd.c: Include <signal.h>, for 'raise'.
67836
67837 2006-09-26  Jim Meyering  <jim@meyering.net>
67838
67839         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67840         when we detect Darwin 8.7.0's acl_get_file bug.
67841         Rearrange to perform the new (below) run-test while $LIBS
67842         contains any acl-related library.  Set USE_ACL at the end.
67843         (gl_ACL_GET_FILE): New function.
67844
67845 2006-09-26  Eric Blake  <ebb9@byu.net>
67846
67847         * lib/verror.c: Include <config.h> unconditionally.
67848
67849 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         * modules/clock-time (Maintainer): Add self.
67852         * modules/getlogin_r (Depends-on): Add extensions.
67853
67854 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67855
67856         * modules/clock-time: New module.
67857         * modules/nanosleep (Depends-on): Add clock-time.
67858         * modules/gethrxtime (Depends-on): Likewise.
67859         * modules/gettime (Depends-on): Likewise.
67860         * modules/settime (Depends-on): Likewise.
67861
67862         * modules/fts-lgpl: Depend on openat.
67863         * modules/mkancesdirs: Depend on savewd.
67864         * modules/mkdir-p: Likewise.
67865
67866 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67867
67868         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67869
67870         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67871         `gl_have_arbitrary_file_name_length_limit' to
67872         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67873         actually works between configure runs.
67874
67875 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67876             Bruno Haible  <bruno@clisp.org>
67877
67878         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67879
67880 2006-09-25  Jim Meyering  <jim@meyering.net>
67881
67882         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67883         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67884
67885 2006-09-25  Eric Blake  <ebb9@byu.net>
67886
67887         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67888         exec's in 2006-09-18 patch when shuffling fds.
67889
67890 2006-09-25  Bruno Haible  <bruno@clisp.org>
67891
67892         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67893         Reported by Jim Meyering.
67894
67895 2006-09-24  Jim Meyering  <jim@meyering.net>
67896
67897         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67898         compare a pointer against a literal "0".  That caused failures with
67899         at least HP-UX's hpcc.
67900
67901 2006-09-22  Simon Josefsson  <jas@extundo.com>
67902
67903         * modules/gc-sha1:
67904         * modules/gc-md4:
67905         * modules/gc-hmac-sha1:
67906         * modules/gc-hmac-md5:
67907         * modules/gc-des:
67908         * modules/gc-arcfour: Distribute more files.
67909
67910 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67911
67912         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67913         (gl_linked_iterator_from_to): Initialize struct completely.
67914         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67915         (gl_tree_iterator_from_to): Likewise
67916         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67917         * lib/gl_array_list.c [lint] (gl_array_iterator)
67918         (gl_array_iterator_from_to): Likewise.
67919         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67920         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67921         (gl_carray_iterator_from_to): Likewise.
67922
67923         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67924         * lib/md4.c (md4_process_block): Remove unused variable.
67925         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67926         parentheses for clarity.
67927
67928 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67929
67930         * modules/bison-i18n (Depends-on): Add gettext.
67931
67932 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67933
67934         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67935         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67936         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67937         also add missing comma that caused broken test.
67938         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67939         stdlib.h, for `abort'.
67940         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67941         variables.
67942         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67943         include unistd.h if present, for `rmdir'.
67944         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67945         variables.
67946         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67947         in the process include standard headers for prototypes.
67948         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67949         gets declared on GNU/Linux.
67950         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67951         unistd.h, for `rmdir'.
67952         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67953
67954         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67955         always true.
67956         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67957
67958         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67959
67960 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67961
67962         * gnulib-tool (func_version): Create output all at once.  This
67963         may help avoid triggering unnecessary SIGPIPEs, and at any
67964         rate it doesn't hurt.
67965
67966 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67967             Bruno Haible  <bruno@clisp.org>
67968
67969         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67970         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67971         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67972
67973         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67974         (gl_FUNC_VASPRINTF): Invoke it.
67975
67976 2006-09-22  Bruno Haible  <bruno@clisp.org>
67977
67978         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67979         getloadavg.c as first argument.
67980
67981 2006-09-22  Bruno Haible  <bruno@clisp.org>
67982
67983         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67984         at the beginning of the gl_INIT macro.
67985         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67986         gl_GETLOADAVG.
67987
67988 2006-09-22  Bruno Haible  <bruno@clisp.org>
67989
67990         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67991         module.
67992         Suggested by Ralf Wildenhues.
67993
67994 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         Import this patch from libc:
67997
67998         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67999
68000         * lib/regex_internal.c (re_string_reconstruct): Handle
68001         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68002         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68003         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68004         re_string_context_at.
68005
68006         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68007         now requires it.
68008         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68009         gl_REGEX now does it for us.
68010         (gl_REGEX): Add test taken from
68011         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68012
68013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68014         Check that large offsets work.  Modernize Autoconf usages.
68015         Prefer "yes" to mean a good thing rather than a bad.
68016         Don't put "#define mkstemp" in config.h, as this might interfere
68017         with standard system headers that "#define mkstemp mkstemp64".
68018
68019         * modules/mkstemp (Depends-on): Add extensions, so that
68020         mkstemp is visible on some platforms.
68021         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68022         (Include): Change to "mkstemp.h" from <stdlib.h>.
68023         (Files): Add mkstemp.h.
68024
68025         * lib/mkstemp.h: New file, since some standard headers
68026         #define mkstemp.
68027         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68028         Include "mkstemp.h".
68029         Make the _LIBC code resemble glibc original more,
68030         e.g., use K&R style.
68031         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68032         (mkstemp): Remove, since mkstemp.h does this for us.
68033         * lib/stdlib--.h: Include mkstemp.h.
68034
68035         Import this patch from libc:
68036
68037         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68038
68039         * lib/tempname.c (__gen_tempname): Change attempts_min
68040         into a macro.  Use preprocessor to decide how to initialize
68041         attempts [Coverity CID 67].
68042
68043 2006-09-20  Bruno Haible  <bruno@clisp.org>
68044
68045         * lib/mkdtemp.c: Import from libc.
68046         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68047                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68048                 attempts_min into a macro.  Use preprocessor to decide how to
68049                 initialize attempts [Coverity CID 67].
68050         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68051                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68052                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68053
68054 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68055
68056         * gnulib-tool (func_exit): New function, to allow to pass the
68057         exit status portably through the trap.  Use everywhere.
68058         (--help, --version): Signal a write error.
68059         (trap): catch SIGPIPE, for write errors.
68060         Exit at the end of the trap, with the correct exit status.
68061
68062 2006-09-19  Karl Berry  <karl@gnu.org>
68063
68064         * doc/gnulib.texi: note about the license texinfo files.
68065
68066 2006-09-19  Eric Blake  <ebb9@byu.net>
68067
68068         * gnulib-tool: Avoid space-tab.
68069
68070 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68071
68072         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68073         that prevented coreutils 6.1 from building.  Problem reported
68074         by Petter Reinholdtsen.
68075
68076 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68077
68078         * gnulib-tool (avoidlist): Fix typo that broke options like
68079         --avoid=lock that are used by coreutils bootstrap.
68080
68081 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68082
68083         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68084         more systematically.
68085
68086 2006-09-18  Jim Meyering  <jim@meyering.net>
68087
68088         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68089
68090 2006-09-18  Bruno Haible  <bruno@clisp.org>
68091
68092         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68093
68094 2006-09-18  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68097         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68098         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68099         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68100         * m4/gettext.m4: Require autoconf >= 2.52.
68101         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68102         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68103         of gl_cv_header_inttypes_h.
68104
68105 2006-09-18  Bruno Haible  <bruno@clisp.org>
68106
68107         * lib/javaversion.c: Include configmake.h.
68108
68109 2006-09-18  Bruno Haible  <bruno@clisp.org>
68110
68111         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68112         avoid that the while loops be executed in a subshell.
68113
68114 2006-09-18  Bruno Haible  <bruno@clisp.org>
68115
68116         * MODULES.html.sh (func_module): Break long lines.
68117         Suggested by Bruce Korb <bkorb@gnu.org>.
68118
68119 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68120
68121         Speed up by a factor of 1.12.
68122         * gnulib-tool (nl): New variable.
68123         (func_import): Rewrite include directive extraction to only read each
68124         directive once.
68125
68126 2006-09-17  Bruno Haible  <bruno@clisp.org>
68127
68128         * modules/javaversion (Makefile.am): Remove DEFS setting.
68129         (Depends-on): Add configmake, for PKGDATADIR definition.
68130
68131 2006-09-17  Bruno Haible  <bruno@clisp.org>
68132
68133         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68134
68135 2006-09-17  Bruno Haible  <bruno@clisp.org>
68136
68137         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68138         (func_modules_transitive_closure, func_modules_add_dummy,
68139         func_modules_to_filelist, func_import, func_create_testdir,
68140         func_create_megatestdir, ...): Use it wherever possible.
68141         Suggested by Ralf Wildenhues.
68142
68143 2006-09-16  Karl Berry  <karl@gnu.org>
68144
68145         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68146         to avoid sectioning errors.
68147         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68148         [ifinfo]: blank line after @center-ed titles.
68149         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68150         Spell FSF address consistently with others.
68151         (These changes approved by rms.)
68152
68153 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68154
68155         Speed up by a factor of 1.61.
68156         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68157         already checked module names again.
68158
68159 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68160
68161         Speed up by a factor of 1.13.
68162         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68163         for new_files, and the input to func_add_or_update.
68164
68165 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68166
68167         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68168         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68169
68170 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * modules/mkancesdirs (Depends-on): Add fcntl.
68173         * modules/savewd: New file.
68174         * MODULES.html.sh (File system functions): Add savewd.
68175
68176         * modules/configmake (Makefile.am): Add support for the
68177         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68178
68179 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * m4/savewd.m4: New file.
68182
68183 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68186         (dirchownmod): New arg FD.  All callers changed.
68187         Use FD rather than opening the directory ourself, as opening is
68188         now the caller's responsibility.
68189         * lib/dirchownmod.h: Likewise.
68190         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68191         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68192         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68193         (test_dir): Remove.
68194         (mkancesdirs): Return length of prefix of FILE that has already
68195         been made, or -2 if there is a child doing the work.  Redo
68196         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68197         ".", and treat ".." specially since it might stray back into
68198         already-created areas.  Use a subprocess if necessary.  New arg
68199         WD; all users changed.  MAKE_DIR function should now return 1
68200         if it creates a directory that is not readable.  Return -2 if
68201         a child process is spun off.
68202         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68203         Adjust signature to match code.
68204         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68205         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68206         all users changed.
68207         * lib/savewd.c, lib/savewd.h: New files.
68208
68209 2006-09-15  Jim Meyering  <jim@meyering.net>
68210
68211         * modules/rename-dest-slash: New module.
68212         * MODULES.html.sh (posix_compat): Add it here.
68213
68214         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68215
68216 2006-09-15  Jim Meyering  <jim@meyering.net>
68217
68218         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68219         file.
68220
68221         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68222
68223 2006-09-15  Jim Meyering  <jim@meyering.net>
68224
68225         * lib/rename-dest-slash.c (has_trailing_slash): Use
68226         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68227         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68228         test before testing whether SRC is a directory.
68229         Suggestions from Bruno Haible.
68230
68231         Avoid a warning about an unused variable.
68232         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68233         into the #ifdef block where it's used.
68234
68235         * lib/rename-dest-slash.c: New file.
68236
68237 2006-09-14  Bruno Haible  <bruno@clisp.org>
68238
68239         * lib/allocsa.c: Include <config.h> unconditionally.
68240         * lib/asnprintf.c: Likewise.
68241         * lib/asprintf.c: Likewise.
68242         * lib/c-strcasecmp.c: Likewise.
68243         * lib/c-strcasestr.c: Likewise.
68244         * lib/c-strncasecmp.c: Likewise.
68245         * lib/c-strstr.c: Likewise.
68246         * lib/classpath.c: Likewise.
68247         * lib/clean-temp.c: Likewise.
68248         * lib/concatpath.c: Likewise.
68249         * lib/copy-file.c: Likewise.
68250         * lib/csharpcomp.c: Likewise.
68251         * lib/csharpexec.c: Likewise.
68252         * lib/execute.c: Likewise.
68253         * lib/fatal-signal.c: Likewise.
68254         * lib/findprog.c: Likewise.
68255         * lib/fwriteerror.c: Likewise.
68256         * lib/gl_array_list.c: Likewise.
68257         * lib/gl_array_oset.c: Likewise.
68258         * lib/gl_avltree_list.c: Likewise.
68259         * lib/gl_avltree_oset.c: Likewise.
68260         * lib/gl_avltreehash_list.c: Likewise.
68261         * lib/gl_carray_list.c: Likewise.
68262         * lib/gl_linked_list.c: Likewise.
68263         * lib/gl_linkedhash_list.c: Likewise.
68264         * lib/gl_list.c: Likewise.
68265         * lib/gl_oset.c: Likewise.
68266         * lib/gl_rbtree_list.c: Likewise.
68267         * lib/gl_rbtree_oset.c: Likewise.
68268         * lib/gl_rbtreehash_list.c: Likewise.
68269         * lib/imaxabs.c: Likewise.
68270         * lib/imaxdiv.c: Likewise.
68271         * lib/javacomp.c: Likewise.
68272         * lib/javaexec.c: Likewise.
68273         * lib/javaversion.c: Likewise.
68274         * lib/linebreak.c: Likewise.
68275         * lib/localcharset.c: Likewise.
68276         * lib/lock.c: Likewise.
68277         * lib/mbchar.c: Likewise.
68278         * lib/mbswidth.c: Likewise.
68279         * lib/mkdtemp.c: Likewise.
68280         * lib/pipe.c: Likewise.
68281         * lib/printf-args.c: Likewise.
68282         * lib/printf-parse.c: Likewise.
68283         * lib/progname.c: Likewise.
68284         * lib/progreloc.c: Likewise.
68285         * lib/readlink.c: Likewise.
68286         * lib/sh-quote.c: Likewise.
68287         * lib/stpcpy.c: Likewise.
68288         * lib/stpncpy.c: Likewise.
68289         * lib/strcasecmp.c: Likewise.
68290         * lib/strcasestr.c: Likewise.
68291         * lib/strcspn.c: Likewise.
68292         * lib/striconv.c: Likewise.
68293         * lib/strncasecmp.c: Likewise.
68294         * lib/strnlen1.c: Likewise.
68295         * lib/strstr.c: Likewise.
68296         * lib/strtok_r.c: Likewise.
68297         * lib/tls.c: Likewise.
68298         * lib/tmpdir.c: Likewise.
68299         * lib/unicodeio.c: Likewise.
68300         * lib/unsetenv.c: Likewise.
68301         * lib/vasnprintf.c: Likewise.
68302         * lib/vasprintf.c: Likewise.
68303         * lib/wait-process.c: Likewise.
68304         * lib/xallocsa.c: Likewise.
68305         * lib/xsetenv.c: Likewise.
68306         * lib/xstriconv.c: Likewise.
68307
68308 2006-09-13  Simon Josefsson  <jas@extundo.com>
68309
68310         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68311         that internally, suggested by Ralf Wildenhues
68312         <Ralf.Wildenhues@gmx.de>.
68313
68314 2006-09-13  Simon Josefsson  <jas@extundo.com>
68315
68316         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68317         @LIBOBJS@.
68318         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68319
68320 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68321
68322         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68323         longer worry about uses that don't define HAVE_CONFIG_H.
68324         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68325         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68326         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68327         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68328         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68329         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68330         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68331         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68332         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68333         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68334         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68335         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68336         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68337         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68338         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68339         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68340         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68341         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68342         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68343         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68344         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68345         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68346         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68347         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68348         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68349         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68350         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68351         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68352         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68353         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68354         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68355         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68356         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68357         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68358         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68359         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68360         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68361         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68362         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68363         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68364         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68365         Likewise.
68366
68367 2006-09-13  Eric Blake  <ebb9@byu.net>
68368
68369         * lib/getopt.c: Fix typo in last commit.
68370
68371 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68372
68373         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68374         dgettext.
68375
68376 2006-09-12  Jim Meyering  <jim@meyering.net>
68377
68378         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68379         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68380         Reported by Nelson H. F. Beebe.
68381
68382 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68383
68384         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68385         program_invocation_name and program_invocation_short_name are
68386         initialized.
68387         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68388         and program_invocation_short_name to argp.h, so they are visible
68389         to user programs.
68390         * lib/argp.h: Likewise
68391
68392 2006-09-10  Bruno Haible  <bruno@clisp.org>
68393
68394         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68395         m4/inttypes_h.m4, m4/uintmax_t.m4.
68396
68397 2006-09-10  Bruno Haible  <bruno@clisp.org>
68398
68399         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68400         gl_AC_TYPE_UINTMAX_T.
68401
68402 2006-09-10  Bruno Haible  <bruno@clisp.org>
68403
68404         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68405
68406 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68407
68408         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68409         convention.  Text proposed by Bruno Haible.
68410         (struct argp_option): Document the use of N_() wrappers.
68411
68412         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68413         '\v', and translate the two parts separately, instead of feeding
68414         the whole string to gettext.  This allows to exclude
68415         '\v' from the strings visible to the translator by writing doc
68416         strings as N_("..") "\v" N_("..").
68417
68418 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68419
68420         * config/srclist.txt: Undo latest change; the bug was fixed.
68421
68422 2006-09-09  Bruno Haible  <bruno@clisp.org>
68423
68424         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68425         assignments if building a library without libtool.
68426         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68427         in func_emit_lib_Makefile_am.
68428         (func_import): When building a static library libfoo.a, arrange to
68429         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68430         (func_create_testdir): Likewise.
68431         * modules/gc (configure.ac, Makefile.am): If building statically,
68432         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68433         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68434         * modules/striconv (configure.ac, Makefile.am): Likewise.
68435         Based on a suggestion by Ralf Wildenhues.
68436
68437 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68440         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68441         Also:
68442
68443         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68444         Add year_2050_test to catch glibc bug 2821
68445         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68446
68447         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68448         Prefer #ifdef to #if.
68449
68450         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68451         Return from 'main' instead of calling 'exit'.
68452
68453 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68454
68455         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68456         returned the maximum time_t value rather than (time_t) -1.
68457         Problem originally reported by William Bardwell
68458         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68459
68460         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68461         Moved to here ...
68462         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68463         ... from here.
68464
68465 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68468         2821 is fixed.
68469
68470 2006-09-08  Jim Meyering  <jim@meyering.net>
68471
68472         Don't make generated files read-only.  That would bother too many
68473         people.  However, do retain the ability to work when targets are
68474         read-only: remove the destination and temporary files before writing
68475         them (when generated via sed or echo), or by using the -f option for
68476         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68477         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68478         * modules/byteswap, modules/configmake, modules/fcntl:
68479         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68480         * modules/localcharset, modules/netinet_in, modules/poll:
68481         * modules/stdbool, modules/stdint, modules/sys_select:
68482         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68483
68484 2006-09-08  Jim Meyering  <jim@meyering.net>
68485
68486         Avoid new build failure on FreeBSD 6.0.
68487         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68488         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68489         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68490
68491 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68492
68493         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68494
68495 2006-09-07  Jim Meyering  <jim@meyering.net>
68496
68497         Fix global typo in last change: use chmod u-w, not chmod u-x.
68498         Spotted by Paul Eggert and Bruce Korb.
68499         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68500         * modules/byteswap, modules/configmake, modules/fcntl:
68501         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68502         * modules/localcharset, modules/netinet_in, modules/poll:
68503         * modules/stdbool, modules/stdint, modules/sys_select:
68504         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68505
68506 2006-09-06  Jim Meyering  <jim@meyering.net>
68507
68508         Make generated files be read-only.
68509         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68510         Ensure that each generated file is now read-only.
68511         * modules/argz: Likewise.
68512         * modules/arpa_inet: Likewise.
68513         * modules/byteswap: Likewise.
68514         * modules/configmake: Likewise.
68515         * modules/fcntl: Likewise.
68516         * modules/fnmatch: Likewise.
68517         * modules/getopt: Likewise.
68518         * modules/glob: Likewise.
68519         * modules/inttypes: Likewise.
68520         * modules/netinet_in: Likewise.
68521         * modules/poll: Likewise.
68522         * modules/stdbool: Likewise.
68523         * modules/stdint: Likewise.
68524         * modules/sys_select: Likewise.
68525         * modules/sys_socket: Likewise.
68526         * modules/sys_stat: Likewise.
68527         * modules/sysexits: Likewise.
68528         * modules/localcharset: Same as above, but continue using temporary
68529         file named "t-$@" (why different?) rather than the "$@-t" used
68530         everywhere else.
68531
68532         * modules/sysexits (Makefile.am): Replace literal occurrences
68533         of "sysexit.h" more readable, and more consistent, "$@".
68534
68535 2006-09-06  Bruno Haible  <bruno@clisp.org>
68536
68537         * modules/striconv: New file.
68538         * modules/xstriconv: New file.
68539         * MODULES.html.sh (Internationalization functions): Add striconv,
68540         xstriconv.
68541
68542 2006-09-06  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68545         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68546         not using libtool correctly.
68547
68548 2006-09-06  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/striconv.h: New file.
68551         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68552         iconvstring.c.
68553         * lib/xstriconv.h: New file.
68554         * lib/xstriconv.c: New file.
68555
68556 2006-09-06  Bruno Haible  <bruno@clisp.org>
68557
68558         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68559         lib_..._LDFLAGS.
68560
68561 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68562
68563         * lib/argz_.h: Sync from Libtool.
68564
68565         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68566                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68567
68568         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68569
68570 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68571
68572         * modules/trim: New file.
68573
68574 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68575
68576         * lib/trim.h: New file.
68577         * lib/trim.c: New file.
68578
68579 2006-09-05  Bruno Haible  <bruno@clisp.org>
68580
68581         * MODULES.html.sh (String handling): Add trim.
68582
68583 2006-09-04  Karl Berry  <karl@gnu.org>
68584
68585         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68586         until next release.
68587
68588 2006-09-03  Bruno Haible  <bruno@clisp.org>
68589
68590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68591         correctly.
68592
68593 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68594
68595         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68596         not gl_GETLOADAVG.  Omit unneeded semicolons.
68597         Problems reported by Ralf Wildenhues in
68598         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68599         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68600         at the end, which is the usual gnulib style.
68601
68602         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68603         of doing all the work ourselves.
68604         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68605         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68606
68607 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68608
68609         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68610         Problem reported by Ralf Wildenhues in
68611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68612
68613         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68614         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68615
68616 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68617
68618         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68619         yesterday's patch by changing test -n to test -z.
68620
68621 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68622
68623         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68624         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68625         the former is now obsolescent.
68626
68627         * modules/chdir-long (Depends-on): Add fcntl.
68628
68629 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68630
68631         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68632         obsolescent, and programs should use gnulib instead.
68633         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68634         but with prefixes changed.
68635
68636 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68639         or stdbool.h, because they might not exist while configuring.
68640
68641         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68642         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68643         does that for us.
68644         (O_DIRECTORY): Remove.
68645
68646 2006-08-31  Eric Blake  <ebb9@byu.net>
68647
68648         * gnulib-tool: Don't let emacs change spaces to TAB.
68649
68650 2006-08-31  Bruno Haible  <bruno@clisp.org>
68651
68652         * gnulib-tool: When calling func_import more than once, do it in a
68653         subshell.
68654         Reported by Eric Blake <ebb9@byu.net>.
68655
68656 2006-08-31  Bruno Haible  <bruno@clisp.org>
68657
68658         * gnulib-tool (nl): Remove variable.
68659         (sed_transform_lib_file): Use more robust test for config-h module.
68660         (func_import): Fix typo in 2006-08-25 patch.
68661
68662 2006-08-31  Bruno Haible  <bruno@clisp.org>
68663
68664         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68665         specified, augment Makefile.am variables instead of assigning them.
68666
68667 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68668
68669         Work around a bug in both the Linux and SunOS 64-bit kernels:
68670         nanosleep mishandles sleeps for longer than 2**31 seconds.
68671         Problem reported by Frank v Waveren in
68672         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68674         Check for nanosleep bug.
68675         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68676
68677 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         Work around a bug in both the Linux and SunOS 64-bit kernels:
68680         nanosleep mishandles sleeps for longer than 2**31 seconds.
68681         Problem reported by Frank v Waveren in
68682         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68683         * lib/nanosleep.c (BILLION): New constant.
68684         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68685         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68686         implementation.
68687
68688 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68689
68690         * modules/nanosleep (Depends-on): Add gettime.
68691
68692 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68693         and Simon Josefsson  <jas@extundo.com>
68694         and Oskar Liljeblad  <oskar@osk.mine.nu>
68695
68696         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68697         * gnulib-tool (func_import): New license type 'unmodifiable license
68698         text'.
68699         * modules/fdl: Use it.  Longer description.
68700         * module/gpl, module/lgpl: New files.
68701
68702 2006-08-30  Jim Meyering  <jim@meyering.net>
68703
68704         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68705         shadowing the parameter.
68706
68707 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68708
68709         Sync from Libtool:
68710
68711         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68712
68713         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68714         sharing with gnulib.  Report by Eric Blake.
68715
68716 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * modules/isapipe: New file.
68719         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68720
68721 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * modules/configmake (Makefile.am): Add a comment, and omit
68724         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68725         by Bruno Haible.
68726
68727 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68728
68729         * m4/isapipe.m4: New file.
68730
68731 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68732
68733         * lib/isapipe.c, lib/isapipe.h: New files.
68734
68735 2006-08-29  Jim Meyering  <jim@meyering.net>
68736
68737         * modules/configmake (Makefile.am): Make configmake.h depend on
68738         Makefile.  Otherwise, a stale configmake.h could hang around.
68739
68740 2006-08-29  Eric Blake  <ebb9@byu.net>
68741
68742         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68743         resolution of upstream bug 3044.
68744
68745 2006-08-29  Bruno Haible  <bruno@clisp.org>
68746
68747         * modules/localcharset (Depends-on): Add configmake.
68748         (Makefile.am): Remove setting of LIBDIR through DEFS.
68749
68750 2006-08-29  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68753         defined.
68754
68755 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68756
68757         * modules/fcntl: New file.
68758         * modules/chdir-safer (Depends-on): Add fcntl.
68759         * modules/fts: Likewise.
68760         * modules/mkdir-p: Likewise.
68761
68762         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68763         This undoes the most recent change, since we're now addressing the
68764         problem in a different way.
68765
68766         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68767         into output, since the output might be called Makefile.am even
68768         if $makefile_name is something different.
68769         (func_import): Use $makefile_am rather than
68770         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68771         empty.
68772
68773         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68774
68775 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68778         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68779         recent change to stdint.m4, since we're now addressing the problem in a
68780         different way.
68781
68782 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * m4/fcntl_h.m4: New file.
68785
68786 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * lib/fcntl_.h: New file.
68789         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68790         the fcntl module.
68791         * lib/dirchownmod.c: Likewise.
68792         * lib/fts.c: Likewise.
68793
68794         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68795         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68796         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68797         just before including <inttypes.h>, to avoid circular inclusion.
68798
68799 2006-08-28  Jim Meyering  <jim@meyering.net>
68800
68801         * doc/visibility.texi: Actually read and correct the grammar of the
68802         sentence affected by yesterday's change.
68803
68804 2006-08-28  Eric Blake  <ebb9@byu.net>
68805
68806         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68807         needs wrapper.
68808
68809 2006-08-28  Eric Blake  <ebb9@byu.net>
68810
68811         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68812
68813 2006-08-28  Eric Blake  <ebb9@byu.net>
68814
68815         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68816
68817 2006-08-28  Bruno Haible  <bruno@clisp.org>
68818
68819         * modules/c-strstr: New file, from GNU gettext.
68820         * MODULES.html.sh (String handling): Add c-strstr.
68821
68822 2006-08-28  Bruno Haible  <bruno@clisp.org>
68823
68824         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68825         macros.
68826         Reported by Eric Blake.
68827
68828 2006-08-28  Bruno Haible  <bruno@clisp.org>
68829
68830         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68831         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68832         * lib/vasprintf.c: Include errno.h, limits.h.
68833         (EOVERFLOW): New fallback definition.
68834         (vasprintf): Test here whether the string length is > INT_MAX.
68835         * lib/vsnprintf.c: Include errno.h, limits.h.
68836         (EOVERFLOW): New fallback definition.
68837         (vsnprintf): Fix bug when generated string was too long for the buffer.
68838         Test here whether the string length is > INT_MAX.
68839
68840 2006-08-28  Bruno Haible  <bruno@clisp.org>
68841
68842         * lib/inttypes_.h (SCNX*): Remove definitions.
68843         Reported by Eric Blake.
68844
68845 2006-08-28  Bruno Haible  <bruno@clisp.org>
68846
68847         * lib/c-strstr.h: New file, from GNU gettext.
68848         * lib/c-strstr.c: New file, from GNU gettext.
68849
68850 2006-08-28  Bruno Haible  <bruno@clisp.org>
68851
68852         * gnulib-tool: Reorder some statements.
68853
68854 2006-08-28  Bruno Haible  <bruno@clisp.org>
68855
68856         * gnulib-tool: New option --makefile-name.
68857         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68858         $makefile_name.
68859         (func_import): Write $makefile_name to the cache file, and read it from
68860         there unless explicitly specified. Use $makefile_name as file name
68861         instead of Makefile.am. Adjust the recommendations accordingly.
68862
68863 2006-08-28  Bruno Haible  <bruno@clisp.org>
68864
68865         * gnulib-tool (func_verify_module): Check against misapplying patch.
68866
68867 2006-08-28  Bruno Haible  <bruno@clisp.org>
68868
68869         * gnulib-tool (func_relativize, func_relconcat): New functions.
68870         Give an error if --local-dir is given with --update.
68871         Remove trailing slashes from $local_gnulib_dir.
68872         (func_import): Store the relativized $local_gnulib_dir in
68873         gnulib-cache.m4, and read it from there if not specified explicitly.
68874
68875 2006-08-28  Bruno Haible  <bruno@clisp.org>
68876
68877         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68878         is the current directory. Respect also $local_gnulib_dir.
68879
68880 2006-08-28  Bruno Haible  <bruno@clisp.org>
68881             Simon Josefsson  <jas@extundo.com>
68882
68883         BeOS portability.
68884         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68885
68886 2006-08-27  Jim Meyering  <jim@meyering.net>
68887
68888         * doc/visibility.texi: Remove duplicate word: "pointer".
68889
68890 2006-08-26  Bruno Haible  <bruno@clisp.org>
68891
68892         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68893         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68894         (Makefile.am): Create inttypes.h from inttypes_.h.
68895         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68896
68897         * modules/imaxabs: New file.
68898
68899         * modules/imaxdiv: New file.
68900
68901 2006-08-26  Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/inttypes.m4: New file.
68904         * m4/_inttypes_h.m4: Remove file.
68905         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68906         PRI_MACROS_BROKEN.
68907         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68908
68909         * m4/imaxabs.m4: New file.
68910
68911         * m4/imaxdiv.m4: New file.
68912
68913 2006-08-26  Bruno Haible  <bruno@clisp.org>
68914
68915         * lib/inttypes_.h: New file.
68916         * lib/inttypes.h: Remove file.
68917         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68918
68919         * lib/imaxabs.c: New file.
68920
68921         * lib/imaxdiv.c: New file.
68922
68923 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         New config-h module, so that "make" output needn't be cluttered
68926         by -DHAVE_CONFIG_H.
68927         * MODULES.html.sh (Support for building libraries and executables):
68928         Add config-h.
68929         * modules/config-h: New file.
68930         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68931         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68932         the config-h module is used.
68933
68934         New configmake module, so that "make" output needn't be cluttered
68935         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68936         * MODULES.html.sh (Support for building libraries and executables):
68937         Add configmake.
68938         * modules/configmake: New file.
68939
68940 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         * m4/config-h.m4: New file.
68943
68944 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68945
68946         * config/srclist.txt: Add elisp-comp.
68947
68948 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68949
68950         * MODULES.html.sh (Support for building libraries and executables):
68951         Add elisp-comp.
68952         * build-aux/elisp-comp: New file.
68953         * modules/elisp-comp: New file.
68954
68955 2006-08-24  Bruno Haible  <bruno@clisp.org>
68956
68957         * gnulib-tool (func_create_testdir): Use non-default values of
68958         sourcebase and m4base.
68959
68960 2006-08-24  Bruno Haible  <bruno@clisp.org>
68961
68962         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68963         HTML structure.
68964
68965 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * modules/openat (Depends-on): Add lchown.
68968
68969 2006-08-23  Bruno Haible  <bruno@clisp.org>
68970
68971         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68972         of gl_LOCK_EARLY instead of gl_LOCK.
68973
68974 2006-08-23  Bruno Haible  <bruno@clisp.org>
68975
68976         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68977         on OSF/1 to no.
68978         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68979
68980 2006-08-23  Bruno Haible  <bruno@clisp.org>
68981
68982         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68983         as unusable.
68984
68985         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68986         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68987         (gl_LOCK): New macro.
68988
68989 2006-08-22  Simon Josefsson  <jas@extundo.com>
68990
68991         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68992         to md5 module.
68993
68994 2006-08-22  Simon Josefsson  <jas@extundo.com>
68995
68996         * MODULES.html.sh: Add "Support for maintaining and release
68997         projects".
68998
68999         * build-aux/gnupload: New file, from coreutils.
69000
69001 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         Avoid the need for AC_LIBSOURCES in m4 macros.
69004         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69005         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69006         * modules/check-version (EXTRA_DIST): Add check-version.h.
69007         * modules/crc (EXTRA_DIST): Add crc.h.
69008         * modules/des (EXTRA_DIST): Add des.h.
69009         * modules/gc (EXTRA_DIST): Add gc.h.
69010         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69011         * modules/getline (EXTRA_DIST): Add getline.h.
69012         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69013         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69014         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69015         * modules/md2 (EXTRA_DIST): Add md2.h.
69016         * modules/md4 (EXTRA_DIST): Add md4.h.
69017         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69018         * modules/read-file (EXTRA_DIST): Add read-file.h.
69019         * modules/readline (EXTRA_DIST): Add readline.h.
69020         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69021         rijndael-api-fst.h.
69022
69023 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * m4/rijndael.m4 (gl_ARCFOUR):
69026         * m4/arctwo.m4 (gl_ARCTWO):
69027         * m4/check-version.m4 (gl_CHECK_VERSION):
69028         * m4/crc.m4 (gl_CRC):
69029         * m4/des.m4 (gl_DES):
69030         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69031         * m4/gc.m4 (gl_GC):
69032         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69033         * m4/getline.m4 (gl_FUNC_GETLINE):
69034         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69035         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69036         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69037         * m4/md2.m4 (gl_MD2):
69038         * m4/md4.m4 (gl_MD4):
69039         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69040         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69041         * m4/readline.m4 (gl_FUNC_READLINE):
69042         * m4/rijndael.m4 (gl_RIJNDAEL):
69043         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69044         to get the necessary .h files and whatnot.
69045
69046 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69049         gnulib rather than the other way around.
69050         * config/srclistvars.sh (COREUTILS): Remove.
69051
69052 2006-08-22  Jim Meyering  <jim@meyering.net>
69053
69054         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69055
69056         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69057
69058 2006-08-22  Eric Blake  <ebb9@byu.net>
69059
69060         * modules/regexprops-generic: New file.
69061         * MODULES.html.sh (Support for building documentation): List it.
69062
69063 2006-08-22  Eric Blake  <ebb9@byu.net>
69064
69065         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69066         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69067         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69068         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69069
69070 2006-08-22  Bruno Haible  <bruno@clisp.org>
69071
69072         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69073         and lib_LTLIBRARIES like the other lib_* variables.
69074
69075 2006-08-22  Bruno Haible  <bruno@clisp.org>
69076
69077         * build-aux/x-to-1.in: New file, from GNU gettext.
69078
69079 2006-08-22  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69082         <utmpx.h> exists.
69083
69084 2006-08-22  Bruno Haible  <bruno@clisp.org>
69085
69086         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69087         <utmpx.h> exists.
69088
69089 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         BeOS portability.
69092         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69093         exist.
69094         Problem reported by Bruno Haible.
69095
69096 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         Avoid the need for AC_LIBSOURCES in m4 macros.
69099         * modules/acl (EXTRA_DIST): Add acl.h.
69100         * modules/argmatch (Files): Add m4/argmatch.m4.
69101         (configure.ac): Add gl_ARGMATCH.
69102         (EXTRA_DIST): Renamed from lib_SOURCES, for
69103         consistency with the other modules.  Remove argmatch.c.
69104         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69105         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69106         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69107         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69108         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69109         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69110         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69111         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69112         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69113         * modules/closeout (EXTRA_DIST): Add closeout.h.
69114         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69115         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69116         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69117         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69118         dirname.h; remove basename.c and stripslash.c.
69119         * modules/exclude (EXTRA_DIST): Add exclude.h.
69120         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69121         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69122         * modules/file-type (EXTRA_DIST): Add file-type.h.
69123         * modules/filemode (EXTRA_DIST): Add filemode.h.
69124         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69125         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69126         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69127         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69128         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69129         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69130         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69131         * modules/getdate (EXTRA_DIST): Add getdate.c.
69132         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69133         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69134         * modules/getpass (EXTRA_DIST): Add getpass.h.
69135         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69136         * modules/group-member (EXTRA_DIST): Add group-member.h.
69137         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69138         * modules/hash (EXTRA_DIST): Add hash.h.
69139         * modules/human (EXTRA_DIST): Add human.h.
69140         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69141         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69142         * modules/lchown (EXTRA_DIST): Add lchown.h.
69143         * modules/long-options (EXTRA_DIST): Add long-options.h.
69144         * modules/lstat (EXTRA_DIST): Add lstat.h.
69145         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69146         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69147         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69148         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69149         * modules/memxor (EXTRA_DIST): Add memxor.h.
69150         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69151         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69152         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69153         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69154         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69155         * modules/physmem (EXTRA_DIST): Add physmem.h.
69156         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69157         * modules/posixver (EXTRA_DIST): Add posixver.h.
69158         * modules/quote (EXTRA_DIST): Add quote.h.
69159         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69160         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69161         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69162         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69163         regex_internal.h regexec.c.
69164         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69165         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69166         * modules/same (EXTRA_DIST): Add same.h.
69167         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69168         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69169         * modules/savedir (EXTRA_DIST): Add savedir.h.
69170         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69171         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69172         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69173         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69174         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69175         * modules/strdup (EXTRA_DIST): Add strdup.h.
69176         * modules/strftime (EXTRA_DIST): Add strftime.h.
69177         * modules/strndup (EXTRA_DIST): Add strndup.h.
69178         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69179         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69180         * modules/time_r (EXTRA_DIST): Add time_r.h.
69181         * modules/timespec (EXTRA_DIST): Add timespec.h.
69182         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69183         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69184         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69185         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69186         * modules/userspec (EXTRA_DIST): Add userspec.h.
69187         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69188         * modules/utimens (EXTRA_DIST): Add utimens.h.
69189         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69190         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69191         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69192         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69193         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69194         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69195         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69196         * modules/yesno (EXTRA_DIST): Add yesno.h.
69197
69198 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69199
69200         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69201
69202         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69203         * m4/dev-ino.m4, same-inode.m4: Remove.
69204
69205         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69206         * m4/acl.m4 (AC_FUNC_ACL):
69207         * m4/backupfile.m4 (gl_BACKUPFILE):
69208         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69209         * m4/canon-host.m4 (gl_CANON_HOST):
69210         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69211         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69212         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69213         * m4/cloexec.m4 (gl_CLOEXEC):
69214         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69215         * m4/closeout.m4 (gl_CLOSEOUT):
69216         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69217         * m4/dirname.m4 (gl_DIRNAME):
69218         * m4/exclude.m4 (gl_EXCLUDE):
69219         * m4/exitfail.m4 (gl_EXITFAIL):
69220         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69221         * m4/file-type.m4 (gl_FILE_TYPE):
69222         * m4/filemode.m4 (gl_FILEMODE):
69223         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69224         * m4/fpending.m4 (gl_FUNC_FPENDING):
69225         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69226         * m4/fts.m4 (gl_FUNC_FTS):
69227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69228         * m4/getdate.m4 (gl_GETDATE):
69229         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69230         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69231         * m4/getpass.m4 (gl_FUNC_GETPASS):
69232         * m4/gettime.m4 (gl_GETTIME):
69233         * m4/getugroups.m4 (gl_GETUGROUPS):
69234         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69235         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69236         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69237         * m4/hash.m4 (gl_HASH):
69238         * m4/idcache.m4 (gl_IDCACHE):
69239         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69240         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69241         * m4/long-options.m4 (gl_LONG_OPTIONS):
69242         * m4/lstat.m4 (gl_FUNC_LSTAT):
69243         * m4/md5.m4 (gl_MD5):
69244         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69245         * m4/memcoll.m4 (gl_MEMCOLL):
69246         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69247         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69248         * m4/memxor.m4 (gl_MEMXOR):
69249         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69250         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69251         * m4/modechange.m4 (gl_MODECHANGE):
69252         * m4/mountlist.m4 (gl_MOUNTLIST):
69253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69254         * m4/openat.m4 (gl_FUNC_OPENAT):
69255         * m4/pathmax.m4 (gl_PATHMAX):
69256         * m4/physmem.m4 (gl_PHYSMEM):
69257         * m4/posixtm.m4 (gl_POSIXTM):
69258         * m4/posixver.m4 (gl_POSIXVER):
69259         * m4/quote.m4 (gl_QUOTE):
69260         * m4/quotearg.m4 (gl_QUOTEARG):
69261         * m4/readtokens.m4 (gl_READTOKENS):
69262         * m4/readutmp.m4 (gl_READUTMP):
69263         * m4/regex.m4 (gl_REGEX):
69264         * m4/safe-read.m4 (gl_SAFE_READ):
69265         * m4/safe-write.m4 (gl_SAFE_WRITE):
69266         * m4/same.m4 (gl_SAME):
69267         * m4/save-cwd.m4 (gl_SAVE_CWD):
69268         * m4/savedir.m4 (gl_SAVEDIR):
69269         * m4/settime.m4 (gl_SETTIME):
69270         * m4/sha1.m4 (gl_SHA1):
69271         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69272         * m4/stat-macros.m4 (gl_STAT_MACROS):
69273         * m4/stat-time.m4 (gl_STAT_TIME):
69274         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69275         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69276         * m4/strdup.m4 (gl_FUNC_STRDUP):
69277         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69278         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69279         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69280         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69281         * m4/time_r.m4 (gl_TIME_R):
69282         * m4/timespec.m4 (gl_TIMESPEC):
69283         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69284         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69285         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69286         * m4/userspec.m4 (gl_USERSPEC):
69287         * m4/utimecmp.m4 (gl_UTIMECMP):
69288         * m4/utimens.m4 (gl_UTIMENS):
69289         * m4/xalloc.m4 (gl_XALLOC):
69290         * m4/xgetcwd.m4 (gl_XGETCWD):
69291         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69292         * m4/xreadlink.m4 (gl_XREADLINK):
69293         * m4/xstrtod.m4 (gl_XSTRTOD):
69294         * m4/yesno.m4 (gl_YESNO):
69295         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69296         to get the necessary .h files and whatnot.
69297
69298 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69299             Bruno Haible  <bruno@clisp.org>
69300
69301         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69302         /bin/sh understanding of '!' conditional negation.
69303
69304 2006-08-21  Jim Meyering  <jim@meyering.net>
69305
69306         * modules/openat (Depends-on): Really alphabetize.
69307
69308         * modules/acl (Depends-on): Add error and quote.
69309
69310         * check-module (find_included_lib_files): Add at-func.c to the
69311         ok-to-include-more-than-once white list.
69312
69313         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69314
69315 2006-08-21  Bruno Haible  <bruno@clisp.org>
69316
69317         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69318         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69319         Reported by Martin Lambers <marlam@marlam.de>.
69320
69321 2006-08-21  Bruno Haible  <bruno@clisp.org>
69322
69323         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69324         specify an installation location, don't emit a noinst_LIBRARIES or
69325         noinst_LTLIBRARIES assignment.
69326
69327 2006-08-21  Bruno Haible  <bruno@clisp.org>
69328
69329         BeOS portability.
69330         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69331         BeOS has mbrtowc() but no <wctype.h>.
69332
69333 2006-08-21  Bruno Haible  <bruno@clisp.org>
69334
69335         BeOS portability.
69336         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69337         exist.
69338
69339 2006-08-21  Bruno Haible  <bruno@clisp.org>
69340
69341         BeOS portability.
69342         * lib/mbchar.h: Include <wctype.h> only if it exists.
69343
69344 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         Remove files that are no longer needed by their respective modules.
69347         * m4/obstack.m4: Remove.
69348         * m4/strerror_r.m4: Remove.
69349         * m4/uint32_t.m4: Remove.
69350         * m4/uintptr_t.m4: Remove.
69351         * m4/ullong_max.m4: Remove.
69352         * m4/xstrtoimax.m4: Remove.
69353         * m4/xstrtoumax.m4: Remove.
69354
69355         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69356         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69357         dependencies now capture this.
69358
69359         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69360         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69361         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69362         * m4/human.m4 (gl_HUMAN): Likewise.
69363         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69364         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69365
69366         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69367
69368         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69369         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69370         stdint.
69371         * m4/human.m4 (gl_HUMAN): Likewise.
69372         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69373         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69374         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69375         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69376         * m4/xstrtol (gl_XSTRTOL): Likewise.
69377
69378         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69379         AC_TYPE_LONG_LONG_INT.
69380         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69381         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69382         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69383         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69384
69385         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69386         on stdbool.
69387
69388         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69389         (gl_PREREQ_XSTRTOUL): Remove.
69390
69391         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69392
69393         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69394         mode.
69395
69396 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         Add and change modules to make it easier for coreutils to use
69399         gnulib-tool.
69400         * modules/backupfile (Files): Remove m4/d-ino.m4.
69401         (Depends-on): Add d-ino.
69402         * modules/cycle-check (Depends-on): Add stdint.
69403         (lib_SOURCES): Add cycle-check.h.
69404         * modules/d-ino: New module.
69405         * modules/d-type: New module.
69406         * modules/error (Files): Remove m4/strerror_r.m4.
69407         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69408         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69409         m4/inttypes_h.m4, m4/uintmax_t.m4.
69410         (Depends-on): Add stdint.
69411         (lib_SOURCES): Add fsusage.h.
69412         * modules/getcwd (Files): Remove d-ino.m4.
69413         (Depends-on): Add d-ino.
69414         * modules/getndelim2 (Depends-on): Add stdint.
69415         * modules/glob (Files): Remove m4/d-type.m4.
69416         (Depends-on): Add d-type.
69417         * modules/host-os: New module.
69418         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69419         m4/inttypes_h.m4, m4/uintmax_t.m4.
69420         * Depends-on: Add stdint.
69421         (lib_SOURCES): Add human.h.
69422         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69423         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69424         m4/uintmax_t.m4, m4/ulonglong.m4.
69425         (Depends-on): Add stdint.
69426         (EXTRA_DIST): Add inttostr.h.
69427         * modules/lchmod: New module.
69428         * modules/link-follow: New module.
69429         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69430         (Depends-on): Add lchmod.
69431         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69432         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69433         (Depends-on): Add stdint.
69434         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69435         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69436         (Depends-on): Add stdint.
69437         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69438         * modules/perl: New module.
69439         * modules/regex (Depends-on): Add stdint.
69440         * modules/rmdir-errno: New module.
69441         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69442         m4/intmax_t.m4.
69443         (Depends-on): Add stdint.
69444         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69445         m4/uintmax_t.m4.
69446         (Depends-on): Add stdint.
69447         * modules/unlink-busy: New module.
69448         * modules/utimecmp (Depends-on): Add stdint.
69449         * modules/uptime: New module.
69450         * modules/winsz-ioctl: New module.
69451         * modules/winsz-termios: New module.
69452         * modules/xnanosleep (Depends-on): Add nanosleep.
69453         * modules/ullong_max: Remove.
69454         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69455         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69456         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69457         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69458         (Depends-on): Add inttypes.
69459         (lib_SOURCES): Add xstrtol.h.
69460         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69461         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69462         * MODULES.html.sh: Move 'assert' into the assert section.
69463         Move 'dummy' into the linking section.
69464         Remove ullong_max.
69465         Add section for compatibility checks for POSIX:2001 functions,
69466         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69467         winsz-ioctl, and winsz-termios into it.
69468         Add lchmod.
69469         Add top-level Misc section and put host-os, perl, and uptime
69470         into it.
69471
69472 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69473
69474         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69475         now assume the stdint module.  Do not include inttypes.h.
69476         * lib/fsusage.h: Likewise.
69477         * lib/getndelim2.c: Likewise.
69478         * lib/human.h: Likewise.
69479         * lib/inttostr.h: Likewise.
69480         * lib/obstack.c: Likewise.
69481         * lib/regex_internal.h: Likewise.
69482         * lib/tempname.c: Likewise.
69483         * lib/utimecmp.c: Likewise.
69484         * lib/xstrtol.h: Likewise.
69485
69486         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69487
69488         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69489         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69490         * lib/xtime.h: Likewise.
69491
69492 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * modules/openat (Files): Add lib/fchmodat.c.
69495         Fixes problem reported by Jay Youngman.
69496
69497 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69498
69499         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69500         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69501
69502 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69503             Bruno Haible  <bruno@clisp.org>
69504
69505         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69506         and is a script that invokes bison. Tighten the code. Add comments.
69507
69508 2006-08-18  Jim Meyering  <jim@meyering.net>
69509
69510         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69511         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69512         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69513         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69514
69515 2006-08-18  Bruno Haible  <bruno@clisp.org>
69516
69517         * modules/bison-i18n: New file.
69518         * MODULES.html.sh (Internationalization functions): Add it.
69519
69520 2006-08-18  Bruno Haible  <bruno@clisp.org>
69521
69522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69523         sys/statvfs.h. When getmntinfo was found, check its declaration and
69524         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69525
69526 2006-08-18  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/bison-i18n.m4: New file, from bison.
69529
69530 2006-08-18  Bruno Haible  <bruno@clisp.org>
69531
69532         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69533         (ME_DUMMY): Treat "kernfs" as a dummy.
69534         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69535
69536 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69537
69538         Update from coreutils.
69539
69540         2006-08-15  Jim Meyering  <jim@meyering.net>
69541
69542         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69543
69544         2006-01-17  Jim Meyering  <jim@meyering.net>
69545
69546         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69547
69548         2006-01-11  Jim Meyering  <jim@meyering.net>
69549
69550         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69551         Check for the lchmod function.
69552
69553 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         Update from coreutils.
69556
69557         * lib/__fpending.h: Add copyright notice.
69558         * lib/fprintftime.h: Likewise.
69559         * lib/savedir.c: Use (C) in copyright notice.
69560         * lib/savedir.h: Likewise.
69561
69562         2006-08-15  Jim Meyering  <jim@meyering.net>
69563
69564         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69565         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69566         in support of the EXPECTED_ERRNO macro.
69567         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69568         definitions.  Instead, define the appropriate symbols and include
69569         "at-func.c".
69570         * lib/mkdirat.c (mkdirat): Likewise.
69571         * lib/fchmodat.c (fchmodat): Likewise.
69572         (ENOSYS): Remove definition.
69573         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69574         it.  Don't include "unistd--.h" -- it wasn't ever used.
69575
69576         2006-01-17  Jim Meyering  <jim@meyering.net>
69577
69578         Rewrite fts.c not to change the current working directory,
69579         by using openat, fstatat, fdopendir, etc..
69580
69581         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69582         (HAVE_OPENAT_SUPPORT): Define.
69583         [_LIBC] (fchdir): Don't undef or define; no longer used.
69584         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69585         Now, this `function' always succeeds, and consumes its file descriptor
69586         parameter -- so callers must not close such FDs.  Update callers.
69587         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69588         (diropen): Add parameter, SP.  Adjust all callers.
69589         Implement using diropen_fd, rather than open.
69590         (fts_open): Initialize new member, fts_cwd_fd.
69591         Remove fts_rft-setting code.
69592         (fts_close): Close fts_cwd_fd, if necessary.
69593         (__opendir2): Define in terms of opendir or opendirat,
69594         depending on whether the FST_NOCHDIR flag is set.
69595         (fts_build): Since fts_safe_changedir consumes its FD, and since
69596         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69597         and close the dup'd file descriptor upon failure.
69598         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69599         (fts_safe_changedir): Tweak semantics to reflect that this function
69600         now calls cwd_advance_fd and hence consumes its FD argument.
69601         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69602         [struct FTS] (fts_rft): Remove now-unused member.
69603         [struct FTS] (fts_cycle.state): Improve comment.
69604
69605         * lib/openat.c (openat_needs_fchdir): New function.
69606         * lib/openat.h (openat_needs_fchdir): Declare it.
69607
69608 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69611         Problem and fix reported by Pádraig Brady in
69612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69613
69614 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69617
69618 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69619
69620         * lib/memcoll.c (memcoll): Optimize for the common case where the
69621         arguments are bytewise equal.
69622
69623 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69624
69625         * doc/regexprops-generic.texi: Add a copyright notice.
69626
69627 2006-08-15  Bruno Haible  <bruno@clisp.org>
69628
69629         * modules/tmpdir (License): Change to LGPL.
69630
69631 2006-08-15  Bruno Haible  <bruno@clisp.org>
69632
69633         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69634         module.
69635
69636 2006-08-14  Simon Josefsson  <jas@extundo.com>
69637
69638         * config/srclist.txt: Add gnupload.
69639
69640 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         Change copyright notice from LGPL 2 to GPL 2, since that's the
69643         standard form used in the gnulib repository.
69644         * tests/test-lock.c: Likewise.
69645         * tests/test-stdint.c: Likewise.
69646         * tests/test-tls.c: Likewise.
69647
69648         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69649         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69650         Add copyright notice.
69651
69652         * check-module: Add copyright notice.  Output a copyright
69653         notice if "--version" is specified.
69654         * modules/COPYING: New file.
69655         * tests/test-getaddrinfo.c: Add copyright notice.
69656         * tests/test-verify.c: Likewise.
69657
69658 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69659
69660         Change copyright notice from LGPL 2 to GPL 2, since that's the
69661         standard form used in the gnulib repository.
69662         * lib/lock.c: LGPL -> GPL.
69663         * lib/lock.h: Likewise.
69664         * lib/strnlen1.c: Likewise.
69665         * lib/strnlen1.h: Likewise.
69666         * lib/tls.c: Likewise.
69667         * lib/tls.h: Likewise.
69668         * lib/tmpdir.c: Likewise.
69669
69670         * lib/TODO: Remove; this belongs only in coreutils.
69671
69672 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         Add copyright notices to long-enough files that lack them, since
69675         otherwise the files aren't clearly free.  Use the same notice that
69676         getdate.texi already uses.
69677         * doc/alloca-opt.texi: Add copyright notice.
69678         * doc/alloca.texi: Likewise.
69679         * doc/ctime.texi: Likewise.
69680         * doc/functions.texi: Likewise.
69681         * doc/gcd.texi: Likewise.
69682         * doc/gnulib-tool.texi: Likewise.
69683         * doc/inet_ntoa.texi: Likewise.
69684         * doc/visibility.texi: Likewise.
69685
69686         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69687         * doc/quote.texi: Add copyright notice.
69688
69689         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69690         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69691         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69692         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69693         is now obsolete, and give a pointer to the Sun list.
69694         Add copyright notice.
69695
69696 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * config/srclistvars.sh: Add copyright notice.
69699
69700 2006-08-14  Eric Blake  <ebb9@byu.net>
69701
69702         Import the following change from libc:
69703
69704         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69705
69706         Upstream bug 2997.
69707         * lib/misc/error.c: Add space between program name and message if file
69708         name is missing.
69709
69710 2006-08-12  Karl Berry  <karl@gnu.org>
69711
69712         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69713         remove, these originate in gnulib now.
69714
69715 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69716
69717         * doc/Makefile (standards.info standards.html standards.dvi):
69718         Also depend on make-stds.texi.
69719
69720 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69723         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69724
69725         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69726         in wchar_t.  Problem reported by Eric Blake.
69727
69728         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69729         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69730         Also, help the compiler to keep LEN in a register.
69731
69732 2006-08-11  Eric Blake  <ebb9@byu.net>
69733
69734         * users.txt: Sort.  Add tar.
69735
69736 2006-08-11  Bruno Haible  <bruno@clisp.org>
69737
69738         * users.txt: New file.
69739
69740 2006-08-11  Bruno Haible  <bruno@clisp.org>
69741
69742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69743         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69744
69745 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         * modules/snprintf (Depends-on): Remove minmax.
69748         (Maintainer): Add self and Bruno.
69749
69750 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69753         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69754         (EOVERFLOW): Define if the system does not.
69755         Do not include "minmax.h"; it wasn't used.
69756         (snprintf): Don't assume size_t promotes to an unsigned type.
69757         Fix bug when generated string was too long for the buffer: the
69758         buffer's contents are supposed to be the initial prefix of the
69759         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69760         exceeds INT_MAX; do the check ourselves.
69761
69762         Import the following changes from libc:
69763
69764         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69765
69766         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69767         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69768         set wc to the byte which couldn't be converted.
69769         (re_string_reconstruct): Don't clear valid_raw_len before calling
69770         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69771         tip_context using re_string_context_at.
69772
69773         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69774
69775         * lib/posix/regex.h: g++ still cannot handled [restrict].
69776
69777         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69778
69779         * lib/posix/regex.h: Remove special handling for VMS.
69780
69781 2006-08-10  Jim Meyering  <jim@meyering.net>
69782
69783         * modules/same-inode: New module.
69784         * modules/dev-ino: New module.
69785         * modules/cycle-check: Depend on these modules, rather than simply
69786         including their .h files.
69787         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69788         required via m4/cycle-check.m4.
69789         * modules/same: Depend on new same-inode module, rather than
69790         including same-inode.h.
69791         * modules/chdir-safer: New file.
69792
69793         * modules/chown (Depends-on): Add stat-macros.
69794
69795 2006-08-10  Jim Meyering  <jim@meyering.net>
69796
69797         * m4/cycle-check.m4: New file.
69798         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69799         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69800
69801 2006-08-10  Eric Blake  <ebb9@byu.net>
69802
69803         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69804         in from original proposal.
69805
69806 2006-08-10  Eric Blake  <ebb9@byu.net>
69807         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69808
69809         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69810         namespace.
69811
69812 2006-08-10  Bruno Haible  <bruno@clisp.org>
69813
69814         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69815         as well.
69816
69817 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         Sync from coreutils.
69820
69821         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69822
69823         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69824         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69825
69826 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * modules/restrict: Remove; no longer needed now that we assume
69829         Autoconf 2.59 or later.
69830         * MODULES.html.sh: Remove 'restrict'.
69831         * modules/argp (Depends-on): Remove 'restrict'.
69832         * modules/base64 (Depends-on): Likewise.
69833         * modules/gc (Depends-on): Likewise.
69834         * modules/getaddrinfo (Depends-on): Likewise.
69835         * modules/glob (Depends-on): Likewise.
69836         * modules/inet_ntop (Depends-on): Likewise.
69837         * modules/inet_pton (Depends-on): Likewise.
69838         * modules/memxor (Depends-on): Likewise.
69839         * modules/regex (Depends-on): Likewise.
69840         * modules/strtok_r (Depends-on): Likewise.
69841         * modules/time_r (Depends-on): Likewise.
69842
69843 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69846         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69847         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69848         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69849         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69850         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69851         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69852         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69853
69854         Merge from coreutils.
69855         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69856         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69858         * m4/time_r.m4 (gl_TIME_R): Likewise.
69859
69860 2006-08-09  Karl Berry  <karl@gnu.org>
69861
69862         * config/srclist.txt: no more gettext-tools, per Bruno.
69863
69864 2006-08-08  Eric Blake  <ebb9@byu.net>
69865
69866         * modules/verror: New module.
69867         * MODULES.html.sh: Document it.
69868
69869 2006-08-08  Eric Blake  <ebb9@byu.net>
69870
69871         * lib/verror.h, lib/verror.c: New files.
69872
69873 2006-08-08  Eric Blake  <ebb9@byu.net>
69874
69875         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69876         verror_at_line output complies with GNU Coding Standards even when
69877         file is NULL.
69878
69879 2006-08-07  Bruno Haible  <bruno@clisp.org>
69880
69881         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69882         versions of AIX.
69883         Reported by Ralf Wildenhues.
69884
69885 2006-08-07  Bruno Haible  <bruno@clisp.org>
69886
69887         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69888         in an AC_DEFUN. Needed so that the autoconf snippets can use
69889         AC_REQUIRE.
69890
69891 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69892
69893         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69894         Initialize pkgdata_DATA.
69895         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69896         overriding it.
69897
69898 2006-08-06  Eric Blake  <ebb9@byu.net>
69899
69900         * lib/error.h: Fold in some upstream changes from glibc.
69901         * lib/error.c: Likewise.
69902
69903 2006-08-04  Bruno Haible  <bruno@clisp.org>
69904
69905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69906         Make the mostlyclean-local rule depend on mostlyclean-generic.
69907         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69908
69909 2006-07-31  Bruno Haible  <bruno@clisp.org>
69910
69911         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69912         <stdlib.h>, <string.h>.
69913
69914 2006-07-30  Bruno Haible  <bruno@clisp.org>
69915
69916         * modules/readlink (License): Change to LGPL.
69917
69918 2006-07-30  Bruno Haible  <bruno@clisp.org>
69919
69920         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69921         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69922         set PKGDATADIR to point to it.
69923
69924 2006-07-30  Bruno Haible  <bruno@clisp.org>
69925
69926         * modules/csharpexec (configure.ac): Comment out macro invocation.
69927         * modules/javaexec (configure.ac): Likewise.
69928         * modules/javacomp-script (configure.ac): Likewise.
69929
69930         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69931
69932 2006-07-30  Bruno Haible  <bruno@clisp.org>
69933
69934         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69935         linked-list.
69936
69937 2006-07-30  Bruno Haible  <bruno@clisp.org>
69938
69939         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69940
69941 2006-07-30  Bruno Haible  <bruno@clisp.org>
69942
69943         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69944         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69945         get removed.
69946
69947 2006-07-29  Bruno Haible  <bruno@clisp.org>
69948
69949         Make it possible for gnulib-tool to work with locally modified or
69950         augmented gnulib repositories.
69951         * gnulib-tool (func_usage): Document --local-dir option.
69952         (local_gnulib_dir): New variable.
69953         Handle --local-dir option.
69954         (func_lookup_file): New function.
69955         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69956         (func_get_description, func_get_filelist, func_get_description,
69957         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69958         func_get_automake_snippet, func_get_include_directive,
69959         func_get_license, func_get_maintainer): Use func_lookup_file.
69960         (func_import, func_create_testdir): Use func_lookup_file.
69961
69962 2006-07-29  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/setenv (Depends-on): Add unistd.
69965
69966 2006-07-29  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69969
69970 2006-07-29  Bruno Haible  <bruno@clisp.org>
69971
69972         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69973
69974 2006-07-29  Bruno Haible  <bruno@clisp.org>
69975
69976         * gnulib-tool (import, update): If there is no Makefile.am, look at
69977         aclocal.m4, instead of bailing out.
69978
69979 2006-07-29  Bruno Haible  <bruno@clisp.org>
69980
69981         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69982         Categorize the options by when they are useful.
69983
69984 2006-07-29  Bruno Haible  <bruno@clisp.org>
69985
69986         * gnulib-tool (func_usage): Document option --no-libtool.
69987         Handle option --no-libtool.
69988         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69989         for changed semantics of $libtool variable.
69990         (func_import): Likewise. If libtool is not used, show this through
69991         an option --no-libtool.
69992         (func_create_testdir): Update.
69993
69994 2006-07-29  Bruno Haible  <bruno@clisp.org>
69995
69996         * gnulib-tool (func_import): Extend error message about missing
69997         --doc-base.
69998
69999 2006-07-29  Bruno Haible  <bruno@clisp.org>
70000
70001         * gnulib-tool (func_import): Don't create the $docbase directory if
70002         there is no file to store there.
70003
70004 2006-07-29  Bruno Haible  <bruno@clisp.org>
70005
70006         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70007         relevant, look for configure.ac there, not in the current directory.
70008         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70009
70010 2006-07-29  Bruno Haible  <bruno@clisp.org>
70011
70012         * gnulib-tool (SORT): New variable.
70013         (func_usage): Undocument --assume-autoconf option.
70014         Remove --assume-autoconf option handling.
70015         (autoconf_minversion): Determine from the contents of configure.ac.
70016         (func_import): Remove autoconf_minversion handling.
70017         Suggested by Eric Blake.
70018
70019 2006-07-29  Bruno Haible  <bruno@clisp.org>
70020
70021         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70022
70023 2006-07-29  Bruno Haible  <bruno@clisp.org>
70024
70025         * config/srclist.txt (*setenv.[ch]): Remove rules.
70026
70027 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70028
70029         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70030
70031 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70032
70033         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70034         arpa/inet.h.
70035
70036 2006-07-28  Simon Josefsson  <jas@extundo.com>
70037
70038         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70039         * modules/inet_pton (Depends-on): Likewise.
70040
70041 2006-07-28  Simon Josefsson  <jas@extundo.com>
70042
70043         * m4/netinet_in_h.m4: New file.
70044
70045 2006-07-28  Simon Josefsson  <jas@extundo.com>
70046
70047         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70048         #include's.
70049
70050 2006-07-28  Simon Josefsson  <jas@extundo.com>
70051
70052         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70053         #include's.
70054
70055 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70058         setgid on directories only if they set these bits.
70059         * lib/modechange.h: Remove obsolete comment about masks.
70060
70061 2006-07-28  Eric Blake  <ebb9@byu.net>
70062
70063         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70064         macro expansion.
70065
70066 2006-07-28  Bruno Haible  <bruno@clisp.org>
70067
70068         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70069
70070 2006-07-28  Bruno Haible  <bruno@clisp.org>
70071
70072         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70073
70074 2006-07-28  Bruno Haible  <bruno@clisp.org>
70075
70076         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70077         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70078         Define fallbacks.
70079         Avoids link error on FreeBSD 4.x.
70080         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70081
70082         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70083         encoding.
70084         * lib/mbswidth.c (iswcntrl): Likewise.
70085
70086 2006-07-27  Bruno Haible  <bruno@clisp.org>
70087
70088         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70089         test.
70090
70091 2006-07-27  Bruno Haible  <bruno@clisp.org>
70092
70093         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70094         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70095         defined.
70096
70097 2006-07-26  Eric Blake  <ebb9@byu.net>
70098
70099         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70100
70101 2006-07-26  Eric Blake  <ebb9@byu.net>
70102
70103         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70104         like mingw that lack mkstemp.
70105         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70106         avoid compilation warning on mingw.
70107
70108 2006-07-26  Bruno Haible  <bruno@clisp.org>
70109
70110         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70111         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70112         INT_FAST*_MIN, INTPTR_MIN.
70113
70114 2006-07-25  Bruno Haible  <bruno@clisp.org>
70115
70116         * modules/version-etc (Depends-on): Add stdarg.
70117
70118 2006-07-25  Bruno Haible  <bruno@clisp.org>
70119
70120         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70121         complex commands.
70122
70123 2006-07-25  Bruno Haible  <bruno@clisp.org>
70124
70125         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70126         defined in <stdarg.h> or config.h.
70127
70128 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70129
70130         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70131         (gl_STDIO_SAFER): Remove.
70132
70133 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         * MODULES.html.sh (File stream based Input/Output):
70136         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70137         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70138         * modules/fopen-safer, modules/tmpfile-safer: New files.
70139         * modules/stdio-safer: Remove.
70140
70141 2006-07-24  Bruno Haible  <bruno@clisp.org>
70142
70143         * modules/tmpdir: New file.
70144         * MODULES.html.sh (File system functions): Add it.
70145
70146 2006-07-24  Bruno Haible  <bruno@clisp.org>
70147
70148         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70149         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70150
70151 2006-07-24  Bruno Haible  <bruno@clisp.org>
70152
70153         * modules/clean-temp: New file.
70154
70155 2006-07-24  Bruno Haible  <bruno@clisp.org>
70156
70157         * m4/tmpdir.m4: New file, from GNU gettext.
70158
70159 2006-07-24  Bruno Haible  <bruno@clisp.org>
70160
70161         * lib/tmpdir.h: New file, from GNU gettext.
70162         * lib/tmpdir.c: New file, from GNU gettext.
70163
70164 2006-07-24  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/clean-temp.h: New file, from GNU gettext.
70167         * lib/clean-temp.c: New file, from GNU gettext.
70168
70169 2006-07-23  Eric Blake  <ebb9@byu.net>
70170
70171         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70172         (Depends-on): Add binary-io.
70173
70174 2006-07-23  Eric Blake  <ebb9@byu.net>
70175
70176         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70177
70178 2006-07-23  Eric Blake  <ebb9@byu.net>
70179
70180         * lib/tmpfile-safer.c: New file.
70181         * lib/stdio-safer.h (fopen_safer): Add prototype.
70182         * lib/stdio--.h (tmpfile): Make safer.
70183
70184 2006-07-23  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70187         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70188         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70189         gl_linked_remove_at): Use it.
70190
70191 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70192         and Simon Josefsson <jas@extundo.com>
70193
70194         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70195
70196         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70197
70198 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70199
70200         * modules/close-stream: New file.
70201         * modules/closeout (Description): Make it clear that it exits
70202         with a diagnostic on error.
70203         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70204         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70205
70206 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * m4/close-stream.m4: New file.
70209
70210 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70211
70212         * lib/close-stream.c, lib/close-stream.h: New files.
70213
70214 2006-07-22  Bruno Haible  <bruno@clisp.org>
70215
70216         Merge from GNU gettext 0.15.
70217
70218         2006-05-01  Bruno Haible  <bruno@clisp.org>
70219
70220                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70221
70222         2006-07-22  Bruno Haible  <bruno@clisp.org>
70223
70224                 * modules/javaversion: New file.
70225                 * MODULES.html.sh (Java): Add javaversion.
70226
70227         2006-03-12  Bruno Haible  <bruno@clisp.org>
70228
70229                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70230
70231         2005-12-04  Bruno Haible  <bruno@clisp.org>
70232
70233                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70234                 (untested).
70235
70236         2006-06-21  Bruno Haible  <bruno@clisp.org>
70237
70238                 Avoid warnings from recent versions of mcs.
70239                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70240                 -o, -L, -r any more. Use options documented since mcs-1.0
70241                 instead. Similarly for -g.
70242
70243         2005-12-04  Bruno Haible  <bruno@clisp.org>
70244
70245                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70246                 .resources, not .resource.
70247
70248         2005-07-09  Bruno Haible  <bruno@clisp.org>
70249
70250                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70251                 add a .dll suffix.
70252                 Reported by Mark Junker <mjscod@gmx.de>.
70253
70254         2006-07-22  Bruno Haible  <bruno@clisp.org>
70255
70256                 * modules/gettext: Upgrade to gettext-0.15.
70257                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70258                 m4/visibility.m4.
70259                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70260
70261 2006-07-22  Bruno Haible  <bruno@clisp.org>
70262
70263         Merge from GNU gettext 0.15.
70264
70265         2006-03-25  Bruno Haible  <bruno@clisp.org>
70266
70267                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70268
70269         2006-07-21  Bruno Haible  <bruno@clisp.org>
70270
70271                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70272                 "1.1".
70273
70274         2006-05-09  Bruno Haible  <bruno@clisp.org>
70275
70276                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70277                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70278                 for the conftestver execution.
70279
70280         2006-05-01  Bruno Haible  <bruno@clisp.org>
70281
70282                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70283                 optional target-version argument. Verify that the compiler
70284                 groks source of the specified source-version, or add -source
70285                 option as necessary. Verify that the compiler produces
70286                 bytecode in the specified target-version, or add -target and
70287                 -source options as necessary. Make the result of the test
70288                 available as variable CONF_JAVAC. Also log error output in
70289                 config.log.
70290
70291         2006-03-11  Bruno Haible  <bruno@clisp.org>
70292
70293                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70294
70295         2006-05-09  Bruno Haible  <bruno@clisp.org>
70296
70297                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70298                 CLASSPATH_SEPARATOR to a semicolon.
70299
70300         2006-03-12  Bruno Haible  <bruno@clisp.org>
70301
70302                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70303                 available as variable CONF_JAVA, for subsequent autoconf
70304                 tests. Also log error output in config.log.
70305
70306         2006-07-19  Bruno Haible  <bruno@clisp.org>
70307
70308                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70309                 that getline works on glibc2 systems. Needed to avoid trouble
70310                 in relocatable.c.
70311                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70312
70313         2005-12-04  Bruno Haible  <bruno@clisp.org>
70314
70315                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70316                 launcher (untested).
70317
70318         2005-12-04  Bruno Haible  <bruno@clisp.org>
70319
70320                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70321
70322         2006-07-22  Bruno Haible  <bruno@clisp.org>
70323
70324                 * gettext.m4: Update from GNU gettext-0.15.
70325                 * nls.m4: Likewise.
70326                 * po.m4: Likewise.
70327                 * inttypes-pri.m4: Likewise.
70328                 * inttypes-h.m4: Renamed from inttypes.m4.
70329                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70330
70331 2006-07-22  Bruno Haible  <bruno@clisp.org>
70332
70333         Merge from GNU gettext 0.15.
70334
70335         2005-07-05  Bruno Haible  <bruno@clisp.org>
70336
70337                 * printf-args.c (printf_fetchargs): Work around broken
70338                 definition of wint_t on mingw.
70339
70340         2005-02-12  Bruno Haible  <bruno@clisp.org>
70341
70342                 * xallocsa.h: Add extern "C" for C++.
70343
70344         2006-05-17  Bruno Haible  <bruno@clisp.org>
70345
70346                 Cygwin portability.
70347                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70348
70349         2006-04-30  Bruno Haible  <bruno@clisp.org>
70350
70351                 * progreloc.c: Include <mach-o/dyld.h> if available.
70352                 (find_executable): Use _NSGetExecutablePath when possible.
70353
70354         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70355
70356                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70357                 function.
70358
70359         2005-12-29  Bruno Haible  <bruno@clisp.org>
70360
70361                 * progreloc.c (set_program_name_and_installdir): Fix
70362                 compilation error.
70363
70364         2005-12-04  Bruno Haible  <bruno@clisp.org>
70365
70366                 Cygwin portability.
70367                 * progreloc.c: Include <windows.h> also on Cygwin.
70368                 (find_executable): Add support for Cygwin.
70369                 (set_program_name_and_installdir): Handle also platforms with
70370                 nonempty EXEEXT.
70371
70372         2006-07-11  Bruno Haible  <bruno@clisp.org>
70373
70374                 * javacomp.c: Fix a comment.
70375                 Reported by Jim Meyering.
70376
70377         2006-04-30  Bruno Haible  <bruno@clisp.org>
70378
70379                 * javacomp.h (compile_java_class): Add source_version,
70380                 target_version arguments.
70381                 * javacomp.c: Rewritten to choose only a compiler that
70382                 respects the specified source_version and target_version.
70383
70384         2006-06-27  Bruno Haible  <bruno@clisp.org>
70385
70386                 Assume correct S_ISDIR macro.
70387                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70388
70389         2006-07-22  Bruno Haible  <bruno@clisp.org>
70390
70391                 * javaversion.h: New file, from GNU gettext.
70392                 * javaversion.c: New file, from GNU gettext.
70393                 * javaversion.java: New file, from GNU gettext.
70394                 * javaversion.class: New file, from GNU gettext.
70395
70396         2006-05-17  Bruno Haible  <bruno@clisp.org>
70397
70398                 Cygwin portability.
70399                 * javaexec.c (execute_java_class): Test for jview program
70400                 also on Cygwin.
70401
70402         2006-04-09  Bruno Haible  <bruno@clisp.org>
70403
70404                 * fatal-signal.c: Don't include string.h.
70405                 (at_fatal_signal): Use a copying loop instead of memcpy.
70406
70407         2005-12-04  Bruno Haible  <bruno@clisp.org>
70408
70409                 * csharpexec.c: Add support for 'clix' launcher (untested).
70410                 (execute_csharp_using_sscli): New function.
70411                 (execute_csharp_program): Call it.
70412
70413         2006-06-21  Bruno Haible  <bruno@clisp.org>
70414
70415                 Avoid warnings from recent versions of mcs.
70416                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70417                 -o, -L, -r any more. Use options documented since mcs-1.0
70418                 instead. Similarly for -g.
70419
70420         2005-07-09  Bruno Haible  <bruno@clisp.org>
70421
70422                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70423                 add a .dll suffix.
70424                 Reported by Mark Junker <mjscod@gmx.de>.
70425
70426         2006-06-17  Bruno Haible  <bruno@clisp.org>
70427
70428                 * config.charset: Update for NetBSD 3.0.
70429
70430         2006-05-17  Bruno Haible  <bruno@clisp.org>
70431
70432                 Cygwin portability.
70433                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70434
70435         2006-05-16  Bruno Haible  <bruno@clisp.org>
70436
70437                 * localcharset.c [CYGWIN]: Include <windows.h>.
70438                 (get_charset_aliases): For Cygwin, return the same CPxxx
70439                 aliases list as under WIN32.
70440                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70441                 the environment variables. Fall back to GetACP().
70442
70443         2006-04-05  Bruno Haible  <bruno@clisp.org>
70444
70445                 * config.charset: Update Juan Manuel Guerrero's address.
70446
70447         2005-02-12  Bruno Haible  <bruno@clisp.org>
70448
70449                 * allocsa.h: Add extern "C" for C++.
70450
70451         2005-02-10  Bruno Haible  <bruno@clisp.org>
70452
70453                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70454                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70455
70456         2006-07-22  Bruno Haible  <bruno@clisp.org>
70457
70458                 * gettext.h: Update to GNU gettext-0.15.
70459
70460 2006-07-22  Bruno Haible  <bruno@clisp.org>
70461
70462         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70463         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70464         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70465
70466 2006-07-21  Eric Blake  <ebb9@byu.net>
70467
70468         * modules/stdlib-safer: New file.
70469         * MODULES.html.sh (File stream based Input/Output): Add
70470         stdlib-safer.
70471
70472 2006-07-21  Eric Blake  <ebb9@byu.net>
70473
70474         * lib/stdlib-safer.h: New file from coreutils, required by
70475         stdlib--.h.
70476
70477 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70480
70481 2006-07-20  Bruno Haible  <bruno@clisp.org>
70482
70483         * gnulib-tool: Recognize new option --assume-autoconf.
70484         (autoconf_minversion): New variable.
70485         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70486
70487 2006-07-20  Bruno Haible  <bruno@clisp.org>
70488
70489         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70490
70491 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70492
70493         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70494         Reindent and repaginate.
70495
70496 2006-07-19  Derek Price  <derek@ximbiot.com>
70497
70498         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70499         Correct grammar.
70500
70501 2006-07-17  Bruno Haible  <bruno@clisp.org>
70502
70503         * modules/list: New file.
70504         * modules/array-list: New file.
70505         * modules/carray-list, modules/carray-list-tests: New files.
70506         * modules/linked-list, modules/linked-list-tests: New files.
70507         * modules/avltree-list, modules/avltree-list-tests: New files.
70508         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70509         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70510         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70511         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70512         * modules/oset: New file.
70513         * modules/array-oset: New file.
70514         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70515         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70516         * tests/test-carray_list.c: New file.
70517         * tests/test-linked_list.c: New file.
70518         * tests/test-avltree_list.c: New file.
70519         * tests/test-rbtree_list.c: New file.
70520         * tests/test-linkedhash_list.c: New file.
70521         * tests/test-avltreehash_list.c: New file.
70522         * tests/test-rbtreehash_list.c: New file.
70523         * tests/test-avltree_oset.c: New file.
70524         * tests/test-rbtree_oset.c: New file.
70525         * MODULES.html.sh (Container data structures): New section.
70526
70527 2006-07-17  Bruno Haible  <bruno@clisp.org>
70528
70529         * m4/gl_list.m4: New file.
70530
70531 2006-07-17  Bruno Haible  <bruno@clisp.org>
70532
70533         * lib/gl_list.h: New file.
70534         * lib/gl_list.c: New file.
70535         * lib/gl_array_list.h: New file.
70536         * lib/gl_array_list.c: New file.
70537         * lib/gl_carray_list.h: New file.
70538         * lib/gl_carray_list.c: New file.
70539         * lib/gl_linked_list.h: New file.
70540         * lib/gl_linked_list.c: New file.
70541         * lib/gl_anylinked_list1.h: New file.
70542         * lib/gl_anylinked_list2.h: New file.
70543         * lib/gl_avltree_list.h: New file.
70544         * lib/gl_avltree_list.c: New file.
70545         * lib/gl_anyavltree_list1.h: New file.
70546         * lib/gl_anyavltree_list2.h: New file.
70547         * lib/gl_rbtree_list.h: New file.
70548         * lib/gl_rbtree_list.c: New file.
70549         * lib/gl_anyrbtree_list1.h: New file.
70550         * lib/gl_anyrbtree_list2.h: New file.
70551         * lib/gl_anytree_list1.h: New file.
70552         * lib/gl_anytree_list2.h: New file.
70553         * lib/gl_linkedhash_list.h: New file.
70554         * lib/gl_linkedhash_list.c: New file.
70555         * lib/gl_anyhash_list1.h: New file.
70556         * lib/gl_anyhash_list2.h: New file.
70557         * lib/gl_avltreehash_list.h: New file.
70558         * lib/gl_avltreehash_list.c: New file.
70559         * lib/gl_rbtreehash_list.h: New file.
70560         * lib/gl_rbtreehash_list.c: New file.
70561         * lib/gl_anytreehash_list1.h: New file.
70562         * lib/gl_anytreehash_list2.h: New file.
70563
70564         * lib/gl_oset.h: New file.
70565         * lib/gl_oset.c: New file.
70566         * lib/gl_array_oset.h: New file.
70567         * lib/gl_array_oset.c: New file.
70568         * lib/gl_avltree_oset.h: New file.
70569         * lib/gl_avltree_oset.c: New file.
70570         * lib/gl_rbtree_oset.h: New file.
70571         * lib/gl_rbtree_oset.c: New file.
70572         * lib/gl_anytree_oset.h: New file.
70573
70574 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         * m4/mkancesdirs.m4: New file.
70577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70578         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70579         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70580         it.
70581
70582 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70583
70584         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70585         * lib/mkancesdirs.h: New files.
70586         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70587         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70588         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70589         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70590         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70591         callers changed.  Revamp internals significantly, by not
70592         attempting to create directories that are temporarily more
70593         permissive than the final results.  Do not attempt to use
70594         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70595         This removes some race conditions, fixes some bugs, and simplifies
70596         things.  Use new dirchownmod function to do owner and mode changes.
70597         * lib/mkdir-p.h: Likewise.
70598         * lib/modechange.c (octal_to_mode): New function.
70599         (struct mode_change): New member mentioned.
70600         (make_node_op_equals): New arg mentioned.  All callers changed.
70601         (mode_compile): Keep track of which mode bits the user has explicitly
70602         mentioned.
70603         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70604         New arg PMODE_BITS, to keep track of which mode bits the user
70605         mentioned; it treats S_ISUID and S_ISGID speciall.
70606         All callers changed.
70607         * lib/modechange.h: Likewise.
70608
70609 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * MODULES.html.sh: Add mkancestors.
70612         * modules/mkancesdirs: New module.
70613         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70614         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70615         The chdir-safer and afs files are now orphans; I'll remove them
70616         unless someone speaks up.
70617         Add lib/dirchownmod.c, lib/dirchownmod.h.
70618         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70619         Add lchown, mkancesdirs.
70620         (Maintainer): Add self.
70621
70622 2006-07-15  Karl Berry  <karl@gnu.org>
70623
70624         * gnulib-tool: help message wording/arrangement.
70625
70626 2006-07-14  Simon Josefsson  <jas@extundo.com>
70627
70628         * doc/gnulib.texi (Libtool and Windows): New section.
70629
70630 2006-07-12  Simon Josefsson  <jas@extundo.com>
70631
70632         * modules/gendocs (License): Fix license, approved by Karl.
70633
70634 2006-07-12  Eric Blake  <ebb9@byu.net>
70635
70636         * MODULES.html.sh: Add gendocs.
70637
70638 2006-07-11  Eric Blake  <ebb9@byu.net>
70639
70640         * modules/fdl: New module, to install doc/fdl.texi.
70641         * MODULES.html.sh: Add new section for documentation modules.
70642         * gnulib-tool: Avoid space-tab.
70643         (--doc-base): New option, to manage files from doc.
70644
70645 2006-07-11  Eric Blake  <ebb9@byu.net>
70646
70647         * m4/absolute-header.m4: Fix comments to match recent change.
70648
70649 2006-07-11  Eric Blake  <ebb9@byu.net>
70650
70651         * gnulib-tool: List --doc-base before --tests-base.
70652
70653 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70654
70655         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70656
70657 2006-07-11  Bruno Haible  <bruno@clisp.org>
70658
70659         * README: Mention where to put documentation.
70660
70661 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70662
70663         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70664
70665 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70668         to stdint.m4.
70669
70670 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70671
70672         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70673         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70674         "no/such/file/stdint.h" when there is no such file, so that
70675         the resulting C code can be parsed by dodgy compilers.
70676         Problems reported by Bob Proulx.
70677
70678 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70679
70680         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70681         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70682         macros into the GNU _D_EXACT_NAMLEN.
70683         * lib/savedir.c:  Likewise.
70684         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70685
70686 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70687         and Paul Eggert  <eggert@cs.ucla.edu>
70688
70689         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70690         * m4/savedir.m4:
70691         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70692         macros into the GNU _D_EXACT_NAMLEN.
70693
70694 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70695
70696         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70697         around the absolute name, to work around a problem with the HP-UX
70698         11.23 native C compiler, reported by Bob Proulx.
70699
70700 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * doc/maintain.texi, make-stds.texi: Sync from
70703         <http://savannah.gnu.org/projects/gnustandards>.
70704
70705 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70708
70709 2006-07-09  Jim Meyering  <jim@meyering.net>
70710
70711         * m4/glob.m4: Remove a doubled word in a comment.
70712
70713 2006-07-09  Jim Meyering  <jim@meyering.net>
70714
70715         * lib/argp-pv.c: Remove a doubled word in a comment.
70716         * lib/check-version.c (check_version): Likewise.
70717         * lib/javacomp.c (compile_java_class): Likewise.
70718
70719 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70722         for the benefit of people using Autoconf 2.60.  If you want to
70723         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70724         (or m4/onceonly.m4, if pre-2.57) manually.
70725
70726 2006-07-08  Jim Meyering  <jim@meyering.net>
70727
70728         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70729         comment.
70730         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70731         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70732         comment.
70733
70734 2006-07-08  Jim Meyering  <jim@meyering.net>
70735
70736         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70737
70738 2006-07-07  Simon Josefsson  <jas@extundo.com>
70739
70740         * tests/test-crc.c: Change expected crc value, the test vector
70741         were probably computed using the old broken crc.c?
70742
70743 2006-07-06  Simon Josefsson  <jas@extundo.com>
70744
70745         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70746         now the canonical place for the M4 file).
70747
70748         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70749         from the sys_socket dependency now.
70750
70751         * modules/inet_pton (Files): Ditto.
70752
70753         * modules/inet_ntop (Files): Ditto.
70754
70755 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70756
70757         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70758         not gl_PREREQ_GETUSERSHELL.
70759
70760 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70761
70762         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70763         with only one argument, for Autoconf 2.60.
70764         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70765         expand to nothing, so add a shell command to avoid syntax error.
70766         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70767
70768 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70769
70770         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70771
70772 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70775         no longer needed.  Check for isblank decl.
70776         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70777         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70778         of existence.
70779
70780 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * lib/getloadavg.c: Use __VMS, not VMS.
70783         * lib/getopt.c: Likewise.
70784         * lib/getpagesize.h: Likewise.
70785         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70786         and probably does not work.
70787
70788 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * lib/.cppi-disable: Add wcwidth.
70791         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70792         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70793         (ISGRAPH): Remove.  All uses changed to isgraph.
70794         (FOLD) [!defined _LIBC]: Remove special case.
70795         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70796         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70797         HAVE_ISBLANK.
70798         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70799         case.
70800
70801 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70802
70803         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70804         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70805         brackets.  Other minor changes to suppress some compiler
70806         warnings.
70807
70808 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70809         and Paul Eggert  <eggert@cs.ucla.edu>
70810
70811         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70812         of invoking obsolescent AC_HEADER_DIRENT macro.
70813         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70814         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70815         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70816         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70817         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70818         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70819         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70820         * m4/readdir.m4: Remove; no longer needed.
70821
70822 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70823         and Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70826         Don't worry about this obsolete case any more.
70827         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70828         directories.
70829         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70830         worry about this obsolete case any more.
70831         * lib/fts.c: Likewise.
70832         * lib/getcwd.c: Likewise.
70833         * lib/glob.h: Likewise.
70834         * lib/savedir.c: Likewise.
70835
70836 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70839         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70840         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70841         needed.
70842         All uses removed.
70843         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70844         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70845         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70846         needed.
70847         * m4/getdate.m4 (gl_GETDATE): Likewise.
70848         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70849         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70850         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70851         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70852         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70854         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70855         needed.
70856
70857 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70858
70859         * lib/memcasecmp.c: Include <limits.h>.
70860         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70861         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70862         Don't assume isdigit succeeds only on '0' through '9'.
70863
70864 2006-07-05  Eric Blake  <ebb9@byu.net>
70865
70866         * modules/getaddrinfo (Depends-on): Add snprintf.
70867
70868 2006-07-05  Eric Blake  <ebb9@byu.net>
70869
70870         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70871         to avoid 'header present but could not be compiled' on cygwin.
70872
70873 2006-07-05  Eric Blake  <ebb9@byu.net>
70874
70875         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70876         missing from netdb.h.
70877         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70878
70879 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70880
70881         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70882         no longer needed.
70883         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70884         * m4/getdate.m4 (gl_GETDATE): Likewise.
70885         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70886         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70887         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70888         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70889         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70890
70891 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70892
70893         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70894         All uses of is_space replaced by isspace.
70895         * lib/exit.h: Don't talk about STDC_HEADERS.
70896         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70897         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70898         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70899         replaced by isprint etc.
70900         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70901         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70902         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70903         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70904         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70905         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70906
70907 2006-07-05  Bruno Haible  <bruno@clisp.org>
70908
70909         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70910         the function exists, before testing against AIX.
70911         Reported by Martin Lambers <marlam@marlam.de>.
70912
70913 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70916         From Mark D. Baushke.
70917
70918 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70919
70920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70921         to the absolute name, not just one, to bypass Sun C 5.8's
70922         "warning: #include of /usr/include/... may be non-portable".
70923
70924 2006-07-04  Eric Blake  <ebb9@byu.net>
70925
70926         * modules/dirname-tests: New test module.
70927         * tests/test-dirname.c: New file, replacing dirname.c
70928         TEST_DIRNAME section that was recently deleted.
70929
70930 2006-07-04  Bruno Haible  <bruno@clisp.org>
70931
70932         Assume ANSI C header files and <ctype.h> functions.
70933         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70934         (mbsnwidth): Use isprint, iscntrl instead.
70935
70936 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         Merge from coreutils.
70939         * MODULES.html.sh: Add xstrtold.
70940         * modules/xstrtold: New file.
70941         * modules/cycle-check (Files): Add lib/same-inode.h.
70942         * modules/dirname (Files): Add m4/double-slash-root.m4.
70943         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70944         * modules/mkdir-p (Files): Add lib/same-inode.h.
70945         * modules/same (Files): Add lib/same-inode.h.
70946
70947 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70950         This is to keep the terminology clean; POSIX talks about
70951         "absolute pathnames", not "full pathnames", but the GNU
70952         Coding Standards say to use "path" for something else;
70953         so use "absolute" to keep both sides happy.
70954         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70955         Set gl_absolute_header, not gl_full_header_path.
70956         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70957         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70958         All uses changed.
70959
70960         Merge from coreutils.
70961
70962         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70963
70964         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70965         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70966         want to require the building of c-strtod.o.
70967         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70968         needs -lm directly.
70969         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70970
70971         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70972
70973         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70974         --as-needed option if available.  Problem reported by Albert Chin in
70975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70976         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70977         cc merely issues a bunch of annoying warnings for --as-needed
70978         (this problem was reported by Bob Proulx).  Also, try linking with
70979         -lm to detect a bug in binutils 2.16 (this problem was reported
70980         by Ralf Wildenhues).
70981
70982         2006-06-18  Jim Meyering  <jim@meyering.net>
70983
70984         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70985         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70986         macro.
70987         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70988         also check for glibc-2.4's abort-inducing bug.
70989
70990         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70991         Low-probability clean-up should be to use rmdir to get rid of
70992         the just-created directory, not unlink.
70993
70994         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70995         configure fail, and request a bug report to inform us about it.
70996         Add a comment that, barring reports to the contrary, in 2007 we'll
70997         assume ftruncate is universally available.
70998
70999         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71002
71003         2006-03-12  Jim Meyering  <jim@meyering.net>
71004
71005         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71006         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71007         * m4/same.m4 (gl_SAME): Likewise.
71008         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71009
71010         2006-03-11  Eric Blake  <ebb9@byu.net>
71011
71012         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71013         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71014         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71015         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71016
71017 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71018
71019         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71020         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71021         reported by Mark D. Baushke, one in
71022         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71023
71024         Merge from coreutils.
71025
71026         * lib/.cppi-disable: Add stdint_.h.
71027         * lib/.cvsignore: Add stdint.h.
71028
71029         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71032         both double and long double versions.
71033         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71034         * lib/xstrtold.c: New file.
71035         * lib/xstrtod.h (xstrtold): New decl.
71036
71037         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * lib/filemode.c (setst): Remove.
71040         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71041         (arguably) clearer, and the generated code is a bit smaller on my
71042         Debian GNU/Linux stable x86 host.
71043
71044         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71045
71046         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71047         Assume that filemode.h includes sys/types.h and sys/stat.h.
71048         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71049         (ftypelet): Reorder to put common cases first, for efficiency.
71050         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71051         to do 'M'.
71052         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71053         of 10, for compatibility with FreeBSD.  All callers changed.
71054         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71055         types that can't be deduced solely from st_mode.  First arg is now a
71056         const pointer.
71057         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71058         (strmode): Renamed from mode_string.
71059         (filemodestring): New decl.
71060         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71061         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71062         needed.
71063         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71064
71065         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71068         fsusage.h now does that.  Include fsusage.h first, to test interface.
71069         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71070         at most one method (the old code could have generated decls that
71071         didn't conform to C89, not that this was ever exercised).
71072         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71073
71074         2006-03-19  Jim Meyering  <jim@meyering.net>
71075
71076         Work even in a chroot where d_ino values for entries in "/"
71077         don't match the stat.st_ino values for the same names.
71078         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71079         number, iterate through all entries again, using lstat instead.
71080         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71081         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71082
71083         * lib/getcwd.c (__getcwd): Clarify a comment.
71084         Use memcpy in place of a call to strcpy.
71085
71086         2006-03-12  Jim Meyering  <jim@meyering.net>
71087
71088         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71089         matches that of the current directory (which we're about to chdir ".."
71090         out of), then save the dev-ino of the parent, instead.
71091
71092         * lib/same-inode.h (SAME_INODE): New file/macro.
71093         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71094         Include "same-inode.h", instead.
71095         * lib/same.c: Likewise.
71096         * lib/cycle-check.h: Include "same-inode.h".
71097         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71098         * lib/cycle-check.c (SAME_INODE): Remove definition.
71099         * lib/root-dev-ino.h: Include "same-inode.h".
71100
71101         2006-03-11  Eric Blake  <ebb9@byu.net>
71102
71103         * lib/same.c (same_name): s/base_name/last_component/
71104         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71105         * lib/filenamecat.c (file_name_concat): Likewise.
71106
71107         2006-03-11  Eric Blake  <ebb9@byu.net>,
71108                     Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71111         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71112         drive prefix.
71113         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71114         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71115         (last_component): New method.
71116         * lib/dirname.c (dir_len): Determine when drive letters need a
71117         subsequent slash.  Preserve // when it is special.
71118         (dir_name): Don't append dot when drive letter is absolute.
71119         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71120         * lib/basename.c (base_name): New semantics - malloc the result.
71121         Preserve // when it is special.  Preserve relative files that look
71122         like drive letters.
71123         (base_len): Preserve // when it is special.
71124         (last_component): New method, similar to old base_name semantics.
71125         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71126         base_name.  Strip redundant slashes from ///.
71127
71128 2006-07-03  Jim Meyering  <jim@meyering.net>
71129
71130         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71131         macro is used before the first cycle_check call.
71132
71133 2006-07-03  Eric Blake  <ebb9@byu.net>
71134
71135         * modules/dirname (Depends-on): Add xstrndup.
71136
71137 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71140         test cases, so that config.log is a bit easier to follow.
71141
71142 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71145         both are 64 bits, since this seems to be the tradition, and this
71146         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71147         we ever run into a host that prefers long long to long in this
71148         case, we'll need another configure-time test.  Problem reported by
71149         Jim Meyering.
71150
71151 2006-07-02  Eric Blake  <ebb9@byu.net>
71152
71153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71154
71155 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * modules/inttypes (Depends-on): No longer depends on stdint.
71158         * modules/stdint (Description): Say more about assumptions.
71159         Say that the fast types might differ.  Say macros are used.
71160         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71161         (Makefile.am): Revise list of substituted symbols to match
71162         new stdint.m4.
71163         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71164         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71165         * tests/test-stdint.c (verify_same_types)
71166         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71167         the code conforms to C99/C89.
71168         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71169         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71170
71171 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71174         but fix a bug, by requiring at least 64 bits.
71175         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71176         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71177         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71178         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71179
71180         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71181         changes.  Make 2.59 a prerequisite.  Check and substitute for
71182         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71183         inttypes.h.  Do not use special include files; just use the
71184         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71185         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71186         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71187         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71188         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71189         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71190         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71191         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71192         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71193         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71194         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71195         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71196         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71197         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71198         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71199         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71200         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71201         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71202         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71203         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71204         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71205         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71206         not check for things that C99 does not require, e.g., int8_t.  If
71207         a test isn't needed unless <stdint.h> isn't working, and is
71208         unlikely to be needed for any other reason, then don't do it
71209         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71210         size_t, since we assume C89 freestanding at least.  Do not check
71211         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71212         the right thing even if the types are not defined.  Instead use:
71213         (gl_STDINT_TYPE_PROPERTIES): New macro.
71214         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71215         testing whether <sys/types.h> clashes, as Autoconf does this for
71216         us now.  All uses removed.
71217         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71218         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71219         (gl_CHECK_TYPE_SAME):
71220         Remove; no longer needed.
71221         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71222         exists, since we'll return 0 anyway in that case.
71223         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71224
71225 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71228         possible collision with system files.
71229         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71230         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71231         WCHAR_MIN and WCHAR_MAX in this case.
71232         (<stddef.h>): Do not include; no longer needed.
71233         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71234         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71235         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71236         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71237         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71238         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71239         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71240         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71241         !defined(__c99))]: Include in this case too, since it's harmless
71242         now.
71243         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71244         dangerous to do so.
71245         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71246         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71247         (_STDINT_MIN, _STDINT_MAX): New macros.
71248         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71249         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71250         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71251         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71252         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71253         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71254         macros, not typedefs; this simplifies things quite a bit.
71255         Use long int for all types narrower than int64_t.
71256         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71257         Define in terms of long long int or int64_t or long int,
71258         not int64_t or int32_t.  This saves some compile-time testing.
71259         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71260         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71261         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71262         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71263         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71264         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71265         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71266         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71267         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71268         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71269         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71270         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71271         undef any previous version and define our own version, for
71272         simplicity and consistency with the new macros for types.
71273         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71274         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71275         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71276         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71277         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71278         @WINT_T_SUFFIX@ to keep things simple here.
71279         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71280         Simplify by assuming typical 8/16/32/64 host, since we're
71281         already doing that elsewhere anyway.
71282         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71283         and assume long long int is 64 bits if available.  This
71284         speeds up 'configure'.
71285
71286 2006-07-01  Eric Blake  <ebb9@byu.net>
71287
71288         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71289         Reported by Andreas Buening.
71290
71291 2006-07-01  Eric Blake  <ebb9@byu.net>
71292
71293         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71294
71295 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71296
71297         * lib/getaddrinfo.c: fixed typo
71298
71299 2006-06-29  Jim Meyering  <jim@meyering.net>
71300
71301         * modules/strftime (Maintainer): Add my name, since with the
71302         FPRINTFTIME changes strftime.c has forked from glibc.
71303
71304 2006-06-29  Eric Blake  <ebb9@byu.net>
71305
71306         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71307
71308 2006-06-29  Eric Blake  <ebb9@byu.net>
71309
71310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71311
71312 2006-06-29  Eric Blake  <ebb9@byu.net>
71313
71314         * lib/stat_.h: New file.
71315
71316 2006-06-29  Eric Blake  <ebb9@byu.net>
71317
71318         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71319         unused static function.
71320
71321 2006-06-29  Eric Blake  <ebb9@byu.net>
71322
71323         * doc/functions.texi (Function Portability): Document missing lstat
71324         on mingw.
71325
71326 2006-06-29  Eric Blake  <ebb9@byu.net>
71327
71328         * MODULES.html.sh: Add sys_stat.
71329         * modules/sys_stat: New module.
71330         * modules/mkstemp (Depends-on): Add sys_stat.
71331
71332 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71333
71334         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71335
71336 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71337
71338         * m4/c-bs-a.m4: Removed.
71339
71340 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71341
71342         * lib/strftime.c: Assume strftime() exists.
71343
71344 2006-06-29  Derek Price  <derek@ximbiot.com>
71345
71346         * modules/c-bs-a: Removed - \a is C89.
71347         * MODULES.html.sh: Remove c-bs-a.
71348
71349 2006-06-29  Bruno Haible  <bruno@clisp.org>
71350
71351         * modules/wcwidth (License): Change to LGPL.
71352
71353 2006-06-28  Simon Josefsson  <jas@extundo.com>
71354
71355         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71356         on _WIN32.
71357
71358         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71359         getnameinfo.
71360
71361 2006-06-28  Simon Josefsson  <jas@extundo.com>
71362
71363         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71364
71365 2006-06-28  Simon Josefsson  <jas@extundo.com>
71366
71367         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71368         functions there.  It will succeed on Windows XP, but on Windows
71369         2000 and (presumably) earlier, it will fail, and use the internal
71370         re-implementation.
71371         (use_win32_p): New function.
71372         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71373         Support AI_NUMERICSERV to disable getservbyname.
71374         (getnameinfo): New function, only supports
71375         NI_NUMERICHOST|NI_NUMERICSERV for now.
71376
71377         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71378         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71379         getnameinfo.
71380
71381 2006-06-28  Eric Blake  <ebb9@byu.net>
71382
71383         * modules/wcwidth: New file.
71384         * modules/mbchar (Depends-on): Add wcwidth.
71385         * modules/mbswidth (Depends-on): Add wcwidth.
71386         * MODULES.html.sh: Add wcwidth.
71387
71388 2006-06-28  Eric Blake  <ebb9@byu.net>
71389
71390         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71392
71393 2006-06-28  Eric Blake  <ebb9@byu.net>
71394
71395         * lib/xvasprintf.h: Fix comments.
71396
71397 2006-06-28  Eric Blake  <ebb9@byu.net>
71398
71399         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71400         * lib/mbswidth.c (wcwidth): Move from here...
71401         * lib/wcwidth.h: ...to this new file.
71402
71403 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71404
71405         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71406
71407         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71408         it's obsolete.
71409         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71410
71411 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71412
71413         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71414         Autoconf 2.60 says this stuff was obsolete.
71415
71416 2006-06-28  Bruno Haible  <bruno@clisp.org>
71417
71418         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71419
71420 2006-06-28  Bruno Haible  <bruno@clisp.org>
71421
71422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71423         gt_TYPE_WCHAR_T.
71424
71425 2006-06-28  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71428         declaration for wcwidth.
71429         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71430
71431 2006-06-28  Bruno Haible  <bruno@clisp.org>
71432
71433         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71434         (mkdir): Define using _mkdir.
71435
71436 2006-06-28  Bruno Haible  <bruno@clisp.org>
71437
71438         * lib/getaddrinfo.h: Fix POSIX URL.
71439         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71440         _WIN32.
71441         (use_win32_p): Make static.
71442         (getaddrinfo): Reject service name if it is empty or does not consist
71443         solely of decimal digits, or if its value is > 65535.
71444         (getnameinfo): Remove useless casts.
71445
71446 2006-06-27  Simon Josefsson  <jas@extundo.com>
71447
71448         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71449         Eggert and Martin Lambers.
71450
71451 2006-06-27  Simon Josefsson  <jas@extundo.com>
71452
71453         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71454         Eggert and Martin Lambers.
71455
71456 2006-06-27  Bruno Haible  <bruno@clisp.org>
71457
71458         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71459         result to 0, not to empty.
71460         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71461
71462 2006-06-27  Bruno Haible  <bruno@clisp.org>
71463
71464         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71465
71466 2006-06-26  Simon Josefsson  <jas@extundo.com>
71467
71468         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71469         present.
71470
71471 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71474         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71476
71477 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71478
71479         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71480
71481 2006-06-26  Bruno Haible  <bruno@clisp.org>
71482
71483         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71484
71485 2006-06-26  Bruno Haible  <bruno@clisp.org>
71486
71487         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71488
71489 2006-06-26  Bruno Haible  <bruno@clisp.org>
71490
71491         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71492         SGI C compiler in pre-C99 mode.
71493         Suggested by Mark D. Baushke and Larry Jones.
71494
71495 2006-06-26  Bruno Haible  <bruno@clisp.org>
71496
71497         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71498         WCHAR_MAX.
71499         Reported by Mark D. Baushke and Larry Jones.
71500
71501 2006-06-26  Bruno Haible  <bruno@clisp.org>
71502
71503         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71504         in pre-C99 mode.
71505         Suggested by Mark D. Baushke and Larry Jones.
71506
71507 2006-06-23  Simon Josefsson  <jas@extundo.com>
71508             Bruno Haible  <bruno@clisp.org>
71509
71510         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71511         Emit mostlyclean-local rule.
71512         (func_emit_tests_Makefile_am): Likewise.
71513         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71514
71515 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71516
71517         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71518
71519 2006-06-23  Bruno Haible  <bruno@clisp.org>
71520
71521         * tests/test-stdint.c: Update to match ISO C 99 Technical
71522         Corrigendum 1.
71523
71524 2006-06-23  Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71527
71528 2006-06-23  Bruno Haible  <bruno@clisp.org>
71529
71530         * lib/stdint_.h: Treat IRIX like OpenBSD.
71531
71532 2006-06-23  Bruno Haible  <bruno@clisp.org>
71533
71534         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71535         ISO C 99 Technical Corrigendum 1.
71536
71537 2006-06-22  Simon Josefsson  <jas@extundo.com>
71538
71539         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71540         MinGW.
71541
71542 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71543
71544         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71545         needed.  Some compiler complained about some of them.  Problem reported
71546         by Larry Jones in
71547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71548
71549 2006-06-21  Simon Josefsson  <jas@extundo.com>
71550
71551         * tests/test-getaddrinfo.c: New file.
71552
71553         * modules/getaddrinfo-tests: New file.
71554
71555         * MODULES.html.sh: Add inet_pton.
71556
71557         * modules/inet_pton: New file.
71558
71559 2006-06-21  Simon Josefsson  <jas@extundo.com>
71560
71561         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71562         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71563         of using the (limited) gnulib implementation on Windows XP.
71564
71565         * m4/inet_pton.m4: New file.
71566
71567 2006-06-21  Simon Josefsson  <jas@extundo.com>
71568
71569         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71570         variable.
71571
71572         * lib/socket_.h: Don't define WINVER.
71573
71574         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71575         slightly modified to work in gnulib.
71576
71577 2006-06-21  Simon Josefsson  <jas@extundo.com>
71578
71579         * doc/gnulib.texi (Windows sockets): Add.
71580
71581 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71582
71583         * lib/read-file.c (fread_file): Start with buffer allocation of
71584         0 bytes rather than 1 byte; this simplifies the code.
71585         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71586         code to free buffer and save/restore errno.
71587         (internal_read_file): Remove unused local.
71588
71589 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71592         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71593         Problem reported by Denis Excoffier in
71594         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71595
71596 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71597
71598         * modules/sys_socket, modules/socklen: Include sys/types since
71599         FreeBSD 4.x's sys/socket.h needs it.
71600
71601 2006-06-19  Simon Josefsson  <jas@extundo.com>
71602
71603         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71604
71605 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71608
71609 2006-06-19  Bruno Haible  <bruno@clisp.org>
71610
71611         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71612         and FULL_PATH_INTTYPES_H in angle brackets.
71613         Reported by Mark D. Baushke <mdb@gnu.org>.
71614
71615 2006-06-17  Eric Blake  <ebb9@byu.net>
71616
71617         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71618         errno.
71619
71620 2006-06-17  Bruno Haible  <bruno@clisp.org>
71621
71622         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71623         <sys/inttypes.h>.
71624
71625 2006-06-17  Bruno Haible  <bruno@clisp.org>
71626
71627         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71628         whether errno is declared. Assume <errno.h> declares errno.
71629
71630 2006-06-17  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71633
71634 2006-06-17  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71637         problem on Solaris 2.5.1.
71638
71639 2006-06-16  Eric Blake  <ebb9@byu.net>
71640
71641         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71642         * lib/unicodeio.c [!defined errno]: Likewise.
71643         * lib/strtol.c [!defined errno]: Likewise.
71644         * lib/strtod.c [!defined errno]: Likewise.
71645
71646 2006-06-15  Eric Blake  <ebb9@byu.net>
71647
71648         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71649
71650 2006-06-15  Eric Blake  <ebb9@byu.net>
71651
71652         * config/srclist.txt (ssize_t.m4): Lose sync.
71653
71654 2006-06-15  Bruno Haible  <bruno@clisp.org>
71655
71656         * modules/stdint (Files): Include m4/full-header-path.m4,
71657         m4/size_max.m4, m4/wchar_t.m4.
71658         (Makefile.am): Many more substitutions.
71659         * modules/stdint-tests: New file.
71660         * tests/test-stdint.c: New file.
71661
71662 2006-06-15  Bruno Haible  <bruno@clisp.org>
71663
71664         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71665         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71666         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71667         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71668         gl_CHECK_TYPE_SAME): New macros.
71669
71670 2006-06-15  Bruno Haible  <bruno@clisp.org>
71671
71672         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71673
71674 2006-06-15  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/stdint_.h: Rewritten to be fully auto-configured.
71677         Fixes bug on HP-UX/IA64.
71678
71679 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * lib/getdate.y (__attribute__): Don't define if already defined.
71682         Problem reported by Larry Jones.
71683         * lib/utimens.c (__attribute__): Likewise.
71684
71685 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71686
71687         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71688         reported by Andreas Schwab.
71689
71690 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71691             Bruno Haible  <bruno@clisp.org>
71692
71693         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71694         check for the declaration of strnlen and a run test that exposes the
71695         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71696         rpl_strndup.
71697
71698 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71699             Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71702
71703 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71704
71705         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71706         compile test, for Tru64 4.0D.
71707
71708 2006-05-28  Karl Berry  <karl@gnu.org>
71709
71710         * config/srclist.txt (printf-args.c): lose sync.
71711
71712 2006-05-26  Martin Lambers  <marlam@marlam.de>
71713
71714         * lib/getpass.c: Updates the test for the native W32 API, and adds
71715         missing includes, thus fixing compilation warnings.
71716
71717 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71718
71719         * lib/exclude.c (exclude_fnmatch): New function.
71720         (excluded_file_name): Call exclude_fnmatch.
71721         * lib/exclude.h (excluded_file_name): New prototype
71722
71723 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71724
71725         * lib/tempname.c (small_open, large_open): New macros.
71726         (__open, __open64) [!_LIBC]: Remove.
71727         (__gen_tempname): Use small_open and large_open instead of __open
71728         and __open64.  This fixes a portability bug on HP-UX 11.11i
71729         reported by Simon Wing-Tang in
71730         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71731
71732 2006-05-24  Bruno Haible  <bruno@clisp.org>
71733
71734         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71735         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71736         Reported by Thorsten Maerz <torte@netztorte.de> via
71737         Aaron Stone <aaron@serendipity.cx>.
71738
71739 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71740
71741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71742         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71743         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71744         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71745         not really conditional on the cache.
71746         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71747
71748 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71749
71750         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71751         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71752         (my_usleep): Don't mishandle maximum value.
71753
71754 2006-05-19  Jim Meyering  <jim@meyering.net>
71755
71756         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71757
71758 2006-05-17  Bruno Haible  <bruno@clisp.org>
71759
71760         Cygwin portability.
71761         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71762
71763 2006-05-17  Bruno Haible  <bruno@clisp.org>
71764
71765         * lib/stdint_.h: Fix recognition of Cygwin.
71766
71767 2006-05-15  Bruno Haible  <bruno@clisp.org>
71768
71769         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71770         on libtool patch by Ralf Wildenhues.
71771
71772 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71773
71774         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71775         test for C99 conformance; (bool) 0.5 is an integer constant
71776         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71777         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71778
71779 2006-05-11  Simon Josefsson  <jas@extundo.com>
71780
71781         * m4/xvasprintf.m4: Fix obvious typo.
71782
71783 2006-05-11  Jim Meyering  <jim@meyering.net>
71784
71785         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71786         James Lemley.
71787
71788 2006-05-10  Simon Josefsson  <jas@extundo.com>
71789
71790         * lib/md4.c: Typo fix, update copyright years.
71791         (K1, K2): Don't use L because it turn computations into 64-bit on
71792         64-bit platforms.
71793
71794 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71797         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71798         unwanted sign propagation, e.g., on hosts with 64-bit int.
71799         There still are some problems with reeelly weird theoretical hosts
71800         (e.g., 33-bit int) but it's not worth worrying about now.
71801         * lib/sha1.c (rol): Likewise.
71802         (K1, K2, K3, K4): Remove unnecessary L suffix.
71803
71804 2006-05-10  Bruno Haible  <bruno@clisp.org>
71805
71806         * lib/des.c: Cast to avoid warnings.
71807
71808 2006-05-09  Bruno Haible  <bruno@clisp.org>
71809
71810         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71811         (Depends-on): Depend also on xsize, stdarg.
71812         (configure.ac): Add gl_XVASPRINTF.
71813
71814 2006-05-09  Bruno Haible  <bruno@clisp.org>
71815
71816         * m4/xvasprintf.m4: New file.
71817
71818 2006-05-09  Bruno Haible  <bruno@clisp.org>
71819
71820         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71821         (EOVERFLOW): Define fallback value.
71822         (xstrcat): New function.
71823         (xvasprintf): Recognize the special case of a string concatenation.
71824
71825 2006-05-08  Eric Blake  <ebb9@byu.net>
71826
71827         * gnulib-tool (func_version): Base copyright year on CVS date.
71828         (func_emit_copyright_notice): New function.
71829         (func_emit_lib_Makefile_am): Use it.
71830         (func_emit_tests_Makefile_am): Likewise.
71831         (func_import): Likewise.
71832
71833 2006-05-08  Bruno Haible  <bruno@clisp.org>
71834
71835         * modules/stdarg: New file.
71836         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71837
71838 2006-05-08  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/stdarg.m4: New file, from GNU gettext.
71841
71842 2006-05-08  Bruno Haible  <bruno@clisp.org>
71843
71844         * config/srclist.txt (build-aux/config.rpath): different from latest
71845         release.
71846
71847 2006-05-08  Bruno Haible  <bruno@clisp.org>
71848
71849         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71850
71851 2006-05-05  Jim Meyering  <jim@meyering.net>
71852
71853         * m4/warning.m4: New file, derived from bison's file by the same name.
71854
71855 2006-05-03  Bruno Haible  <bruno@clisp.org>
71856
71857         * lib/stdint_.h: Shorter URL.
71858         * lib/inttypes.h: Likewise.
71859
71860 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71863
71864 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71865
71866         * lib/verify.h: Document the internals better.  Most of this change
71867         was written by Bruno Haible.
71868
71869 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * doc/verify.texi: New file, partly based on a proposal by
71872         Bruno Haible.
71873
71874 2006-05-02  Bruno Haible  <bruno@clisp.org>
71875
71876         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71877         test from here...
71878         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71879
71880 2006-04-29  Bruno Haible  <bruno@clisp.org>
71881
71882         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71883         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71884
71885 2006-04-29  Bruno Haible  <bruno@clisp.org>
71886
71887         * gnulib-tool: Make --update option actually work.
71888
71889 2006-04-29  Bruno Haible  <bruno@clisp.org>
71890
71891         * doc/gcd.texi: New file.
71892         * doc/gnulib.texi: Include it.
71893
71894 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         * lib/getdate.y (get_date): When adding relative date, start with the
71897         initial time, not with the result of the first mktime call.
71898
71899 2006-04-25  Bruno Haible  <bruno@clisp.org>
71900
71901         * gnulib-tool (func_import): Output the include directives in three
71902         blocks, sorted separately.
71903         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71904
71905 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71906
71907         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71908         to define main with arguments, for C++.  Reported by Eric Blake.
71909         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71910         Prefer 'int main ()' to 'int main (void)', for C++.
71911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71912         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71913         for 'main', for C99 and C++.
71914
71915 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71916
71917         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71918         Don't assume that exit status -1 is valid.
71919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71920         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71921         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71922         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71923         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71924         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71925         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71926         functions can be used without declaring them, or that you can
71927         exit with status -1.
71928         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71929
71930 2006-04-24  Karl Berry  <karl@gnu.org>
71931
71932         * config/srclist.txt (longdouble.m4): sync lost.
71933
71934 2006-04-24  Eric Blake  <ebb9@byu.net>
71935
71936         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71937
71938 2006-04-24  Bruno Haible  <bruno@clisp.org>
71939
71940         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71941         poll() implementation in AIX.
71942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71943
71944 2006-04-24  Bruno Haible  <bruno@clisp.org>
71945
71946         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71947         assigned exactly once.
71948
71949 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71950             Bruno Haible  <bruno@clisp.org>
71951
71952         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71953         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71954         for AM_CPPFLAGS.
71955
71956 2006-04-23  Bruno Haible  <bruno@clisp.org>
71957
71958         * modules/copy-file: Depend on unistd.
71959         * modules/execute: Likewise.
71960         * modules/fatal-signal: Likewise.
71961         * modules/findprog: Likewise.
71962         * modules/mkdtemp : Likewise.
71963         * modules/pipe: Likewise.
71964         * modules/wait-process: Likewise.
71965
71966 2006-04-23  Bruno Haible  <bruno@clisp.org>
71967
71968         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71969         condition was already detected.
71970         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71971
71972 2006-04-23  Bruno Haible  <bruno@clisp.org>
71973
71974         * lib/copy-file.c: Include <unistd.h> unconditionally.
71975         * lib/execute.c: Likewise.
71976         * lib/fatal-signal.c: Likewise.
71977         * lib/findprog.c: Likewise.
71978         * lib/mkdtemp.c: Likewise.
71979         * lib/pipe.h: Likewise.
71980         * lib/pipe.c: Likewise.
71981         * lib/wait-process.h: Likewise.
71982
71983 2006-04-23  Bruno Haible  <bruno@clisp.org>
71984
71985         * gnulib-tool (func_usage): Fix --import description. Document
71986         --update.
71987         (func_import): Create temporary file in a temporary directory, if
71988         --dry-run is specified. Silence errors from 'grep' when there are no
71989         m4 files in $m4dir.
71990         (func_create_testdir): Silence errors from 'grep' when there are no
71991         m4 files in $m4dir.
71992         Reported by Karl Berry <karl@freefriends.org>.
71993
71994 2006-04-20  Bruno Haible  <bruno@clisp.org>
71995
71996         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71997         one argument, so that the code will be portable to Autoconf 2.60.
71998         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71999         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72000         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72001
72002 2006-04-19  Derek Price  <derek@ximbiot.com>
72003             Eric Blake  <ebb9@byu.net>
72004
72005         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72006         rather than "/full/path.h".  Update comment to match.  Shorten &
72007         generalize m4_translit call via AS_TR_CPP.
72008
72009 2006-04-19  Derek Price  <derek@ximbiot.com>
72010             Eric Blake  <ebb9@byu.net>
72011
72012         * lib/inttypes.h: Correct grammar in comment.
72013
72014 2006-04-18  Derek Price  <derek@ximbiot.com>
72015             Paul Eggert  <eggert@cs.ucla.edu>
72016
72017         * modules/inttypes: New file.
72018         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72019
72020 2006-04-18  Derek Price  <derek@ximbiot.com>
72021             Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72024         New files.
72025
72026 2006-04-18  Derek Price  <derek@ximbiot.com>
72027             Paul Eggert  <eggert@cs.ucla.edu>
72028
72029         * lib/inttypes.h: New file.
72030         * lib/strtoimax.c: Assume <inttypes.h>.
72031
72032 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72033
72034         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72035         isn't mounted.  Problem reported by Kir Kolyshkin.
72036
72037 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72038
72039         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72040         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72041         Derek R. Price.
72042         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72043         implementation.
72044
72045 2006-04-12  Eric Blake  <ebb9@byu.net>
72046
72047         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72048         is now done automatically by the corresponding Autoconf macro.
72049
72050 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72053         time_r.h.
72054
72055 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72056
72057         Merge regex changes from libc, removing some of our
72058         POSIX-conformance changes that were rejected and redoing them in a
72059         less-intrusive way.
72060
72061         * lib/regcomp.c (re_compile_internal, init_dfa):
72062         Length arg is now size_t, not Idx.  All uses changed.
72063         (peek_token): Forward decl now says internal_function.
72064         (__re_error_msgid, __re_error_msgid_idx):
72065         Now static rather than extern with attribute_hidden.
72066         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72067         For some reason libc prefers K&R style defns for external functions.
72068         (regerror) [!defined _LIBC]: Likewise.
72069         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72070         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72071         (build_range_exp, build_collating_symbol):
72072         Use K&R-style defn.
72073         (re_compile_fastmap): Use '\0' to memset, not 0.
72074         (utf8_sb_map): Make the calculations more obvious.
72075         (init_dfa, parse_bracket_exp, build_charclass_op):
72076         Call calloc and cast result, as glibc does.
72077         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72078         (build_range_exp, build_collating_symbol):
72079         Now internal functions.
72080
72081         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72082
72083         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72084         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72085         Don't depend on VMS; depend on __VMS instead, for POSIX
72086         namespace cleanness.
72087         (regoff_t): Define to ssize_t, not long int.
72088
72089         Remove the REG_ macros named below.  Instead, make the old names
72090         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72091         __USE_GNU_REGEX.
72092         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72093         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72094         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72095         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72096         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72097         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72098         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72099         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72100         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72101         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72102         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72103         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72104         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72105         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72106         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72107         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72108         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72109         (REG_NREGS):
72110         Remove.  All uses replaced by the old RE_* names.
72111         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72112         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72113         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72114         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72115         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72116         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72117         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72118         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72119         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72120         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72121         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72122         Don't bother having these macros be independent of each others'
72123         values, since they no longer exist in the POSIX name space.
72124
72125         Rename the following member names back to their old names,
72126         unless !__USE_GNU_REGEX.  All uses changed back.
72127         (buffer): Renamed from re_buffer.
72128         (allocated): Renamed from re_allocated.
72129         (used): Renamed from re_used.
72130         (syntax): Renamed from re_syntax.
72131         (fastmap): Renamed from re_fastmap.
72132         (translate): Renamed from re_translate.
72133         (can_be_null): Renamed from re_can_be_null.
72134         (regs_allocated): Renamed from re_regs_allocated.
72135         (fastmap_accurate): Renamed from re_fastmap_accurate.
72136         (no_sub): Renamed from re_no_sub.
72137         (not_bol): Renamed from re_not_bol.
72138         (not_eol): Renamed from re_not_eol.
72139         (newline_anchor): Renamed from re_newline_anchor.
72140         (num_regs): Renamed from rm_num_regs.
72141         (start): Renamed from rm_start.
72142         (end): Renamed from rm_end.
72143
72144         (free_state): Move up a bit.
72145
72146         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72147         #define to be empty.
72148         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72149         when that is what is intended.
72150         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72151         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72152         (MAX): New macro.
72153         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72154         All uses changed back to re_malloc, etc.  It's now the caller's
72155         responsibility to check for overflow; all callers changed.
72156         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72157         (re_x2nrealloc): Remove.
72158         (free_state): Remove decl.
72159
72160         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72161         (re_set_registers, re_exec):
72162         Use K&R-style defn.
72163
72164         2006-01-31  Roland McGrath  <roland@redhat.com>
72165
72166         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72167         Reported by Mike Frysinger <vapier@gentoo.org>.
72168
72169         2006-01-15  Andreas Jaeger  <aj@suse.de>
72170
72171         [BZ #1950]
72172         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72173         build_wcs_upper_buffer change.
72174         (build_wcs_upper_buffer): Change return type.
72175
72176         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72177
72178         * lib/regex_internal.h: Include <stdint.h> if available.
72179
72180         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72181
72182         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72183
72184         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72185
72186         * lib/regcomp.c: Adjust for changed secondary hash function.
72187
72188         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72189
72190         * lib/regex.h: Pretty printing.
72191         Clean up namespace a bit.
72192
72193         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72194
72195         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72196         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72197
72198         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72199                     Ulrich Drepper  <drepper@redhat.com>
72200
72201         [BZ #1302]
72202         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72203         changed.
72204         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72205
72206         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72207
72208         [BZ #281]
72209         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72210         * lib/regcomp.c: Remove unnecessary uses of
72211         unsigned RE_TRANSLATE_TYPE.
72212         * lib/regex_internal.h: Likewise.
72213         * lib/regex_internal.c: Likewise.
72214         * lib/regexec.c: Likewise.
72215         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72216
72217         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72218
72219         * lib/regexec.c (find_recover_state): Remove unnecessary
72220         initialization.
72221         (transit_state_bkref): Make DFA a const pointer.
72222         (get_subexp): Likewise.
72223         (check_arrival): Likewise.
72224         (update_cur_sifted_state): Likewise.
72225         (re_search_internal): Likewise.
72226         (prune_impossible_nodes): Likewise.
72227         (acquire_init_state_context): Likewise.
72228         (proceed_next_node): Likewise.
72229         (set_regs): Likewise.
72230         (free_fail_stack_return): Likewise.
72231         (check_arrival_expand_ecl): Mark DFA parameter as const.
72232         (check_arrival_expand_ecl_sub): Likewise.
72233         (check_subexp_limits): Likewise.
72234         (sub_epsilon_src_nodes):  Likewise.
72235         (add_epsilon_src_nodes):  Likewise.
72236         (merge_state_array): Likewise.
72237         (update_regs): Likewise.
72238         (build_trtable): Likewise.
72239         (sift_states_backward): Mark MCTX parameter as const.
72240         (build_sifted_states): Likewise.
72241         (update_cur_sifted_state): Likewise.
72242         (sift_states_mkref): Likewise.
72243         (check_arrival_expand_ecl): Mark eclosure as const.
72244         (check_dst_limits_calc_pos_1): Likewise.
72245         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72246         pointer.
72247
72248         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72249
72250         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72251         (transit_state_sb): Likewise.
72252         (transit_state_mb): Likewise.
72253         (sift_states_iter_mb): Likewise.
72254         (check_arrival_add_next_nodes): Likewise.
72255         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72256         [_LIBC] (re_search_2_stub): Use mempcpy.
72257
72258         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72259         mbrtowc for very simple UTF-8 case.
72260
72261         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72262         a pointer-to-const.
72263         (re_acquire_state_context): Likewise.
72264         * lib/regex_internal.h: Adjust prototypes.
72265
72266         * lib/regex.c: Prevent using C++ compilers.
72267
72268         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72269         (re_acquire_state_context): Likewise.
72270
72271 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * modules/regex (Depends-on): Add ssize_t.
72274
72275 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72278         translation table.
72279
72280 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72283
72284 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72285             Bruno Haible  <bruno@clisp.org>
72286
72287         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72288         <sys/types.h> and <inttypes.h>.
72289
72290 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72291
72292         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72293         `__error_t_defined', so argp.h will not typedef the former.
72294
72295 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72298         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72299         glibc names.  Even if glibc is changed to conform to POSIX, the
72300         traditional names will be available anyway, since regex depends on
72301         the extensions module.  Also, fix a longstanding typo in the
72302         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72303         reported by Emanuele Giaquinta.  Also, change sense of cached
72304         variable, so that the message makes sense.
72305
72306 2006-03-24  Simon Josefsson  <jas@extundo.com>
72307
72308         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72309         including some doc fixes.
72310         (base64_encode_alloc): Fix +1 bug on allocation failures.
72311
72312 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72313
72314         * lib/base64.c (base64_encode): Do not read past end of array with
72315         unsanitized input on systems with CHAR_BIT > 8.
72316
72317 2006-03-24  Eric Blake  <ebb9@byu.net>
72318
72319         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72320
72321 2006-03-22  Karl Berry  <karl@gnu.org>
72322
72323         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72324         * config/srclistvars.sh (COREUTILS): new var.
72325
72326 2006-03-17  Jim Meyering  <jim@meyering.net>
72327
72328         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72329         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72330
72331 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72334         no longer needs it.  Instead, check that regoff_t is as least
72335         as wide as ptrdiff_t.
72336
72337         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72338         so that our regex.h stays compatible with the installed regex.
72339         This is helpful for installers who configure --without-included-regex.
72340         Problem reported by Emanuele Giaquinta.
72341
72342 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72345         Typedef to long int, not to off_, as POSIX will likely change
72346         in that direction.
72347
72348 2006-03-15  Eric Blake  <ebb9@byu.net>
72349
72350         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72351
72352 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72353
72354         * lib/argp-help.c (validate_uparams): Fix typo
72355         * lib/argp-parse.c (argp_default_options): Consistently begin help
72356         messages with a lowercase letter.
72357
72358 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72359
72360         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72361         overrun buffers and shouldn't be used (much as gets shouldn't be
72362         used).
72363         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72364
72365 2006-03-08  Simon Josefsson  <jas@extundo.com>
72366
72367         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72368         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72369
72370 2006-03-08  Simon Josefsson  <jas@extundo.com>
72371
72372         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72373         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72374
72375 2006-03-08  Simon Josefsson  <jas@extundo.com>
72376
72377         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72378         signal that configure disabled the device.
72379
72380 2006-03-08  Simon Josefsson  <jas@extundo.com>
72381
72382         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72383         languages.
72384
72385 2006-03-07  Simon Josefsson  <jas@extundo.com>
72386
72387         * modules/getopt (Depends-on): Add unistd.
72388
72389         * modules/unistd: New file.
72390
72391 2006-03-07  Simon Josefsson  <jas@extundo.com>
72392
72393         * modules/gc-random: New file.
72394
72395 2006-03-07  Simon Josefsson  <jas@extundo.com>
72396
72397         * m4/unistd_h.m4: New file.
72398
72399 2006-03-07  Simon Josefsson  <jas@extundo.com>
72400
72401         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72402         test to be side-effect free by storing the result in the cache
72403         variable gl_cv_lib_readline, and moving the assignment of
72404         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72405         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72406
72407 2006-03-07  Simon Josefsson  <jas@extundo.com>
72408
72409         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72410         error on missing devices (the functions will return an error).
72411
72412         * m4/gc.m4: Move random stuff to gc-random.m4
72413
72414 2006-03-07  Simon Josefsson  <jas@extundo.com>
72415
72416         * lib/unistd_.h: New file.
72417
72418 2006-03-07  Simon Josefsson  <jas@extundo.com>
72419
72420         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72421
72422 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72425         Problem reported by Juan Manuel Guerrero.
72426
72427 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72430         the unistd module.
72431         * lib/getlogin_r.c: Likewise.
72432         * lib/getlogin_r.h: Likewise.
72433         * lib/glob.c: Likewise.
72434         * lib/pagealign_alloc.c: Likewise.
72435         * lib/unistd_.h: Remove; no longer needed.
72436
72437 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72438
72439         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72440         Add unistd.
72441         * modules/c-stack (Depends-on): Add unistd.
72442         * modules/getlogin_r: Likewise.
72443         * modules/glob: Likewise.
72444         * modules/pagealign_alloc: Likewise.
72445         * modules/unistd (Files): Remove lib/unistd_.h.
72446         (EXTRA_DIST): Remove.
72447         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72448         need unistd_.h.
72449         (MOSTLYCLEANFILES): Remove unistd.h-t.
72450
72451 2006-03-03  Simon Josefsson  <jas@extundo.com>
72452
72453         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72454
72455 2006-03-03  Simon Josefsson  <jas@extundo.com>
72456
72457         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72458         libidn and bison.
72459
72460 2006-03-03  Simon Josefsson  <jas@extundo.com>
72461
72462         * build-aux/maint.mk: Add indent target.
72463
72464 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72465
72466         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72467         our replacement poll.h in any case, to avoid a differing
72468         declaration from a system header.  Seen on AIX.
72469
72470 2006-03-01  Simon Josefsson  <jas@extundo.com>
72471
72472         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72473         <kasal@ucw.cz>.
72474
72475 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         * modules/gettime (Depends-on): Add extensions module.
72478         * modules/nanosleep (Depends-on): Likewise.
72479         * modules/settime (Depends-on): Likewise.
72480
72481 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72482
72483         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72484         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72485         pedantically.
72486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72487         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72488
72489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72490         not "==".  Reported by Ralf Wildenhues.
72491
72492 2006-03-01  Karl Berry  <karl@gnu.org>
72493
72494         * doc/Copyright/request-*: new files, synced from gnuorg.
72495
72496 2006-03-01  Karl Berry  <karl@gnu.org>
72497
72498         * config/srclist.txt (Copyright/*): new entries.
72499
72500 2006-02-28  Simon Josefsson  <jas@extundo.com>
72501
72502         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72503
72504 2006-02-27  Simon Josefsson  <jas@extundo.com>
72505
72506         * lib/base64.h: Indent #define's.  From Jim Meyering
72507         <jim@meyering.net>.
72508
72509 2006-02-27  Jim Meyering  <jim@meyering.net>
72510
72511         Revert the change of 2006-02-24, so these files can continue
72512         to be sync'd from gettext.
72513         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72514         of `config.h'.
72515
72516 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * modules/intprops: New file.
72519         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72520         Add intprops.
72521         * modules/getloadavg (Files): Remove lib/intprops.h.
72522         (Depends-on): Add intprops.
72523         * modules/human: Likewise.
72524         * modules/inttostr: Likewise.
72525         * modules/openat: Likewise.
72526         * modules/sig2str: Likewise.
72527         * modules/userspec: Likewise.
72528         * modules/utimecmp: Likewise.
72529         * modules/xnanosleep: Likewise.
72530         * modules/xstrtol: Likewise.
72531
72532 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72533
72534         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72535         * modules/lock-tests (TESTS): Use $(EXEEXT).
72536         * modules/tls-tests: Likewise.
72537         * modules/argp-tests: Likewise.
72538         (check_PROGRAMS): New var, replacing...
72539         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72540
72541 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72542
72543         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72544         `config.h'.
72545
72546 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72547
72548         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72549
72550 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72551
72552         Sync from coreutils.
72553         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72554         gl_CHDIR_SAFER.
72555
72556 2006-02-22  Jim Meyering  <jim@meyering.net>
72557
72558         Sync from coreutils.
72559         * m4/chdir-safer.m4: New file.
72560
72561 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72562
72563         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72564         AT_FDCWD exceeds INT_MAX.
72565         * lib/openat.h (AT_FDCWD): Likewise.
72566
72567 2006-02-17  Eric Blake  <address@hidden>
72568
72569         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72570
72571 2006-02-16  Simon Josefsson  <jas@extundo.com>
72572
72573         * modules/getaddrinfo (Depends-on): Add sys_socket.
72574
72575 2006-02-15  Simon Josefsson  <jas@extundo.com>
72576
72577         * build-aux/maint.mk: Add dsyntax-check rule.
72578
72579 2006-02-15  Eric Blake  <ebb9@byu.net>
72580
72581         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72582         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72583         'present but cannot compile' warnings on cygwin.
72584         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72585         use ws2tcpip.h if sys/socket.h works.
72586         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72587         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72588
72589 2006-02-14  Simon Josefsson  <jas@extundo.com>
72590
72591         * modules/maintainer-makefile (Files): Rename.
72592
72593         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72594         and (the local) Makefile.cfg to maint-cfg.mk.
72595
72596         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72597         to the latter.
72598
72599         * modules/maintainer-makefile: New module.
72600
72601         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72602         severaly stripped to make it possible to build it up from scratch
72603         with reliable tests.
72604
72605         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72606         fixes to permit overriding the default actions when configure and
72607         makefile are not available.
72608
72609 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         Sync from coreutils.
72612         * modules/lstat (Depends-on): Don't depend on xalloc.
72613         (License): Change from GPL to LGPL, since this is now simply a
72614         replacement for a libc function.
72615
72616 2006-02-14  Jim Meyering  <jim@meyering.net>
72617
72618         Sync from coreutils.
72619
72620         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72621         failure on deficient systems, and simplify gnulib lgpl dependencies.
72622         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72623         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72624
72625         * lib/xalloc-die.c: Remove unused definition of N_.
72626
72627 2006-02-14  Jim Meyering  <jim@meyering.net>
72628
72629         Sync from coreutils.
72630         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72631         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72632         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72633         double-quote uses of that variable, to accommodate the rare case in
72634         which getmntent is available in none of the libraries checked.  This
72635         happens at least on FreeBSD 5.0.
72636
72637 2006-02-13  Simon Josefsson  <jas@extundo.com>
72638
72639         * gnulib-tool (Usage): Fix --import, from
72640         karl@freefriends.org (Karl Berry).
72641
72642 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72643
72644         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72645
72646 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72647
72648         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72649         "autoupdate" on 2005-12-12.
72650
72651 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72652
72653         * modules/closeout (Depends-on): Remove atexit.
72654
72655 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72658         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72659
72660 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72663         __EXTENSIONS__ if this causes compilation to fail.  Problem
72664         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72665         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72666
72667 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72670         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72672         All uses changed.
72673
72674 2006-01-26  Simon Josefsson  <jas@extundo.com>
72675
72676         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72677         prototype is visible on mingw32.
72678
72679         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72680         for mingw32.
72681
72682         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72683         mingw32).
72684
72685 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72688         attempt to open for write; this always fails, at least on POSIX
72689         hosts.  This reinstates the 2006-01-09 change, which was
72690         inadvertently removed.
72691
72692 2006-01-26  Bruno Haible  <bruno@clisp.org>
72693
72694         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72695         Reported by Paul Eggert.
72696
72697 2006-01-26  Bruno Haible  <bruno@clisp.org>
72698             Paul Eggert  <eggert@cs.ucla.edu>
72699
72700         * lib/stdbool_.h (_Bool)
72701         [(! (defined __cplusplus || defined __BEOS__)
72702           && !defined __GNUC__
72703           && !(defined __HP_cc || defined __xlc__
72704                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72705                || defined __sgi))]:
72706         #define to signed char in these cases too; this simplifies
72707         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72708         etc., separately) and makes it more conservative.
72709
72710 2006-01-25  Simon Josefsson  <jas@extundo.com>
72711
72712         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72713         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72714         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72715
72716 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72717
72718         * lib/argp-namefrob.h: Bugfix. Remove stray #
72719
72720 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72721
72722         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72723         so that we test the test.
72724         Check for yet another HP-UX cc bug involving *bool |= bool.
72725
72726 2006-01-25  Karl Berry  <karl@gnu.org>
72727
72728         * config/srclist.txt (vasnprintf.c): sync lost.
72729
72730 2006-01-25  Jim Meyering  <jim@meyering.net>
72731
72732         Sync from the stable (b5) branch of coreutils:
72733
72734         * lib/fts.c (fts_children): Don't let close() clobber errno from
72735         failed fchdir().
72736
72737         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72738         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72739         a dangling symlink.  That can also happen at least for ELOOP.
72740         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72741         FYI, this bug predates the inclusion of fts.c in coreutils.
72742
72743         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72744         in their own block, so pre-c99 compilers don't object.
72745
72746         Avoid the double-free (first in fts_read, second in fts_close) that
72747         would occur when an `active' directory is made inaccessible (e.g.,
72748         via chmod a-x) during a traversal.
72749         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72750         before returning.  Reproduce this failure by
72751         mkdir -p a/b; cd a; chmod a-x . b
72752         Reported by Stavros Passas.
72753
72754 2006-01-25  Jim Meyering  <jim@meyering.net>
72755
72756         * lib/fileblocks.c: Remove more useless parentheses.
72757         * lib/readutmp.h: Likewise.
72758
72759 2006-01-25  Bruno Haible  <bruno@clisp.org>
72760
72761         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72762         warnings.
72763         Reported by Paul Eggert.
72764
72765 2006-01-25  Bruno Haible  <bruno@clisp.org>
72766
72767         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72768         rid of a trap command. For Solaris sh.
72769         Reported by Mark D. Baushke <mdb@gnu.org>.
72770
72771 2006-01-24  Simon Josefsson  <jas@extundo.com>
72772
72773         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72774         Bruno.
72775
72776 2006-01-24  Karl Berry  <karl@gnu.org>
72777
72778         * config/srclist.txt (argp-namefrob.h): sync lost.
72779
72780 2006-01-24  Jim Meyering  <jim@meyering.net>
72781
72782         * modules/openat (Files): Add lib/intprops.h.
72783         From Mark D. Baushke.
72784
72785 2006-01-24  Jim Meyering  <jim@meyering.net>
72786
72787         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72788         Reported by Mark D. Baushke.
72789
72790 2006-01-24  Jim Meyering  <jim@meyering.net>
72791
72792         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72793
72794 2006-01-24  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/strnlen (Maintainer): Change from glibc to all.
72797
72798 2006-01-24  Bruno Haible  <bruno@clisp.org>
72799
72800         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72801         Patch by Paul Eggert.
72802
72803 2006-01-24  Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72806         already has it.
72807         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72808         2005-11-26.
72809
72810         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72811         'signed char' to avoid problems with the built-in _Bool type.
72812         Reported by Paul Eggert on 2005-11-26.
72813
72814 2006-01-24  Bruno Haible  <bruno@clisp.org>
72815
72816         * gnulib-tool (func_import): Avoid constructing complicated sed
72817         expressions inside backquote.
72818         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72819
72820 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72821
72822         These changes imported from libc.
72823         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72824         test and two separate function calls.
72825         * lib/strndup.c (__strndup): Add libc_hidden_def.
72826
72827 2006-01-23  Simon Josefsson  <jas@extundo.com>
72828
72829         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72830         Remove the test_*_SOURCES variable: automake infers it by default.
72831         * modules/tls-tests: Likewise.
72832
72833 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         Work around porting bugs reported by Dieter in
72836         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72837         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72838         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72839         Include "getopt.h" first, to check interface.
72840         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72841         !HAVE_DECL_GETENV.
72842         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72843         (__strndup): Revert to K&R-style function dfns, the glibc style.
72844         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72845         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72846         Include strnlen.h first, to get prototype properly.
72847         (strnlen): Renamed from __strnlen.
72848         Remove weak alias.
72849
72850 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72851
72852         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72853
72854 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         * config/srclist.txt: Adjust to reflect glibc reorganization.
72857         This affects only comments.
72858
72859 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72860
72861          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72862          Reported by Bruce Korb <bkorb@gnu.org>.
72863
72864 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72867         to pacify gcc -Wswitch-default.
72868
72869 2006-01-22  Bruno Haible  <bruno@clisp.org>
72870
72871         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72872         temporary buffer for sprintf, take into account the precision also
72873         for 'd', 'i', 'u', 'o', 'x', 'X'.
72874
72875 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72876
72877         * modules/argp-tests: New module
72878         * tests/test-argp.c: New file
72879         * tests/test-argp-2.sh: New file
72880
72881 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72882
72883         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72884         (__argp_base_name): Removed
72885         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72886         typo.
72887         (__argp_base_name): Provide macro definition or extern declaration
72888         depending on the configuration
72889
72890 2006-01-20  Simon Josefsson  <jas@extundo.com>
72891
72892         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72893
72894 2006-01-20  Simon Josefsson  <jas@extundo.com>
72895
72896         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72897
72898 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72899
72900         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72901         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72902         Suggested by Bruno Haible.
72903
72904 2006-01-20  Karl Berry  <karl@gnu.org>
72905
72906         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72907         until changes propagate, I guess.
72908
72909 2006-01-19  Simon Josefsson  <jas@extundo.com>
72910
72911         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72912
72913 2006-01-19  Simon Josefsson  <jas@extundo.com>
72914
72915         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72916
72917 2006-01-19  Simon Josefsson  <jas@extundo.com>
72918
72919         * gnulib-tool: Set check_PROGRAMS.
72920
72921         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72922         modules/des-tests, modules/gc-arcfour-tests,
72923         modules/gc-arctwo-tests, modules/gc-des-tests,
72924         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72925         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72926         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72927         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72928         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72929         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72930         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72931         test_*_SOURCES.
72932
72933 2006-01-18  Simon Josefsson  <jas@extundo.com>
72934
72935         * modules/socklen (Depends-on): Depend on sys_socket.
72936
72937 2006-01-18  Simon Josefsson  <jas@extundo.com>
72938
72939         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72940         modules/des-tests, modules/gc-arcfour-tests,
72941         modules/gc-arctwo-tests, modules/gc-des-tests,
72942         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72943         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72944         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72945         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72946         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72947         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72948         $(EXEEXT) to automake TESTS variable, for mingw32.
72949
72950 2006-01-17  Simon Josefsson  <jas@extundo.com>
72951
72952         * modules/socklen (Include): Need sys/socket.h.
72953
72954 2006-01-17  Bruno Haible  <bruno@clisp.org>
72955
72956         * modules/ssize_t (Include): Add <sys/types.h>.
72957
72958 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72959
72960         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72961         it's not portable and it doesn't work with cross-compiles.
72962         Problem reported by Bruno Haible.  Fix missing-$ typo in
72963         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72964         -zignore from being used with Sun's C compiler.
72965
72966 2006-01-12  Simon Josefsson  <jas@extundo.com>
72967
72968         * lib/base64.c: Fix warning, reported by Bruno Haible
72969         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72970
72971 2006-01-12  Bruno Haible  <bruno@clisp.org>
72972
72973         * modules/ldd: New file.
72974         * build-aux/ldd.sh.in: New file.
72975         * MODULES.html.sh (Support for building libraries and executables): Add
72976         ldd.
72977
72978 2006-01-12  Bruno Haible  <bruno@clisp.org>
72979
72980         * m4/ldd.m4: New file.
72981
72982 2006-01-12  Bruno Haible  <bruno@clisp.org>
72983
72984         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72985         endless loop while replacing $auxdir with build-aux.
72986
72987 2006-01-11  Simon Josefsson  <jas@extundo.com>
72988
72989         * lib/stdint_.h (SIZE_MAX): Add missing (.
72990
72991 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72992
72993         Sync from coreutils.
72994         * lib/md5.c: Fix commentary typos.
72995         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72996         * lib/md5.h (__attribute__): Remove; unused.
72997         * lib/sha1.c: Fix commentary to match md5 better.
72998         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72999         so that we don't need to worry about alignment.  All uses changed.
73000         This merges the 2005-10-28 md5 change into sha1.
73001
73002 2006-01-11  Jim Meyering  <jim@meyering.net>
73003
73004         Sync from coreutils.
73005         * lib/md5.c (OP): Fix spacing.
73006
73007 2006-01-11  Bruno Haible  <bruno@clisp.org>
73008
73009         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73010         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73011         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73012
73013 2006-01-11  Bruno Haible  <bruno@clisp.org>
73014
73015         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73016         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73017         the "early" section as well.
73018
73019 2006-01-11  Bruno Haible  <bruno@clisp.org>
73020
73021         Avoid "ar: no archive members specified" error on MacOS X.
73022         * gnulib-tool (func_modules_add_dummy): New function.
73023         (func_import, func_create_testdir): Invoke it.
73024
73025 2006-01-11  Bruno Haible  <bruno@clisp.org>
73026
73027         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73028         with $auxdir in AC_CONFIG_FILES statements.
73029
73030 2006-01-11  Bruno Haible  <bruno@clisp.org>
73031
73032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73033         Initialize also noinst_HEADERS to empty.
73034
73035 2006-01-11  Bruno Haible  <bruno@clisp.org>
73036
73037         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73038         variables.
73039         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73040         autoreconf.
73041
73042 2006-01-11  Bruno Haible  <bruno@clisp.org>
73043
73044         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73045         overridable by the user.
73046         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73047
73048 2006-01-10  Simon Josefsson  <jas@extundo.com>
73049
73050         * modules/sys_socket: New file.
73051
73052 2006-01-10  Simon Josefsson  <jas@extundo.com>
73053
73054         * m4/sys_socket_h.m4: New file.
73055
73056 2006-01-10  Simon Josefsson  <jas@extundo.com>
73057
73058         * lib/socket_.h: New file.
73059
73060 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73061
73062         * modules/readutmp (Maintainer): Add myself.
73063
73064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73065
73066         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73067         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73068         People who are still concerned with buggy memcmp implementations
73069         can invoke gl_FUNC_MEMCMP themselves.
73070
73071 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * lib/regex_internal.h (BITSET_WORD_BITS):
73074         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73075         preprocessor mishandles large unsigned values as if they were signed.
73076         Problem reported by Claudio Fontana in
73077         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73078
73079 2006-01-10  Jim Meyering  <jim@meyering.net>
73080
73081         Avoid the double-free (first in fts_read, second in fts_close) that
73082         would occur when an `active' directory is made inaccessible (e.g.,
73083         via chmod a-x) during a traversal.
73084         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73085         before returning.  Reproduce this failure by
73086         mkdir -p a/b; cd a; chmod a-x . b
73087         Reported by Stavros Passas.
73088
73089         Sync from coreutils.
73090         * lib/sha1.c: Tweak grammar in a comment.
73091
73092 2006-01-10  Jim Meyering  <jim@meyering.net>
73093
73094         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73095         Patch by Joerg Sonnenberger.
73096
73097 2006-01-10  Bruno Haible  <bruno@clisp.org>
73098
73099         * modules/readutmp: Depend on module free.
73100         * modules/strtok_r: Depend on module restrict.
73101
73102 2006-01-10  Bruno Haible  <bruno@clisp.org>
73103
73104         * modules/gettext (configure.ac): Add an invocation of
73105         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73106
73107 2006-01-10  Bruno Haible  <bruno@clisp.org>
73108
73109         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73110         Reported by Werner Lemberg <wl@gnu.org>.
73111
73112 2006-01-10  Bruno Haible  <bruno@clisp.org>
73113
73114         * lib/localcharset.c: Update from GNU gettext.
73115
73116 2006-01-10  Bruno Haible  <bruno@clisp.org>
73117
73118         * lib/argp.h (__const): Remove macro. Use const instead.
73119         * lib/argp-fmtstream.h (__const): Likewise.
73120         * lib/glob_.h (__const): Remove macro.
73121         * lib/glob-libc.h: Use const instead of __const.
73122
73123 2006-01-10  Bruno Haible  <bruno@clisp.org>
73124
73125         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73126         variable.
73127         Needed to avoid an automake error regarding the 'gettext' module.
73128
73129 2006-01-09  Simon Josefsson  <jas@extundo.com>
73130
73131         * modules/inet_ntop (Depends-on): Add restrict.
73132
73133 2006-01-09  Simon Josefsson  <jas@extundo.com>
73134
73135         * modules/gc-rijndael-tests (License): Put under LGPL.
73136
73137         * modules/gc-des-tests (License): Likewise.
73138
73139         * modules/gc-arcfour-tests (License): Likewise.
73140
73141         * modules/gc-arctwo-tests (License): Likewise.
73142
73143         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73144
73145         * modules/gc-hmac-sha1-tests (Files): Likewise.
73146
73147         * modules/gc-hmac-md5-tests (License): Likewise.
73148
73149         * modules/gc-sha1-tests (License): Likewise.
73150
73151         * modules/gc-md5-tests (License): Likewise.
73152
73153         * modules/gc-md4-tests (License): Likewise.
73154
73155         * modules/gc-md2-tests (License): Likewise.
73156
73157         * modules/gc-tests (License): Likewise.
73158
73159         * modules/des-tests (License): Likewise.
73160
73161         * modules/md4-tests (License): Likewise.
73162
73163         * modules/md2-tests (License): Likewise.
73164
73165 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         Sync from coreutils:
73168
73169         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73170         * modules/lib-ignore: New file.
73171         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73172         chdir-safer.m4, lchmod.m4.
73173         * modules/openat: Add mkdirat.c, openat-priv.h.
73174
73175 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         Sync from coreutils.
73178         * m4/lib-ignore.m4: New file.
73179         * m4/lchmod.m4: New file.
73180
73181 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73182
73183         Sync from coreutils.
73184         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73185         for write access: POSIX says that must fail.
73186         * lib/fts.c (diropen): Likewise.
73187         * lib/save-cwd.c (save_cwd): Likewise.
73188         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73189         well, for minor improvements on hosts that lack O_DIRECTORY.
73190         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73191         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73192         Fall back on chown if open failed with EACCES.
73193
73194         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73195         Report an error at compile-time if only a 1-second nominal clock
73196         resolution is found.
73197
73198         * lib/lchmod.h: New file.
73199         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73200         (make_dir_parents): Use lchown rather than chown, and
73201         lchmod rather than chmod.
73202
73203         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73204         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73205         "proc" reported by n0dalus.
73206
73207         * lib/mountlist.c: Include <limits.h>.
73208         (dev_from_mount_options)
73209         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73210         New function.  It no longer assumes "dev=" has the System V meaning
73211         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73212         (read_file_system_list)
73213         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73214         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73215         dev= in that case.
73216
73217         * lib/posixtm.h (PDS_PRE_2000): New macro.
73218         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73219         allow_century.  All usages changed.  Reject dates outside the range
73220         1969-1999 if PDS_PRE_2000 is used.
73221
73222 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73223
73224         Sync from coreutils.
73225         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73226         (Time of day items): Mention the possibility of leap seconds.
73227         Problem reported by Dr. David Alan Gilbert.
73228
73229 2006-01-09  Jim Meyering  <jim@meyering.net>
73230
73231         Sync from coreutils.
73232
73233         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73234
73235         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73236
73237         * lib/modechange.c (mode_compile): Reject an invalid mode string
73238         that starts with an octal digit.  From Andreas Gruenbacher.
73239
73240         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73241         and dup to open_safer and dup_safer, respectively.
73242         (openat_permissive): Fix typo in comment.
73243
73244         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73245         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73246         (_): Remove; no longer needed.
73247         (openat): Renamed from rpl_openat; no need for rpl_openat
73248         since openat.h renames openat for us.
73249         Replace most of the body with a call to openat_permissive,
73250         to avoid duplicate code.
73251         Port to (probably hypothetical) environments were mode_t is
73252         wider than int.
73253         (openat_permissive): Require mode arg, so that we can check
73254         types better.  Put it just after flags.  Change cwd failure
73255         indicator from pointer-to-bool to pointer-to-errno-value.
73256         All callers changed.
73257         Invoke openat_save_fail and/or openat_restore_fail if
73258         cwd_errno is null, so that openat can call us.
73259         (openat_permissive, fdopendir, fstatat, unlinkat):
73260         Simplify errno handling to avoid some duplicate code,
73261         as it's OK to set errno on success.
73262         * lib/openat.h: Revamp code so that function macros depend on
73263         __OPENAT_PREFIX only, not also on AT_FDCWD.
73264         (openat_ro): Remove.  Caller changed to use openat_permissive.
73265         (openat_permissive): Now a macro, if not a function.
73266         (openat_restore_fail, openat_save_fail): Now always functions,
73267         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73268
73269         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73270         and openat.c.
73271         * lib/mkdirat.c: Include openat-priv.h.
73272         Remove definitions of macros defined therein.
73273         * lib/openat.c: Likewise.
73274
73275         * lib/mkdirat.c (mkdirat): New file and function.
73276         * lib/openat.h (mkdirat): Declare.
73277
73278         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73279
73280         * lib/openat.h (openat_permissive): Declare.
73281         (openat_ro): Define.
73282
73283         * lib/openat.c (EXPECTED_ERRNO): New macro.
73284         (openat_permissive): New function -- used in remove.c rewrite.
73285         (all functions): Set errno just before returning, only if there
73286         was an actual failure.
73287         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73288
73289         Emulate openat-family functions using Linux's procfs, if possible.
73290         Idea and some code based on Ulrich Drepper's glibc changes.
73291
73292         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73293         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73294         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73295         before falling back on save_cwd and restore_cwd.
73296         (fdopendir, fstatat, unlinkat): Likewise.
73297
73298         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73299         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73300
73301         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73302         as second argument to va_arg.  Otherwise, some versions of gcc
73303         warn that `if this code is reached, the program will abort'.
73304
73305 2006-01-09  Jim Meyering  <jim@meyering.net>
73306
73307         Sync from coreutils.
73308         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73309         Require openat-priv.h.
73310
73311 2006-01-09  Bruno Haible  <bruno@clisp.org>
73312
73313         * modules/strnlen (Include): Use strnlen.h.
73314
73315 2006-01-09  Bruno Haible  <bruno@clisp.org>
73316
73317         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73318
73319 2006-01-09  Bruno Haible  <bruno@clisp.org>
73320
73321         * lib/sysexit_.h (EX_OK): New macro.
73322         Suggested by Martin Lambers <marlam@marlam.de>.
73323
73324 2006-01-09  Bruno Haible  <bruno@clisp.org>
73325
73326         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73327         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73328
73329 2006-01-09  Bruno Haible  <bruno@clisp.org>
73330
73331         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73332         numbers.
73333
73334 2006-01-09  Bruno Haible  <bruno@clisp.org>
73335
73336         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73337         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73338         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73339         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73340
73341 2006-01-09  Bruno Haible  <bruno@clisp.org>
73342
73343         * build-aux/javacomp.sh.in: New file, moved from lib/.
73344         * modules/javacomp-script (Files): Update.
73345         (configure.ac): Add AC_CONFIG_FILES invocation.
73346         (EXTRA_DIST): Remove variable.
73347
73348         * build-aux/javaexec.sh.in: New file, moved from lib/.
73349         * modules/javaexec (Files): Update.
73350         (configure.ac): Add AC_CONFIG_FILES invocation.
73351         (EXTRA_DIST): Remove javaexec.sh.in.
73352
73353         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73354         * modules/csharpcomp-script (Files): Update.
73355         (configure.ac): Add AC_CONFIG_FILES invocation.
73356         (EXTRA_DIST): Remove variable.
73357
73358         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73359         * modules/csharpexec (Files): Update.
73360         (configure.ac): Add AC_CONFIG_FILES invocation.
73361         (EXTRA_DIST): Remove csharpexec.sh.in.
73362
73363 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73364
73365         Sync from coreutils.
73366
73367         Add POSIX ACL support
73368         * lib/acl.h (copy_acl, set_acl): Add declarations.
73369         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73370         systems other than Linux.
73371         (chmod_or_fchmod): New function: use fchmod when possible,
73372         and chmod otherwise.
73373         (file_has_acl): Add a POSIX ACL implementation, with a
73374         Linux-specific subcase.
73375         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73376         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73377         acls are unsupported.
73378         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73379         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73380         are unsupported.
73381
73382 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73383
73384         Sync from coreutils.
73385         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73386
73387 2006-01-07  Bruno Haible  <bruno@clisp.org>
73388
73389         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73390         gl_EARLY.
73391
73392 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73393
73394         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73395         Problem reported for Mingw by Mark Junker.
73396
73397 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73398
73399         * README: Gnulib normally doesn't generate a tarball.
73400
73401 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73402
73403         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73404         long int, not int, for nanosecond counts, so that people who are
73405         used to POSIX struct timespec won't be surprised.  Reported by Jim
73406         Meyering.
73407
73408 2005-12-28  Bruno Haible  <bruno@clisp.org>
73409
73410         * build-aux/config.rpath: Update from GNU gettext.
73411
73412 2005-12-16  Jim Meyering  <jim@meyering.net>
73413
73414         * modules/fprintftime: New module.
73415         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73416
73417 2005-12-16  Jim Meyering  <jim@meyering.net>
73418
73419         * m4/fprintftime.m4: New file.
73420
73421 2005-12-16  Jim Meyering  <jim@meyering.net>
73422
73423         * lib/fprintftime.c, lib/fprintftime.h: New files.
73424
73425 2005-12-15  Simon Josefsson  <jas@extundo.com>
73426
73427         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73428         new m4/socklen.m4.
73429
73430 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73431
73432         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73433         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73434
73435 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73436
73437         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73438         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73439         struct uparams is valid. Fall back to the default values if it is
73440         not.
73441
73442 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73443
73444         * modules/argp (Files): Add argp-pin.c
73445         (Depends-on): dirname
73446         (lib_SOURCES): Add argp-pin.c
73447
73448 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73449
73450         * m4/argp.m4:  Check if program_invocation_name and
73451         program_invocation_short_name are declared and define appropriate
73452         macros if they are not.
73453
73454 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73455
73456         * lib/argp-help.c (__argp_base_name): New function
73457         (__argp_short_program_name): Rewrite using __argp_base_name
73458         * lib/argp-namefrob.h: Define program_invocation_name and
73459         program_invocation_short_name if requested
73460         (__argp_base_name): Add prototype
73461         * lib/argp-parse.c (argp_def): Use gettext wrappers
73462         (argp_default_parser): Use __argp_base_name
73463         * lib/argp-pin.c: New file. Defines program_invocation_name and
73464         program_invocation_short_name on systems that lack them.
73465
73466 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73467
73468         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73469         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73470         porting problem reported by Georg Schwarz in
73471         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73472
73473 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73474
73475         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73476         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73477         porting problem reported by Georg Schwarz in
73478         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73479
73480 2005-12-05  Bruno Haible  <bruno@clisp.org>
73481
73482         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73483         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73484         Reported by Mark Junker <mjscod@gmx.de>.
73485
73486 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73489         Use implementation from Albert Chin, with some
73490         comments/corrections by Stepan Kasal and myself.
73491
73492 2005-12-02  Bruno Haible  <bruno@clisp.org>
73493
73494         * gnulib-tool (func_import): Accept GPLed build tool modules when
73495         --lgpl is given.
73496         * modules/csharpcomp-script: New file.
73497         * modules/csharpcomp: Depend on it.
73498         * modules/javacomp-script: New file.
73499         * modules/javacomp: Depend on it.
73500         Suggested by Simon Josefsson.
73501
73502 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73505         statement, to work around an HP-UX 10.20 compiler bug reported by
73506         Peter O'Gorman.
73507
73508 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73509
73510         * modules/savedir (Depends-on): Add openat.
73511
73512 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73515         (uintmax_t) [defined uintmax_t]: Do not declare.
73516         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73517         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73518         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73519         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73520         sake of portability to weird hosts that C allows (though we don't
73521         know of any practical examples).
73522
73523         * lib/savedir.h (fdsavedir): New decl.
73524         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73525         contains most of the former guts of savedir.
73526         (savedir): Use savedirstream.
73527         Include "openat.h".
73528
73529 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73530
73531         * modules/obstack (Files): Add m4/ulonglong.m4.
73532         Problem reported by Davide Angelocola.
73533
73534 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73535
73536         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73537         coreutils no longer futzes with rounding modes.
73538
73539 2005-11-14  Jim Meyering  <jim@meyering.net>
73540
73541         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73542         replacement of mkstemp.
73543
73544 2005-11-10  Simon Josefsson  <jas@extundo.com>
73545
73546         * lib/readline.c: Remove EOL.
73547
73548 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73549
73550         * modules/gethrxtime (Depends-on): Add gettime.
73551
73552 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73555         or gettimeofday; no longer needed.
73556
73557 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73558
73559         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73560         time business.
73561         (gethrxtime) [! (HAVE_NANOUPTIME
73562         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73563         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73564         our own approximation.
73565
73566 2005-11-08  Eric Blake  <ebb9@byu.net>
73567
73568         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73569
73570 2005-11-08  Eric Blake  <ebb9@byu.net>
73571
73572         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73573
73574 2005-11-04  Bruno Haible  <bruno@clisp.org>
73575
73576         * gnulib-tool: Implement --update mode.
73577
73578 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73579
73580         Fix porting problem reported by Theodoros V. Kalamatianos.
73581         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73582         Don't assume that futimes failing means we must fail.
73583
73584 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73587         variables to suggest the intended function of the PATH_MAX check.
73588
73589 2005-10-30  Kean Johnston  <jkj@sco.com>
73590
73591         Trivial changes to support SCO systems.
73592         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73593         as PATH_MAX.
73594         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73595         where __ptr is null when no I/O is pending.
73596
73597 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73600         leave errno alone.  Problem reported by Dmitry V. Levin.
73601
73602 2005-10-28  Simon Josefsson  <jas@extundo.com>
73603
73604         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73605         Test more.
73606
73607         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73608
73609         * modules/md2, modules/md2-tests: New files.
73610
73611 2005-10-28  Simon Josefsson  <jas@extundo.com>
73612
73613         * m4/inet_ntop.m4: More tests.
73614
73615         * m4/gc-md2.m4, md2.m4: New file.
73616
73617 2005-10-28  Simon Josefsson  <jas@extundo.com>
73618
73619         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73620         "restrict" keywords, as per POSIX.  Protect the function
73621         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73622         Don't use K&R prototypes.  Check the sprintf return values.
73623         Re-define EAFNOSUPPORT if not present.  Indent.
73624
73625         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73626         suggested by Bruno Haible <bruno@clisp.org>.
73627
73628         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73629
73630         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73631
73632         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73633         libgcrypt).
73634
73635         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73636
73637         * lib/md2.h, lib/md2.c: New files.
73638
73639 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73642         errno alone.  Problem reported by Frederic Jolliton.
73643
73644 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * modules/verify (License): Change from GPL to LGPL.  This is a
73647         tiny module and there are apparently near-equivalents that are
73648         under the BSD license.
73649
73650 2005-10-24  Simon Josefsson  <jas@extundo.com>
73651
73652         * modules/sha1: Relicense to LGPL.
73653
73654 2005-10-24  Simon Josefsson  <jas@extundo.com>
73655
73656         * lib/md4.h: Shrink buffer size, now that we changed the type.
73657
73658 2005-10-23  Simon Josefsson  <jas@extundo.com>
73659
73660         * gnulib-tool (func_import): Fix --tests-base.
73661
73662 2005-10-22  Simon Josefsson  <jas@extundo.com>
73663
73664         * modules/arcfour (Depends-on): Need stdint.
73665
73666 2005-10-22  Simon Josefsson  <jas@extundo.com>
73667
73668         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73669         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73670
73671 2005-10-22  Simon Josefsson  <jas@extundo.com>
73672
73673         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73674         suggested by Bruno Haible <bruno@clisp.org>.
73675
73676 2005-10-22  Simon Josefsson  <jas@extundo.com>
73677
73678         * lib/crc.h: Include stddef.h, for size_t.
73679
73680 2005-10-22  Simon Josefsson  <jas@extundo.com>
73681
73682         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73683         arcfour_context struct (simplify test vector testing in GNU
73684         Shishi).
73685
73686 2005-10-21  Simon Josefsson  <jas@extundo.com>
73687
73688         * modules/des, modules/des-tests: New files.
73689
73690         * modules/gc-des, modules/gc-des-tests: New files.
73691
73692         * tests/test-des.c, tests/test-gc-des.c: New file.
73693
73694 2005-10-21  Simon Josefsson  <jas@extundo.com>
73695
73696         * modules/arctwo, modules/arctwo-tests: New files.
73697
73698         * tests/test-arctwo.c: New file.
73699
73700         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73701
73702         * tests/test-gc-arctwo.c: New file.
73703
73704 2005-10-21  Simon Josefsson  <jas@extundo.com>
73705
73706         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73707         Bruno Haible <bruno@clisp.org>.
73708
73709         * m4/gc-des.m4: New file.
73710
73711 2005-10-21  Simon Josefsson  <jas@extundo.com>
73712
73713         * m4/arctwo.m4: New file.
73714
73715         * m4/gc-arctwo.m4: New file.
73716
73717 2005-10-21  Simon Josefsson  <jas@extundo.com>
73718
73719         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73720         block.
73721
73722 2005-10-21  Simon Josefsson  <jas@extundo.com>
73723
73724         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73725         <bruno@clisp.org>.
73726
73727         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73728
73729         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73730         Bruno Haible <bruno@clisp.org>.
73731
73732         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73733         <bruno@clisp.org>.
73734
73735 2005-10-21  Simon Josefsson  <jas@extundo.com>
73736
73737         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73738
73739 2005-10-21  Simon Josefsson  <jas@extundo.com>
73740
73741         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73742
73743 2005-10-21  Simon Josefsson  <jas@extundo.com>
73744
73745         * lib/des.h, lib/des.c: New files.
73746
73747         * lib/gc-gnulib.c: Support DES.c
73748
73749 2005-10-21  Simon Josefsson  <jas@extundo.com>
73750
73751         * lib/arctwo.h, lib/arctwo.c: New files.
73752
73753         * lib/gc-gnulib.c: Support ARCTWO.
73754
73755 2005-10-21  Simon Josefsson  <jas@extundo.com>
73756
73757         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73758         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73759
73760 2005-10-21  Simon Josefsson  <jas@extundo.com>
73761
73762         * gnulib-tool (func_import, func_create_testdir): Define automake
73763         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73764         Makefile.am snippet),
73765         suggested by Bruno Haible <bruno@clisp.org>.
73766
73767         * modules/gc (Makefile.am): Use it.
73768
73769 2005-10-21  Bruno Haible  <bruno@clisp.org>
73770
73771         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73772         patch.
73773
73774 2005-10-19  Simon Josefsson  <jas@extundo.com>
73775
73776         * tests/test-gc-rijndael.c: New file.
73777
73778         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73779
73780 2005-10-19  Simon Josefsson  <jas@extundo.com>
73781
73782         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73783         interface too.
73784
73785 2005-10-19  Simon Josefsson  <jas@extundo.com>
73786
73787         * tests/test-gc-arcfour.c: New file.
73788
73789         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73790
73791 2005-10-19  Simon Josefsson  <jas@extundo.com>
73792
73793         * modules/gc-md4, modules/gc-md4-tests: New file.
73794
73795         * tests/test-gc-md4.c: New file.
73796
73797 2005-10-19  Simon Josefsson  <jas@extundo.com>
73798
73799         * m4/gc-md4.m4: New file.
73800
73801 2005-10-19  Simon Josefsson  <jas@extundo.com>
73802
73803         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73804         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73805         <kasal@ucw.cz>.
73806
73807 2005-10-19  Simon Josefsson  <jas@extundo.com>
73808
73809         * m4/gc-arcfour.m4: New file.
73810
73811         * m4/gc-rijndael.m4: New file.
73812
73813 2005-10-19  Simon Josefsson  <jas@extundo.com>
73814
73815         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73816
73817 2005-10-19  Simon Josefsson  <jas@extundo.com>
73818
73819         * lib/gc-gnulib.c: Support ARCFOUR.
73820
73821 2005-10-19  Simon Josefsson  <jas@extundo.com>
73822
73823         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73824         support.
73825
73826         * lib/gc.h: Add ECB enum type.
73827
73828         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73829
73830 2005-10-18  Simon Josefsson  <jas@extundo.com>
73831
73832         * tests/test-md5.c: New file.
73833
73834         * modules/md5-tests: New file.
73835
73836 2005-10-18  Simon Josefsson  <jas@extundo.com>
73837
73838         * tests/test-md4.c: New file.
73839
73840         * modules/md4, modules/md4-tests: New files.
73841
73842 2005-10-18  Simon Josefsson  <jas@extundo.com>
73843
73844         * m4/md4.m4: New file.
73845
73846 2005-10-18  Simon Josefsson  <jas@extundo.com>
73847
73848         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73849
73850 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73851
73852         * gnulib-tool (func_create_testdir): Omit the second check whether
73853         BUILT_SOURCES in nonempty.
73854
73855 2005-10-17  Simon Josefsson  <jas@extundo.com>
73856
73857         * tests/test-rijndael.c: New file.
73858
73859 2005-10-17  Simon Josefsson  <jas@extundo.com>
73860
73861         * modules/sha1: Depend on stdint instead of md5.
73862
73863         * modules/md5: Depend on stdint, remove uint32_t.
73864
73865 2005-10-17  Simon Josefsson  <jas@extundo.com>
73866
73867         * modules/gc-sha1-tests: New file.
73868
73869         * tests/test-gc-sha1.c: New file.
73870
73871 2005-10-17  Simon Josefsson  <jas@extundo.com>
73872
73873         * m4/md5.m4: Remove call to uint32_t.m4.
73874
73875 2005-10-17  Simon Josefsson  <jas@extundo.com>
73876
73877         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73878
73879         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73880         md5.h.
73881
73882         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73883
73884         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73885
73886 2005-10-17  Simon Josefsson  <jas@extundo.com>
73887
73888         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73889
73890 2005-10-17  Simon Josefsson  <jas@extundo.com>
73891
73892         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73893
73894 2005-10-17  Simon Josefsson  <jas@extundo.com>
73895
73896         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73897
73898         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73899
73900 2005-10-17  Bruno Haible  <bruno@clisp.org>
73901
73902         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73903         that it can also be used in a test.
73904
73905 2005-10-16  Bruno Haible  <bruno@clisp.org>
73906
73907         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73908         TESTS_ENVIRONMENT, so that individual tests can augment it.
73909
73910         * gnulib-tool (func_create_testdir): Use an intermediate target for
73911         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73912         macros, like $(ALLOCA_H), which cannot be passed through the command
73913         line.
73914
73915 2005-10-15  Simon Josefsson  <jas@extundo.com>
73916
73917         * modules/rijndael-tests: New file.
73918
73919         * modules/rijndael: New file.
73920
73921 2005-10-15  Simon Josefsson  <jas@extundo.com>
73922
73923         * m4/rijndael.m4: New file.
73924
73925 2005-10-15  Simon Josefsson  <jas@extundo.com>
73926
73927         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73928
73929         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73930
73931 2005-10-14  Simon Josefsson  <jas@extundo.com>
73932
73933         * tests/test-arcfour.c: New file.
73934
73935         * modules/arcfour, modules/arcfour-tests: New files.
73936
73937 2005-10-14  Simon Josefsson  <jas@extundo.com>
73938
73939         * m4/arcfour.m4: New file.
73940
73941 2005-10-14  Simon Josefsson  <jas@extundo.com>
73942
73943         * lib/arcfour.h, lib/arcfour.c: New files.
73944
73945 2005-10-14  Roland McGrath  <roland@redhat.com>
73946
73947         Import from libc.  [BZ #1331]
73948         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73949         macro argument.
73950         Reported by Matej Vela <vela@debian.org>.
73951
73952 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73953
73954         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73955         include <wchar.h>; no longer needed.
73956
73957 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73960
73961 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73962         and  Ulrich Drepper  <drepper@redhat.com>
73963
73964         Import from libc.
73965         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73966         instead of inline stream orientation test and two separate
73967         function calls.  Pay no attention to USE_IN_LIBIO.
73968
73969 2005-10-13  Simon Josefsson  <jas@extundo.com>
73970
73971         * modules/gc-hmac-md5-tests: New file.
73972
73973         * tests/test-gc-hmac-sha1.c: New file.
73974
73975         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73976
73977         * modules/gc-hmac-md5-tests: New file.
73978
73979         * tests/test-gc-md5.c: New file.
73980
73981         * modules/gc-md5-tests: New file.
73982
73983 2005-10-13  Simon Josefsson  <jas@extundo.com>
73984
73985         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73986         Move memory allocation outside of loop.
73987
73988 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73991         intermediate directory is in a read-only file system.  Problem
73992         reported by Eric Blake.
73993
73994 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73995
73996         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73997
73998 2005-10-12  Simon Josefsson  <jas@extundo.com>
73999
74000         * tests/test-hmac-sha1.c: New file.
74001
74002         * modules/hmac-sha1-tests: New file.
74003
74004         * modules/hmac-sha1: New file.
74005
74006 2005-10-12  Simon Josefsson  <jas@extundo.com>
74007
74008         * modules/gc-sha1: New file.
74009
74010 2005-10-12  Simon Josefsson  <jas@extundo.com>
74011
74012         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74013
74014         * tests/test-gc-pbkdf2-sha1.c: New file.
74015
74016 2005-10-12  Simon Josefsson  <jas@extundo.com>
74017
74018         * modules/gc-md5, modules/gc-hmac-md5: New files.
74019
74020         * modules/gc (Files): Remove md5, memxor and hmac files.
74021
74022 2005-10-12  Simon Josefsson  <jas@extundo.com>
74023
74024         * m4/gc-pbkdf2-sha1.m4: New file.
74025
74026         * m4/gc-hmac-sha1.m4: New file.
74027
74028         * m4/gc-sha1: New file.
74029
74030         * m4/hmac-sha1.m4: New file.
74031
74032 2005-10-12  Simon Josefsson  <jas@extundo.com>
74033
74034         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74035
74036         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74037
74038 2005-10-12  Simon Josefsson  <jas@extundo.com>
74039
74040         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74041         suggested by Bruno Haible <bruno@clisp.org>.
74042
74043 2005-10-12  Simon Josefsson  <jas@extundo.com>
74044
74045         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74046
74047 2005-10-12  Simon Josefsson  <jas@extundo.com>
74048
74049         * lib/gc-pbkdf2-sha1.c: New file.
74050
74051         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74052
74053 2005-10-12  Simon Josefsson  <jas@extundo.com>
74054
74055         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74056
74057         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74058
74059 2005-10-12  Simon Josefsson  <jas@extundo.com>
74060
74061         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74062         GC_USE_HMAC_MD5, respectively.
74063
74064         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74065         (gc_md5): Fix typo.
74066
74067         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74068
74069         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74070
74071         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74072
74073 2005-10-12  Bruno Haible  <bruno@clisp.org>
74074
74075         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74076         Reported by Stepan Kasal <kasal@ucw.cz>.
74077
74078 2005-10-11  Simon Josefsson  <jas@extundo.com>
74079
74080         * tests/test-crc.c: New file.
74081
74082         * modules/crc, modules/crc-tests: New files.
74083
74084 2005-10-11  Simon Josefsson  <jas@extundo.com>
74085
74086         * m4/crc.m4: New file.
74087
74088 2005-10-11  Simon Josefsson  <jas@extundo.com>
74089
74090         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74091
74092         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74093
74094         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74095
74096 2005-10-11  Simon Josefsson  <jas@extundo.com>
74097
74098         * lib/crc.h, lib/crc.c: New files.
74099
74100         * lib/gc.h (gc_hash_buffer): Add doc.
74101
74102 2005-10-11  Bruno Haible  <bruno@clisp.org>
74103
74104         * modules/c-strcasestr: New file.
74105         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74106
74107 2005-10-11  Bruno Haible  <bruno@clisp.org>
74108
74109         * modules/c-strcase: New file.
74110         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74111
74112 2005-10-11  Bruno Haible  <bruno@clisp.org>
74113
74114         * lib/strcasecmp.c: Include limits.h.
74115         (strcasecmp): Avoid integer overflow on exotic platforms.
74116         * lib/strncasecmp.c: Include limits.h.
74117         (strncasecmp): Avoid integer overflow on exotic platforms.
74118         Reported by Paul Eggert.
74119
74120 2005-10-11  Bruno Haible  <bruno@clisp.org>
74121
74122         * lib/c-strcasestr.h: New file, from GNU gettext.
74123         * lib/c-strcasestr.c: New file, from GNU gettext.
74124
74125 2005-10-11  Bruno Haible  <bruno@clisp.org>
74126
74127         * lib/c-strcase.h: New file, from GNU gettext.
74128         * lib/c-strcasecmp.c: New file, from GNU gettext.
74129         * lib/c-strncasecmp.c: New file, from GNU gettext.
74130
74131 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * modules/mempcpy (License): GPL -> LGPL.
74134         * modules/strchrnul (License): Likewise.
74135         * modules/sysexits (License): Likewise.
74136
74137 2005-10-08  Simon Josefsson  <jas@extundo.com>
74138
74139         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74140
74141 2005-10-07  Simon Josefsson  <jas@extundo.com>
74142
74143         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74144
74145 2005-10-06  Simon Josefsson  <jas@extundo.com>
74146
74147         * tests/test-hmac-md5.c: New file.
74148
74149         * modules/hmac-md5-tests: New file.
74150
74151         * modules/hmac-md5: New file.
74152
74153 2005-10-06  Simon Josefsson  <jas@extundo.com>
74154
74155         * m4/hmac-md5.m4: New file.
74156
74157         * m4/memxor.m4: Require gl_C_RESTRICT.
74158
74159 2005-10-06  Simon Josefsson  <jas@extundo.com>
74160
74161         * lib/memxor.c (memxor): Avoid casts and warnings.
74162
74163 2005-10-06  Simon Josefsson  <jas@extundo.com>
74164
74165         * lib/hmac-md5.c: New file.
74166
74167         * lib/hmac.h: New file.
74168
74169 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74172         promotes to int, not unsigned int, to catch the AIX 5.3
74173         compiler bug.
74174
74175 2005-10-05  Simon Josefsson  <jas@extundo.com>
74176
74177         * modules/memxor: New file.
74178
74179         * modules/iconv (Files): Move config.rpath to havelib, it is used
74180         there.
74181
74182         * modules/havelib (Files): Add config.rpath.
74183
74184 2005-10-05  Simon Josefsson  <jas@extundo.com>
74185
74186         * m4/memxor.m4: New file.
74187
74188 2005-10-05  Simon Josefsson  <jas@extundo.com>
74189
74190         * lib/memxor.c (memxor): Fix compiler error.
74191
74192         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74193         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74194
74195         * lib/memxor.h, lib/memxor.c: New files.
74196
74197         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74198         we assume all systems have it, suggested by Jim Meyering
74199         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74200         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74201         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74202         same reasons.
74203
74204 2005-10-05  Simon Josefsson  <jas@extundo.com>
74205
74206         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74207
74208 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74209
74210         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74211         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74212         needed, since the source code now assumes these .h files.
74213
74214 2005-10-05  Derek Price  <derek@ximbiot.com>
74215
74216         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74217
74218 2005-10-05  Bruno Haible  <bruno@clisp.org>
74219
74220         * modules/stdint (License): Change to LGPL.
74221
74222 2005-10-04  Simon Josefsson  <jas@extundo.com>
74223
74224         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74225         D. Baushke" <mdb@gnu.org>.
74226
74227 2005-10-04  Bruno Haible  <bruno@clisp.org>
74228
74229         * lib/verify.h (verify_true): Provide alternative definition for C++.
74230
74231 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74232
74233         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74234         (SSIZE_MAX): New macro, if not already defined.
74235         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74236         than 2 GiB.
74237
74238 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74239
74240         Sync from coreutils.
74241         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74242         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74243         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74244         ULLONG_MAX doesn't work with 2.7.2.1.
74245
74246 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74247
74248         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74249         From Ben Pfaff.
74250
74251         * modules/exclude (Depends-on): Depend on verify.
74252         * modules/strtoimax (Depends-on): Likewise.
74253         * modules/utimecmp (Depends-on): Likewise.
74254
74255 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74256
74257         * lib/exclude.c: Include verify.h.
74258         (verify): Remove.  All callers changed to use verify.h's version.
74259         * lib/strtoimax.c: Likewise.
74260         * lib/utimecmp.c: Likewis.e
74261
74262         Sync from coreutils.
74263         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74264         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74265         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74266         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74267         bother returning ENOSYS if settimeofday or stime fails; just let
74268         them return whatever errno they want to return.
74269         * lib/utimens.c: Include unistd.h, for dup2.
74270         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74271         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74272
74273 2005-10-02  Jim Meyering  <jim@meyering.net>
74274
74275         Sync from coreutils.
74276         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74277         from glibc-2.2.5 that fails for read-only files.
74278
74279 2005-10-02  Jim Meyering  <jim@meyering.net>
74280
74281         Sync from coreutils.
74282         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74283         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74284         `#if HAVE_CONFIG_H'.
74285         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74286         Remove AT_FDCWD test.
74287         Do not consume the fd unless successful.
74288         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74289         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74290         block, so that we don't even try to compile it if settimeofday is
74291         available.  This works around a compilation failure on OSF1 V5.1,
74292         due to stime requiring a `long int*' while tv_sec is `int'.
74293
74294 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74295
74296         Sync from coreutils.
74297         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74298         against `yes', rather than just testing for nonempty.
74299
74300 2005-10-01  Simon Josefsson  <jas@extundo.com>
74301
74302         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74303         and Darwin.
74304
74305         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74306         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74307         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74308         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74309         Check if struct addrinfo is declared.
74310
74311 2005-10-01  Simon Josefsson  <jas@extundo.com>
74312
74313         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74314         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74315         AI_* and EAI_* definitions.  Protect function declarations.
74316
74317 2005-10-01  Jim Meyering  <jim@meyering.net>
74318
74319         Sync from coreutils.
74320
74321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74322         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74323         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74324         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74325         in the inet and nsl libraries.  Required on Solaris 5.7.
74326
74327 2005-10-01  Jim Meyering  <jim@meyering.net>
74328
74329         Sync from coreutils.
74330         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74331         in the inet and nsl libraries.  Required on Solaris 5.7.
74332
74333 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74334
74335         * lib/getdelim.c (getdelim): Remove unused variables.
74336
74337 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74340         so that the code works even with ancient cpp.  Portability problem
74341         with GCC 2.7.2.1 reported by Thomas M.Ott.
74342
74343 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * modules/regex (Depends-on): Add strcase.
74346
74347         * modules/gethostname (Licence): Change from GPL to LGPL, since
74348         gethostname.c is a trivial implementation of a standard library
74349         function.
74350         * modules/poll (License): Change from GPL to LGPL, since it's
74351         derived from LGPL code.
74352
74353 2005-09-27  Jim Meyering  <jim@meyering.net>
74354
74355         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74356         HAVE_CONFIG_H.
74357
74358         * lib/intprops.h (signed_type_or_expr__): Define.
74359         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74360         for unsigned types.
74361
74362 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * lib/verify.h (verify_expr): Remove, replacing with:
74365         (verify_true): New macro that returns true instead of void.
74366         (verify_type__): Remove.
74367         (verify): Use verify_true rather than verify_type__.
74368
74369 2005-09-26  Bruno Haible  <bruno@clisp.org>
74370
74371         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74372         is necessary.
74373         (lib_SOURCES): Remove mbchar.c.
74374         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74375         (Files): Add m4/mbrtowc.m4.
74376         * modules/mbiter: Likewise.
74377         * modules/mbuiter: Likewise.
74378
74379 2005-09-26  Bruno Haible  <bruno@clisp.org>
74380
74381         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74382         compile mbchar.c if they are not both present.
74383         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74384         * m4/mbiter.m4 (gl_MBITER): Likewise.
74385         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74386         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74387         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74388
74389 2005-09-25  Jim Meyering  <jim@meyering.net>
74390
74391         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74392         also uses socklen_t.
74393
74394 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * lib/utimens.c (ENOSYS): Define if not already defined.
74397         (futimens): Support having a null PATH if the file descriptor
74398         is nonnegative.
74399
74400         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74401         Remove.
74402         (__attribute): Define to empty unless GCC 3.1 or later.
74403         This works around a core dump on OpenBSD 3.4, which has GCC
74404         2.95.3, which dumps core when given __attribute__(()).  It also
74405         simplifies other tests, since we really don't want to bother with
74406         worrying about which ancient version of GCC supported what.
74407         Original problem reported by Yoann Vandoorselaere, with part of
74408         the fix suggested by Derek Price.
74409
74410 2005-09-24  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74413         so we can once again use a positive bitfield width of 1 -- now we
74414         don't have to explain why we were using a bitfield width of 2.
74415
74416 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74417
74418         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74419         and similarly for the other external symbols.  Problem reported
74420         by James Gallager.
74421
74422         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74423         bug reported by Jim Meyering.
74424
74425         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74426         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74427         not needed, since socklen is a prerequisite module.
74428
74429 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74432         Problem reported by Eric Blake.
74433         (getaddrinfo): Initialize se so that it's not garbage.
74434         Redo internal storage allocation so that it doesn't make unportable
74435         assumptions about alignment.
74436         Fix a memory leak.
74437
74438         * lib/utimens.c (futimens): Use futimesat if available.
74439         Prefer it to futimes since it doesn't have the futimes bug.
74440
74441         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74442         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74443         Instead, declare a function that returns a pointer to an array,
74444         and use verify_type__ to declare the size of the array.
74445         Problem and germ of a solution reported by Bruno Haible.
74446         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74447         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74448
74449 2005-09-23  Jim Meyering  <jim@meyering.net>
74450
74451         Sync from coreutils.
74452         Correct build failure (socklen_t not defined) on at least
74453         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74454         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74455
74456 2005-09-23  Jim Meyering  <jim@meyering.net>
74457
74458         * modules/getaddrinfo (Depends-on): Add socklen.
74459
74460 2005-09-23  Bruno Haible  <bruno@clisp.org>
74461
74462         * tests/test-verify.c: New file.
74463
74464 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74465
74466         Sync from coreutils.
74467
74468         * modules/argmatch (Depends-on): Add verify.
74469         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74470         unistd-safer.
74471         * modules/save-cwd (Depends-on): Likewise.
74472
74473         * modules/openat (Files): Add lib/openat-die.c.
74474         (Depends-on): Remove error, exitfail.
74475         Add dirname.
74476
74477         * modules/verify: New file.
74478         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74479         with "verify" module.
74480
74481 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         Sync from coreutils.
74484
74485         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74486         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74487         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74488         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74489         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74490         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74491         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74492         Don't bother checking for string.h, stdlib.h, unistd.h.
74493         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74494         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74495         module's job.
74496         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74497         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74498
74499         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74500         (gl_GETDATE): Use it.
74501
74502         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74503
74504 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         Sync from coreutils.
74507
74508         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74509         stat-time.h.
74510         * lib/argmatch.h: Include verify.h
74511         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74512         (ARGMATCH_ASSERT): Remove; unused.
74513         * lib/canonicalize.c: Assume STDC_HEADERS.
74514         * lib/exclude.c: Include "strcase.h".
74515         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74516         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74517         and stdio-safer.h.
74518         (getusershell): Call fopen, not fopen_safer.
74519         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74520         Do not include unistd-safer.h.
74521         (save_cwd): Don't call fd_safer; no longer needed
74522         now that we include fcntl--.h.
74523
74524         * lib/getdate.y (relative_time): New type.
74525         (RELATIVE_TIME_0): New constant.
74526         (parser_control): Use relative_time instead of doing it ourselves.
74527         (%union): Add new relative_time rel member.
74528         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74529         Now typeless.
74530         (relunit, relunit_snumber): Now of type rel.
74531         (zone, rel, relunit, get_date): Adjust to above changes.
74532
74533         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74534         Do not include unistd-safer.h.
74535         (getloadavg): Don't call fd_safer; no longer needed
74536         now that we include fcntl--.h.
74537
74538         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74539         (make_dir_parents): Treat ENOSYS like EEXIST.
74540
74541         Improve quality of diagnostics on restore_cwd failure.
74542         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74543         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74544         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74545         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74546         each time through the loop.  Do not diagnose restore_cwd failure;
74547         that is the caller's job (and perhaps the caller does not care).
74548
74549         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74550         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74551         If the file already exists but is not a directory, don't bother
74552         to try to make its parents.
74553         Close potential file descriptor leak if we can't chdir("/") (!).
74554         Don't always return true if chdir($PWD) fails; return true only
74555         if the requested action was done successfully (except for the
74556         chdir($PWD)).
74557         Don't log final directory unless we actually made it.
74558         Refactor to avoid duplicate code to fix up permissions.
74559         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74560
74561         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74562         to make it a bit faster and (I hope) clearer.
74563         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74564         Fix bug in formats like %2N.
74565
74566         * lib/verify.h: New file.
74567
74568 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74569
74570         Sync from coreutils.
74571         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74572
74573 2005-09-22  Jim Meyering  <jim@meyering.net>
74574
74575         Sync from coreutils.
74576
74577         * m4/lstat.m4 (gl_FUNC_LSTAT):
74578         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74579         Remove obsolete comment.
74580         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74581         * m4/xstrtod.m4: Likewise.
74582
74583         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74584
74585 2005-09-22  Jim Meyering  <jim@meyering.net>
74586
74587         Sync from coreutils.
74588
74589         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74590
74591         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74592         the .tm_year member, since otherwise gcc-4.0 would now warn about
74593         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74594
74595         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74596         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74597
74598         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74599         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74600         when run in a time zone for which daylight savings time is in effect
74601         for the starting date.
74602
74603         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74604         stop us from restricting permissions of just-created absolute-named
74605         directories.
74606         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74607         to restore initial working directory.
74608         * lib/mkdir-p.c (make_dir_parents): New parameter:
74609         different_working_dir, to tell caller if/when we change the working
74610         directory and are unable to return to the initial one.
74611         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74612         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74613         `return false'.  This fixes a bug introduced on 2004-07-30.
74614
74615         * lib/openat.c (fdopendir): Be sure to close the supplied
74616         file descriptor before returning.  This makes our replacement
74617         implementation a little closer to Solaris's, where fdopendir
74618         ties the file descriptor to the returned DIR* pointer.
74619         * lib/openat.c (unlinkat): New function.
74620         * lib/openat.h (unlinkat): Add prototype.
74621         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74622         (openat_restore_fail): Rename from openat_restore_die.
74623         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74624
74625         Provide an alternative to exiting immediately upon save_cwd or
74626         restore_cwd failure.  Now, an application can arrange e.g.,
74627         to perform a longjump in that case.
74628         * lib/openat.c: Include dirname.h.
74629         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74630         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74631         and openat_restore_die rather than calling error directly.
74632         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74633
74634         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74635         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74636         define.
74637
74638         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74639         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74640                             int utc, int nanoseconds);
74641         Background:
74642         date should not have to allocate a megabyte of virtual memory to
74643         handle a format argument like +%1048575T.  When implemented with
74644         strftime, it must allocate such a buffer, use strftime to fill it
74645         in, print it, then free it.
74646         With fprintftime, it simply prints everything and exits.
74647         With no need for memory allocation, that's one fewer way to fail.
74648         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74649         optional field width, not before, so we accept %9:z, not %:9z.
74650         (my_strftime): Be sure to use L_('x') for literals.
74651
74652         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74653         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74654         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74655         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74656         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74657         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74658         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74659         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74660         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74661         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74662         * lib/xgethostname.c, lib/xreadlink.c:
74663         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74664
74665         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74666         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74667         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74668         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74669         and don't include <sys/file.h>).
74670
74671 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74672
74673         Sync from coreutils.
74674
74675         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74676         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74677         [!LDAV_DONE]: Avoid unused variable warning.
74678
74679 2005-09-21  Bruno Haible  <bruno@clisp.org>
74680
74681         * lib/unicodeio.h (unicode_to_mb): New declaration.
74682
74683 2005-09-20  Derek Price  <derek@ximbiot.com>
74684
74685         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74686         getaddrinfo.h.
74687
74688 2005-09-20  Bruno Haible  <bruno@clisp.org>
74689
74690         * gnulib-tool: Remove trailing slashes from the values specified for
74691         --source-base, --m4-base, --tests-base, --aux-dir.
74692         Suggested by Simon Josefsson <jas@extundo.com>.
74693
74694 2005-09-20  Bruno Haible  <bruno@clisp.org>
74695
74696         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74697         func_modules_to_filelist, func_import, func_create_testdir): Make all
74698         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74699         change when gnulib-tool is invoked in a different locale.
74700
74701 2005-09-19  Simon Josefsson  <jas@extundo.com>
74702
74703         * m4/socklen.m4: Fix typo.
74704
74705 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74706
74707         Use a consistent style for including <config.h>.
74708         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74709         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74710         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74711         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74712         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74713         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74714         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74715         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74716         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74717         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74718         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74719         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74720         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74721         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74722         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74723         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74724         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74725         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74726         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74727         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74728         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74729         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74730         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74731         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74732         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74733         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74734         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74735         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74736         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74737         lib/xstrtoumax.c, lib/yesno.c:
74738         Standardize inclusion of config.h.
74739         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74740         lib/inttostr.h:  Removed inclusion of config.h from header files.
74741         * lib/inttostr.c:  Adjusted in-tree users.
74742         * lib/timespec.h: Remove superfluous warning to include config.h.
74743         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74744         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74745         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74746         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74747         config.h with HAVE_CONFIG_H.
74748
74749 2005-09-19  Jim Meyering  <jim@meyering.net>
74750
74751         * modules/pathmax (License): Change to LGPL.
74752
74753 2005-09-19  Derek Price  <derek@ximbiot.com>
74754
74755         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74756
74757 2005-09-19  Bruno Haible  <bruno@clisp.org>
74758
74759         * gnulib-tool (import): Provide default for --tests-base.
74760
74761 2005-09-19  Bruno Haible  <bruno@clisp.org>
74762
74763         * doc/quote.texi: New file, extracted from gnulib.texi.
74764         * doc/ctime.texi: New file, extracted from gnulib.texi.
74765         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74766         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74767         * doc/gnulib.texi: Include them.
74768
74769 2005-09-18  Bruno Haible  <bruno@clisp.org>
74770
74771         Portability fix.
74772         * gnulib-tool (func_readlink): New function.
74773         (func_ln_if_changed): Use it.
74774
74775 2005-09-18  Bruno Haible  <bruno@clisp.org>
74776
74777         * gnulib-tool: Support --with-tests also with --import.
74778         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74779         (func_import): Use variables $testsbase and $inctests. Emit a
74780         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74781         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74782         SUBDIRS += $testsdir.
74783         (func_create_testdir): Update.
74784
74785 2005-09-18  Bruno Haible  <bruno@clisp.org>
74786
74787         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74788         instead of $dry_run.
74789         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74790         (func_ln_if_changed): Don't handle dry-run here.
74791         (func_import): In dry-run mode, detect more precisely which actions
74792         would be performed, and don't use "...ing" verbs.
74793
74794 2005-09-18  Bruno Haible  <bruno@clisp.org>
74795
74796         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74797         (func_import): Use join on two temporary files instead of three nested
74798         loops, in order to determine which files are new or old.
74799
74800 2005-09-18  Bruno Haible  <bruno@clisp.org>
74801
74802         * gnulib-tool (func_import): Comment out code that spits out the
74803         new files with --dry-run.
74804
74805 2005-09-18  Bruno Haible  <bruno@clisp.org>
74806
74807         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74808
74809 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         * lib/stat-time.h: New file.
74812         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74813         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74814         in a different way.
74815         (timespec_cmp): New function.
74816         * lib/utimecmp.c: Include stat-time.h.
74817         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74818         members exist, not on the obsolescent ST_MTIM_NSEC.
74819         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74820
74821 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74824
74825 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * MODULES.html.sh (File system functions): Add stat-time.
74828         * modules/stat-time: New file.
74829         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74830         is now done in a different way, by the stat-time module.
74831         * modules/utimecmp (Depends-on): Add stat-time.
74832
74833 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * m4/st_mtim.m4: Remove.  Superseded by...
74836         * m4/stat-time.m4: New file.
74837         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74838         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74839
74840 2005-09-15  Derek Price  <derek@ximbiot.com>
74841
74842         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74843
74844 2005-09-15  Derek Price  <derek@ximbiot.com>
74845
74846         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74847         * lib/regex_internal.c: Ditto, using this...
74848         (__GNUC_PREREQ): ...new macro.
74849         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74850         using...
74851         (__GNUC_PREREQ): ...this new macro.
74852
74853         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74854
74855 2005-09-15  Derek Price  <derek@ximbiot.com>
74856             Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74859         changes, consolidating in...
74860         * lib/regex_internal.h: ...this file.
74861
74862 2005-09-13  Jim Meyering  <jim@meyering.net>
74863
74864         * lib/canon-host.c: Filter through gnu indent and reword comments
74865         slightly.
74866         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74867
74868 2005-09-13  Derek Price  <derek@ximbiot.com>
74869
74870         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74871         failure.
74872         Reported by Jim Meyering  <jim@meyering.net>.
74873
74874 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74875
74876         * lib/base64.c: Typo.
74877         (base64_encode): Put b64str in initialized data section.
74878
74879 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74880
74881         Merge glibc and coreutils changes into gnulib, plus a few
74882         extra fixes.
74883         * lib/md5.c: Use #error rather than a string.
74884         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74885         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74886         (__attribute__): Define to empty for non recent-GCC.
74887         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74888         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74889         Renamed from their non-__ counterparts, with new macros replacing
74890         them if not _LIBC.  Add __THROW attribute.
74891         (rol): Remove.
74892         (struct md5_ctx): Align buffer if using GCC.
74893         * lib/sha1.h (struct sha1_ctx): Likewise.
74894         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74895         The old name was backwards.
74896         (NOTSWAP): Remove; not used.
74897         (rol): New macro, moved here from md5.h.
74898         (sha1_process_block): Remove a FIXME that doesn't make sense.
74899
74900 2005-09-12  Derek Price  <derek@ximbiot.com>
74901
74902         Return usable errors from canon-host.
74903         * lib/canon-host.h: New file.
74904         * lib/canon-host.c (canon_host): Wrap...
74905         (canon_host_r): ...this new function, which now relies exclusively on
74906         getaddrinfo.
74907         (ch_strerror): New function.
74908         (last_cherror): New global.
74909         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74910         interface.
74911         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74912         void *.
74913         (freeaddrinfo): Free ai->ai_canonname when set.
74914
74915 2005-09-12  Derek Price  <derek@ximbiot.com>
74916
74917         Make canon-host require getaddrinfo.
74918         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74919         AC_LIBSOURCE canon-host.h.  Call...
74920         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74921         gl_GETADDRINFO.
74922         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74923
74924 2005-09-12  Derek Price  <derek@ximbiot.com>
74925
74926         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74927         LGPL.
74928         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74929
74930 2005-09-12  Derek Price  <derek@ximbiot.com>
74931
74932         * lib/gai_strerror.c: Include config.h when available.  Include
74933         getaddrinfo.h before other headers to test interface.
74934         Reported by Larry Jones <lawrence.jones@ugs.com>.
74935
74936 2005-09-12  Derek Price  <derek@ximbiot.com>
74937             Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * modules/glob (Files): Add glob-libc.h.
74940
74941 2005-09-12  Derek Price  <derek@ximbiot.com>
74942             Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74945         glob_.h, glob-libc.h.
74946         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74947
74948 2005-09-12  Derek Price  <derek@ximbiot.com>
74949             Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74952         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74953         protecting things that should be done only in gnulib contexts.
74954         * lib/glob_.h: New file, containing only the glob things needed for
74955         gnulib.
74956         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74957         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74958         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74959         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74960         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74961         and to respect the namespace rules better.
74962
74963 2005-09-08  Simon Josefsson  <jas@extundo.com>
74964
74965         * modules/socklen: New file.
74966
74967 2005-09-08  Simon Josefsson  <jas@extundo.com>
74968
74969         * m4/socklen.m4: New file.
74970
74971 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         * modules/utimens (Files): Add m4/utimbuf.m4, since
74974         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74975         Reported by Sergey Poznyakoff.
74976
74977 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74980         definitions, since that's the preferred style in glibc.
74981         Fix a minor spacing issue, and update copyright notice to match
74982         glibc's.
74983
74984 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74987
74988 2005-09-06  Simon Josefsson  <jas@extundo.com>
74989
74990         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74991         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74992
74993 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74994
74995         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74996         warning.
74997
74998 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         * config/srclist.txt: Add glibc bug 1302.
75001
75002 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75003
75004         Change bitset word type from unsigned int to unsigned long int,
75005         as this has better performance on typical 64-bit hosts.
75006         Port bitset code to hosts with unusual word sizes.
75007         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75008         (build_collating_symbol):
75009         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75010         argument is a bitset.  This is merely a style issue, but it makes
75011         it clearer that an entire array is expected.
75012         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75013         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75014         Port to the case where bitset_word is not the same as unsigned int.
75015         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75016         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75017         Likewise.
75018         * lib/regexec.c (check_dst_limits_calc_pos_1,
75019         check_subexp_matching_top):
75020         (build_trtable, group_nodes_into_DFAstates):
75021         Likewise.
75022         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75023         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75024         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75025         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75026         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75027         * lib/regcomp.c (optimize_subexps, lower_subexp):
75028         Work even if bitset_word has holes in its bitwise representation.
75029         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75030         * lib/regexec.c (check_dst_limits_calc_pos_1,
75031         check_subexp_matching_top):
75032         Likewise.
75033         * lib/regex_internal.c (re_string_reconstruct):
75034         Don't assume UCHAR_MAX == 255.
75035         * lib/regex_internal.h (bitset_set_all): Likewise.
75036         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75037         All uses changed.
75038         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75039         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75040         All uses changed.
75041         (BITSET_WORD_MAX): New macro.
75042         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75043         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75044         (bitset_empty, bitset_copy):
75045         Prefer sizeof (bitset) to multiplying it out ourselves.
75046         (bitset_not_merge): Remove; unused.
75047         (bitset_contain): Return bool, not unsigned int with one bit on.
75048         All callers changed.
75049         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75050         alignment than re_node_set; do this by defining a new internal
75051         type struct dests_alloc and using it to allocate memory.
75052
75053 2005-09-05  Bruno Haible  <bruno@clisp.org>
75054
75055         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75056         links.
75057
75058 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75059
75060         * modules/size_max (Makefile.am): Add size_max.h
75061
75062 2005-09-04  Derek Price  <derek@ximbiot.com>
75063
75064         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75065
75066 2005-09-03  Simon Josefsson  <jas@extundo.com>
75067
75068         * gnulib-tool: Fix typo.
75069
75070 2005-09-03  Simon Josefsson  <jas@extundo.com>
75071
75072         * config/srclist.txt: Add glibc bug 1293.
75073
75074 2005-09-03  Derek Price  <derek@ximbiot.com>
75075
75076         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75077         From Larry Jones <lawrence.jones@ugs.com>.
75078
75079 2005-09-02  Simon Josefsson  <jas@extundo.com>
75080
75081         * modules/socklen: New file.
75082
75083 2005-09-02  Simon Josefsson  <jas@extundo.com>
75084
75085         * modules/havelib: New module.
75086
75087         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75088         Use havelib.
75089
75090 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         Check for arithmetic overflow when calculating sizes, to prevent
75093         some buffer-overflow issues.  These patches are conservative, in the
75094         sense that when I couldn't determine whether an overflow was possible,
75095         I inserted a run-time check.
75096         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75097         macros.
75098         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75099         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75100         (re_xnrealloc, re_x2nrealloc): New inline functions.
75101         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75102         parse_bracket_exp):
75103         (build_equiv_class, build_charclass): Check for arithmetic overflow
75104         in size expression calculations.
75105         * lib/regex_internal.c (re_string_realloc_buffers):
75106         (build_wcs_upper_buffer, re_node_set_add_intersect):
75107         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75108         (re_dfa_add_node, register_state): Likewise.
75109         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75110         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75111         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75112         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75113
75114 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75117         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75118
75119 2005-09-02  Bruno Haible  <bruno@clisp.org>
75120
75121         Support for lib vs. lib64 distinction on biarch platforms.
75122         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75123         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75125
75126 2005-09-02  Bruno Haible  <bruno@clisp.org>
75127
75128         * gnulib-tool (import): In the other first-use case, provide defaults
75129         as well.
75130
75131 2005-09-02  Bruno Haible  <bruno@clisp.org>
75132
75133         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75134         patches not yet found in the latest gettext release.
75135
75136 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75137
75138         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75139         to avoid a collision with bits/local_lim.h in glibc.
75140         All uses changed.  Problem reported by Dmitry V. Levin in
75141         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75142
75143         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75144         bugs in int versus size_t comparisons.
75145         (re_string_context_at): Fix bug where the code assumed that
75146         Idx is signed.
75147
75148         Use bool where appropriate.
75149         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75150         All callers changed.
75151         (calc_eclosure_iter): Likewise, for ROOT arg.
75152         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75153         (build_charclass_op): Likewise, for NON_MATCH arg.
75154         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75155         (re_string_construct_common): Likewise, for ICASE arg.
75156         * lib/regexec.c (re_search_2_stub, re_search_stub):
75157         Likewise, for RET_LEN arg.
75158         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75159         (set_regs): Likewise, for FL_BACKTRACK arg.
75160         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75161         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75162         (calc_eclosure_iter, parse_bracket_exp):
75163         Use bool for internal variables that are booleans.
75164         * lib/regexec.c (re_search_internal, check_matching,
75165         proceed_next_node):
75166         (set_regs, build_sifted_states, sift_states_bkref):
75167         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75168         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75169         (find_collation_sequence_value):
75170         Likewise.
75171         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75172         (re_node_set_compare):
75173         Return bool, not int. All callers changed.
75174         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75175         (build_trtable, check_node_accept): Likewise.
75176         * lib/regex_internal.h: Include stdbool.h.
75177
75178         Fix bugs uncovered when converting to bool.
75179         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75180         failure instead of charging ahead blindly.
75181         * lib/regex_internal.c (register_state): Likewise.
75182         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75183         for freeing internal storage.
75184         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75185         bitset pieces used as boolean, to avoid undefined behavior
75186         on hosts that do int overflow checking.
75187
75188 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         * config/srclist.txt: Add glibc bugs 1285-1287.
75191
75192 2005-09-01  Jim Meyering  <jim@meyering.net>
75193
75194         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75195         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75196         Require gl_STAT_MACROS, too.
75197
75198 2005-09-01  Bruno Haible  <bruno@clisp.org>
75199
75200         * gnulib-tool (import): In the first-use case, provide defaults.
75201
75202 2005-09-01  Bruno Haible  <bruno@clisp.org>
75203
75204         * gnulib-tool (func_import): Remove the .tmp files.
75205
75206 2005-09-01  Bruno Haible  <bruno@clisp.org>
75207
75208         * gnulib-tool (func_import): Fix handling of symbolic links.
75209
75210 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75213         old glibc regex code mishandles strings longer than 2**31 bytes.
75214         This patch fixes this when the regex code is used in gnulib
75215         (i.e., outside glibc).
75216
75217         This patch should not affect the use of the regex code inside
75218         glibc.  No doubt this problem also needs to be handled for glibc
75219         as well, but the result will be an incompatible change to the
75220         glibc ABI, and the old ABI will have to be supported too.  That
75221         can be the the subject for another patch.
75222
75223         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75224         governing whether the rest of this patch is active.  By default,
75225         the macro is disabled and the patch has no effect.
75226         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75227         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75228         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75229         (re_match_2, re_set_registers): Use the new types.
75230         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75231         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75232         New macros.
75233         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75234         (re_string_context_at, bin_tree_t, re_dfastate_t):
75235         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75236         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75237         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75238         (re_string_char_size_at, re_string_wchar_at):
75239         (re_string_elem_size_at):
75240         Use the new types and macros to port to 64-bit hosts.
75241         Use unsigned types for internal values, so that the code
75242         mostly works even for arrays larger than SSIZE_MAX.
75243         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75244         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75245         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75246         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75247         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75248         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75249         (calc_inveclosure, parse_dup_op, build_range_exp):
75250         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75251         (fetch_number, create_token_tree, mark_opt_subexp):
75252         Likewise.
75253         * lib/regex_internal.c (re_string_construct_common,
75254         create_ci_newstate):
75255         (create_cd_newstate, re_string_allocate, re_string_construct):
75256         (re_string_realloc_buffers, build_wcs_upper_buffer):
75257         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75258         (re_string_reconstruct, re_string_peek_byte_case):
75259         (re_string_fetch_byte_case, re_string_context_at):
75260         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75261         (re_node_set_init_copy, re_node_set_add_intersect):
75262         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75263         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75264         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75265         (re_acquire_state, re_acquire_state_context, register_state):
75266         Likewise.
75267         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75268         search_cur_bkref_entry):
75269         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75270         (re_search_internal, re_search_2_stub, re_search_stub)
75271         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75272         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75273         (update_cur_sifted_state, check_dst_limits):
75274         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75275         (check_subexp_limits, sift_states_bkref, merge_state_array):
75276         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75277         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75278         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75279         (expand_bkref_cache, check_node_accept_bytes):
75280         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75281         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75282         (acquire_init_state_context, check_halt_node_context):
75283         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75284         (sift_states_backward, clean_state_log_if_needed):
75285         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75286         (find_recover_state, transit_state_sb, transit_state_mb):
75287         (transit_state_bkref, build_trtable, match_ctx_clean):
75288         Likewise.
75289         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75290         to work around an assumption that REG_MISSING is negative.
75291
75292         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75293         (seek_collating_symbol_entry) [defined _LIBC]:
75294         (lookup_collation_sequence_value) [defined _LIBC]:
75295         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75296         Use prototypes rather than old-style function definitions.
75297         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75298         (transit_state_sb) [0]:
75299         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75300
75301         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75302         rm_eo.
75303
75304         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75305         (optimize_subexps, lower_subexp):
75306         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75307         since the signed shift might overflow.  Use 1u<<31 instead.
75308         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75309         Likewise.
75310         * lib/regexec.c (check_dst_limits_calc_pos_1,
75311         check_subexp_matching_top): Likewise.
75312
75313         * lib/regcomp.c (optimize_subexps, lower_subexp):
75314         Use CHAR_BIT rather than 8, for clarity.
75315         * lib/regexec.c (check_dst_limits_calc_pos_1):
75316         (check_subexp_matching_top): Likewise.
75317         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75318         have to worry about portability issues when shifting it left.
75319         Remove no-longer-needed test for table_size > 0.
75320         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75321         in a word, as the resulting behavior is undefined.
75322         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75323         in one case, a <= should have been an <, and in another case the
75324         whole test was missing.
75325         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75326         the standard name CHAR_BIT.
75327         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75328         this is not true on one's complement and signed-magnitude hosts.
75329
75330         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75331         next_last_offset.
75332         (struct re_dfa_t): Remove unused member states_alloc.
75333         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75334
75335 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75336
75337         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75338         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75339         and large-file glibc and in 32-bit large-file Solaris.
75340
75341 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75344         lengths fit in regoff_t; this isn't true if regoff_t is the same
75345         width as size_t.
75346         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75347         (= START + RANGE) instead of RANGE.  This avoids overflow
75348         problems when regoff_t is the same width as size_t.
75349         All callers changed.
75350         (re_search_2_stub): Check for overflow when adding the
75351         sizes of the two strings.
75352         (re_search_stub): Check for overflow when adding START
75353         to RANGE; if it occurs, substitute the extreme value.
75354
75355 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75356
75357         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75358
75359 2005-08-31  Jim Meyering  <jim@meyering.net>
75360
75361         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75362         a pointer-to-const.
75363         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75364         (register_state): Likewise.
75365         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75366         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75367         (group_nodes_into_DFAstates): Likewise.
75368
75369 2005-08-31  Jim Meyering  <jim@meyering.net>
75370
75371         * check-module: Add a FIXME comment.
75372
75373 2005-08-31  Eric Blake  <ebb9@byu.net>
75374
75375         * modules/unistd-safer (Files): Add unistd--.h.
75376         * modules/stdio-safer (Files): Add stdio--.h.
75377
75378 2005-08-31  Derek Price  <derek@ximbiot.com>
75379
75380         * lib/getdelim.c (getdelim): Return EOF on EOF.
75381         Reported by Larry Jones <lawrence.jones@ugs.com>.
75382
75383 2005-08-31  Bruno Haible  <bruno@clisp.org>
75384
75385         Avoid unnecessary diffs in the generated lib/Makefile.am.
75386         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75387         the generated files.
75388         (func_import): Don't set cmd.
75389
75390 2005-08-31  Bruno Haible  <bruno@clisp.org>
75391
75392         * lib/strstr.c: Include <stddef.h>, for NULL.
75393         * lib/strcasestr.c: Likewise.
75394         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75395
75396 2005-08-31  Bruno Haible  <bruno@clisp.org>
75397
75398         * gnulib-tool: New option --macro-prefix.
75399         (func_import): Use macro_prefix.
75400         (import): Handle option --macro-prefix.
75401
75402 2005-08-31  Bruno Haible  <bruno@clisp.org>
75403
75404         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75405         Also use new variables cached_lgpl, cached_libtool.
75406
75407 2005-08-31  Bruno Haible  <bruno@clisp.org>
75408
75409         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75410         always instantiating them.
75411
75412 2005-08-31  Bruno Haible  <bruno@clisp.org>
75413
75414         * gnulib-tool (func_import): Read the previous cached settings
75415         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75416         earlier added by gnulib but are now dropped. Warn when a gnulib file
75417         overwrites a non-gnulib file.
75418
75419 2005-08-31  Bruno Haible  <bruno@clisp.org>
75420
75421         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75422         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75423         projects that don't keep autogenerated files in CVS. Put into
75424         actioncmd only the specified modules, not the transitive closure.
75425
75426 2005-08-31  Bruno Haible  <bruno@clisp.org>
75427
75428         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75429         Create directories that shall be filled.
75430         (import): Don't look for gl_* macros in configure.ac. Recurse across
75431         all directories containing a gnulib-cache.m4 files, if meaningful.
75432
75433 2005-08-31  Bruno Haible  <bruno@clisp.org>
75434
75435         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75436         (import): Set seen_libtool when we see gl_LIBTOOL.
75437
75438 2005-08-31  Bruno Haible  <bruno@clisp.org>
75439
75440         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75441         declaration macro definitions from generated gnulib.m4.
75442
75443 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75444
75445         * lib/iconvme.h: Add prototype for iconv_alloc.
75446
75447 2005-08-29  Simon Josefsson  <jas@extundo.com>
75448
75449         * lib/iconvme.c: Fix errno.
75450
75451 2005-08-29  Bruno Haible  <bruno@clisp.org>
75452
75453         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75454         that it works when the directory contains spaces.
75455
75456 2005-08-29  Bruno Haible  <bruno@clisp.org>
75457
75458         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75459
75460 2005-08-29  Bruno Haible  <bruno@clisp.org>
75461
75462         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75463         Emit more advice.
75464
75465 2005-08-29  Bruno Haible  <bruno@clisp.org>
75466         and Stepan Kasal  <kasal@ucw.cz>
75467
75468         * check-module: If more parameters are given, check each of them
75469         separately; add more exceptions, as noted by Jim Meyering.
75470         (check_module): New procedure.
75471         (%exempt_header): Now contains all exceptions.
75472
75473 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75474
75475         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75476
75477 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75478
75479         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75480
75481 2005-08-28  Bruno Haible  <bruno@clisp.org>
75482
75483         * m4/gnulib-tool.m4: New file.
75484
75485 2005-08-27  Jim Meyering  <jim@meyering.net>
75486
75487         * modules/unistd-safer (Files): Add pipe-safer.c.
75488         * modules/fcntl-safer (Files): Add creat-safer.c.
75489
75490 2005-08-27  Jim Meyering  <jim@meyering.net>
75491
75492         * m4/stdlib-safer.m4: New file.  From coreutils.
75493         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75495         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75496         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75497         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75498
75499 2005-08-27  Jim Meyering  <jim@meyering.net>
75500
75501         * lib/fopen-safer.c: Merge minor changes from coreutils.
75502         * lib/dup-safer.c: Likewise.
75503         * lib/fd-safer.c: Likewise.
75504
75505         Merge from coreutils.
75506         * lib/stdio--.h: New file.
75507         * lib/stdlib--.h: New file.
75508         * lib/mkstemp-safer.c: New file.
75509
75510         GNU tar needs these.
75511         * lib/pipe-safer.c: New file.
75512         * lib/creat-safer.c: New file.
75513         * lib/fcntl--.h (creat): Define to creat_safer.
75514         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75515         * lib/unistd--.h (pipe): Define to pipe_safer.
75516         * lib/unistd-safer.h: Declare pipe_safer.
75517
75518 2005-08-26  Simon Josefsson  <jas@extundo.com>
75519
75520         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75521         Haible <bruno@clisp.org>.
75522
75523 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75524
75525         * lib/regex_internal.h: Remove all references to
75526         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75527         or better.
75528         (bitset_not, bitset_merge, bitset_not_merge):
75529         (bitset_mask, re_string_allocate, re_string_construct):
75530         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75531         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75532         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75533         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75534         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75535         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75536         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75537         (re_acquire_state_context):
75538         Remove unnecessary forward decls.
75539         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75540         Put __attribute at function definition,
75541         now that the function decl has been removed.
75542         * lib/regex_internal.c (re_string_peek_byte_case):
75543         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75544         Likewise.
75545
75546 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75547
75548         * m4/regex.m4: Add AC_PREREQ(2.50).
75549         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75550
75551 2005-08-25  Simon Josefsson  <jas@extundo.com>
75552
75553         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75554         __fsetlocking.
75555
75556 2005-08-25  Simon Josefsson  <jas@extundo.com>
75557
75558         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75559         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75560         GLIBC specific code.
75561
75562 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         Make regex safe for g++.  This fixes one real bug (an "err"
75565         that should have been "*err").  g++ problem reported by
75566         Sam Steingold.
75567         * lib/regex_internal.h (re_calloc): New macro, consistent with
75568         re_malloc etc.  All callers of calloc changed to use re_calloc.
75569         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75570         not int.  All callers changed.
75571         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75572         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75573         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75574         (find_recover_state): Change "err" to "*err"; this fixes what
75575         appears to be a real bug.
75576         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75577         versus int.
75578
75579 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * modules/regex (Depends-on): Add malloc, since the code
75582         assumes that !malloc(0) means failure.
75583
75584 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75587
75588         alloca modernization/simplification for regex.
75589         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75590         needs to be at the start of the file, and can be moved into
75591         regex_internal.h and simplified.
75592         * lib/regex_internal.h: Include <alloca.h>.
75593         (__libc_use_alloca) [!defined _LIBC]: New macro.
75594         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75595         now works outside glibc.
75596
75597 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * config/srclist.txt: Add glibc bugs 1241, 1245.
75600
75601 2005-08-25  Jim Meyering  <jim@meyering.net>
75602
75603         * lib/open-safer.c: Include <config.h>.
75604         Otherwise, we'd lose LARGEFILE support in any file using
75605         e.g. "fcntl--.h"
75606
75607 2005-08-25  Bruno Haible  <bruno@clisp.org>
75608
75609         * m4/minmax.m4: Require autoconf 2.52.
75610         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75611         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75612         alternatives of translit over the alphabet.
75613         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75614
75615 2005-08-24  Simon Josefsson  <jas@extundo.com>
75616
75617         * tests/test-getpass.c: New file.
75618
75619 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75622         for GNU regex features.
75623
75624 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75627         * lib/regex.h (regerror): Likewise.
75628
75629         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75630         requires this.  (The code never needed it.)
75631
75632         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75633         All uses of recently-renamed identifiers changed to use the new,
75634         POSIX-compliant names.  The code will build and run just fine
75635         without these changes, but it's better to eat our own dog food
75636         and use the standard-conforming names.
75637
75638         * lib/regex.h: Fix a multitude of POSIX name space violations.
75639         These changes have an effect only for programs that define
75640         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75641         do not change anything for programs compiled in the normal way.
75642         Also, there is no effect on the ABI.
75643
75644         (_REGEX_SOURCE): New macro.
75645         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75646         defined and _GNU_SOURCE is not; this fixes a name space violation.
75647
75648         Rename the following macros to obey POSIX requirements.
75649         The old names are still visible as macros if _REGEX_SOURCE is defined.
75650         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75651         RE_BACKSLASH_ESCAPE_IN_LISTS.
75652         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75653         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75654         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75655         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75656         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75657         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75658         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75659         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75660         (REG_INTERVALS): renamed from RE_INTERVALS.
75661         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75662         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75663         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75664         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75665         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75666         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75667         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75668         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75669         RE_UNMATCHED_RIGHT_PAREN_ORD.
75670         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75671         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75672         (REG_DEBUG): renamed from RE_DEBUG.
75673         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75674         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75675         unusual, since we can't clash with the POSIX REG_ICASE.
75676         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75677         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75678         (REG_NO_SUB): renamed from RE_NO_SUB.
75679         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75680         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75681         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75682         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75683         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75684         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75685         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75686         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75687         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75688         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75689         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75690         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75691         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75692         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75693         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75694         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75695         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75696         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75697         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75698         (REG_FIXED): Renamed from REGS_FIXED.
75699         (REG_NREGS): Renamed from RE_NREGS.
75700
75701         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75702         of other REG_* macros, since POSIX says the user is allowed to
75703         #undef these macros selectively.
75704
75705         (reg_errcode_t): Update comment stating what other tables need
75706         to be consistent.
75707
75708         Rename the following enum values to obey POSIX requirements.
75709         The old names are still visible as macros.
75710         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75711         is not defined, since GNU is supposed to be a superset of POSIX as
75712         much as possible, and since we want reg_errcode_t to be a signed
75713         type for implementation consistency.
75714         (_REG_NOERROR): Renamed from REG_NOERROR.
75715         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75716         (_REG_BADPAT): Renamed from REG_BADPAT.
75717         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75718         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75719         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75720         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75721         (_REG_EBRACK): Renamed from REG_EBRACK.
75722         (_REG_EPAREN): Renamed from REG_EPAREN.
75723         (_REG_EBRACE): Renamed from REG_EBRACE.
75724         (_REG_BADBR): Renamed from REG_BADBR.
75725         (_REG_ERANGE): Renamed from REG_ERANGE.
75726         (_REG_ESPACE): Renamed from REG_ESPACE.
75727         (_REG_BADRPT): Renamed from REG_BADRPT.
75728         (_REG_EEND): Renamed from REG_EEND.
75729         (_REG_ESIZE): Renamed from REG_ESIZE.
75730         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75731         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75732         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75733         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75734         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75735
75736         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75737         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75738         changed.  But support the old name if the new one is not defined
75739         and if _REGEX_SOURCE.
75740
75741         Change the following member names in struct re_pattern_buffer.
75742         The old names are still supported if !_REGEX_SOURCE.
75743         The new names are always supported, regardless of _REGEX_SOURCE.
75744         (re_buffer): Renamed from buffer.
75745         (re_allocated): Renamed from allocated.
75746         (re_used): Renamed from used.
75747         (re_syntax): Renamed from syntax.
75748         (re_fastmap): Renamed from fastmap.
75749         (re_translate): Renamed from translate.
75750         (re_can_be_null): Renamed from can_be_null.
75751         (re_regs_allocated): Renamed from regs_allocated.
75752         (re_fastmap_accurate): Renamed from fastmap_accurate.
75753         (re_no_sub): Renamed from no_sub.
75754         (re_not_bol): Renamed from not_bol.
75755         (re_not_eol): Renamed from not_eol.
75756         (re_newline_anchor): Renamed from newline_anchor.
75757
75758         Change the following member names in struct re_registers.
75759         The old names are still supported if !_REGEX_SOURCE.
75760         The new names are always supported, regardless of _REGEX_SOURCE.
75761         (rm_num_regs): Renamed from num_regs.
75762         (rm_start): Renamed from start.
75763         (rm_end): Renamed from end.
75764
75765         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75766         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75767         Prepend __ to parameter names.
75768
75769         Undo yesterday's changes.
75770
75771 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75774         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75775         lib/regex.c.
75776
75777 2005-08-24  Jim Meyering  <jim@meyering.net>
75778
75779         Sync from coreutils.
75780         * m4/fcntl-safer.m4: New file.
75781
75782         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75783         and object files for this module.
75784
75785 2005-08-24  Jim Meyering  <jim@meyering.net>
75786
75787         Sync from coreutils.
75788         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75789
75790 2005-08-24  Jim Meyering  <jim@meyering.net>
75791
75792         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75793         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75794
75795 2005-08-24  Jim Meyering  <jim@meyering.net>
75796
75797         * modules/fcntl-safer: New module.
75798         * modules/fts (Depends-on): Add fcntl-safer.
75799         * MODULES.html.sh (File descriptor based Input/Output):
75800         Add fcntl-safer.
75801
75802 2005-08-24  Bruno Haible  <bruno@clisp.org>
75803
75804         Support for unit test modules.
75805         * modules/README: Mention tests modules.
75806         * modules/TEMPLATE-TESTS: New file.
75807         * gnulib-tool: New options --extract-tests-module, --with-tests and
75808         --tests-base (unused for the moment).
75809         (testsbase, inctests): New variables.
75810         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75811         (func_verify_module): Exclude TEMPLATE-TESTS.
75812         (func_verify_nontests_module, func_verify_tests_module): New functions.
75813         (func_get_dependencies): Add implicit dependency for tests modules.
75814         (func_get_tests_module): New function.
75815         (func_modules_transitive_closure): When --with-tests was specified,
75816         include the unit tests as well, unless explicitly avoided.
75817         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75818         (func_emit_tests_Makefile_am): New function.
75819         (func_create_testdir): When --with-tests was specified, emit a
75820         tests/ directory.
75821         * MODULES.html.sh (Future developments): Update.
75822
75823 2005-08-24  Bruno Haible  <bruno@clisp.org>
75824
75825         * modules/tls-tests: New file.
75826         * tests/test-tls.c: New file, from GNU gettext.
75827
75828 2005-08-24  Bruno Haible  <bruno@clisp.org>
75829
75830         * modules/lock-tests: New file.
75831         * tests/test-lock.c: New file, from GNU gettext.
75832
75833 2005-08-24  Bruno Haible  <bruno@clisp.org>
75834
75835         * lib/lock.h: Add multiple inclusion guard.
75836         * lib/tls.h: Add multiple inclusion guard.
75837
75838 2005-08-24  Bruno Haible  <bruno@clisp.org>
75839
75840         * gnulib-tool: Add support for the --aux-dir option to
75841         --create-testdir, --create-megatestdir, --test, --megatest.
75842         (func_create_testdir, func_create_megatestdir): Optionally emit a
75843         AC_CONFIG_AUX_DIR directive.
75844         (create-testdir, create-megatestdir, test, megatest): Provide a
75845         default value for $auxdir.
75846
75847 2005-08-24  Bruno Haible  <bruno@clisp.org>
75848
75849         * gnulib-tool (import): Use compound statement instead of subshell
75850         where possible.
75851
75852 2005-08-24  Bruno Haible  <bruno@clisp.org>
75853
75854         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75855
75856 2005-08-24  Bruno Haible  <bruno@clisp.org>
75857
75858         * gnulib-tool (func_version): Update.
75859
75860 2005-08-24  Bruno Haible  <bruno@clisp.org>
75861
75862         * gnulib-tool (func_import, func_create_testdir,
75863         func_create_megatestdir): Quote all autoconf macro arguments.
75864
75865 2005-08-24  Bruno Haible  <bruno@clisp.org>
75866
75867         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75868         option --force, because --force causes the aclocal.m4 of each
75869         subdirectory to be newer than the corresponding config.h.in.
75870
75871 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75874         All contents moved to gl_REGEX.
75875         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75876         assume that it does.
75877
75878 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * lib/regex.h (REG_NOSYS)
75881         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75882         Define, since POSIX requires it as of 2001.
75883         (_REG_ENOSYS)
75884         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75885         New private symbol, used to keep the enum signed in all cases.
75886         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75887         Youngman in
75888         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75889
75890         * lib/regex_internal.c (re_string_skip_chars, register_state):
75891         (calc_state_hash):
75892         Remove forward decls; no longer needed now that we use prototypes.
75893         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75894         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75895         (clean_state_log_if_needed): Likewise.
75896
75897 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         * config/srclist.txt: Add glibc bugs 1231-1233.
75900
75901 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         Fix problems reported by Sam Steingold in
75904         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75905         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75906         assumed that reg_errcode_t is a signed type, which is not
75907         necessarily true if _XOPEN_SOURCE is not defined.
75908         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75909         since some compilers warn about it otherwise.
75910
75911 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75914         (init_word_char, create_initial_state, duplicate_node_closure):
75915         (fetch_token, peek_token_bracket, build_range_exp):
75916         (build_collating_symbol): Remove forward decls; no longer needed
75917         now that we use prototypes.
75918
75919         * lib/regcomp.c:
75920         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75921         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75922         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75923         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75924         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75925         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75926         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75927         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75928         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75929         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75930         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75931         (build_charclass, build_charclass_op, fetch_number, create_tree):
75932         (create_token_tree, mark_opt_subexp, duplicate_tree):
75933         Use prototypes rather than old-style definitions.
75934
75935         * lib/regex_internal.c:
75936         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75937         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75938         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75939         (re_string_reconstruct, re_string_peek_byte_case):
75940         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75941         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75942         (re_node_set_init_copy, re_node_set_add_intersect):
75943         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75944         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75945         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75946         (re_acquire_state, re_acquire_state_context, register_state):
75947         (create_ci_newstate, create_cd_newstate, free_state):
75948         Likewise.
75949         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75950         re_search_2):
75951         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75952         (re_search_internal, prune_impossible_nodes):
75953         (acquire_init_state_context, check_matching, static):
75954         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75955         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75956         (update_regs, sift_states_backward, build_sifted_states):
75957         (clean_state_log_if_needed, merge_state_array):
75958         (update_cur_sifted_state, add_epsilon_src_nodes):
75959         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75960         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75961         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75962         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75963         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75964         (check_arrival, check_arrival_add_next_nodes):
75965         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75966         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75967         (check_node_accept_bytes, check_node_accept, extend_buffers):
75968         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75969         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75970         (sift_ctx_init):
75971         Likewise.
75972
75973         * lib/regex_internal.h:
75974         (re_string_allocate, re_string_construct, re_string_reconstruct):
75975         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75976         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75977         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75978         (re_string_context_at, re_string_peek_byte_case):
75979         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75980         is defined, since we now use prototypes always.
75981
75982         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75983         C89 or better.  All uses removed.
75984
75985 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         * config/srclist.txt: Add glibc bugs 1220-1227.
75988
75989 2005-08-20  Jim Meyering  <jim@meyering.net>
75990
75991         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75992         of unused local, dfa.
75993
75994 2005-08-20  Bruno Haible  <bruno@clisp.org>
75995
75996         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75997
75998 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76001         (re_node_set_insert_last, re_dfa_add_node):
76002         Rename local variables to avoid GCC shadowing warnings.
76003
76004 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76007         [defined lint]: Suppress bogus uninitialized-variable warnings.
76008
76009         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76010         and let the caller return REG_ESPACE if out of space.  This
76011         removes an uninitialied-variable warning with GCC 4.0.1, and also
76012         avoids taking the address of a local variable.  All callers
76013         changed.
76014
76015 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76018         $LIBCSRC/posix/regexec.c.
76019         Add glibc bug 1217 for regcomp.c.
76020
76021 2005-08-19  Jim Meyering  <jim@meyering.net>
76022
76023         * lib/regexec.c (proceed_next_node): Redo local variables to
76024         avoid GCC shadowing warnings.
76025
76026 2005-08-18  Bruno Haible  <bruno@clisp.org>
76027
76028         * lib/strstr.c (strstr): Fix return value in multibyte case.
76029         * lib/strcasestr.c (strcasestr): Likewise.
76030
76031 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76032
76033         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76034
76035 2005-08-17  Jim Meyering  <jim@meyering.net>
76036
76037         Make the %s format (seconds since the epoch) work for a negative
76038         number and when used with a zero-padded field width, e.g. %015s.
76039
76040         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76041         label so that it precedes the code to set `digits'.  Otherwise,
76042         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76043         print `00-22'.  Now, it prints `-0022', as it should.
76044
76045 2005-08-17  Bruno Haible  <bruno@clisp.org>
76046
76047         * modules/strstr (Files): Add m4/mbrtowc.m4.
76048         (Depends-on): Add mbuiter.
76049
76050 2005-08-17  Bruno Haible  <bruno@clisp.org>
76051
76052         * modules/strcasestr: New file.
76053         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76054         strcasestr.
76055
76056 2005-08-17  Bruno Haible  <bruno@clisp.org>
76057
76058         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76059
76060 2005-08-17  Bruno Haible  <bruno@clisp.org>
76061
76062         * modules/mbuiter: New file.
76063         * MODULES.html.sh (Extended multibyte and wide character utilities):
76064         Add mbuiter.
76065
76066 2005-08-17  Bruno Haible  <bruno@clisp.org>
76067
76068         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76069         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76070
76071 2005-08-17  Bruno Haible  <bruno@clisp.org>
76072
76073         * m4/strcasestr.m4: New file.
76074
76075 2005-08-17  Bruno Haible  <bruno@clisp.org>
76076
76077         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76078         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76079
76080 2005-08-17  Bruno Haible  <bruno@clisp.org>
76081
76082         * lib/strcasestr.h: New file.
76083         * lib/strcasestr.c: New file.
76084
76085 2005-08-17  Bruno Haible  <bruno@clisp.org>
76086
76087         * lib/strcasecmp.c: Use mbuiter.h.
76088
76089 2005-08-17  Bruno Haible  <bruno@clisp.org>
76090
76091         * lib/mbuiter.h: New file.
76092
76093 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76096         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76097         and gl_GETOPT are both invoked via different paths (as happens
76098         with GNU tar CVS because it uses both argp and getopt), the former
76099         wins.
76100
76101 2005-08-16  Bruno Haible  <bruno@clisp.org>
76102
76103         * modules/tls: New file.
76104         * MODULES.html.sh (Multithreading): Add tls.
76105
76106 2005-08-16  Bruno Haible  <bruno@clisp.org>
76107
76108         * modules/strnlen1: New file.
76109         * MODULES.html.sh (String handling): Add strnlen1.
76110
76111 2005-08-16  Bruno Haible  <bruno@clisp.org>
76112
76113         * modules/strcase (Files): Add m4/mbrtowc.m4.
76114         (Depends-on): Add strnlen1, mbchar.
76115
76116 2005-08-16  Bruno Haible  <bruno@clisp.org>
76117
76118         * modules/mbiter: New file.
76119         * MODULES.html.sh (Extended multibyte and wide character utilities):
76120         Add mbiter.
76121
76122 2005-08-16  Bruno Haible  <bruno@clisp.org>
76123
76124         * modules/mbfile: New file.
76125         * MODULES.html.sh (Extended multibyte and wide character utilities):
76126         Add mbfile.
76127
76128 2005-08-16  Bruno Haible  <bruno@clisp.org>
76129
76130         * modules/mbchar: New file.
76131         * MODULES.html.sh (Extended multibyte and wide character utilities):
76132         New section.
76133
76134 2005-08-16  Bruno Haible  <bruno@clisp.org>
76135
76136         * m4/tls.m4: New file, from GNU gettext.
76137
76138 2005-08-16  Bruno Haible  <bruno@clisp.org>
76139
76140         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76141         always.
76142         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76143
76144 2005-08-16  Bruno Haible  <bruno@clisp.org>
76145
76146         * m4/mbiter.m4: New file.
76147
76148 2005-08-16  Bruno Haible  <bruno@clisp.org>
76149
76150         * m4/mbfile.m4: New file.
76151
76152 2005-08-16  Bruno Haible  <bruno@clisp.org>
76153
76154         * m4/mbchar.m4: New file.
76155
76156 2005-08-16  Bruno Haible  <bruno@clisp.org>
76157
76158         * lib/tls.h: New file, from GNU gettext.
76159         * lib/tls.c: New file, from GNU gettext.
76160
76161 2005-08-16  Bruno Haible  <bruno@clisp.org>
76162
76163         * lib/strnlen1.h: New file.
76164         * lib/strnlen1.c: New file.
76165
76166 2005-08-16  Bruno Haible  <bruno@clisp.org>
76167
76168         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76169         (mbi_init): Update.
76170         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76171         NUL byte, not after it.
76172
76173 2005-08-16  Bruno Haible  <bruno@clisp.org>
76174
76175         * lib/strcase.h (strcasecmp): Add note in comments.
76176         * lib/strncasecmp.c: Use code from strcasecmp.c.
76177         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76178         (strcasecmp): Work correctly in multibyte locales.
76179
76180 2005-08-16  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/mbiter.h: New file.
76183
76184 2005-08-16  Bruno Haible  <bruno@clisp.org>
76185
76186         * lib/mbfile.h: New file.
76187
76188 2005-08-16  Bruno Haible  <bruno@clisp.org>
76189
76190         * lib/mbchar.h: New file.
76191         * lib/mbchar.c: New file.
76192
76193 2005-08-16  Bruno Haible  <bruno@clisp.org>
76194
76195         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76196         the valid ones. Makes the comparison operations transitive:
76197         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76198         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76199
76200 2005-08-15  Simon Josefsson  <jas@extundo.com>
76201
76202         * modules/ssize_t (License): Change to 'unlimited'.
76203
76204         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76205
76206 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76209         Add comments for each pending glibc patch.
76210
76211 2005-08-15  Bruno Haible  <bruno@clisp.org>
76212
76213         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76214         __cplusplus is defined.
76215
76216 2005-08-14  Jim Meyering  <jim@meyering.net>
76217
76218         Sync from coreutils.
76219
76220         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76221         Use the hash-table-based cycle-detection code not just when
76222         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76223         Reported by James Youngman in
76224         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76225         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76226         FTS_TIGHT_CYCLE_CHECK.
76227         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76228         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76229         once again.
76230         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76231         * lib/fts.c (fd_safer): Remove decl.
76232         Include fcntl--.h rather than unistd-safer.h
76233         (fts_safe_changedir): Don't call fd_safer; no longer needed
76234         now that we include fcntl--.h.
76235
76236 2005-08-12  Simon Josefsson  <jas@extundo.com>
76237
76238         * modules/getndelim2: Use ssize_t module.
76239         * modules/getnline: Likewise.
76240         * modules/safe-read: Likewise.
76241         * modules/xreadlink: Likewise.
76242
76243         * modules/ssize_t: New file.
76244
76245 2005-08-12  Simon Josefsson  <jas@extundo.com>
76246
76247         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76248
76249 2005-08-12  Simon Josefsson  <jas@extundo.com>
76250
76251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76252         ssize_t.
76253
76254 2005-08-12  Simon Josefsson  <jas@extundo.com>
76255
76256         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76257         readline, getdelim and check_version.
76258         (Support for systems lacking ISO C 99: Sizes of integer types):
76259         Add size_max.
76260
76261 2005-08-12  Bruno Haible  <bruno@clisp.org>
76262
76263         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76264
76265 2005-08-11  Simon Josefsson  <jas@extundo.com>
76266
76267         * modules/readline: New file.
76268
76269         * modules/strnlen (Files): Add strnlen.h.
76270
76271 2005-08-11  Simon Josefsson  <jas@extundo.com>
76272
76273         * m4/readline.m4: New file.
76274
76275 2005-08-11  Simon Josefsson  <jas@extundo.com>
76276
76277         * lib/readline.h, readline.c: New file.
76278
76279 2005-08-11  Simon Josefsson  <jas@extundo.com>
76280
76281         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76282         gl_AVOID.
76283
76284 2005-08-11  Bruno Haible  <bruno@clisp.org>
76285
76286         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76287
76288 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76289
76290         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76291
76292 2005-08-10  Simon Josefsson  <jas@extundo.com>
76293
76294         * tests/test-iconvme.c: New file.
76295
76296 2005-08-10  Simon Josefsson  <jas@extundo.com>
76297
76298         * m4/strnlen.m4: New file.
76299
76300         * m4/strndup.m4: Don't check for strnlen declaration, done in
76301         strnlen.m4.
76302
76303 2005-08-10  Simon Josefsson  <jas@extundo.com>
76304
76305         * lib/strndup.c: Use strnlen.h.
76306
76307         * lib/strnlen.h: New file.
76308
76309 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76310
76311         * README: Typos.
76312
76313 2005-08-02  Simon Josefsson  <jas@extundo.com>
76314
76315         * modules/readline: New file.
76316
76317 2005-08-02  Simon Josefsson  <jas@extundo.com>
76318
76319         * modules/getdelim: New file.
76320
76321         * modules/getline: Rewrite, don't use getndelim2.
76322
76323 2005-08-02  Simon Josefsson  <jas@extundo.com>
76324
76325         * m4/getline.m4: Separate out getdelim stuff into separate module.
76326
76327         * m4/getdelim.m4: New file.
76328
76329 2005-08-02  Simon Josefsson  <jas@extundo.com>
76330
76331         * lib/getline.h, getline.c: Rewrite.
76332
76333         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76334
76335 2005-07-31  Bruno Haible  <bruno@clisp.org>
76336
76337         * lib/lock.h (gl_lock_initializer): New macro.
76338         (gl_lock_define_initialized): Use it.
76339         (gl_rwlock_initializer): New macro.
76340         (gl_rwlock_define_initialized): Use it.
76341         (gl_recursive_lock_initializer): New macro.
76342         (gl_recursive_lock_define_initialized): Use it.
76343
76344 2005-07-30  Karl Berry  <karl@gnu.org>
76345
76346         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76347         Report from Ben Pfaff, regarding getopt.
76348
76349 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76350
76351         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76352         normal way.
76353         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76354         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76355         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76356         (gl_GETOPT): Use the new macros.  Most of the implementation
76357         is moved to the new macros.  This is for programs like Emacs
76358         that don't want all the functionality of gl_GETOPT.
76359
76360 2005-07-26  Bruno Haible  <bruno@clisp.org>
76361
76362         * m4/lock.m4: Update from GNU gettext.
76363
76364 2005-07-26  Bruno Haible  <bruno@clisp.org>
76365
76366         * lib/lock.h: Update from GNU gettext.
76367         * lib/lock.c: Update from GNU gettext.
76368
76369 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76372         obsolescent AC_TRY_RUN.  Include the default includes files, for
76373         'exit'.
76374
76375 2005-07-24  Bruno Haible  <bruno@clisp.org>
76376
76377         * modules/visibility: New file.
76378         * MODULES.html.sh (Misc): Add visibility.
76379
76380 2005-07-24  Bruno Haible  <bruno@clisp.org>
76381
76382         * m4/visibility.m4: New file.
76383
76384 2005-07-24  Bruno Haible  <bruno@clisp.org>
76385
76386         * doc/visibility.texi: New file.
76387
76388 2005-07-22  Bruno Haible  <bruno@clisp.org>
76389
76390         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76391         $(ALLOCA_H), redundant through BUILT_SOURCES.
76392         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76393         redundant through BUILT_SOURCES.
76394         * modules/byteswap (Makefile.am): Remove explicit dependency on
76395         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76396         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76397         $(FNMATCH_H), redundant through BUILT_SOURCES.
76398         * modules/getopt (Makefile.am): Remove explicit dependency on
76399         $(GETOPT_H), redundant through BUILT_SOURCES.
76400         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76401         redundant through BUILT_SOURCES.
76402         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76403         redundant through BUILT_SOURCES.
76404         * modules/stdbool (Makefile.am): Remove explicit dependency on
76405         $(STDBOOL_H), redundant through BUILT_SOURCES.
76406         * modules/stdint (Makefile.am): Remove explicit dependency on
76407         $(STDINT_H), redundant through BUILT_SOURCES.
76408         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76409         Remove explicit dependency on $(SYSEXITS_H).
76410         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76411
76412 2005-07-18  Simon Josefsson  <jas@extundo.com>
76413
76414         * lib/check-version.c (check_version): Accept identical versions too.
76415
76416 2005-07-18  Bruno Haible  <bruno@clisp.org>
76417
76418         * modules/lock: New file.
76419         * MODULES.html.sh (Multithreading): New section.
76420
76421 2005-07-18  Bruno Haible  <bruno@clisp.org>
76422
76423         * m4/lock.m4: New file, from GNU gettext.
76424
76425 2005-07-18  Bruno Haible  <bruno@clisp.org>
76426
76427         * lib/lock.h: New file, from GNU gettext.
76428         * lib/lock.c: New file, from GNU gettext.
76429
76430 2005-07-18  Bruno Haible  <bruno@clisp.org>
76431
76432         * lib/lock.h (gl_once_t): New type.
76433         (gl_once_define, gl_once): New macros.
76434         * lib/lock.c (fresh_once): New variable.
76435         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76436         functions.
76437
76438 2005-07-16  Simon Josefsson  <jas@extundo.com>
76439
76440         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76441         workaround, suggested by Bruno.
76442
76443 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * modules/xalloc (Depends-on): Add xalloc-die.
76446         * modules/xvasprintf (Depends-on): Add xalloc-die.
76447
76448 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76451         with a minor change.
76452
76453 2005-07-15  Bruno Haible  <bruno@clisp.org>
76454
76455         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76456         When using lib/poll.c, define poll as rpl_poll.
76457
76458 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         * modules/argp (Depends-on): Remove unlocked-io.
76461
76462 2005-07-14  Derek Price  <derek@ximbiot.com>
76463
76464         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76465         for glob symlink bug.
76466
76467 2005-07-14  Bruno Haible  <bruno@clisp.org>
76468
76469         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76470         Instead, test for *_unlocked function declarations directly.
76471
76472 2005-07-11  Simon Josefsson  <jas@extundo.com>
76473
76474         * modules/size_max: New file.
76475
76476         * modules/xsize: Depend on size_max module for size_max.m4.
76477
76478 2005-07-11  Simon Josefsson  <jas@extundo.com>
76479
76480         * lib/size_max.h: New file.
76481
76482 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76485         copyright symbol and the year.
76486         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76487         (version_etc_va): Use parameterized copyright notice.
76488         Reword to conform to the current GNU coding standards.
76489
76490 2005-07-11  Karl Berry  <karl@gnu.org>
76491
76492         * doc/gnulib.texi (Quoting): new node.
76493         (Initial import): more info, from Patrice.
76494
76495 2005-07-11  Bruno Haible  <bruno@clisp.org>
76496
76497         * gnulib-tool (func_usage): Document option --avoid.
76498         (Command line options): Handle --avoid.
76499         (func_acceptable): New function.
76500         (func_modules_transitive_closure): Use it.
76501
76502 2005-07-11  Bruno Haible  <bruno@clisp.org>
76503
76504         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76505         Reported by Jim Meyering.
76506
76507 2005-07-10  Bruno Haible  <bruno@clisp.org>
76508
76509         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76510         Needed when size_t is smaller than 'unsigned int'.
76511         Reported by Paul Eggert.
76512
76513 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76514
76515         * modules/argp (Depends-on): Add unlocked-io
76516
76517 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76518
76519         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76520         block of defines.
76521
76522 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76525         fix now.
76526
76527 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76528         and Paul Eggert  <eggert@cs.ucla.edu>
76529
76530         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76531         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76532
76533 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76534
76535         * modules/regex (Files): Add lib/regex_internal.c,
76536         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76537         (Depends-on): Add extensions.
76538         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76539
76540 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76543         pathconf.
76544         * m4/same.m4 (gl_SAME): Likewise.
76545         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76546
76547         * m4/regex.m4: Adjust to new libc regex implementation.
76548         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76549         all the .c and .h parts of (the new) regex.
76550         Quote the m4 stuff better.
76551         Check for RE_ICASE bug of old gnulib.
76552         Check for REG_STARTEND of recent libc.
76553         Rename local variables from jm_* to gl_*.
76554         Quote operand of "test -f".
76555         Say "recent enough" version of libc, not "version 2".
76556         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76557         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76558         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76559         Remove check for btowc, isascii.
76560         Require AM_LANGINFO_CODESET.
76561
76562 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76563
76564         * lib/regex.c, regex.h: Sync from libc.
76565         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76566         * lib/regexec.c:
76567         New files, synced from libc, except that regex_internal.h
76568         currently has a small porting fix.
76569
76570 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76573         regex_internal.c, regexec.c.
76574         Add regex_internal.h too, but as a comment, since the libc version
76575         is currently broken in gnulib mode.
76576
76577 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76578
76579         Support programs like Emacs that use gnulib but not gettext.
76580         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76581         * modules/gettext-h: New file.
76582         * modules/gettext (Files): Remove lib/gettext.h.
76583         (Depends-on): Add gettext-h.
76584         (Makefile.am): Remove lib_SOURCES.
76585         * modules/argmatch, modules/c-stack, modules/closeout:
76586         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76587         * modules/execute, modules/file-type, modules/getaddrinfo:
76588         * modules/getopt, modules/human, modules/javacomp:
76589         * modules/javaexec, modules/mkdir-p, modules/obstack:
76590         * modules/openat, modules/pagealign_alloc, modules/pipe:
76591         * modules/quotearg, modules/regex, modules/rpmatch:
76592         * modules/unicodeio, modules/userspec, modules/version-etc:
76593         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76594         * modules/xsetenv:
76595         Depend on gettext-h, not gettext.
76596
76597 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * gnulib-tool (func_import): Add support for 'public domain' license.
76600         * modules/alloca, modules/atexit, modules/memmove:
76601         Now public domain, not GPL.
76602         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76603         * modules/realloc, modules/strerror, modules/strtod:
76604         Now LGPL, not GPL.
76605
76606 2005-07-05  Bruno Haible  <bruno@clisp.org>
76607
76608         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76609         autoconf CVS. Needed for mingw.
76610
76611 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76612
76613         Remove the dependency of the strftime module on the tzset module.
76614         * modules/strftime (Depends-on): Remove dependency on tzset.
76615
76616 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76617
76618         Remove the dependency of the strftime module on the tzset module.
76619         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76620         gl_FUNC_TZSET_CLOBBER.
76621
76622 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76623
76624         Remove the dependency of the strftime module on the tzset module.
76625         * lib/strftime.c (my_strftime)
76626         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76627         Copy the input structure, to work around some of the bug with
76628         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76629         Solaris releases, you should also use the tzset module, but we won't
76630         require it as a dependency any more since we don't want LGPLed code
76631         to depend on GPLed code.
76632
76633 2005-07-02  Jim Meyering  <jim@meyering.net>
76634
76635         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76636         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76637         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76638         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76639
76640 2005-07-02  Jim Meyering  <jim@meyering.net>
76641
76642         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76643
76644 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76647         declares only 'struct timespec;' (!).
76648
76649 2005-07-01  Jim Meyering  <jim@meyering.net>
76650
76651         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76652         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76653         * lib/save-cwd.c, tempname.c:
76654         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76655         and don't include <sys/file.h>).
76656
76657 2005-06-29  Jim Meyering  <jim@meyering.net>
76658
76659         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76660         type name.  Use the variable name instead.
76661         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76662         Likewise.
76663
76664 2005-06-28  Simon Josefsson  <jas@extundo.com>
76665
76666         * modules/check-version (Files): Add check-version.m4.
76667
76668 2005-06-28  Simon Josefsson  <jas@extundo.com>
76669
76670         * m4/check-version.m4: New file, suggested by Jim Meyering
76671         <jim@meyering.net>.
76672
76673 2005-06-28  Simon Josefsson  <jas@extundo.com>
76674
76675         * lib/check-version.h, lib/check-version.c: New files.
76676
76677 2005-06-28  Simon Josefsson  <jas@extundo.com>
76678
76679         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76680         collision with global variable.  Better indentation.  Don't
76681         increment buffer pointer beyond buffer end.  Based on comments
76682         from Paul Eggert <eggert@cs.ucla.edu>.
76683
76684         * lib/base64.h: Indent.
76685
76686 2005-06-28  Simon Josefsson  <jas@extundo.com>
76687
76688         * doc/gnulib.texi (Library version handling): New section.
76689
76690 2005-06-28  Jim Meyering  <jim@meyering.net>
76691
76692         * check-module (find_included_lib_files): Hard-code another
76693         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76694         but modules/fts-lgpl (correctly) does not list those files.
76695
76696         * modules/canonicalize (Files): Add lib/pathmax.h.
76697
76698 2005-06-25  Simon Josefsson  <jas@extundo.com>
76699
76700         * modules/check-version: New file.
76701
76702 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76703
76704         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76705         initializer of struct addrinfo, as an indication that we don't
76706         care how many members the structure has.
76707
76708 2005-06-24  Derek Price  <derek@ximbiot.com>
76709         and Bruno Haible  <bruno@clisp.org>
76710
76711         Remove stat module & update lstat.
76712         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76713         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76714         * m4/stat.m4: Remove this file.
76715
76716 2005-06-24  Derek Price  <derek@ximbiot.com>
76717         and Bruno Haible  <bruno@clisp.org>
76718
76719         Remove stat module & update lstat.
76720         * lib/stat.c: Remove this file...
76721         (slash_aware_lstat): ...moving this content and its support...
76722         * lib/lstat.c (rpl_lstat): ...into here.
76723         * lib/lstat.h: New file.
76724
76725 2005-06-24  Derek Price  <derek@ximbiot.com>
76726         and Bruno Haible  <bruno@clisp.org>
76727
76728         Remove stat module & update lstat.
76729         * config/srclist.txt (libc sources): Remove stat.
76730
76731 2005-06-24  Derek Price  <derek@ximbiot.com>
76732         and Bruno Haible  <bruno@clisp.org>
76733
76734         Remove stat module & update lstat.
76735         * MODULES.html.sh (stat): Remove.
76736         * MODULES.html: Regenerated.
76737         * modules/lstat (Description): Correct function name.
76738         (Files): Add "lstat.h".
76739         (Depends-on): Remove stat, add xalloc, stat-macros.
76740         * modules/stat: Remove this file.
76741         (Include): Add "lstat.h", remove <sys/stat.h>.
76742
76743 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76746         (ranged_convert): Don't save conversion in a temporary struct.
76747         This causes a warning with GCC 4.0.0, and anyway in the typical
76748         case it's not worth the extra 100 bytes or so of code.
76749         (ranged_convert, __mktime_internal): When calling a function via a
76750         pointer P, use P () rather than (*P) (), as we now assume C89 or
76751         better.
76752
76753 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76756         "who -r" failed to give output.  Problem reported by Tim Waugh.
76757
76758         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76759         (xcalloc): Use it to avoid needless tests.
76760         Problem reported by Jim Meyering.
76761
76762 2005-06-20  Derek Price  <derek@ximbiot.com>
76763
76764         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76765         unnecessary for Autoconfs > 2.59c.
76766
76767 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76768
76769         * lib/argp.h (__option_is_short): Check upper limit of
76770         __key. Isprint() requires its argument to have the value
76771         of an unsigned char or EOF.
76772
76773 2005-06-16  Jim Meyering  <jim@meyering.net>
76774
76775         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76776         when either N or S is zero.
76777
76778 2005-06-16  Derek Price  <derek@ximbiot.com>
76779
76780         * m4/bison.m4: Declare YACC & YFLAGS precious.
76781
76782 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76785         multibyte string or pattern, fall back on unibyte matching.
76786         Problem reported by James Youngman.
76787
76788 2005-06-08  Bruno Haible  <bruno@clisp.org>
76789
76790         * modules/csharpcomp: New file.
76791         * MODULES.html.sh (C#): Add csharpcomp.
76792
76793 2005-06-08  Bruno Haible  <bruno@clisp.org>
76794
76795         * m4/csharpcomp.m4: New file, from GNU gettext.
76796
76797 2005-06-08  Bruno Haible  <bruno@clisp.org>
76798
76799         * lib/csharpcomp.h: New file, from GNU gettext.
76800         * lib/csharpcomp.c: New file, from GNU gettext.
76801         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76802
76803 2005-06-08  Bruno Haible  <bruno@clisp.org>
76804
76805         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76806         warning on mingw.
76807
76808 2005-06-07  Derek Price  <derek@ximbiot.com>
76809
76810         Sync from CVS.
76811         * lib/glob_.h: Indent nested #ifdef.
76812
76813 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76814
76815         Sync from coreutils.
76816         Use "file name" when talking about file names, instead of "filename"
76817         or "path", as per the GNU coding standards.
76818         * lib/mkdir-p.c: Renamed from makepath.c.
76819         (make_dir_parents): Renamed from make_path.  All callers changed.
76820         * lib/mkdir-p.h: Likewise.  All includers changed.
76821         * lib/filenamecat.c: Renamed from path-concat.c.
76822         (file_name_concat): Renamed from path_concat.  All callers changed.
76823         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76824         * lib/filenamecat.h: Likewise.  All includers changed.
76825         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76826         in comments or local variable names.
76827         * lib/basename.c: Likewise.
76828         * lib/canonicalize.c, canonicalize.h: Likewise.
76829         * lib/dirname.c, dirname.h: Likewise.
76830         * lib/euidaccess.c: Likewise.
76831         * lib/exclude.c: Likewise
76832         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76833         * lib/fsusage.c, fsuage.h: Likewise.
76834         * lib/fts.c, fts_.h: Likewise.
76835         * lib/getcwd.c: Likewise.
76836         * lib/getloadavg.c: Likewise.
76837         * lib/mkstemp.c: Likewise.
76838         * lib/mountlist.c, mountlist.h: Likewise.
76839         * lib/openat.c, openat.h: Likewise.
76840         * lib/readlink-stub.c: Likewise.
76841         * lib/readutmp.c, readutmp.h: Likewise.
76842         * lib/rename.c: Likewise.
76843         * lib/rmdir.c: Likewise.
76844         * lib/same.c: Likewise.
76845         * lib/savedir.c: Likewise.
76846         * lib/stripslash.c: Likewise.
76847         * lib/tempname.c: Likewise.
76848         * lib/xreadlink.c: Likewise.
76849         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76850         All uses changed.
76851         * lib/exclude.h: Likewise.
76852
76853         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76854         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76855         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76856         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76857         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76858         files have been getting away with it for years (MORE/BSD 4.3
76859         is extinct now).
76860         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76861         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76862
76863         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76864         Define to 256, not 255, as per modern POSIX.
76865
76866 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76867
76868         Sync from coreutils.
76869         Use "file name" when talking about file names, instead of "filename"
76870         or "path", as per the GNU coding standards.
76871         * MODULES.html.sh: mkdir-p renamed from makepath.
76872         filenamecat renamed from path-concat.
76873         * modules/filenamecat: Renamed from modules/path-concat.
76874         (Files): filenamecat.h and filenamecat.c renamed from
76875         path-concat.h and path-concat.c.
76876         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76877         (Include): filenamecat.h, not path-concat.h.
76878         * modules/mkdir-p: Renamed from modules/makepath.
76879         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76880         makepath.c.
76881         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76882         (Include): mkdir-p.h, not makepath.h.
76883
76884 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76885
76886         Sync from coreutils.
76887         * m4/mkdir-p.m4: Renamed from makepath.m4.
76888         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76889         Rename files from makepath.c to mkdir-p.c, and from
76890         makepath.h to mkdir-p.h.
76891         * m4/filenamecat.m4: Renamed from path-concat.m4.
76892         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76893         Rename files from path-concat.c to filenamecat.c,
76894         and from path-concat.h to filenamecat.h.
76895         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76896         "file name" in local variables or comments.
76897         * m4/rename.m4: Likewise.
76898
76899 2005-06-01  Bruno Haible  <bruno@clisp.org>
76900
76901         * modules/csharpexec: New file.
76902         * MODULES.html.sh (C#): New section.
76903
76904 2005-06-01  Bruno Haible  <bruno@clisp.org>
76905
76906         * m4/csharp.m4: New file, from GNU gettext.
76907         * m4/csharpexec.m4: New file, from GNU gettext.
76908
76909 2005-06-01  Bruno Haible  <bruno@clisp.org>
76910
76911         * lib/csharpexec.h: New file, from GNU gettext.
76912         * lib/csharpexec.c: New file, from GNU gettext.
76913         * lib/csharpexec.sh.in: New file, from GNU gettext.
76914
76915 2005-05-31  Derek Price  <derek@ximbiot.com>
76916             Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         Sync from cvs.
76919         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76920
76921 2005-05-31  Derek Price  <derek@ximbiot.com>
76922             Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         Sync from cvs.
76925         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76926
76927 2005-05-29  Derek Price  <derek@ximbiot.com>
76928
76929         * config/srclist.txt (glob_.h, glob.c): Add these files.
76930
76931 2005-05-29  Derek Price  <derek@ximbiot.com>
76932
76933         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76934         * modules/glob: New file.
76935         * modules/getlogin_r: Add link to POSIX spec in description.
76936
76937 2005-05-29  Derek Price  <derek@ximbiot.com>
76938             Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * m4/glob.m4: New file.
76941
76942 2005-05-29  Derek Price  <derek@ximbiot.com>
76943             Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * lib/glob_.h, lib/glob.c: New files.
76946
76947 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76948
76949         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76950         * modules/fts-lgpl (Depends-on): Remove gettext.
76951
76952 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76953
76954         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76955         and don't require gt_INTTYPES_PRI.
76956
76957 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76960
76961         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76962         the configuration hassle isn't worth it.
76963         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76964         (LONGEST_MODIFIER, PRIuMAX): Remove.
76965
76966 2005-05-27  Bruno Haible  <bruno@clisp.org>
76967
76968         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76969
76970 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76973         _POSIX_PTHREAD_SEMANTICS for Solaris.
76974
76975 2005-05-25  Derek Price  <derek@ximbiot.com>
76976
76977         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76978
76979 2005-05-25  Derek Price  <derek@ximbiot.com>
76980             Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76983         * lib/getlogin_r.c, getlogin_r.h: New files.
76984
76985 2005-05-25  Bruno Haible  <bruno@clisp.org>
76986             Derek Price  <derek@ximbiot.com>
76987
76988         * lib/getlogin_r.h: Simplify API documentation.
76989
76990 2005-05-23  Derek Price  <derek@ximbiot.com>
76991
76992         * modules/minmax (Files): Add m4/minmax.m4.
76993         (configure.ac): Add gl_MINMAX.
76994
76995 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76998         so that unistd-safer.h (GPL'ed code) need not be included.
76999
77000 2005-05-22  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/minmax.m4: New file.
77003         Based on a patch by Derek Price <derek@ximbiot.com>.
77004
77005 2005-05-22  Bruno Haible  <bruno@clisp.org>
77006
77007         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77008         (INT64_MIN): Fix definition.
77009         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77010
77011         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77012         NEED_SIGNED_INT_TYPES.
77013
77014         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77015         HAVE_SYSTEM_INTTYPES.
77016
77017 2005-05-22  Bruno Haible  <bruno@clisp.org>
77018
77019         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77020         Also include <sys/param.h> if it defines MIN, MAX.
77021         Based on a patch by Derek Price <derek@ximbiot.com>.
77022
77023 2005-05-21  Jim Meyering  <jim@meyering.net>
77024
77025         * modules/fts (Files): Add m4/inttypes-pri.m4.
77026         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77027
77028 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         New fts module.
77031         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77032         (setup_dir, free_dir): New functions.
77033         (enter_dir, leave_dir): Define trivial
77034         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77035         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77036         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77037         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77038         Move to fts-cycle.c.
77039         (fts_open): Use setup_dir.
77040         (fts_close): Use free_dir.
77041         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77042         This adds a label and some gotos, but the alternatives were messier.
77043         Check for memory allocation failure when entering a dir.
77044         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77045         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77046         (FTS): New member fts_cycle, that is a union that contains the
77047         old active_dir_ht and cycle_state.  All uses changed to mention
77048         fts_cycle.ht and fts_cycle.state.
77049         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77050         fts.c, with the following changes:
77051         (setup_dir, free_dir): New functions.
77052         (enter_dir): Now returns bool.  Return true if successful, false
77053         if memory exhausted.  All callers changed.
77054         Do not bother partly cleaning up on
77055         memory allocation failure; that is free_dir's job.
77056         However, free ad if hash_insert fails, to avoid memory leak.
77057         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77058         fts->fts_options to see which union member to use.
77059
77060 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77061
77062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77063         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77064
77065 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77066
77067         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77068
77069 2005-05-20  Jim Meyering  <jim@meyering.net>
77070
77071         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77072         Now a macro, to pacify GCC.
77073
77074 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77075
77076         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77077         of -1.
77078
77079 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77080
77081         * lib/chown.c (rpl_chown): Return -1 on failure.
77082
77083 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77084
77085         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77086         Don't check for stddef.h.
77087         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77088         don't use its results.
77089         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77090         since we include them unconditionally.  Don't require
77091         AM_STDBOOL_H, since stdbool is a prerequisite.
77092         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77093         since we assume C89 or better.
77094         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77095         as we don't use their results.
77096         Don't check for fchdir, memmove, memset, strrchr, as we use
77097         them unconditionally.
77098         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77099         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77100
77101 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77104         Include <stddef.h> unconditionally, since we assume C89 now.
77105         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77106         * lib/fts.c: Include fts_.h first, to check interface.
77107         Do not include intprops.h; no longer needed.
77108         Include cycle-check.h and hash.h, since fts_.h no longer does.
77109         Remove unnecessary casts of closedir to void.
77110         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77111         decide whether to decrement nlinks.
77112         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77113         (FTS): Use struct hash_table * instead of Hash_table, so that
77114         we no longer need to include hash.h here.
77115
77116 2005-05-18  Jim Meyering  <jim@meyering.net>
77117
77118         * modules/dirfd (License): Change to LGPL.  Most of the code
77119         is already in the public domain.
77120
77121 2005-05-18  Jim Meyering  <jim@meyering.net>
77122
77123         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77124         Reported by Yoann Vandoorselaere.
77125
77126 2005-05-17  Jim Meyering  <jim@meyering.net>
77127
77128         * m4/fts.m4: New file, from coreutils.
77129
77130 2005-05-17  Jim Meyering  <jim@meyering.net>
77131
77132         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77133
77134 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         Sync from coreutils.
77137         * m4/unlinkdir.m4: New file.
77138
77139 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77140
77141         Sync from coreutils.
77142         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77143         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77144         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77145         White space changes only.
77146         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77147         special.
77148         * lib/yesno.c: Include getline.h, not ctype.h.
77149         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77150         Use getline to remove arbitrary restriction on response length.
77151
77152 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * config/srclist-update: Spell out "Street" in FSF postal
77155         mail address; this is the style the FSF seems to prefer.
77156
77157         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77158         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77159         this updates FSF postal mail address.
77160
77161         Sync from coreutils.
77162         * modules/unlinkdir: New file.
77163         * modules/yesno (Depends-on): Add getline.
77164         * MODULES.html.sh (File system functions): Add unlinkdir.
77165
77166 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77169         lib/strsep.h:
77170         Change the initial comment to refer to GPL, not LGPL.
77171         gnulib-tool will change it to LGPL as needed.
77172
77173         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77174         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77175         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77176         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77177         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77178         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77179         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77180         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77181         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77182         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77183         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77184         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77185         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77186         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77187         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77188         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77189         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77190         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77191         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77192         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77193         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77194         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77195         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77196         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77197         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77198         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77199         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77200         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77201         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77202         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77203         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77204         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77205         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77206         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77207         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77208         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77209         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77210         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77211         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77212         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77213         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77214         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77215         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77216         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77217         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77218         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77219         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77220         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77221         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77222         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77223         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77224         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77225         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77226         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77227         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77228         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77229         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77230         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77231         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77232         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77233         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77234         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77235         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77236         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77237         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77238         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77239         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77240         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77241         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77242         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77243         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77244         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77245         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77246         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77247         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77248         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77249         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77250         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77251         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77252         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77253         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77254         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77255         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77256         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77257         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77258         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77259         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77260         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77261         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77262         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77263         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77264         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77265         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77266         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77267         lib/yesno.c, lib/yesno.h:
77268         Update FSF postal mail address.
77269
77270 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77273         tests/test-memmem.c, tests/test-stpncpy.c:
77274         Update FSF postal mail address.
77275
77276 2005-05-13  Bruno Haible  <bruno@clisp.org>
77277
77278         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77279         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77280         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77281         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77282         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77283         Add support for 64-bit integers in the MSVC compiler.
77284
77285 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77286
77287         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77288
77289 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77290
77291         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77292
77293 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * doc/getdate.texi (General date syntax): Don't say that date
77296         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77297         Problem reported by Nic Ferrier.
77298
77299 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77300
77301         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77302         specified in ai_socktype. Fix invalid ai_protocol
77303         check. ai_protocol is usually set to 0 or depending on
77304         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77305         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77306         ai_socktype / ai_protocol in the returned addrinfo structure.
77307
77308 2005-05-10  Simon Josefsson  <jas@extundo.com>
77309
77310         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77311         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77312
77313 2005-05-10  Karl Berry  <karl@gnu.org>
77314
77315         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77316         (from http://www.gnu.org/licenses).
77317         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77318         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77319         fdl.texi suffices.
77320
77321 2005-05-10  Karl Berry  <karl@gnu.org>
77322
77323         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77324         (COPYING.DOC): remove.
77325
77326         * config/srclist-update: new FSF address.
77327
77328 2005-05-10  Derek Price  <derek@ximbiot.com>
77329
77330         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77331         possible.
77332
77333 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77334             Bruno Haible  <bruno@clisp.org>
77335
77336         * modules/inet_ntop: New file.
77337         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77338         inet_ntop.
77339
77340 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77341             Bruno Haible  <bruno@clisp.org>
77342
77343         * m4/inet_ntop.m4: New file.
77344
77345 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77346             Bruno Haible  <bruno@clisp.org>
77347
77348         * lib/inet_ntop.h: New file.
77349         * lib/inet_ntop.c: New file, from glibc with modifications.
77350
77351 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * modules/time_r (License): Change to LGPL.
77354         * modules/extensions (License): Change to LGPL.  Actually,
77355         the license is more permissive than that, but currently gnulib-tool
77356         doesn't know how to handle more-permissive licenses.
77357
77358         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77359         Problem reported by Dave Love.
77360
77361 2005-05-08  Jim Meyering  <jim@meyering.net>
77362
77363         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77364         blank.
77365
77366 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * modules/argmatch (Depends-on): Add stdbool.
77369         * modules/backupfile (Depends-on): Likewise.
77370         * modules/chdir-long (Depends-on): Likewise.
77371         * modules/closeout (Depends-on): Likewise.
77372         * modules/cycle-check (Depends-on): Likewise.
77373         * modules/dirname (Depends-on): Likewise.
77374         * modules/fnmatch (Depends-on): Likewise.
77375         * modules/fsusage (Depends-on): Likewise.
77376         * modules/fwriteerror (Depends-on): Likewise.
77377         * modules/getcwd (Depends-on): Likewise.
77378         * modules/getloadavg (Depends-on): Likewise.
77379         * modules/hard-locale (Depends-on): Likewise.
77380         * modules/makepath (Depends-on): Likewise.
77381         * modules/mountlist (Depends-on): Likewise.
77382         * modules/nanosleep (Depends-on): Likewise.
77383         * modules/posixtm (Depends-on): Likewise.
77384         * modules/quotearg (Depends-on): Likewise.
77385         * modules/readtokens (Depends-on): Likewise.
77386         * modules/readtokens0 (Depends-on): Likewise.
77387         * modules/readutmp (Depends-on): Likewise.
77388         * modules/save-cwd (Depends-on): Likewise.
77389         * modules/strftime (Depends-on): Likewise.
77390         * modules/userspec (Depends-on): Likewise.
77391         * modules/utimecmp (Depends-on): Likewise.
77392         * modules/xgetcwd (Depends-on): Likewise.
77393         * modules/xnanosleep (Depends-on): Likewise.
77394         * modules/xstrtod (Depends-on): Likewise.
77395         * modules/yesno (Depends-on): Likewise.
77396
77397 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77398
77399         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77400         needless checks.
77401
77402 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77403
77404         Merge from coreutils.  Among other things,
77405         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77406         * lib/fd-safer.c: New file.
77407         * lib/fcntl-safer.h, open-safer.c: Remove.
77408         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77409         * lib/dup-safer.c: Include unistd-safer.h first.
77410         Don't include errno.h.
77411         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77412         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77413         * lib/file-type.c: Rely on file-type.h change.
77414         * lib/getloadavg.c: Include unistd-safer.h.
77415         (getloadavg): Use safer open.
77416         * lib/getusershell.c: Include "stdio-safer.h".
77417         (getusershell): Use safer fopen.
77418         * lib/long-options.c (long_options): Use NULL rather than 0.
77419         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77420         'free'.
77421         * lib/modechange.c: Likewise.
77422         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77423         (MODE_DONE): New constant.
77424         (struct mode_change): Remove 'next' member.
77425         (make_node_op_equals): New function; like the old one of the
77426         same name, except it allocates an array.
77427         (mode_compile, mode_create_from_ref): Use it.
77428         (mode_compile): Allocate result as an array, not a linked list.
77429         Parse octal string ourself, so that we catch mistakes like "+0".
77430         (mode_adjust): Arg is an array, not a linked list.
77431         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77432         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77433         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77434         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77435         Remove.  This is now stat-macros.h's job.
77436         (talloc): Remove.  All callers replaced by xalloc, so that
77437         our invokers don't have to worry about reporting memory failures.
77438         (make_node_op_equals): Remove.
77439         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77440         New constants.
77441         (struct mode_change): Moved here from modechange.h.
77442         (mode_append_entry): Remove.
77443         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77444         apps to have incorrect behavior.  Use simpler algorithm for head
77445         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77446         Detect more invalid usages rather than having somewhat-random behavior.
77447         Don't insert an "a=" action, as that leads to incorrect behavior.
77448         (mode_compile, mode_create_from_ref): Return NULL on error instead
77449         of an enum, since now there's only one way to have an error.  All
77450         callers changed.
77451         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77452         at the correct time.  Simplify calculation of "+u" and its ilk.
77453         Don't mishandle "+X".
77454         (mode_free): Remove "register" and localize decls.
77455         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77456         (struct mode_change): Move to modechange.c; callers don't
77457         need to see this stuff.
77458         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77459         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77460         (mode_change, mode_adjust): Reflect the new signatures noted above.
77461         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77462         that might redefine system include files.
77463         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77464         (my_usleep): Use NULL rather than (void *) 0.
77465         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77466         Use siginterrupt to specify that system calls should be interrupted.
77467         (rpl_nanosleep): Move initialization of suspended closer to call of
77468         my_usleep.
77469         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77470         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77471         (desirable_utmp_entry): New function.
77472         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77473         using x2nrealloc, to simplify logic.
77474         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77475         size calculation.  Do not assume utmp file is a regular file.
77476         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77477         (READ_UTMP_CHECK_PIDS): New constant.
77478         * lib/save-cwd.c: Include unistd-safer.h.
77479         (save_cwd): Use fd_safer.
77480         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77481         [!_LIBC] Include "stat-macros.h" instead.
77482         * lib/unistd-safer.h (fd_safer): New decl.
77483
77484 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * modules/getloadavg (Depends-on): Add unistd-safer.
77487         * modules/getusershell (Depends-on): Add stdio-safer.
77488         * modules/lstat (Depends-on): Remove xalloc.
77489         * modules/mkstemp (Depends-on): Add stat-macros.
77490         * modules/modechange (Depends-on): Remove xstrtol.
77491         Add stat-macros, xalloc.
77492         * modules/save-cwd (Depends-on): Add unistd-safer.
77493         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77494         * modules/unistd-safer (Files): Add lib/fd-safer.c
77495         (Makefile.am): Remove lib_SOURCES.
77496
77497         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77498         Remove fcntl-safer; unistd-safer supersedes it.
77499
77500 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77503         AC_HEADER_STAT.
77504         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77505         (gl_PREREQ_CHOWN): Remove.
77506         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77507         it.  Don't require AC_HEADER_STAT.
77508         (gl_PREREQ_LSTAT): Remove.
77509         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77510         Don't require AC_HEADER_STAT.
77511         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77512         (gl_PREREQ_RMDIR): Remove.
77513         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77514         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77515         the stat-macros module a prerequisite.
77516         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77517         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77518         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77519         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77520         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77521         variable names.
77522         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77523         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77524         variable prefixes.
77525         * m4/fcntl-safer.m4: Remove.
77526         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77527         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77528         Invoke gl_PREREQ_FD_SAFER.
77529         (gl_PREREQ_FD_SAFER): New macro.
77530         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77531         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77532         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77533         Remove duplicate call to AC_LIBOBJ(readutmp).
77534         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77535
77536         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77537         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77538
77539 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         * MODULES.html.sh (Misc): Add byteswap.
77542
77543 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77544
77545         * modules/getcwd (Depends-on): Add extensions.
77546         * modules/openat (Depends-on): Likewise.
77547
77548 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77549
77550         * modules/byteswap: New file.
77551
77552 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77553
77554         * m4/byteswap.m4: New file.
77555
77556 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77557
77558         * lib/byteswap_.h: New file.
77559
77560 2005-04-25  Karl Berry  <karl@gnu.org>
77561
77562         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77563
77564 2005-04-25  Albert Chin  <china@thewrittenword.com>
77565
77566         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77567         Toolkit C bug.
77568
77569 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77570
77571         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77572         (func_ln_if_changed): Remove forcibly for no error message
77573         in case file does not exist.
77574
77575 2005-04-19  Simon Josefsson  <jas@extundo.com>
77576
77577         * gnulib-tool (Options): Make --symlink mean --symbolic.
77578
77579 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77580
77581         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77582
77583 2005-04-16  Simon Josefsson  <jas@extundo.com>
77584
77585         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77586
77587 2005-04-15  Simon Josefsson  <jas@extundo.com>
77588
77589         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77590
77591 2005-04-15  Simon Josefsson  <jas@extundo.com>
77592
77593         * gnulib-tool: Rename --symlink to --symbolic.
77594
77595 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77596
77597         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77598         symbolic links to files instead of copying/moving.  Add --aux-dir,
77599         specifying directory relative --dir where auxiliary build tools
77600         are placed.
77601
77602 2005-04-14  Bruno Haible  <bruno@clisp.org>
77603
77604         * modules/allocsa (License): Change to LGPL.
77605         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77606
77607 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77608
77609         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77610         that "UTC +1 second" continues to work.  Problem reported
77611         by Dmitry V. Levin.
77612         (relunit_snumber): New rule.
77613         (relunit): Use it.
77614
77615 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77616
77617         * lib/getdate.y (universal_time_zone_table): New constant.
77618         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77619         universal_time_zone_table.
77620         (lookup_zone): Prefer universal_time_zone_table to
77621         local_time_zone_table, so that "GMT" time stamps are allowed in
77622         London during the summer.  Problem reported by Ian Abbott.
77623
77624 2005-04-12  Jim Meyering  <jim@meyering.net>
77625
77626         * lib/human.c (humblock): Set *options even when returning due to
77627         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77628         warning from gcc-4.
77629
77630 2005-04-09  Jim Meyering  <jim@meyering.net>
77631
77632         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77633         -Wuninitialized: initialize tm0.tm_year.
77634
77635 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77636
77637         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77638         count, since there's no maximum.  All uses changed.
77639         Add member dsts_seen.
77640         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77641         not being INT_MAX.
77642         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77643         Use pc_rels_seen to decide whther a date is absolute.
77644
77645         * lib/getdate.y (number): Don't overwrite year.
77646         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77647         check.
77648
77649 2005-04-02  Simon Josefsson  <jas@extundo.com>
77650
77651         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77652         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77653
77654 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77655
77656         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77657         where no absolute path name can be longer than PATH_MAX.
77658
77659 2005-03-27  Jim Meyering  <jim@meyering.net>
77660
77661         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77662
77663 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77664
77665         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77666         "one's complement" -> "ones' complement" in comment, as per Knuth.
77667         "value of type" -> "type or expression" in comment.
77668         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77669
77670 2005-03-26  Jim Meyering  <jim@meyering.net>
77671
77672         Comment nits.
77673         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77674         Correct typos: s/or/of/.
77675
77676 2005-03-26  Jim Meyering  <jim@meyering.net>
77677
77678         * modules/check-include-files: Move to ../ and rename to...
77679         * check-module: ...this.
77680
77681 2005-03-25  Jim Meyering  <jim@meyering.net>
77682
77683         * modules/xvasprintf (Files): Add xalloc.h.
77684
77685 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         * modules/gettext (Files): config/config.rpath ->
77688         build-aux/config.rpath
77689         * modules/iconv (Files): Likewise.
77690         Problem reported by Oskar Liljeblad.
77691
77692 2005-03-23  Jim Meyering  <jim@meyering.net>
77693
77694         * modules/check-include-files: New script to check for
77695         missing dependencies, multiple includes, etc.
77696
77697         * modules/c-strtold (Depends-on): Add xalloc.
77698         * modules/c-strtod (Depends-on): Add xalloc.
77699         * modules/hash (Depends-on): Add xalloc.
77700         (Files): Remove lib/xalloc.h.
77701
77702         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77703         * modules/userspec (Files): Add lib/inttostr.h.
77704
77705 2005-03-23  Jim Meyering  <jim@meyering.net>
77706
77707         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77708
77709 2005-03-22  Jim Meyering  <jim@meyering.net>
77710
77711         * modules/stat-macros: New module.
77712         * modules/canonicalize, modules/euidaccess, modules/file-type,
77713         * modules/filemode, modules/lchown, modules/makepath,
77714         * modules/rmdir, modules/stat: Depend on new stat-macros module
77715         rather than listing lib/stat-macros.h manually.
77716         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77717
77718 2005-03-22  Jim Meyering  <jim@meyering.net>
77719
77720         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77721
77722 2005-03-22  Bruno Haible  <bruno@clisp.org>
77723
77724         * config/srclist.txt: Replace target directory 'config' with
77725         'build-aux'.
77726         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77727         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77728         ../build-aux/.
77729
77730 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * modules/chdir-long (Depends-on): Add mempcpy.
77733
77734         * modules/acl, modules/backupfile, modules/c-strtod,
77735         modules/c-strtold, modules/canon-host, modules/canonicalize,
77736         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77737         modules/exclude, modules/exitfail, modules/file-type,
77738         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77739         modules/getdate, modules/getline, modules/getpagesize,
77740         modules/getpass, modules/getugroups, modules/group-member,
77741         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77742         modules/inttostr, modules/long-options, modules/makepath,
77743         modules/md5, modules/memcasecmp, modules/memcoll,
77744         modules/modechange, modules/mountlist, modules/path-concat,
77745         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77746         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77747         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77748         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77749         modules/strftime, modules/strndup, modules/strverscmp,
77750         modules/timespec, modules/unlocked-io, modules/userspec,
77751         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77752         modules/yesno:
77753         Remove lib_SOURCES line from Makefile.am section, as this is now
77754         done automatically by the corresponding Autoconf macro.
77755
77756 2005-03-21  Jim Meyering  <jim@meyering.net>
77757
77758         Changes imported from coreutils.
77759
77760         * lib/cycle-check.c: Don't include xalloc.h.
77761
77762         * lib/path-concat.c: Don't include assert.h.
77763         (path_concat): Remove assertion that would have triggered
77764         for ABASE starting with more than one slash.
77765         Reported by Andreas Schwab.
77766
77767         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77768         properly when ABASE is an absolute file name.
77769         Correct the description of this function.
77770         Include <assert.h>.
77771         Add an assertion and a test driver.
77772         This fixes a bug introduced on 2004-07-02.
77773         Andreas Schwab reported the resulting failure of cp --parents:
77774         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77775
77776 2005-03-21  Jim Meyering  <jim@meyering.net>
77777
77778         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77780
77781 2005-03-21  Jim Meyering  <jim@meyering.net>
77782         and  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77785         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77786         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77787         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77788         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77789         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77790         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77791         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77792         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77793         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77794         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77795         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77796         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77797         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77798         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77799         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77800         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77801         for these modules.
77802
77803 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77806         (which shouldn't happen), generate nothing instead of returning 0
77807         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77808
77809 2005-03-16  Bruno Haible  <bruno@clisp.org>
77810
77811         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77812         HAVE_LONGLONG_64BIT.
77813
77814 2005-03-16  Bruno Haible  <bruno@clisp.org>
77815
77816         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77817         HAVE_LONGLONG_64BIT.
77818
77819 2005-03-16  Bruno Haible  <bruno@clisp.org>
77820
77821         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77822         HAVE_LONGLONG_64BIT.
77823
77824 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77825
77826         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77827         reliably distinguish strftime failure from empty output on POSIX
77828         hosts.
77829
77830 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77831
77832         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77833         (iconv_string): Don't guess a size-zero buffer, as that might cause
77834         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77835         result would be 'too large', where 'too large' is (heuristically)
77836         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77837         overflow concerns.  This will prevent some unwanted malloc failures
77838         when the inputs are very large.
77839
77840 2005-03-15  Karl Berry  <karl@gnu.org>
77841
77842         * config/srclist.txt (config.rpath): from gettext.
77843         * config/config.rpath: update.
77844
77845 2005-03-15  Bruno Haible  <bruno@clisp.org>
77846
77847         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77848         to 'negate'.
77849
77850         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77851         variable.
77852
77853         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77854         results.
77855
77856 2005-03-14  Simon Josefsson  <jas@extundo.com>
77857
77858         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77859         <fx@gnu.org>.
77860
77861 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77862
77863         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77864         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77865         intprops.h.
77866         * lib/strtol.c: Likewise.
77867
77868 2005-03-14  Jim Meyering  <jim@meyering.net>
77869
77870         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77871         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77872         to be nonzero so that we (and caller) can detect the difference
77873         between a valid zero-length expansion and an error return, even
77874         when the underlying strftime fails before writing anything into
77875         that location.
77876
77877 2005-03-14  Bruno Haible  <bruno@clisp.org>
77878
77879         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77880         Update from GNU gettext 0.14.3.
77881
77882 2005-03-10  Jim Meyering  <jim@meyering.net>
77883
77884         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77885
77886 2005-03-10  Jim Meyering  <jim@meyering.net>
77887
77888         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77889         so that this module works on systems without fchdir.
77890
77891 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77892
77893         Factor int-properties macros into a single file, except for
77894         glibc-related files.
77895         * lib/intprops.h: New file.
77896         * lib/getloadavg.c: Include it instead of limits.h.
77897         (INT_STRLEN_BOUND): Remove.
77898         * lib/human.c: Include intprops.h.
77899         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77900         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77901         302/1000.
77902         * lib/inttostr.h: Include intprops.h instead of limits.h.
77903         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77904         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77905         for consistency with intprops.h.
77906         (time_t_is_integer, twos_complement_arithmetic): Use them.
77907         * lib/sig2str.h: Include <signal.h>, intprops.h.
77908         (INT_STRLEN_BOUND): Remove.
77909         * lib/strftime.c (TYPE_SIGNED): Remove.
77910         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77911         * lib/strtol.c: Adjust comments to match intprops.h.
77912         * lib/userspec.c: Include intprops.h.
77913         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77914         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77915         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77916         instead of rolling our own expressions.
77917         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77918
77919         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77920         instead of int.
77921         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77922         the right thing even if adding 1900 would overflow.  Similarly
77923         for tm_mon + 1 and tm_yday + 1.
77924         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77925         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77926         (DO_SIGNED_NUMBER): New macro.
77927         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77928
77929 2005-03-07  Bruno Haible  <bruno@clisp.org>
77930
77931         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77932
77933 2005-03-07  Bruno Haible  <bruno@clisp.org>
77934
77935         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77936
77937 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77938
77939         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77940         (func_import): Only replace files via --import when they have actually
77941         changed.
77942
77943 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77944
77945         * m4/mmap-anon.m4: New file.
77946         * m4/pagealign_alloc.m4: New file.
77947
77948 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77949             Bruno Haible  <bruno@clisp.org>
77950
77951         * modules/pagealign_alloc: New file.
77952         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77953
77954 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77955             Bruno Haible  <bruno@clisp.org>
77956
77957         * lib/pagealign_alloc.h: New file.
77958         * lib/pagealign_alloc.c: New file.
77959
77960 2005-03-03  Bruno Haible  <bruno@clisp.org>
77961
77962         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77963         Use an all-permissive copyright notice, recommended by RMS.
77964
77965 2005-03-02  Bruno Haible  <bruno@clisp.org>
77966
77967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77968         of AIX, the replacement has to be done only after <string.h> is
77969         included, therefore not in config.h. stpncpy.h does the replacement,
77970         and stpncpy.c uses it.
77971
77972 2005-03-02  Bruno Haible  <bruno@clisp.org>
77973
77974         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77975         stpncpy.c uses it.
77976
77977 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77980         The workaround isn't strictly needed for POSIX conformance, and
77981         it's too much of a pain to configure and maintain.  We'll ask
77982         people to fix their kernels instead.
77983         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77984         (NANOSLEEP_BUG_WORKAROUND): Remove.
77985         (xnanosleep): Remove the workaround.
77986
77987 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77990         Reported by Derek Price.
77991         (Include): Add "timespec.h".
77992
77993         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77994
77995 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77998         to detect nanosleep bug.
77999
78000 2005-03-01  Bruno Haible  <bruno@clisp.org>
78001
78002         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78003
78004 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78005
78006         * modules/gethrxtime: New file.
78007         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78008         (Depends-on): Add gethrxtime.
78009         (configure.ac): Add gl_XNANOSLEEP.
78010         (Makefile.am): Remove lib_SOURCES line.
78011
78012 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78015         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78016
78017 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78020         * lib/timespec.h (gettime): Return void, since it always
78021         succeeds now.  All uses changed.
78022         * lib/gettime.c (gettime): Likewise.
78023         [HAVE_NANOTIME]: Prefer nanotime.
78024         Assume gettimeofday succeeds, as POSIX requires.
78025         Assime time () succeeds, since other code already does.
78026         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78027         (timespec_subtract): Remove.
78028         (NANOSLEEP_BUG_WORKAROUND): New constant.
78029         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78030         things considerably.  Use it only on GNU/Linux hosts, since the
78031         workaround shouldn't be needed elsewhere.
78032
78033 2005-02-24  Bruno Haible  <bruno@clisp.org>
78034
78035         * modules/gettext (Files): Add m4/glibc2.m4.
78036
78037 2005-02-24  Bruno Haible  <bruno@clisp.org>
78038
78039         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78040         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78041         * m4/progtest.m4:
78042         Update from GNU gettext 0.14.2.
78043         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78044
78045 2005-02-24  Bruno Haible  <bruno@clisp.org>
78046
78047         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78048         * lib/config.charset: Update from GNU gettext 0.14.2.
78049
78050 2005-02-24  Bruno Haible  <bruno@clisp.org>
78051
78052         * lib/gettext.h: Update from GNU gettext 0.14.2.
78053
78054 2005-02-23  Simon Josefsson  <jas@extundo.com>
78055
78056         * m4/iconvme.m4: New file.
78057
78058 2005-02-23  Jim Meyering  <jim@meyering.net>
78059
78060         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78061         change.
78062         Thanks to Bruno Haible for catching it.
78063
78064 2005-02-22  Simon Josefsson  <jas@extundo.com>
78065
78066         * modules/iconvme: New file.
78067
78068         * MODULES.html.sh: Add iconvme.
78069
78070 2005-02-22  Simon Josefsson  <jas@extundo.com>
78071
78072         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78073
78074 2005-02-22  Simon Josefsson  <jas@extundo.com>
78075
78076         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78077
78078 2005-02-22  Jim Meyering  <jim@meyering.net>
78079
78080         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78081         s/ifndef/ifdef/.
78082
78083 2005-02-20  Neil Conway  <neilc@samurai.com>
78084
78085         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78086         returned by OSX/Darwin if the specified buffer is not large
78087         enough for the hostname.
78088
78089 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78090
78091         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78092         pass it to _help, otherwise the latter coredumps trying to
78093         dereference state.root_argp.
78094
78095 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * modules/chdir-long (Depends-on): Add memrchr.
78098         * modules/memrchr (Files): Add lib/memrchr.h.
78099         (Include): "memrchr.h".
78100
78101 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78102
78103         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78104
78105 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78106
78107         * lib/memrchr.h: New file.
78108         * lib/chdir-long.c: Include it.
78109         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78110         Don't bother including stddef.h.
78111
78112 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78115         inclusion.
78116         Include <sys/types.h>, for dev_t.
78117         (ME_DUMMY, ME_REMOTE): Move from here....
78118         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78119         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78120         Dmitry V. Levin.
78121         Include mountlist.h first, to test the interface.
78122
78123 2005-01-29  Bruno Haible  <bruno@clisp.org>
78124
78125         * lib/progname.c (program_name): Initialize.
78126         Needed when linking statically on MacOS X.
78127
78128 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         Sync from coreutils.
78131         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78132         (Depends-on): Add c-strtod.
78133         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78134
78135 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         Sync from coreutils.
78138         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78139
78140         Remove files that are specific to coreutils.
78141         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78142
78143 2005-01-28  Bruno Haible  <bruno@clisp.org>
78144
78145         * modules/javacomp: New file.
78146         * MODULES.html.sh (Java): Add javacomp.
78147
78148 2005-01-28  Bruno Haible  <bruno@clisp.org>
78149
78150         * m4/javacomp.m4: New file, from GNU gettext.
78151
78152 2005-01-28  Bruno Haible  <bruno@clisp.org>
78153
78154         * lib/javacomp.sh.in: New file, from GNU gettext.
78155         * lib/javacomp.h: New file, from GNU gettext.
78156         * lib/javacomp.c: New file, from GNU gettext.
78157
78158 2005-01-26  Simon Josefsson  <jas@extundo.com>
78159
78160         * lib/gai_strerror.c: Use GPL in header.
78161
78162 2005-01-26  Bruno Haible  <bruno@clisp.org>
78163
78164         * modules/javaexec: New file.
78165         * MODULES.html.sh (Java): Add javaexec.
78166
78167 2005-01-26  Bruno Haible  <bruno@clisp.org>
78168
78169         * m4/javaexec.m4: New file, from GNU gettext.
78170
78171 2005-01-26  Bruno Haible  <bruno@clisp.org>
78172
78173         * lib/javaexec.sh.in: New file, from GNU gettext.
78174         * lib/javaexec.h: New file, from GNU gettext.
78175         * lib/javaexec.c: New file, from GNU gettext.
78176
78177 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78178
78179         * modules/lchown (Depends-on): Remove lchown.h
78180
78181 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78182
78183         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78184         must be defined if the header file was not found, in order
78185         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78186
78187 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78188
78189         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78190         initializers for struct pentry_state.
78191         (__argp_error): Check return value of __asprintf
78192         (__argp_failure): Translate error message
78193
78194         * lib/argp-parse.c: Removed braces around the expansion of N_()
78195
78196 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78197
78198         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78199         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78200         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78201         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78202         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78203         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78204         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78205         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78206         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78207         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78208         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78209         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78210         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78211         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78212         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78213         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78214         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78215         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78216         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78217         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78218         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78219         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78220         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78221         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78222         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78223         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78224         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78225         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78226         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78227         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78228         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78229         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78230         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78231         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78232         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78233         Use an all-permissive copyright notice, recommended by RMS.
78234
78235 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78236
78237         * modules/chdir-long (Depends-on): Remove mempcpy.
78238
78239 2005-01-21  Jim Meyering  <jim@meyering.net>
78240
78241         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78242         same value as for Solaris 9.
78243
78244         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78245         component length.  This included changing the parameter to be
78246         of type `char *' rather than `char const *'.
78247         * lib/chdir-long.h (chdir_long): Update prototype.
78248
78249         * lib/openat.c (fdopendir, fstatat): New functions.
78250         * lib/openat.h: Include headers required for use of DIR and struct
78251         stat.
78252         [AT_SYMLINK_NOFOLLOW]: Define.
78253         (fdopendir, fstatat): Add prototypes.
78254
78255 2005-01-21  Bruno Haible  <bruno@clisp.org>
78256
78257         * modules/classpath: New file.
78258         * MODULES.html.sh (Java): Add classpath.
78259
78260 2005-01-21  Bruno Haible  <bruno@clisp.org>
78261
78262         * lib/classpath.h: New file, from GNU gettext.
78263         * lib/classpath.c: New file, from GNU gettext.
78264
78265 2005-01-20  Simon Josefsson  <jas@extundo.com>
78266
78267         * modules/version-etc-fsf: New file.
78268
78269 2005-01-20  Simon Josefsson  <jas@extundo.com>
78270
78271         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78272         * lib/version-etc.c: Remove version_etc_copyright.
78273         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78274         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78275
78276 2005-01-20  Simon Josefsson  <jas@extundo.com>
78277
78278         * lib/base64.h (isbase64): Add.
78279
78280         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78281         using a unsigned prototype, don't inline.
78282         (base64_decode): Use it.
78283
78284 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78287         it.
78288
78289 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         * lib/save-cwd.c (save_cwd): Remove code to support the case
78292         where fchdir is missing or flaky.
78293
78294 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78297
78298 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78299
78300         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78301         AC_LIBSOURCES now does this.
78302         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78303         with new ullong_max module.
78304
78305 2005-01-19  Bruno Haible  <bruno@clisp.org>
78306
78307         * modules/sh-quote: New file.
78308         * MODULES.html.sh (Executing programs): Add sh-quote.
78309
78310 2005-01-19  Bruno Haible  <bruno@clisp.org>
78311
78312         * lib/sh-quote.h: New file, from GNU gettext.
78313         * lib/sh-quote.c: New file, from GNU gettext.
78314
78315 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78316
78317         Merge from coreutils.
78318         * m4/ullong_max.m4: New file.
78319         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78320         (gl_MACROS): Assume localeconv exists.
78321
78322 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         Merge changes from coreutils, as described below in several
78325         changelogs dated today.
78326
78327         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78328         (O_DIRECTORY): Remove; not needed here, since "." must be
78329         a directory.  All uses removed.
78330         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78331         universal on Suns, and we also need to test for IRIX.
78332         Revamp code to use 'if' rather than '#if'.
78333         Avoid unnecessary comparison of cwd->desc to 0.
78334
78335         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78336         for known valid error numbers rather than observed invalid ones.
78337
78338 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         * modules/ullong_max: New file.
78341
78342         * modules/chdir-long, modules/openat: New files.
78343         * modules/save-cwd (Depends-on): Depend on chdir-long.
78344         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78345
78346 2005-01-18  Jim Meyering  <jim@meyering.net>
78347
78348         Merge from coreutils.
78349         * m4/chdir-long.m4, m4/openat.m4: New files.
78350         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78351         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78352         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78353         is sane and DOES follow symlinks.  Besides, testing 20 different
78354         systems found no broken chown implementations.
78355         Prompted by a change in rsync's copy of this macro.
78356         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78357
78358         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78359
78360         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78361         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78362         NULL-means-set-to-current-time semantics.
78363         Remove temporary file immediately, rather than waiting
78364         for configure's at-exit trap code to do it.
78365
78366 2005-01-18  Jim Meyering  <jim@meyering.net>
78367
78368         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78369
78370         * lib/utimens.c (futimens): Account for the fact that futimes
78371         can also fail with errno == ENOSYS or errno == ENOENT.
78372         Patch from Dmitry V. Levin.
78373
78374         Change the name of the robust chdir function from chdir to chdir_long.
78375         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78376         (restore_cwd): Use chdir_long, not chdir.
78377         * lib/chdir-long.c: Renamed from chdir.c.
78378         * lib/chdir-long.h: Renamed from chdir.h.
78379         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78380         Hurd.
78381
78382 2005-01-18  Bruno Haible  <bruno@clisp.org>
78383
78384         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78385         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78386         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78387         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78388         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78389         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78390         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78391         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78392         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78393         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78394         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78395         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78396         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78397         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78398         Use an all-permissive copyright notice, recommended by RMS.
78399
78400 2005-01-18  Bob Proulx  <bob@proulx.com>
78401
78402         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78403         simplify offsetof() macro construct to avoid compile failure with
78404         native HP-UX 11.0 ANSI C compiler.
78405
78406 2005-01-17  Bruno Haible  <bruno@clisp.org>
78407
78408         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78409         redundant because stpncpy.m4 takes care of it.
78410
78411 2005-01-17  Bruno Haible  <bruno@clisp.org>
78412
78413         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78414
78415 2005-01-17  Bruno Haible  <bruno@clisp.org>
78416
78417         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78418         used.
78419
78420 2005-01-17  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/fwriteerror.h (fwriteerror): Change specification to include
78423         fclose.
78424         * lib/fwriteerror.c: Include <stdbool.h>.
78425         (fwriteerror): At the end, close the file stream. Record whether
78426         stdout was already closed.
78427
78428 2005-01-17  Bruno Haible  <bruno@clisp.org>
78429
78430         * lib/execute.c (environ): Declare if needed.
78431         * lib/pipe.c (environ): Likewise.
78432         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78433
78434 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78435
78436         * modules/argp: Depend on vsnprintf
78437
78438 2005-01-10  Jim Meyering  <jim@meyering.net>
78439
78440         * modules/closeout (Depends-on): Add atexit.
78441
78442 2005-01-06  Bruno Haible  <bruno@clisp.org>
78443
78444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78445
78446 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78449         definitions to be after all include files, to avoid collisions.
78450         Problem reported by Bob Proulx.
78451
78452 2005-01-04  Jim Meyering  <jim@meyering.net>
78453
78454         Changes imported from coreutils.
78455         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78456         as the mkstemp template, use a temporary directory and an
78457         8.3-friendly template to avoid trouble on systems like DJGPP.
78458         Reported by Juan M. Guerrero via Stepan Kasal.
78459         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78460         close. Remove the temporary directory right away, rather than waiting
78461         for configure's at-exit trap code to do it.
78462         Suggestion from Stepan Kasal.
78463
78464 2005-01-01  Simon Josefsson  <jas@extundo.com>
78465
78466         * gnulib-tool: Print #include directives when --import'ing.
78467
78468 2004-12-28  Simon Josefsson  <jas@extundo.com>
78469
78470         * tests/test-base64.c: Include required header files.  Remove
78471         unused variables.
78472
78473 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         * modules/error (Depends-on): Remove gettext.
78476
78477 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78480         not needed.  This removes a dependency on the gettext module.
78481         [defined _LIBC]: Do not include <libintl.h>; not needed.
78482
78483 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78484
78485         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78486         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78487
78488 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78491         HAVE_DECL_STRTOLD.
78492
78493 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * modules/getdate (Depends-on): Remove alloca-opt.
78496
78497 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78500
78501 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78502
78503         * lib/argp-parse.c: Include <stddef.h>.
78504         (alignof, alignto): New macros.
78505         (parser_init): Don't assume that void * is aligned sufficiently
78506         for struct option.
78507
78508         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78509         need to extend the stack.
78510         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78511         large.
78512
78513 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78514
78515         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78516
78517 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78520         (2004-10-24) change.  Apparently this was a false alarm.
78521
78522         * modules/getdate: Depend on alloca-opt, not alloca.
78523
78524 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78525
78526         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78527         Remove now-obsolete comment about AIX.
78528         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78529         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78530         (YYMAXDEPTH): New macro.
78531
78532 2004-12-18  Simon Josefsson  <jas@extundo.com>
78533
78534         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78535
78536 2004-12-18  Bruno Haible  <bruno@clisp.org>
78537
78538         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78539
78540 2004-12-18  Bruno Haible  <bruno@clisp.org>
78541
78542         * lib/fatal-signal.c (fatal_signals): Make non-const.
78543         (init_fatal_signals): New function.
78544         (uninstall_handlers, install_handlers): Ignore signals that were set to
78545         SIG_IGN.
78546         (at_fatal_signal): Call init_fatal_signals.
78547         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78548         SIG_IGN.
78549         Reported by Paul Eggert.
78550
78551 2004-12-18  Bruno Haible  <bruno@clisp.org>
78552
78553         * doc/alloca.texi: New file.
78554         * doc/alloca-opt.texi: New file.
78555
78556 2004-12-17  Jim Meyering  <jim@meyering.net>
78557
78558         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78559         Otherwise, install-sh could exit with improper exit status when
78560         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78561
78562 2004-12-16  Simon Josefsson  <jas@extundo.com>
78563
78564         * tests/test-base64.c: Add license.
78565
78566 2004-12-15  Stepan Kasal  <address@hidden>
78567
78568         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78569
78570 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * modules/getcwd (Files): Add m4/d-ino.m4.
78573         Suggested by Mark D. Baushke.
78574
78575 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78576
78577         * lib/getdate.y (textint): New member "negative".
78578         (time_zone_hhmm): New function.
78579         Expect 14 shift-reduce conflicts, not 13.
78580         (o_colon_minutes): New rule.
78581         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78582         (yylex): Set the "negative" member of signed numbers.
78583
78584 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * doc/getdate.texi (Time of day items, Time zone items):
78587         Describe new formats +00:00, UTC+00:00.
78588
78589 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78590
78591         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78592         spurious "-l"s.  Problem reported by Stepan Kasal.
78593
78594 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78595
78596         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78597         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78598
78599 2004-12-04  Simon Josefsson  <jas@extundo.com>
78600
78601         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78602         Vandoorselaere <yoann@prelude-ids.org>.
78603
78604 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         Changes imported from coreutils.
78607         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78608         exist.
78609         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78610
78611 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78612
78613         Changes imported from coreutils.
78614         * lib/hard-locale.c: Assume <locale.h> exists.
78615         Include "strdup.h".
78616         (GLIBC_VERSION): New macro.
78617         (hard_locale): Assume setlocale exists.
78618         Rewrite to avoid #ifdef.
78619         Use strdup rather than malloc + strcpy.
78620         * lib/human.c: Assume <locale.h> exists.
78621         (human_readable): Assume localeconv exists.
78622
78623 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78624
78625         * modules/hard-locale (Depends-on): Add strdup.
78626
78627 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78628
78629         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78630         convert T2, not T.  (Imported from libc.)
78631
78632 2004-11-30  Simon Josefsson  <jas@extundo.com>
78633
78634         * modules/restrict (License): Change to LGPL.
78635
78636 2004-11-30  Simon Josefsson  <jas@extundo.com>
78637
78638         * m4/restrict.m4: Add copyright and copying conditions.
78639
78640 2004-11-30  Simon Josefsson  <jas@extundo.com>
78641
78642         * m4/base64.m4: New file.
78643
78644 2004-11-30  Simon Josefsson  <jas@extundo.com>
78645
78646         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78647         base64.
78648
78649         * tests/test-base64.c: New file.
78650
78651         * modules/base64: New file.
78652
78653 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78656         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78657
78658         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78659
78660 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78663         (__getcwd.c): Don't restore errno; glibc doesn't.
78664         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78665         first, falling back to our code only if its results look suspicious.
78666         Ensure that the resulting buffer is only as large as necessary.
78667
78668         * lib/readutmp.c: Include readutmp.h first.
78669         Include <errno.h>, since readutmp.h no longer does that.
78670         * lib/readutmp.h: Don't include <errno.h>,
78671         <sys/param.h>, <time.h>; not needed to establish interface.
78672         (errno): Remove decl.
78673         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78674         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78675         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78676
78677 2004-11-28  Simon Josefsson  <jas@extundo.com>
78678
78679         * lib/base64.h, base64.c: New file.
78680
78681 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78682
78683         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78684
78685 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78688         (Depends-on): Remove pathmax, same.  Add mempcpy.
78689         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78690         (Makefile.am): Append getcwd.h to lib_SOURCES.
78691         (Include): Add getcwd.h.
78692         (Maintainer): Change from Jim Meyering to "all, glibc",
78693         since getdate now uses intended-for-glibc code.
78694         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78695         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78696
78697 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78700         HP's ANSI C compiler.
78701         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78702         Declaring int functions causes warnings on some modern systems and
78703         shouldn't be needed to compile on ancient ones.
78704         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78705         defined.
78706
78707         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78708         with the following changes.
78709         (__set_errno): Parenthesize properly.
78710         Include <stdbool.h>.
78711         (MIN, MAX, MATCHING_INO): New macros.
78712         (__getcwd): Define with prototype, not K&R form.
78713         Use heuristics to allocate default buffer on stack if possible.
78714         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78715         behavior, and to avoid the PATH_MAX limit when computing
78716         ../../../../...
78717         Use MATCHING_INO to compare inode number to file.
78718         Check for arithmetic overflow in size calculations.
78719         Fix bug in reallocation of dot array that caused getcwd to fail
78720         on directories nested deeper than 75.
78721         Be more careful about saving errno on error.
78722         Do not use realloc; use only free+malloc, as this is a bit
78723         more flexible and avoids a needless copy operation.
78724         Do not inspect st_dev and st_ino for symbolic links; POSIX
78725         doesn't specify the latter.
78726         Check for closedir errors.
78727         Avoid needless casts.
78728         Use "#ifdef weak_alias" around weak_alias, to be like other
78729         glibc code.
78730         The following changes to getcwd.c have effect only when used in
78731         gnulib; they have no effect inside glibc proper.
78732         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78733         as alloca isn't used.
78734         (alloca, __alloca): Likewise.
78735         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78736         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78737         unconditionally, as gnulib assumes C89 or better.
78738         Do not include <sys/param.h>.
78739         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78740         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78741         better.
78742         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78743         Include <dirent.h> in a way that is compatible with modern Autoconf.
78744         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78745         New macros, if not already defined.
78746         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78747         Use "_LIBC", not "defined _LIBC", for consistency.
78748         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78749         a mempcpy module.
78750         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78751         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78752         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78753         credit only to Jim Meyering and adjust the copyright dates.
78754         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78755         <stdlib.h>, <unistd.h>, "pathmax.h".
78756         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78757         (INITIAL_BUFFER_SIZE): Remove.
78758         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78759
78760 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78763         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78764         Use the _ONCE methods, for efficiency.
78765         Check for fcntl.h.  In test program, include <errno.h>
78766         and <fcntl.h> if available.  Remove old K&R cruft from
78767         test program.  Check for common errors in GNU/Linux,
78768         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78769         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78770         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78771         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78772         name accordingly.
78773         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78774         accommodate new getcwd.c.
78775         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78776         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78777         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78778         that's all we need now.
78779
78780 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78781
78782         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78783         argp-parse.c depends on getopt internals, that means we should
78784         always use our getopt, to be on the safe side.
78785         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78786         order not to spoil the result of an eventual previous invocation
78787         of gl_GETOPT_SUBSTITUTE.
78788
78789 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78790
78791         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78792         redefinition warnings. To avoid them, include the defines
78793         in `#if !defined __need_getopt ... #endif'. The only place
78794         where __getopt_argv_const is used is in definitions
78795         of getopt_long and getopt_long_only below, which are as well
78796         protected by `#ifndef __need_getopt'.
78797         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78798         __need_getopt after including <stdio.h> and <unistd.h> These
78799         headers might have defined it.
78800
78801 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78802
78803         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78804
78805 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78808         (futimens): New function, which uses futimes if available.
78809         (futimens, utimens): Support timespec==NULL, with same semantics
78810         as utime and utimens.
78811         * lib/utimens.h (futimens): New decl.
78812
78813 2004-11-23  Jim Meyering  <jim@meyering.net>
78814
78815         * lib/getopt_.h: Remove trailing blanks.
78816
78817 2004-11-23  Jim Meyering  <jim@meyering.net>
78818
78819         * lib/__fpending.c: Add comment.
78820
78821 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * modules/canonicalize (Depends-on): Add xreadlink.
78824         Problem reported by James Youngman.
78825
78826 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78827
78828         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78829         New macros.
78830         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78831         optopt): Use them instead of invoking ## directly; otherwise, the
78832         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78833
78834 2004-11-19  Bruno Haible  <bruno@clisp.org>
78835
78836         * lib/strtok_r.c: Move comments from here...
78837         * lib/strtok_r.h: ... to here.
78838
78839 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78842         implementations that mishandle size_t overflow.
78843
78844 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78847         might fail.  Problem reported by Yoann Vandoorselaere.
78848         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78849         implementations that mishandle size_t overflow.
78850
78851 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         * modules/canon-host (Depends-on): Add strdup.
78854
78855 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78858
78859 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78860
78861         * lib/canon-host.c: Include "strdup.h".
78862         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78863         Use strdup instead of malloc/strcpy to duplicate strings.
78864
78865         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78866         (human_space_before_unit): New constant.
78867         * lib/human.c (human_readable): Support it.
78868
78869         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78870         (xgetcwd): Set errno correctly when failing.
78871         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78872         the failure is actually due to a PATH_MAX problem.
78873
78874         Further getopt changes to make it more likely that glibc will
78875         buy the changes back.
78876         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78877         (getopt): Use it, so to preserve glibc semantic
78878         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78879         when compiling for libc.
78880         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78881         (getopt_long, getopt_long_only): Use it.
78882
78883         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78884         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78885         (getopt): Argv is now char * const *, as per standard.
78886         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78887         not char *__getopt_argv_const *.
78888         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78889         _getopt_long_only_r): Likewise.
78890         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78891         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78892         _getopt_long_r, _getopt_long_only_r): Likewise.
78893         * lib/getopt_.h (__getopt_argv_const): Remove.
78894         (getopt): Argv is now char * const *, as per standard.
78895
78896         * lib/getdate.y (tORDINAL): New token.
78897         (day, relunit): Allow it for relative times.
78898         (relative_time_table): Use tORDINAL for ordinals.
78899
78900 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78903         Document that "second" isn't allowed as an ordinal number.
78904
78905 2004-11-16  Jim Meyering  <jim@meyering.net>
78906
78907         * modules/closeout (Depends-on): Add fpending.
78908
78909 2004-11-15  Jim Meyering  <jim@meyering.net>
78910
78911         * lib/closeout.c: Include "__fpending.h" once again.
78912         Include <stdbool.h>.
78913         (close_stdout): Don't fail just because stdout was closed initially,
78914         since some programs don't write to stdout in the normal course of
78915         operation (other than --version and --help), and we don't want this
78916         function to make e.g. `touch file >&-' fail.
78917         But do fail if it was closed and someone has tried to write to it.
78918         E.g., `printf foo >&-' must fail.
78919
78920 2004-11-13  Jim Meyering  <jim@meyering.net>
78921
78922         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78923
78924 2004-11-12  Simon Josefsson  <jas@extundo.com>
78925
78926         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78927         small doc fix is still pending.
78928
78929 2004-11-11  Simon Josefsson  <jas@extundo.com>
78930
78931         * modules/strtok_r: New file.
78932
78933         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78934         strtok_r.
78935
78936 2004-11-11  Simon Josefsson  <jas@extundo.com>
78937
78938         * m4/strtok_r.m4: New file.
78939
78940         * m4/getopt.m4: Replace opterr.
78941
78942 2004-11-11  Simon Josefsson  <jas@extundo.com>
78943
78944         * lib/strtok_r.h, strtok_r.c: New file.
78945
78946 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78947
78948         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78949         of replacing opterr, getopt, etc.  This should handle the
78950         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78951
78952 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78955         we can stop lying to compilers about the constness of argv when we
78956         are compiled outside glibc.
78957         (getopt, getopt_long, getopt_long_only): Use it.
78958         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78959         _getopt_internal, getopt): Likewise.
78960         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78961         _getopt_long_only_r): Likewise.
78962         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78963         _getopt_long_r, _getopt_long_only_r): Likewise.
78964
78965         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78966         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78967         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78968         the other external symbols.
78969         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78970         declaration, since the above renaming now works around collisions.
78971
78972 2004-11-11  Jim Meyering  <jim@meyering.net>
78973
78974         * lib/linebreak.c: Remove trailing blanks.
78975         * lib/alloca_.h: Likewise.
78976         * lib/acosl.c: Likewise.
78977         * lib/euidaccess.c: Likewise.
78978         * lib/allocsa.h: Likewise.
78979
78980 2004-11-10  Simon Josefsson  <jas@extundo.com>
78981
78982         * m4/getaddrinfo.m4: New file.
78983
78984 2004-11-10  Simon Josefsson  <jas@extundo.com>
78985
78986         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78987
78988 2004-11-10  Simon Josefsson  <jas@extundo.com>
78989
78990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78991         getaddrinfo.
78992
78993         * modules/getaddrinfo: New file.
78994
78995 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78998
78999 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * lib/mktime.c (SHR): New macro, which is a portable
79002         substitute for >> that should work even on Crays.
79003         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79004         Problem reported by Mark D. Baushke in
79005         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79006         * lib/getdate.y (SHR): Likewise.
79007         (tm_diff): Use it.
79008         * lib/strftime.c (SHR): Likewise.
79009         (tm_diff): Use it.
79010         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79011         quote_these_too, so that right shifts are well defined.  All uses
79012         changed.
79013
79014 2004-11-10  Jim Meyering  <jim@meyering.net>
79015
79016         Ensure that no close failure goes unreported.
79017         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79018         return early when it seems there's nothing to flush.
79019         Don't include __fpending.h.
79020
79021 2004-11-10  Jim Meyering  <jim@meyering.net>
79022
79023         * modules/closeout (Depends-on): Remove fpending.
79024
79025 2004-11-10  Jim Meyering  <jim@meyering.net>
79026
79027         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79028
79029 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79030
79031         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79032         gl_FUNC_STRFTIME.
79033         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79034         and AC_REQUIRE when possible, to avoid duplicate checks.
79035         Check for <wchar.h>.
79036
79037 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79040
79041 2004-11-09  Bruno Haible  <bruno@clisp.org>
79042
79043         * m4/sockpfaf.m4: New file.
79044
79045 2004-11-05  Bruno Haible  <bruno@clisp.org>
79046
79047         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79048         Reported by Mark D. Baushke <mdb@cvshome.org>.
79049
79050 2004-11-04  Bruno Haible  <bruno@clisp.org>
79051
79052         2004-09-11  Bruno Haible  <bruno@clisp.org>
79053                 * allocsa.valgrind: New file.
79054         2004-02-06  Bruno Haible  <bruno@clisp.org>
79055                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79056                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79057                 Reported by Christopher Seip <chris.seip@hp.com>.
79058
79059 2004-11-04  Bruno Haible  <bruno@clisp.org>
79060
79061         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79062         (Makefile.am): Distribute it.
79063
79064 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79067         with errno == ERANGE if the buffer is too small.
79068         Problem reported by Mark D. Baushke.
79069
79070 2004-11-03  Albert Chin  <china@thewrittenword.com>
79071             Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79074         equivalent, substitute $ac_type for equivalent type rather than
79075         blindly using uint32_t *always* which won't work if uint32_t is not
79076         available.  Define _UINT32_T to work around typedef of uint32_t if
79077         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79078         2.5.1.
79079
79080 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * m4/jm-macros.m4: Sync from coreutils.
79083         (gl_MACROS): Check for mbrlen, for pathchk.
79084         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79085
79086 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * lib/xreadlink.c (MAXSIZE): New macro.
79089         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79090         size does not exceed MAXSIZE.  Avoid cast.
79091         As suggested by Mark D. Baushke in
79092         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79093         if readlink fails with buffer size just under MAXSIZE, try again
79094         with MAXSIZE.
79095
79096 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79099
79100 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79101         and  Paul Eggert  <eggert@cs.ucla.edu>
79102
79103         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79104         (get_date): Overparenthesize to avoid GCC warning.
79105
79106 2004-11-02  Bruno Haible  <bruno@clisp.org>
79107
79108         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79109         returns void.
79110
79111 2004-11-02  Bruno Haible  <bruno@clisp.org>
79112
79113         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79114         function returns void.
79115
79116 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79117
79118         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79119         fflush_unlocked, flockfile, funlockfile, funlockfile,
79120         fputs_unlocked, putc_unlocked.
79121
79122 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79123
79124         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79125         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79126         already declared.
79127
79128 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * modules/getdate (Files): Add doc/getdate.texi.
79131         (Depends-on): Add setenv, xalloc.
79132
79133 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         * lib/getdate.y: Add support for TZ="foo" within a date string.
79136         Fix some bugs near time_t boundaries.  Reject dates with
79137         out-of-range components, e.g., "Sept 31".
79138         Include <stdlib.h>, "setenv.h", "xalloc.h".
79139         (ISDIGIT_LOCALE): Remove; unused.
79140         Note that the TZ and time functions used here are not reentrant.
79141         (mktime_ok, get_tz): New functions.
79142         (TZBUFSIZE): New constant.
79143         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79144         This requires that we sometimes generate our own TZ="XXX..." setting.
79145
79146 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         * doc/getdate.texi: New file, from coreutils with modifications for
79149         the new TZ parsing.
79150
79151 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79152
79153         * lib/mktime.c (not_equal_tm): Remove redundant check.
79154
79155 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79156
79157         * modules/regex (lib_SOURCES): Add regex.c.
79158         Reported by James Youngman in
79159         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79160
79161 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79162
79163         * lib/getdate.y: Use Bison 1.875 features, and some minor
79164         code cleanups.  This change does not affect semantics.
79165         Don't include <stdlib.h>; no longer needed.
79166         Don't include unlocked-io.h; only the "#if TEST" code uses
79167         stdio, and performance isn't crucial there.
79168         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79169         Bison 1.875 features as described below.
79170         All uses of "PC." replaced by "pc->".
79171         (YYSTYPE): Add a forward declaration.
79172         (yylex, yyerror): Use full prototypes in forward decls.
79173         Use "%pure-parser" rather than obsolescent "%pure_parser".
79174         Use %parse-param and %lex-param instead of obsolescent
79175         YYPARSE_PARAM and YYLEX_PARAM.
79176         (meridian_table, month_and_day_table, time_units_table,
79177         relative_time_table, time_zone_table, military_table,
79178         lookup_zone, lookup_word, get_date):
79179         Use NULL instead of 0 where appropriate.
79180         (to_hour): Avoid abort (), to avoid a dependency on
79181         stdlib.h.
79182         (yyerror, yylex): Now accepts parser_control * arg.
79183         (main) [TEST]: Use '\0' rather than 0 for char.
79184
79185 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79188
79189 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79192         It's now the caller's responsibility to handle the case where
79193         !HAVE_GETPAGESIZE && !defined getpagesize.
79194
79195         * lib/mktime.c (leapyear): Arg is long int, not int.
79196
79197 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79198
79199         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79200
79201 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79204         missing.  Problem reported by James Youngman.
79205
79206 2004-10-16  Simon Josefsson  <jas@extundo.com>
79207
79208         * gnulib-tool: Fix comments.  Fix parse problem.
79209         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79210
79211 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79212
79213         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79214         implementation of getopt_long.  Problem reported by Alexander Taler in:
79215         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79216
79217 2004-10-15  Bruno Haible  <bruno@clisp.org>
79218
79219         * gnulib-tool: Untabify. Initialize supplied_libname.
79220         (func_usage): More homogenous output.
79221         (func_modules_transitive_closure, func_modules_to_filelist,
79222         func_emit_lib_Makefile_am): New functions.
79223         (func_import): New function, extracted from big case statement. Use
79224         func_get_license, func_modules_transitive_closure,
79225         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79226         opt_lgpl. Don't use test -a, as it's not portable.
79227         (func_create_testdir): Use func_modules_transitive_closure,
79228         func_modules_to_filelist, func_emit_lib_Makefile_am.
79229
79230 2004-10-15  Bruno Haible  <bruno@clisp.org>
79231
79232         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79233
79234 2004-10-15  Bruno Haible  <bruno@clisp.org>
79235
79236         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79237         the portions belonging to each module.
79238         Suggested by Derek Robert Price <derek@ximbiot.com>.
79239
79240 2004-10-12  Simon Josefsson  <jas@extundo.com>
79241
79242         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79243         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79244         to real functions.
79245
79246 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79247
79248         * modules/vsnprintf: New file.
79249
79250 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79251
79252         * m4/vsnprintf.m4: New file.
79253
79254 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79255
79256         * lib/vsnprintf.h: New file.
79257         * lib/vsnprintf.c: New file.
79258
79259 2004-10-11  Bruno Haible  <bruno@clisp.org>
79260
79261         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79262         vsnprintf.
79263
79264 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79265
79266         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79267
79268 2004-10-07  Bruno Haible  <bruno@clisp.org>
79269
79270         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79271         fits into the provided buffer.
79272
79273 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * lib/diacrit.c, diacrit.h: Add GPL notice.
79276
79277         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79278         notice.
79279         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79280         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79281         This avoids a potential constant-folding bug.
79282
79283 2004-10-05  Bruno Haible  <bruno@clisp.org>
79284
79285         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79286         for the declaration of strsep.
79287
79288 2004-10-05  Bruno Haible  <bruno@clisp.org>
79289
79290         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79291
79292 2004-10-04  Simon Josefsson  <jas@extundo.com>
79293
79294         * modules/memmem: New file.
79295         * tests/test-memmem.c: New file.
79296         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79297
79298 2004-10-04  Simon Josefsson  <jas@extundo.com>
79299
79300         * m4/memmem.m4: New file.
79301
79302 2004-10-04  Simon Josefsson  <jas@extundo.com>
79303
79304         * lib/memmem.h: New file.
79305         * lib/memmem.c: New file, taken from glibc.
79306
79307 2004-10-04  Simon Josefsson  <jas@extundo.com>
79308
79309         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79310         '#ifdef USE_UNLOCKED_IO'.
79311
79312 2004-10-04  Simon Josefsson  <jas@extundo.com>
79313
79314         * config/srclist.txt: Add memmem from glibc.
79315
79316 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79319
79320         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79321         modules/exclude, modules/getdate, modules/getline,
79322         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79323         modules/getusershell, modules/linebuffer, modules/md5,
79324         modules/mountlist, modules/posixtm, modules/readtokens,
79325         modules/readutmp, modules/regex, modules/sha1,
79326         modules/version-etc, modules/yesno:
79327         Remove dependency on unlocked-io.
79328
79329 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79332
79333         * m4/unlocked-io.m4: Add copyright notice.
79334         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79335
79336 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79339         * lib/xmalloc.c (xmemdup): Likewise.
79340         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79341         XFREE): Remove these long-obsolescent macros.
79342         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79343         * lib/xstrdup.c: Remove.
79344
79345         * lib/regex.c (re_comp): Cast gettext return value to char *,
79346         Problem reported by Martin Neitzel via Mark D. Baushke.
79347
79348 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79351         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79352         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79353         regex.c, sha1.c, version-etc.c, yesno.c:
79354         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79355         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79356         the includer's responsibility.
79357
79358         Sync from coreutils.
79359
79360         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79361         points to the start of a string, as the C Standard says the
79362         resulting behavior is undefined.
79363
79364         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79365         simple -> simple_backups, numbered_existing ->
79366         numbered_existing_backups, numbered -> numbered_backups
79367         to avoid shadowing problems.  All uses changed.
79368         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79369         * lib/backupfile.c (check_extension, numbered_backup):
79370         Rename locals to avoid shadowing 'basename'.
79371         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79372         once.
79373
79374         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79375         * lib/.cvsignore: Add getopt.h.
79376
79377 2004-10-04  Bruno Haible  <bruno@clisp.org>
79378
79379         * modules/README: New file.
79380         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79381         not a module.
79382
79383 2004-10-02  Jim Meyering  <jim@meyering.net>
79384
79385         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79386
79387 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79388
79389         * modules/strsep: New file.
79390
79391 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79392
79393         * m4/strsep.m4: New file.
79394
79395 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79396
79397         * lib/strsep.h: New file.
79398         * lib/strsep.c: New file.
79399
79400 2004-10-01  Simon Josefsson  <jas@extundo.com>
79401
79402         * lib/snprintf.c (snprintf): Handle size==0.
79403
79404 2004-10-01  Simon Josefsson  <jas@extundo.com>
79405             Bruno Haible  <bruno@clisp.org>
79406
79407         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79408         (snprintf): Declare 'args'.
79409
79410 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * lib/snprintf.c: Remove comments as to why each header is needed.
79413
79414 2004-10-01  Bruno Haible  <bruno@clisp.org>
79415
79416         * MODULES.html.sh: Add strsep.
79417
79418 2004-09-30  Simon Josefsson  <jas@extundo.com>
79419
79420         * modules/snprintf: New file.
79421
79422 2004-09-30  Simon Josefsson  <jas@extundo.com>
79423
79424         * m4/snprintf.m4: New file.
79425
79426 2004-09-30  Simon Josefsson  <jas@extundo.com>
79427
79428         * lib/snprintf.h, lib/snprintf.c: New files.
79429
79430 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79431
79432         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79433         (hol_entry_help): Never translate an empty string.
79434         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79435         * lib/argp.h (OPTION_NO_TRANS): New option.
79436
79437 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79438
79439         * modules/argp (Maintainer): Replace Simon Josefsson
79440         by Sergey Poznyakoff.
79441
79442 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79443
79444         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79445         changes merged back into glibc.
79446
79447 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79450
79451 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79452
79453         * lib/xvasprintf.c: Include xalloc.h.
79454         (xvasprintf): Use xalloc_die, not xmalloc_die.
79455
79456 2004-09-29  Bruno Haible  <bruno@clisp.org>
79457
79458         * modules/alloca-opt: New file, derived from modules/alloca.
79459         * modules/allocsa: Depend on alloca-opt instead of alloca.
79460         * modules/setenv: Likewise.
79461         * modules/vasnprintf: Likewise.
79462         * MODULES.html.sh: Add alloca-opt.
79463
79464 2004-09-28  Simon Josefsson  <jas@extundo.com>
79465
79466         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79467         LGPL, and to replace license template from GPL to LGPL.
79468
79469 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * modules/dummy: Change license to LGPL.
79472
79473 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79476
79477 2004-09-24  Simon Josefsson  <jas@extundo.com>
79478
79479         * modules/minmax (License): Change from GPL to LGPL.
79480
79481 2004-09-23  Simon Josefsson  <jas@extundo.com>
79482
79483         * gnulib-tool (--import): Typo.
79484
79485 2004-09-23  Simon Josefsson  <jas@extundo.com>
79486
79487         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79488
79489 2004-09-22  Bruno Haible  <bruno@clisp.org>
79490
79491         * modules/*: Add 'License' field.
79492         * gnulib-tool: Accept --extract-license option.
79493         (func_get_license): New function.
79494
79495 2004-09-21  Bruno Haible  <bruno@clisp.org>
79496
79497         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79498         Reported by Simon Josefsson.
79499
79500 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79501
79502         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79503         gl_AC_TYPE_LONG_LONG.
79504
79505 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79508
79509 2004-09-18  Simon Josefsson  <jas@extundo.com>
79510         and  Paul Eggert  <eggert@cs.ucla.edu>
79511
79512         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79513         calls with autoreconf.  Define GL_LIB.
79514
79515 2004-09-14  Karl Berry  <karl@gnu.org>
79516
79517         * config/srclist.txt: unsync setenv.c, sigh.
79518
79519 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79520
79521         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79522         Problem reported by Bruno Haible in:
79523         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79524
79525 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79526
79527         * config/srclist.txt: Comment out argp-pvh.c.
79528
79529 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79532         in case some system header has #define'd it.  Problem reported by
79533         Soeren D. Schulze in
79534         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79535
79536 2004-09-09  Karl Berry  <karl@gnu.org>
79537
79538         * regex.[ch]: delete from the root.  These were supposed to be
79539                 synced with emacs cvs, but this has not happened for about
79540                 a year, and anyway nothing else uses emacs regex.[ch].
79541                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79542                 lib/regex[.ch] is untouched.
79543
79544 2004-09-09  Bruno Haible  <bruno@clisp.org>
79545
79546         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79547
79548 2004-09-09  Bruno Haible  <bruno@clisp.org>
79549
79550         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79551         modifications.
79552         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79553
79554 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79555
79556         * modules/xvasprintf: New file.
79557         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79558
79559 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79560
79561         * lib/xvasprintf.h: New file.
79562         * lib/xvasprintf.c: New file.
79563         * lib/xasprintf.c: New file.
79564
79565 2004-09-08  Bruno Haible  <bruno@clisp.org>
79566
79567         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79568
79569 2004-09-08  Bruno Haible  <bruno@clisp.org>
79570
79571         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79572         length is > INT_MAX.
79573         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79574         more.
79575
79576 2004-09-08  Bruno Haible  <bruno@clisp.org>
79577
79578         * lib/stdint_.h: New file, taken from GNU clisp.
79579
79580 2004-09-08  Bruno Haible  <bruno@clisp.org>
79581             Oskar Liljeblad  <oskar@osk.mine.nu>
79582
79583         * modules/stdint: New file.
79584         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79585
79586 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         Import from coreutils.
79589         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79590         strings on unbounded length.  alloca's performance benefits aren't
79591         that important here.
79592         (V_STRDUP): Remove.
79593         (parse_with_separator): New function, with most of the internals
79594         of the old parse_user_spec.  Allow user to omit both user and group,
79595         for compatibility with FreeBSD.
79596         Clone only the user name, not the entire spec.
79597         Do not set *uid, *gid unless entirely successful.
79598         Avoid memory leak in some failing cases.
79599         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79600         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79601         (parse_user_spec): Rewrite to use parse_with_separator.
79602
79603 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * modules/userspec: Don't depend on alloca.
79606
79607 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79610
79611 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79612
79613         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79614         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79615         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79616
79617 2004-08-16  Simon Josefsson  <jas@extundo.com>
79618
79619         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79620         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79621         Add --dry-run for --import.
79622         Let user provided command line parameters override configure.ac
79623         settings.
79624
79625 2004-08-12  Simon Josefsson  <jas@extundo.com>
79626
79627         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79628         as discussed with Paul Eggert in threads rooted at
79629         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79630         and
79631         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79632         Before, the test was empty, and relied on ELIDE_CODE in source
79633         code.)
79634         (gl_PREREQ_GETOPT): New macro.
79635         (gl_GETOPT): Use them.
79636
79637 2004-08-12  Simon Josefsson  <jas@extundo.com>
79638
79639         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79640         * lib/getopt_.h: Renamed from getopt.h.
79641
79642 2004-08-12  Simon Josefsson  <jas@extundo.com>
79643
79644         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79645         Change default library name from libfoo to libgnu.
79646         Now, if you have a configure.ac that says:
79647                 gl_SOURCE_BASE(gl)
79648                 gl_M4_BASE(gl/m4)
79649                 gl_MODULES(error getopt etcetera)
79650                 gl_INIT
79651         you can import all you need by running:
79652                 ../gnulib/gnulib-tool --import
79653
79654         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79655         (Makefile.am): Rewrite, use logic from argz.
79656         (Include): Use <getopt.h> instead of "getopt.h".
79657
79658 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * modules/argp (Files): Add m4/unlocked-io.m4.
79661         (Depends-on): Add extensions.
79662
79663 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79666         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79667         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79668         Check for program_invocation_name, program_invocation_short_name,
79669         flockfile, funlockfile, features.h, _getopt_long_only_r.
79670
79671 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79672
79673         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79674         its complicated substitute.
79675         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79676         and program_invocation_name.
79677         (__argp_basename) [!_LIBC]: Remove; the only use was
79678         replaced by its body.
79679         (__argp_short_program_name): Change condition from
79680         !defined __argp_short_program_name to
79681         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79682         to match argp-namefrob.h.
79683         (__argp_failure): Don't assume strerror_r returns char *.
79684         * lib/argp-parse.c (N_): Define unconditionally.
79685         (argp_default_options): Fill out initializers with 0 to avoid
79686         gcc warnings.
79687
79688 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79689
79690         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79691         getopt1.c.
79692
79693 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         Merge from coreutils.
79696
79697         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79698
79699         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79700         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79701
79702 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         Merge from coreutils.
79705
79706         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79707         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79708         for Reliant Unix 5.43.
79709
79710         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79711         (union fooround): Use uintmax_t, not long int.
79712         The rest is a merge from libc:
79713         [defined _LIBC]: Include <shlib-compat.h>.
79714         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79715
79716         * lib/settime.c (settime): Recode to avoid warning with
79717         Sun Forte C 6U2.
79718
79719         * lib/strverscmp.c: Convert to UTF-8.
79720
79721 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79724         m4/uintmax_t.m4.
79725
79726 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * modules/xalloc-die: New file.
79729         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79730
79731         * modules/md5 (Files): Add m4/uint32_t.m4.
79732         * modules/sha1: Renamed from modules/sha.
79733         (Files):
79734         Rename lib/sha.h to lib/sha1.h.
79735         Rename lib/sha.c to lib/sha1.c.
79736         Rename m4/sha.m4 to m4/sha1.m4.
79737         (lib_SOURCES): Likewise.
79738         (configure.ac): Rename gl_SHA to gl_SHA1.
79739         (Include): sha.h -> sha1.h.
79740
79741 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79744         * m4/sha1.m4: Renamed from sha.m4.
79745         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79746
79747 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79748
79749         * lib/obstack.h (obstack_empty_p):
79750         Don't assume that chunk->contents is suitably aligned.
79751         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79752         Likewise. Problem reported by Benno in
79753         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79754
79755         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79756         readable.  This could be improved further but it'd take some work.
79757
79758 2004-08-08  Simon Josefsson  <jas@extundo.com>
79759
79760         * modules/xgethostname (Depends-on): Remove exit and error (not
79761         used).
79762
79763         * modules/getpass-gnu: Add getpass.h.
79764         (Depends-on): Add stdbool.
79765         * modules/getpass: Add getpass.h.
79766
79767 2004-08-08  Simon Josefsson  <jas@extundo.com>
79768
79769         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79770         Check getpass declaration.
79771
79772 2004-08-08  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/xgethostname.c: Don't include error.h (not used).
79775
79776         * lib/getpass.h: Add.
79777         * lib/getpass.c: Include getpass.h first.
79778
79779 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * lib/xalloc-die.c: New file.
79782         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79783         All uses removed.
79784         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79785         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79786         xalloc-die.c.
79787         (_, N_, xalloc_die): Move to xalloc-die.c.
79788         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79789         so that we needn't mess with xalloc_msg_memory_exhausted.
79790
79791         * lib/sha1.h: Renamed from sha.h.
79792         (SHA1_H): Renamed from _SHA_H.
79793         (sha1_ctx): Renamed from sha_ctx.
79794         (sha1_init_ctx): Renamed from sha_init_ctx.
79795         (sha1_process_block): Renamed from sha_process_block.
79796         (sha1_process_bytes): Renamed from sha_process_bytes.
79797         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79798         (sha1_read_ctx): Renamed from sha_read_ctx.
79799         (sha1_stream): Renamed from sha_stream.
79800         (sha1_buffer): Renamed from sha_buffer.
79801         * lib/sha1.c: Likewise; renamed from sha.c.
79802         Do not include <sys/types.h>.
79803         Include <stddef.h> rather than <stdlib.h>.
79804
79805 2004-08-08  Bruno Haible  <bruno@clisp.org>
79806
79807         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79808         FILESYSTEM_PREFIX_LEN.
79809         * lib/progreloc.c: Likewise.
79810         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79811
79812 2004-08-06  Simon Josefsson  <jas@extundo.com>
79813
79814         * modules/progname (Depends-on): Don't depend on stdbool.
79815
79816 2004-08-06  Simon Josefsson  <jas@extundo.com>
79817
79818         * modules/getsubopt: New file.
79819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79820         getsubopt.
79821
79822 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79823
79824         More merge from coreutils.
79825
79826         * m4/utimens.m4, m4/utimecmp.m4: New files.
79827         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79828         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79829         prereq.m4, sha.m4: Import changes from coreutils.
79830
79831 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         More merge from coreutils.
79834         * modules/raise, modules/readtokens0, modules/utimens:
79835         * modules/utimecmp, module/xnanosleep: New files.
79836         * modules/strftime: Add lib/strftime.h.
79837         Change include from <time.h> to "strftime.h".
79838         * modules/yesno: Add lib/yesno.h.
79839         * modules/backupfile: Remove lib/addext.c.
79840         * modules/euidaccess: Add stat-macros.h.
79841         * modules/canonicalize, modules/euidaccess,
79842         modules/filemode, modules/lchown, modules/makepath,
79843         modules/rmdir, modules/stat: Likewise.
79844
79845 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79846
79847         Merge from tar.
79848         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79849         SIZE_MAX is a valid preprocessor constant.
79850         (__argp_basename): Change from "#ifndef _LIBC"
79851         to "#ifndef __argp_short_program_name", so that
79852         we don't compile these functions for tar.
79853
79854         More merges from coreutils.
79855         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79856         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79857         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79858         * lib/addext.c: Remove; no longer needed.
79859         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79860         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79861         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79862         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79863         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79864         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79865         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79866         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79867         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79868         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79869         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79870         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79871         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79872         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79873         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79874         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79875         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79876         Import changes from coreutils.
79877
79878 2004-08-05  Simon Josefsson  <jas@extundo.com>
79879
79880         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79881
79882 2004-08-05  Simon Josefsson  <jas@extundo.com>
79883
79884         * m4/getsubopt.m4: New file.
79885
79886 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         Merge from coreutils.
79889
79890         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79891         * m4/getcwd-path-max.m4: New files.
79892
79893         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79894         FILESYSTEM_PREFIX_LEN ->
79895         FILE_SYSTEM_PREFIX_LEN.
79896         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79897         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79898         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79899         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79900
79901         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79902         prerequisite modules now handle the DOS stuff.
79903         Don't check for unistd.h.
79904
79905 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         Merge from coreutils.
79908
79909         * lib/.gdb-history: Remove; this doesn't belong here.
79910
79911         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79912         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79913         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79914         * lib/getcwd.c: New files.
79915
79916         * lib/dirname.h: Include <stdbool.h>.
79917         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79918         for consistency with POSIX terminology.  All uses changed.
79919         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79920         (strip_trailing_slashes): Use bool for booleans.
79921         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79922
79923         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79924         sometimes returns a positive errno value even when it succeeds.
79925         (print_errno_message) [!LIBC]: Fall back on strerror if
79926         __strerror_r fails.
79927
79928         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79929         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79930         (longest_relative_suffix): New function.
79931         (path_concat): Use it.  Assume first argument is not NULL.
79932         Port to DOS.  Omit redundant separators.
79933         Report an error instead of returning NULL.
79934         Use mempcpy instead of memcpy.
79935         (xpath_concat): Remove: not declared or used.
79936
79937         * lib/same.h: Include <stdbool.h>
79938         (same_name): Return bool, not int.
79939         * lib/same.c (same_name): Likewise.
79940         (errno): Don't declare; we assume C89 or better now.
79941
79942         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79943         if not already defined.
79944
79945         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79946         * lib/dup-safer.c (errno): Likewise.
79947
79948 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         Merge from coreutils.
79951         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79952         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79953         * modules/path-concat: Don't depend on strdup.
79954
79955 2004-08-03  Simon Josefsson  <jas@extundo.com>
79956
79957         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79958         * lib/progname.h: Don't include stdbool.h.
79959
79960 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79961
79962         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79963         * MODULES.html.sh (func_all_modules): Remove fatal.
79964
79965 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79968
79969 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79972         working.
79973
79974 2004-08-02  Simon Josefsson  <jas@extundo.com>
79975
79976         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79977         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79978         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79979
79980 2004-08-01  Simon Josefsson  <jas@extundo.com>
79981
79982         * lib/xgetdomainname.c: Include stdlib.h, for free().
79983
79984 2004-07-19  Bruno Haible  <bruno@clisp.org>
79985
79986         * MODULES.html.sh (func_all_modules): Add dummy.
79987
79988 2004-07-16  Simon Josefsson  <jas@extundo.com>
79989
79990         * modules/dummy: New file.
79991
79992 2004-07-16  Simon Josefsson  <jas@extundo.com>
79993
79994         * lib/dummy.c: New file.
79995
79996 2004-07-16  Bruno Haible  <bruno@clisp.org>
79997
79998         * lib/backupfile.h: Add extern "C" for C++.
79999         * lib/closeout.h: Likewise.
80000         * lib/copy-file.h: Likewise.
80001         * lib/findprog.h: Likewise.
80002         * lib/full-write.h: Likewise.
80003         * lib/pathname.h: Likewise.
80004         * lib/progname.h: Likewise.
80005         * lib/stpcpy.h: Likewise.
80006         * lib/stpncpy.h: Likewise.
80007         * lib/strcase.h: Likewise.
80008         * lib/strstr.h: Likewise.
80009         * lib/xalloc.h: Likewise.
80010
80011         * lib/mbswidth.h: Add extern "C" for C++.
80012         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80013
80014 2004-07-13  Robert Millan  <robertmh@gnu.org>
80015
80016         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80017
80018 2004-07-09  Simon Josefsson  <jas@extundo.com>
80019
80020         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80021         failed without this.)
80022
80023 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * modules/chown (Files): Add lib/fchown-stub.c, since
80026         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80027
80028 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80029
80030         * lib/fchown-stub.c: New file.
80031
80032 2004-06-24  Jim Meyering  <jim@meyering.net>
80033
80034         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80035
80036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * modules/argz: Omit "#include".
80039
80040         * MODULES.html.sh (func_all_modules): Add calloc, to match
80041         2004-06-01 addition of calloc module.
80042
80043 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80044
80045         * m4/argz.m4: New file, which is autoupdated from libtool.
80046
80047 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80048
80049         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80050         libtool.
80051
80052 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * config/srclist-update: Don't insist on "USA." before the
80055         close-comment, as libtool omits the period and puts the */ on a
80056         separate line.
80057         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80058         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80059
80060 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80061
80062         * modules/argz: New file.
80063         * MODULES.html.sh (func_all_modules): Add argz.
80064
80065 2004-06-12  Jim Meyering  <jim@meyering.net>
80066         and  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * modules/hash (Files): Add lib/xalloc.h.
80069         * modules/pipe (Depends-on): Add wait-process.
80070         * modules/stat (Depends-on): Add xalloc.
80071         * modules/userspec (Files): Add lib/userspec.h.
80072         * modules/xstrto
80073
80074         Upgrade from gettext-0.13.
80075         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80076         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80077         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80078
80079 2004-06-10  Jim Meyering  <jim@meyering.net>
80080
80081         * lib/calloc.c: New file.
80082
80083 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80084
80085         * lib/getdate.y (yylex): Allow space between sign and number.
80086         Problem reported by Dan Jacobson.
80087
80088 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80089
80090         Merge from coreutils CVS.
80091
80092         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80093         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80094         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80095         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80096         xstrtol.m4: Fix copyright date and/or serial number.
80097
80098         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80099         See if we need an fchown replacement.
80100         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80101         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80102         and use the replacement function if we detect either defect.
80103
80104         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80105         gl_UTIMECMP.
80106
80107 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80108         and  Jim Meyering  <jim@meyering.net>
80109
80110         Merge from coreutils CVS.
80111
80112         * lib/stat-macros.h: New file, with contents from file-type.h
80113         and coreutils' system.h.
80114         * lib/file-type.c: Include "stat-macros.h".
80115         * lib/file-type.h (file_type): Move all macro definitions to new file,
80116         stat-macros.h.
80117
80118         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80119         Wrap old code with this conditional.
80120         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80121         function that does not dereference symlinks.
80122         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80123
80124         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80125         dependency problems.
80126         (xreadlink): Accept new arg SIZE, for efficiency.
80127         All decls and uses changed.
80128         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80129
80130         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80131         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80132
80133         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80134         sysexits.h.
80135
80136 2004-06-01  Jim Meyering  <jim@meyering.net>
80137
80138         * m4/calloc.m4: New file.
80139
80140 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80141
80142         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80143         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80144         Also, fix a typo in a diagnostic.
80145
80146 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80147
80148         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80149         or AC_FUNC_REALLOC.
80150
80151 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80154         macros to be defined.
80155         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80156         the allocator returns NULL because the requested size is zero.
80157
80158 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80159
80160         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80161         var.  Add comment explaining why libc still defines it.  This
80162         merges the following patch from glibc:
80163         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80164
80165 2004-05-20  Andreas Schwab  <schwab@suse.de>
80166
80167         * m4/free.m4: Replace free if it not known to work, not the other
80168         way round.
80169
80170 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80171
80172         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80173         present in glibc since revision 1.1 of this file.
80174         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80175         obstack_alignment_mask, obstack_alloc, obstack_base,
80176         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80177         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80178         obstack_grow0, obstack_init, obstack_int_grow,
80179         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80180         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80181         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80182         nonexistent functions.
80183
80184 2004-05-18  Karl Berry  <karl@gnu.org>
80185
80186         * config/srclist.txt: break link for vasnprintf.c.
80187
80188 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80189
80190         Port obstack to the AS/400, where pointers are 16 bytes wide and
80191         you cannot cast an integer to a valid pointer.  This patch is
80192         currently waiting to be integrated into glibc; see
80193         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80194
80195         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80196         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80197         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80198         (struct obstack): temp member is now a union of a pointer and
80199         an integer, instead of an integer.  All integer uses changed.
80200         This does not affect the physical layout of struct obstack,
80201         except on hosts (like the AS/400) where the size or alignment of
80202         void * is greater than that of ptrdiff_t.
80203         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80204         __STDC__)]: Store temporary in pointer member of union, not
80205         integer member.
80206         * lib/obstack.c: Include <stddef.h>, for offsetof.
80207         (struct fooalign): Remove; it doesn't need a name.
80208         (union fooround): Change double to long double, and add void *.
80209         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80210         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80211         not a macro.  Hence the values are always int; so remove all
80212         casts-to-int in uses.
80213
80214 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80215
80216         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80217         we can get this patch merged into glibc.
80218
80219 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80220             Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * m4/argp: Depend on alloca.
80223
80224 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80225             Paul Eggert  <eggert@cs.ucla.edu>
80226
80227         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80228         freecoding.
80229
80230 2004-05-17  Bruno Haible  <bruno@clisp.org>
80231
80232         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80233         precision that consists of a '.' followed by an empty digit string.
80234         Patch by Tor Lillqvist <tml@iki.fi>.
80235
80236 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80239         for backward compatibility with older code.  We need our own
80240         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80241         it under some other name, and our alloca.h will define it.
80242
80243 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80244             Derek Price  <derek@ximbiot.com>
80245
80246         * lib/alloca.c: Include <alloca.h>, to get our interface.
80247         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80248         include <alloca.h> first.  Use C89 prototype for alloca; this
80249         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80250         Use #elif for simplicity, since we can assume C89 now.
80251         Don't try to source the system alloca.h since it will not be found
80252         and to prevent recursively including its replacement.
80253         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80254         * lib/regex.c: Likewise.
80255
80256 2004-05-16  Derek Price  <derek@ximbiot.com>
80257             Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         getline cleanup.  This changes the getndelim2 API: both order of
80260         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80261         no delimiter).
80262
80263         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80264         interface does that.
80265         (getline): Always use getdelim, so that we don't have two
80266         copies of this code.
80267         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80268         if available.
80269         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80270         (GETNDELIM2_MAXIMUM): New macro.
80271         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80272         instead of the old practice of delim2==0.  All callers changed.
80273         Return -1 on overflow, instead of returning junk.
80274         Do not set *linesize unless allocation succeeds.
80275         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80276         that we include sys/types.h.
80277         * lib/getnline.h: Likewise.
80278         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80279         (getndelim2): Reorder arguments.
80280         * lib/getnline.c (getnline, getndelim):
80281         Don't discard the NMAX argument.
80282         (getnline): Invoke getndelim, to avoid code duplication.
80283         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80284         of (size_t) -1 by callers of the getnline family.
80285
80286 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80287
80288         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80289         Check for gettimeofday.
80290         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80291         Check for settimeofday, stime.
80292
80293 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         * lib/nanosleep.c (suspended): Change its type from int to
80296         sig_atomic_t volatile.
80297         (first_call): Make it private to rpl_nanosleep, and have it
80298         be zero initially as that's a bit faster.
80299         (my_usleep): Round up fractional times instead of truncating them,
80300         as this is the usual meaning for 'sleep'.
80301
80302         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80303         doesn't work.
80304         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80305         (ENOSYS): Define if not defined.
80306         (settime): Fall back on stime if it exists and settimeofday fails.
80307         But don't bother with fallbacks if a method fails with errno == EPERM.
80308
80309 2004-05-11  Jim Meyering  <jim@meyering.net>
80310
80311         Prior to this change, the save_cwd caller required read access to the
80312         current directory on most systems (ones with the fchdir function).
80313
80314         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80315         fails, try write-only, and finally, resort to using xgetcwd.
80316
80317 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * lib/obstack.c, obstack.h: Import changes from libc.
80320
80321 2004-04-28  Bruno Haible  <bruno@clisp.org>
80322
80323         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80324         also implicitly appends .exe to executables.
80325         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80326         accepts Windows pathnames.
80327         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80328         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80329         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80330         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80331         Reported by Derek Robert Price <derek@ximbiot.com>.
80332
80333 2004-04-21  Karl Berry  <karl@gnu.org>
80334
80335         * config/srclist.txt (localcharset.c): break sync.
80336
80337 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80338
80339         * m4/host-os.m4: Add a copyright notice.
80340
80341 2004-04-20  Jim Meyering  <jim@meyering.net>
80342
80343         Change UTILS_ to gl_ in AC_DEFINE'd names.
80344         Change utils_- and jm_-prefixed variables, too.
80345         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80346         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80347         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80348
80349         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80350         Don't emit trailing blanks.
80351         Also rename jm_-prefixed variables to have gl_ prefix.
80352
80353         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80354         Also rename jm_-prefixed variables to have gl_ prefix.
80355
80356         * m4/jm-macros.m4: Reflect the renamings.
80357         * m4/prereq.m4: Likewise.
80358
80359 2004-04-20  Jim Meyering  <jim@meyering.net>
80360
80361         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80362         memory.
80363
80364 2004-04-20  Jim Meyering  <jim@meyering.net>
80365             Bruno Haible  <bruno@clisp.org>
80366
80367         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80368         memory when realloc fails.
80369
80370 2004-04-19  Jim Meyering  <jim@meyering.net>
80371
80372         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80373         now that readutmp.c may call `free (0)'.
80374
80375 2004-04-19  Bruno Haible  <bruno@clisp.org>
80376
80377         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80378         * m4/inttypes_h.m4: Likewise.
80379         * m4/stdint_h.m4: Likewise.
80380         * m4/intmax_t.m4: Likewise.
80381         * m4/uintmax_t.m4: Likewise.
80382
80383 2004-04-18  Jim Meyering  <jim@meyering.net>
80384
80385         * m4/prereq.m4: Don't forbid jm_ prefix.
80386
80387         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80388         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80389         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80390         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80391         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80392         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80393         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80394         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80395         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80396         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80397         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80398         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80399         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80400         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80401         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80402         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80403         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80404         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80405         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80406
80407 2004-04-18  Jim Meyering  <jim@meyering.net>
80408
80409         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80410         failure, don't leak memory and do call END_UTMP_ENT.
80411
80412 2004-04-16  Jim Meyering  <jim@meyering.net>
80413
80414         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80415         coreutils' stat program.
80416         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80417
80418 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80419
80420         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80421         C89.
80422         (CHAR_BIT): Remove, since we assume C89.
80423         Include <stdint.h> if available, as per current Autoconf CVS advice.
80424
80425 2004-03-31  Jim Meyering  <jim@meyering.net>
80426
80427         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80428         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80429         * m4/xalloc.m4: Likewise.
80430
80431 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80432
80433         Merge from coreutils.
80434
80435         * m4/inttostr.m4: New file.
80436         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80437         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80438         Require gl_CLOCK_TIME.
80439         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80440
80441 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80442
80443         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80444         not bool, to be more consistent with Unix conventions.
80445         Suggested by Bruno Haible.
80446
80447         Merge from coreutils.
80448
80449         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80450         * lib/umaxtostr.c: New files.
80451
80452         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80453         the usual <time.h> dance.
80454         (get_date): Change signature to support fractional time stamps.
80455         All callers changed.
80456         * lib/getdate.y: Include "getdate.h" first, as we can now
80457         assume C89 and don't need to worry about 'const'.
80458         Similarly, include "unlocked-io.h" near start, not in middle.
80459         Include <limits.h>.
80460         (textint.value): Use long int rather than int.
80461         (textint.digits): Use size_t rather than int.
80462         (BILLION, LOG10_BILLION): New constants.
80463         (parser_control): New member rel_ns.  Members day_ordinal,
80464         time_zone, month, day, hour, minutes, rel_year, rel_month,
80465         rel_day, rel_hour, rel_minutes, rel_seconds
80466         are now long int, not int.  Member seconds is now struct timespec,
80467         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80468         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80469         not int.
80470         (%union.intval): Now long int, not int.
80471         New member timespec.
80472         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80473         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80474         (spec): Now is a timespec or an item list.
80475         (timespec, items): New nonterminals.
80476         (time, rel, relunit, number, get_date):
80477         Add support for fractional seconds.
80478         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80479         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80480         (to_hour): First arg is now long int, not int.
80481         (to_year): Returns long int, not int.
80482         Don't treat year -70 like 70.
80483         (tm_diff): Returns long int, not int.
80484         (lookup_word): Use bool instead of int when appropriate.
80485         (yylex): Use size_t for count, not int.
80486         Detect overflow when parsing large integer constants.
80487         Add support for fractions.
80488         (get_date): Make pointers 'const' if possible.
80489         Use more-portable code to detect integer overflow.
80490         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80491         Don't use ctime; it's not reliable if the year has >4 digits.
80492
80493         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80494         This is for compatibility with BSD.
80495
80496         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80497         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80498         From coreutils' system.h.
80499
80500         * lib/userspec.c: Don't include "posixver.h".
80501         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80502         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80503         compatible extension.  Simplify code by removing a boolean int
80504         that was always nonzero if a string was nonnull.
80505
80506 2004-03-30  Jim Meyering  <jim@meyering.net>
80507
80508         Merge from coreutils.
80509
80510         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80511         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80512         on some systems one must include <grp.h> before it.
80513         Reported by Christian Krackowizer.
80514
80515 2004-03-30  Jim Meyering  <jim@meyering.net>
80516
80517         Merge from coreutils.
80518
80519         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80520
80521         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80522         an empty input stream.
80523
80524         * lib/readtokens.c: Include <stdbool.h>.
80525         (readtoken): Use `size_t' rather than int/long.
80526         All callers adjusted.
80527         Use `bool' rather than `int' where appropriate.
80528         Use memset rather than an explicit loop.
80529         Use x2nrealloc rather than xrealloc.
80530         Allow the use of `\0' as a delimiter.
80531         (readtokens): Likewise.
80532         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80533
80534 2004-03-30  Jim Meyering  <jim@meyering.net>
80535
80536         * m4/realloc.m4: Remove file, since now it does no more than
80537         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80538         the `configure.ac' section of module/realloc.
80539         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80540
80541 2004-03-30  Bruno Haible  <bruno@clisp.org>
80542
80543         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80544         nonnull.
80545
80546 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80547
80548         Merge changes to getloadavg.c from coreutils and Emacs.
80549
80550         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80551         Define to an expression, not to the empty string.
80552         Include cloexec.h and xalloc.h.
80553         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80554         Use set_cloexec_flag rather than rolling our own.
80555         * lib/cloexec.c, lib/cloexec.h: New files.
80556
80557 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80558
80559         * m4/cloexec.m4: New file.
80560
80561 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80562
80563         * lib/getopt.h: Sync with libc CVS.
80564
80565 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80566             Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80569         mbswidth.
80570
80571 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80572             Bruno Haible  <bruno@clisp.org>
80573
80574         * lib/mbswidth.h: Include <wchar.h> only if
80575         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80576         <wchar.h>.
80577         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80578
80579 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80580
80581         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80582         Sync with libc CVS.
80583         * lib/getopt_int.h: New file, also synced from libc.
80584
80585 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80586
80587         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80588         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80589         Bring back getopt.c, getopt.h, getopt1.c.
80590
80591 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80592
80593         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80594         All uses changed.  Check for sa_sigaction member; this fixes
80595         a bug first reported by Jason Andrade in
80596         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80597
80598 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80599
80600         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80601         '#if' expressions.  Unlike the code it replaces, it does not
80602         depend on (defined _SC_PAGESIZE).  However, it does depend on
80603         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80604         first reported by Jason Andrade in
80605         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80606
80607 2004-02-25  Simon Josefsson  <jas@extundo.com>
80608
80609         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80610
80611 2004-02-25  Simon Josefsson  <jas@extundo.com>
80612
80613         * lib/strdup.h: New file.
80614         * lib/strdup.c: Include it.
80615         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80616         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80617
80618 2004-02-23  Karl Berry  <karl@gnu.org>
80619
80620         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80621         (from fencepost.gnu.org:/gd/gnuorg).
80622
80623 2004-02-23  Karl Berry  <karl@gnu.org>
80624
80625         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80626         * config/srclist.txt: add maintain/standards documents.
80627
80628 2004-02-18  Bruno Haible  <bruno@clisp.org>
80629
80630         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80631         Reported by Derek Robert Price <derek@ximbiot.com>.
80632
80633 2004-02-16  Karl Berry  <karl@gnu.org>
80634
80635         * config/mkinstalldirs, install-sh: update from automake.
80636
80637 2004-02-06  Karl Berry  <karl@gnu.org>
80638
80639         * m4/po.m4: update from gettext 0.14.1.
80640
80641 2004-02-06  Karl Berry  <karl@gnu.org>
80642
80643         * lib/config.charset: update from gettext 0.14.1.
80644
80645 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80646
80647         Add comments and code, prompted by suggestions from Bruno Haible
80648         for sh-quote.
80649         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80650         describing the enum quoting_style values.
80651         * lib/quotearg.c (quotearg_alloc): New function.
80652         (quotearg_buffer_restyled): Treat lone { and } as special.
80653         Treat = as special.  Work around bug with older shells
80654         that "see" a '\' that is really the 2nd byte of a multibyte char.
80655         Quote empty string with shell_quoting_style.
80656
80657 2004-02-03  Bruno Haible  <bruno@clisp.org>
80658
80659         * m4/pipe.m4: New file, from GNU gettext.
80660
80661 2004-02-03  Bruno Haible  <bruno@clisp.org>
80662
80663         * lib/pipe.h: New file, from GNU gettext.
80664         * lib/pipe.c: New file, from GNU gettext.
80665
80666 2004-01-27  Bruno Haible  <bruno@clisp.org>
80667
80668         * m4/execute.m4: New file, from GNU gettext.
80669
80670 2004-01-27  Bruno Haible  <bruno@clisp.org>
80671
80672         * lib/execute.h: New file, from GNU gettext.
80673         * lib/execute.c: New file, from GNU gettext.
80674         * lib/w32spawn.h: New file, from GNU gettext.
80675
80676 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80677
80678         Merge from diffutils.
80679
80680         * lib/file-type.c (file_type): Add typed memory objects.
80681         * lib/file-type.h (S_TYPEISTMO): New macro.
80682
80683         * lib/c-stack.h (c_stack_action): Remove argv argument.
80684         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80685         (die): Don't calculate message unless segv_action returns.
80686         (get_stack_location, min_address_from_argv, max_address_from_argv,
80687         volatile stack_base, volatile_stack_size): Remove.
80688         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80689         that every segmentation violation is a stack overflow.  (Ouch!)
80690         See Debian bug 136249 (still outstanding) for more info about why
80691         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80692
80693 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80694
80695         Exit-status fix from coreutils.
80696
80697         Use exit_failure consistently in place of EXIT_FAILURE,
80698         so that program exit statuses are consistent on failure.
80699
80700         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80701         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80702         * lib/argmatch.h: Comment fix to match the above.
80703         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80704         Now a macro referring to exit_failure, instead of a separate
80705         variable.  Include "exitfail.h" to get it.
80706         * lib/xstrtol.h: Include "exitfail.h".
80707         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80708
80709         * lib/long-options.c (parse_long_options): Use prototype
80710         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80711         for clarity.
80712
80713 2004-01-21  Jim Meyering  <jim@meyering.net>
80714
80715         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80716         so as not to conflict with a different-sized __mktime_internal
80717         function in GNU libc.
80718         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80719         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80720
80721 2004-01-20  Karl Berry  <karl@gnu.org>
80722
80723         * config/config.guess: update from config.
80724
80725         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80726
80727 2004-01-20  Bruno Haible  <bruno@clisp.org>
80728
80729         Safer stack allocation.
80730         * lib/setenv.c: Include allocsa.h.
80731         (alloca): Remove fallback definition.
80732         (freea): Remove macro.
80733         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80734         instead of freea.
80735
80736 2004-01-20  Bruno Haible  <bruno@clisp.org>
80737
80738         * m4/eealloc.m4: New file, from GNU gettext.
80739
80740 2004-01-20  Bruno Haible  <bruno@clisp.org>
80741
80742         * m4/allocsa.m4: New file, from GNU gettext.
80743
80744 2004-01-20  Bruno Haible  <bruno@clisp.org>
80745
80746         * lib/xallocsa.h: New file, from GNU gettext.
80747         * lib/xallocsa.c: New file, from GNU gettext.
80748
80749 2004-01-20  Bruno Haible  <bruno@clisp.org>
80750
80751         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80752
80753 2004-01-20  Bruno Haible  <bruno@clisp.org>
80754
80755         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80756         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80757         specially.
80758
80759 2004-01-20  Bruno Haible  <bruno@clisp.org>
80760
80761         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80762         patch.
80763
80764 2004-01-20  Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80767
80768 2004-01-20  Bruno Haible  <bruno@clisp.org>
80769
80770         * lib/eealloc.h: New file.
80771
80772 2004-01-20  Bruno Haible  <bruno@clisp.org>
80773
80774         * lib/binary-io.h: Avoid warnings on Cygwin.
80775
80776 2004-01-20  Bruno Haible  <bruno@clisp.org>
80777
80778         * lib/allocsa.h: New file, from GNU gettext.
80779         * lib/allocsa.c: New file, from GNU gettext.
80780
80781 2004-01-18  Karl Berry  <karl@gnu.org>
80782
80783         * doc/gpl.texi, doc/lgpl.texi: new files.
80784
80785 2004-01-18  Karl Berry  <karl@gnu.org>
80786
80787         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80788         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80789
80790 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80791
80792         Merge from coreutils.
80793
80794         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80795         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80796         (gl_DEFAULT_POSIX2_VERSION): Move
80797         the documentation from 'configure' into 'config.hin',
80798         so that 'configure --help' isn't burdened by it and
80799         we don't have to worry about its formatting there.
80800         Reword the documentation so that it's more succinct
80801         and can be run together into a single paragraph.
80802         * m4/same.m4 (gl_SAME): Check for pathconf.
80803
80804 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80805
80806         Merge from coreutils.
80807
80808         * lib/posixver.c: Include posixver.h.
80809
80810         * lib/same.c: Include <stdbool.h>, <limits.h>.
80811         (_POSIX_NAME_MAX): Define if not defined.
80812         (MIN): New macro.
80813         (same_name): If file names are silently truncated, report
80814         that the file names are the same if they are the same after
80815         the silent truncation.
80816
80817         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80818         conversion function.
80819         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80820         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80821         longer needed.
80822
80823 2004-01-15  Jim Meyering  <jim@meyering.net>
80824
80825         Merge from coreutils.
80826
80827         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80828         if no library is required.
80829         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80830         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80831         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80832         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80833         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80834         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80835         value, $ac_cv_search_crypt, if it's "none required".
80836         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80837         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80838         not gl_FUNC_GETLOADAVG.
80839         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80840         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80841
80842 2004-01-15  Jim Meyering  <jim@meyering.net>
80843
80844         Merge from coreutils.
80845
80846         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80847         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80848         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80849
80850         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80851         optional configure-time default.
80852
80853         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80854
80855         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80856
80857 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80858
80859         Merge from coreutils.
80860
80861         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80862         value, $ac_cv_search_nanosleep, if it's "none required".
80863
80864 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80865
80866         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80867         with like-named macro in fnmatch.c.
80868         (EXT): Use an internal constant instead.
80869
80870         Merge fnmatch patches from glibc.
80871         * lib/fnmatch.c (mbsinit): Remove define.
80872         Add libc_hidden_ver (__fnmatch, fnmatch).
80873         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80874         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80875
80876 2004-01-14  Karl Berry  <karl@gnu.org>
80877
80878         * config/install-sh: update from automake.
80879
80880 2004-01-13  Karl Berry  <karl@gnu.org>
80881
80882         * config/install-sh: update from automake.
80883
80884 2004-01-09  Karl Berry  <karl@gnu.org>
80885
80886         * config/install-sh: update from automake.
80887
80888 2004-01-05  Karl Berry  <karl@gnu.org>
80889
80890         * config/config.{sub,guess}: update from config.
80891
80892 2003-12-31  Karl Berry  <karl@gnu.org>
80893
80894         * config/depcomp: update from automake.
80895
80896 2003-12-14  Karl Berry  <karl@gnu.org>
80897
80898         * lib/config.charset: update from gettext-runtime.
80899
80900 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80901
80902         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80903         Bug reported by Alfred M. Szmidt.
80904
80905 2003-12-03  Bruno Haible  <bruno@clisp.org>
80906
80907         * m4/gettext.m4: Upgrade from gettext-0.13.
80908         * m4/po.m4: Upgrade from gettext-0.13.
80909         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80910         * m4/intmax.m4: New file, from gettext-0.13.
80911         * m4/printf-posix.m4: New file, from gettext-0.13.
80912
80913 2003-11-29  Karl Berry  <karl@gnu.org>
80914
80915         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80916
80917 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80918             Bruno Haible  <bruno@clisp.org>
80919
80920         * lib/printf-parse.h: Don't include sys/types.h.
80921         (ARG_NONE): New macro.
80922         (char_directive): Change type of *arg_index fields to size_t.
80923         * lib/printf-parse.c: Don't include sys/types.h.
80924         (SSIZE_MAX): Remove macro.
80925         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80926         Remove unnecessary overflow check.
80927         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80928         fields.
80929
80930 2003-11-25  Bruno Haible  <bruno@clisp.org>
80931
80932         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80933
80934 2003-11-25  Bruno Haible  <bruno@clisp.org>
80935
80936         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80937         gt_TYPE_SSIZE_T.
80938
80939 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80940
80941         * modules/alloca: Remove dependency on xalloc.
80942
80943 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80944
80945         * lib/alloca.c: Remove dependency on xalloc module.
80946         (xalloc_die): Remove.
80947         (memory_full) [!defined emacs]: New macro.
80948         [!defined emacs]: Don't include xalloc.h.
80949         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80950         address arithmetic overflows.  Change datatypes a bit to avoid
80951         unnecessary casts.
80952
80953 2003-11-22  Jim Meyering  <jim@meyering.net>
80954
80955         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80956         s/size/size_t/.
80957
80958 2003-11-21  Karl Berry  <karl@gnu.org>
80959
80960         * config/config.{sub,guess}: update from config.
80961
80962 2003-11-18  Karl Berry  <karl@gnu.org>
80963
80964         * config/config.{sub,guess}: update from config.
80965
80966         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80967
80968 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80969
80970         * README: Mention that S+T cannot overflow if S is the size of
80971         an existing object and T is sufficiently small.
80972
80973 2003-11-17  Jim Meyering  <jim@meyering.net>
80974
80975         On systems without utime and without a utimes function capable of
80976         dealing with a NULL struct utimbuf* argument, this utime replacement
80977         could -- in unusual circumstances -- leak a file descriptor.
80978         * lib/utime.c: Include <unistd.h> and <errno.h>.
80979         (utime_null): Be sure to close `fd' and to preserve errno.
80980         Reported by Geoff Collyer via Arnold Robbins.
80981
80982 2003-11-17  Bruno Haible  <bruno@clisp.org>
80983
80984         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80985         (Depends-on): Add xsize.
80986
80987 2003-11-17  Bruno Haible  <bruno@clisp.org>
80988
80989         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80990
80991 2003-11-17  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/vasnprintf.c (alloca): Remove fallback definition.
80994         (freea): Remove definition.
80995         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80996         Reported by Paul Eggert.
80997
80998 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80999             Bruno Haible  <bruno@clisp.org>
81000
81001         Protect against address arithmetic overflow.
81002         * lib/printf-args.h: Include stddef.h.
81003         (arguments): Change type of field 'count' to size_t.
81004         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81005         'unsigned int' where appropriate.
81006         * lib/printf-parse.h: Include sys/types.h.
81007         (char_directive): Change type of *arg_index fields to ssize_t.
81008         (char_directives): Change type of fields 'count', max_*_length to
81009         size_t.
81010         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81011         (SSIZE_MAX): Define fallback value.
81012         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81013         instead of 'int' where appropriate. Check a_allocated, d_allocated
81014         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81015         * lib/vasnprintf.c: Include xsize.h.
81016         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81017         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81018         overflow. Avoid wraparound when converting a width or precision from
81019         decimal to binary.
81020
81021 2003-11-16  Bruno Haible  <bruno@clisp.org>
81022
81023         Update from GNU gettext.
81024         * lib/printf-parse.c: Generalize to it can be compiled for wide
81025         strings.
81026         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81027         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81028         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81029         SNPRINTF): New macros.
81030         Don't include <alloca.h> if the file is used inside libintl.
81031         (local_wcslen): New function, for Solaris 2.5.1.
81032         (VASNPRINTF): Use it instead of wcslen.
81033
81034 2003-11-16  Bruno Haible  <bruno@clisp.org>
81035
81036         * lib/xsize.h (xmax): New function.
81037         (xsum, xsum3, xsum4): Declare as "pure" functions.
81038
81039 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81040
81041         * modules/xalloc (Files): Undo latest change, since xalloc.h
81042         no longer needs SIZE_MAX or PTRDIFF_MAX.
81043
81044 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81045
81046         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81047         gl_PTRDIFF_MAX.
81048
81049 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81050
81051         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81052         "return", to pacify some unknown compiler.  Problem reported
81053         by Joerg Schilling.
81054
81055 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81056
81057         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81058         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81059         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81060         heuristic is just as accurate as far as we know, and it removes a
81061         dependency on size_max.m4 and ptrdiff_max.m4.
81062
81063 2003-11-11  Bruno Haible  <bruno@clisp.org>
81064
81065         * modules/xsize (Files): Add m4/size_max.m4.
81066         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81067
81068 2003-11-11  Bruno Haible  <bruno@clisp.org>
81069
81070         * m4/size_max.m4: New file.
81071         * m4/ptrdiff_max.m4: New file.
81072         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81073         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81074         (gl_XALLOC): Invoke it.
81075
81076 2003-11-11  Bruno Haible  <bruno@clisp.org>
81077
81078         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81079         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81080         defined.
81081
81082 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81083
81084         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81085         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81086         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81087         From Bruno Haible.
81088         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81089         not (size_t) -1, since it's defined here.
81090
81091 2003-11-09  Karl Berry  <karl@gnu.org>
81092
81093         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81094
81095 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81096
81097         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81098         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81099         Reject sizes of exactly SIZE_MAX bytes.
81100         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81101         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81102
81103 2003-11-05  Bruno Haible  <bruno@clisp.org>
81104
81105         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81106         SIZE_MAX defined in <limits.h> on Solaris.
81107
81108 2003-11-04  Jim Meyering  <jim@meyering.net>
81109
81110         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81111         variable names, rather than @VAR@.
81112         * modules/poll: Likewise.
81113
81114 2003-11-04  Bruno Haible  <bruno@clisp.org>
81115
81116         * modules/xsize: New file.
81117         * modules/linebreak: Depend on xsize.
81118         * MODULES.html.sh (func_all_modules): Add xsize.
81119
81120 2003-11-04  Bruno Haible  <bruno@clisp.org>
81121
81122         * m4/xsize.m4: New file.
81123
81124 2003-11-04  Bruno Haible  <bruno@clisp.org>
81125
81126         * lib/xsize.h: New file.
81127         * lib/linebreak.c: Include xsize.h.
81128         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81129         argument for overflow.
81130         Suggested by Paul Eggert.
81131
81132 2003-11-03  Karl Berry  <karl@gnu.org>
81133
81134         * config/config.{guess,sub}: update from config.
81135
81136 2003-11-03  Jim Meyering  <jim@meyering.net>
81137
81138         * modules/userspec (lib_SOURCES): Add userspec.h.
81139         (Include): Add "userspec.h".
81140         Improve description.
81141
81142 2003-11-03  Jim Meyering  <jim@meyering.net>
81143
81144         * lib/userspec.c: Include "userspec.h".
81145         * lib/userspec.h: New file.
81146
81147 2003-11-03  Bruno Haible  <bruno@clisp.org>
81148
81149         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81150
81151 2003-11-03  Bruno Haible  <bruno@clisp.org>
81152
81153         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81154         available, to avoid (extremely rare) race condition.
81155         Suggested by Paul Eggert.
81156
81157 2003-11-02  Karl Berry  <karl@gnu.org>
81158
81159         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81160
81161 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81162
81163         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81164         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81165         (read_filesystem_list): Set and use me_type_malloced.
81166         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81167         whatever the type happens to be), for brevity and consistency.
81168         Check for size calculation overflow on Alphas running OSF/1.
81169
81170 2003-10-31  Jim Meyering  <jim@meyering.net>
81171
81172         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81173
81174         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81175
81176 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81177             Bruno Haible  <bruno@clisp.org>
81178
81179         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81180         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81181
81182 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81183
81184         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81185         netbsd*-gnu*.  Suggested by Robert Millan.
81186
81187 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81188
81189         * modules/group-member: Depend on stdbool.
81190
81191 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81192
81193         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81194
81195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81196
81197         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81198         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81199         after the 'gnu' in these cases.  This fixes some bugs in the
81200         previous change, and is based on suggestions by Robert Millan.
81201
81202 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81203
81204         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81205         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81206         no longer needed.
81207         * lib/quotearg.c (quotearg_n_options): Use it.
81208         * lib/group-member.c: Include <stdbool.h>.
81209         (free_group_info): Arg is now const *; don't free arg.
81210         (get_group_info): Now returns bool and accepts struct group_info *,
81211         rather than returning a malloc'ed struct group_info *.
81212         All uses changed.  Check for overflow in internal size calculation.
81213
81214         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81215         rather than xmalloc/xrealloc.
81216         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81217         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81218         conformance bug: the old code used a pointer after freeing the
81219         storage that it addressed.
81220         * lib/hash.c (hash_initialize): Simplify the code by using
81221         xalloc_oversized rather than doing it by hand.
81222         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81223         the buffer preserved.  Use free and xmalloc instead.
81224         * lib/quotearg.c (quotearg_n_options): Likewise.
81225         Use a simpler test for size overflow.  Don't use xalloc_oversized
81226         because unsigned int might be wider than size_t (!); this suggests
81227         that we should switch from unsigned int to size_t for slot numbers.
81228
81229 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81230
81231         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81232         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81233         NetBSD kernels.  Requested by Richard Stallman.
81234
81235 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81236
81237         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81238         to allocate the returned structure.  Do not allocate a subarray,
81239         as x2nrealloc will do that.
81240         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81241         instead of xnrealloc.
81242         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81243
81244 2003-10-27  Bruno Haible  <bruno@clisp.org>
81245
81246         * lib/stdbool_.h: Better support for BeOS.
81247
81248 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81249
81250         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81251         now uses inline.
81252
81253 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81254
81255         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81256         callers that want to do their own size-overflow checking.  Include
81257         <stdbool.h>, since xalloc_oversized returns bool.
81258         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81259         to use xalloc_oversized.
81260
81261         Add two functions x2realloc, x2nrealloc, for programs that grow
81262         arrays dynamically by doubling their sizes.
81263         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81264         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81265         New functions.
81266
81267         Port to C99 semantics for 'inline' of external functions.
81268         Bug reported by Bruno Haible.
81269         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81270         with the old contents of xnmalloc.
81271         (xnmalloc, xmalloc): Use it.
81272         (xnrealloc_inline): New static inline function,
81273         with the old contents of xnrealloc.
81274         (xnrealloc, xrealloc): Use it.
81275
81276         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81277         that.
81278
81279 2003-10-26  Karl Berry  <karl@gnu.org>
81280
81281         * config/srclist.txt (COPYING.DOC): no longer available from
81282         /gd/gnuorg; don't know where the ultimate source is.
81283
81284 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81285
81286         Fix several address-calculation bugs in the hash modules,
81287         plus some minor code cleanup.
81288
81289         * lib/hash.h: Include <stdbool.h>, for bool.
81290         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81291         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81292         hash_get_n_entries, hash_get_max_bucket_length,
81293         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81294         hash_rehash): Use size_t rather than unsigned.
81295         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81296         hash_get_n_buckets_used, hash_get_n_entries,
81297         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81298         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81299         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81300         Likewise.
81301         (SIZE_MAX): Define if not defined.
81302         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81303         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81304         hash_print):
81305         Use const * when possible.
81306         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81307         (check_tuning): Fix bug: if tuning parameters were very close to
81308         0 or 1, rounding errors could have caused subscript violations.
81309         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81310         (hash_initialize): Add 'fail:' label
81311         to free table and return NULL, and use it to simplify code.
81312         Use calloc rather than clearing the storage ourself.
81313         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81314         buffer size calculations.
81315         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81316         Include <stddef.h>, for size_t.
81317         * lib/hash-pjw.c (hash_pjw): Likewise.
81318         Switch to method described by Bruno Haible.
81319         Include <limits.h>, for CHAR_BIT.
81320         (SIZE_BITS): New macro.
81321
81322 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81323
81324         * m4/getline.m4 (AM_FUNC_GETLINE):
81325         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81326         hosts.  Problem reported by Derek Robert Price in
81327         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81328         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81329         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81330
81331 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81332
81333         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81334         ceiling the allocation at NMAX bytes rather than silently
81335         discarding input bytes before NMAX is reached.  This makes
81336         a difference only if NMAX exceeds SIZE_MAX / 2.
81337
81338         * lib/obstack.c: Merge from glibc.
81339         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81340         Add libc_hidden_def (_obstack_newchunk).
81341         (_obstack_free) [! defined _LIBC]: Remove.
81342         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81343         a clone of the function body.
81344         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81345         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81346
81347         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81348         glibc.
81349         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81350         arg to memcpy.
81351
81352         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81353         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81354         Don't use lvalue casts, as GCC plans to remove support for them
81355         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81356         was also present in the non-GCC version, indicating that this
81357         code had always been buggy and had never been widely used.
81358         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81359         Use the fast variant of each macro, rather than copying the
81360         definiens of the fast variant; that way, we'll be more likely to
81361         catch future bugs in the fast variants.
81362
81363 2003-10-20  Bruno Haible  <bruno@clisp.org>
81364
81365         * modules/wait-process: New file.
81366         * MODULES.html.sh (func_all_modules): Add wait-process.
81367
81368 2003-10-20  Bruno Haible  <bruno@clisp.org>
81369
81370         * m4/wait-process.m4: New file.
81371
81372 2003-10-20  Bruno Haible  <bruno@clisp.org>
81373
81374         * lib/wait-process.h: New file, from GNU gettext.
81375         * lib/wait-process.c: New file, from GNU gettext.
81376
81377 2003-10-19  Jim Meyering  <jim@meyering.net>
81378
81379         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81380         HPUX 10.20.
81381
81382 2003-10-18  Karl Berry  <karl@gnu.org>
81383
81384         * config/config.guess: update from config.
81385
81386 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81387
81388         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81389         (getgroups): First arg is int, not size_t.
81390         Don't let 'free' mangle errno.
81391
81392 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81393
81394         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81395
81396 2003-10-16  Karl Berry  <karl@gnu.org>
81397
81398         * config/config.{guess,sub}: update from config.
81399
81400 2003-10-16  Jim Meyering  <jim@meyering.net>
81401
81402         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81403         memcpy.
81404
81405 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81406
81407         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81408         (SIZE_MAX): Remove.
81409         (new_exclude, add_exclude_file): Initial size no longer needs to
81410         be a power of 2.
81411         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81412         our own address arithmetic overflow checking.
81413
81414         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81415         (fnmatch): Do not alloca more than 2000 wide characters;
81416         instead, use malloc for large buffers.
81417         Check for address arithmetic overflow, and return -1
81418         with errno set to ENOMEM in that case.
81419         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81420         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81421         instead, return -1.  Check for address arithmetic overflow.
81422
81423 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81424
81425         Handle invalid suffixes and overflow independently, so that
81426         callers can treat them independently as needed.  Fix some bugs in
81427         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81428         suffix for a human-readable blocksize.  The major caller-visible
81429         change is the addition of a new
81430         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81431         that both overflow and suffix chars were found.
81432
81433         * lib/human.c (humblock): Don't check separately for invalid suffix
81434         char; that is xstrtoumax's job (now that its bug is fixed).
81435         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81436         INTMAX_MAX]: New macros.
81437         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81438         TYPE_MAXIMUM): New macros.
81439         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81440         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81441         if overflow occurs, as it's what __strtol does and it's more useful
81442         in practice.
81443         (__xstrtol): If __strtol reports some error other than ERANGE,
81444         reflect it to the caller as LONGINT_INVALID.  If it reports
81445         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81446         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81447         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81448         value.
81449         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81450         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81451         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81452         [defined UINTMAX_MAX]: New macros.
81453
81454 2003-10-14  Bruno Haible  <bruno@clisp.org>
81455
81456         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81457
81458 2003-10-14  Bruno Haible  <bruno@clisp.org>
81459
81460         * m4/sig_atomic_t: New file, from GNU gettext.
81461         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81462
81463 2003-10-14  Bruno Haible  <bruno@clisp.org>
81464
81465         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81466         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81467         Also use volatile where needed.
81468
81469 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81470
81471         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81472         Change maintainer from Bruno Haible to 'all'.
81473
81474 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81475
81476         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81477
81478 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81479
81480         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81481         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81482         and define in terms of the other primitives.
81483         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81484         (SIZE_MAX): Define if not already defined.
81485         (array_size_overflow): New function.
81486         (xalloc_die): Abort instead of exiting if 'error' returns.
81487         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81488         (xmalloc, xrealloc): Use them.
81489         (xcalloc): Check for address arithmetic overflow.
81490         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81491         a bit faster than strcpy.
81492
81493 2003-10-10  Simon Josefsson  <jas@extundo.com>
81494
81495         * modules/argp (Depends-on): Add restrict and strcase.
81496
81497 2003-10-10  Simon Josefsson  <jas@extundo.com>
81498
81499         * m4/argp.m4: Add AC_C_INLINE.
81500
81501 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81502
81503         Merge getpass from libc, plus a few fixes.
81504
81505         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81506         Include <stdbool.h>.
81507         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81508         __fsetlocking to empty.
81509         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81510         do include <bits/libc-lock.h>.
81511         Do not include <fcntl.h>; not needed.
81512         [_LIBC]: Include <wchar.h>.
81513         (NOTCANCEL_MODE): New macro.
81514         (flockfile, funlockfile) [_LIBC]: New macros.
81515         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81516         [!_LIBC]: New macros.
81517         (call_fclose): New function.
81518         (getpass): Use it.  Save tty stream separately; this simplifies the
81519         code and makes it more reliable if stdin happens to equal stdout.
81520         Invoke __fsetlocking on tty.
81521         Handle thread cancellation if needed.
81522         Namespace cleanup (use __tcgetattr, __getline).
81523         Use bool for Booleans.
81524         [USE_IN_LIBIO]: Handle wide streams.
81525         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81526         stream might go where.
81527
81528         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81529         doesn't have to include <stdio.h> before us.
81530         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81531         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81532         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81533         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81534         if not declared, so that we can use getpass.c code from libc without
81535         rewriting it.
81536         (flockfile, ftrylockfile, funlockfile): New macros.
81537
81538 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81539
81540         * modules/getpass: Depend on stdbool.
81541
81542 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81543
81544         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81545
81546 2003-10-07  Karl Berry  <karl@gnu.org>
81547
81548         * config/config.{guess,sub}: update from config.
81549
81550 2003-10-06  Jim Meyering  <jim@meyering.net>
81551             Bruno Haible  <bruno@clisp.org>
81552
81553         This lets translators provide better translations for the
81554         "Written by ..." part of --version output.
81555         * lib/version-etc.h: Include stdarg.h.
81556         (version_etc_copyright): Declare as readonly.
81557         (version_etc): Make this function variadic with a NULL-terminated list
81558         of author name strings.
81559         (version_etc_va): New declaration.
81560         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81561         (version_etc_copyright): Declare as readonly.
81562         (version_etc_va): New function. Provide a different translatable string
81563         for each possible number of authors < 10. Abbreviate when there are 10
81564         authors or more.
81565         (version_etc): Make this function variadic. Call version_etc_va.
81566         Suggestion from Gary V. Vaughan.
81567
81568         * lib/long-options.h (parse_long_options): Change prototype: the
81569         authors string is moved to the end and becomes variadic.
81570         * lib/long-options.c: Include stdarg.h.
81571         (parse_long_options): Make this function variadic, too.
81572         Call version_etc_va, not version_etc.
81573
81574 2003-10-06  Bruno Haible  <bruno@clisp.org>
81575
81576         * modules/version-etc-2: Remove file.
81577         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81578
81579 2003-10-06  Bruno Haible  <bruno@clisp.org>
81580
81581         * modules/fatal-signal: New file.
81582         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81583
81584 2003-10-06  Bruno Haible  <bruno@clisp.org>
81585
81586         * m4/fatal-signal.m4: New file.
81587         * m4/signalblocking.m4: New file, from GNU gettext.
81588
81589 2003-10-06  Bruno Haible  <bruno@clisp.org>
81590
81591         * lib/version-etc-2.h: Remove file.
81592         * lib/version-etc-2.c: Remove file.
81593
81594 2003-10-06  Bruno Haible  <bruno@clisp.org>
81595
81596         * lib/fatal-signal.h: New file, from GNU gettext.
81597         * lib/fatal-signal.c: New file, from GNU gettext.
81598
81599 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81600
81601         * README: Rework advice for preventing empty .o files.
81602         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81603         not <sys/types.h>.
81604
81605 2003-10-04  Karl Berry  <karl@gnu.org>
81606
81607         * lib/argp*: update from libc.
81608
81609 2003-10-04  Karl Berry  <karl@gnu.org>
81610
81611         * config/config.{guess,sub}: update from config.
81612
81613 2003-10-02  Bruno Haible  <bruno@clisp.org>
81614
81615         * modules/lchown (Include): Add lchown.h.
81616         * modules/time_r (Include): Use "..." syntax.
81617         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81618
81619 2003-10-01  Simon Josefsson  <jas@extundo.com>
81620
81621         * MODULES.html.sh (func_all_modules): Move gethostname from section
81622         'based on' to section 'lacking' POSIX:2001.
81623
81624 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81625
81626         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81627         to output mode on the same stream.
81628
81629 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81630
81631         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81632         Fix arg typo in previous patch.
81633
81634 2003-09-28  Jim Meyering  <jim@meyering.net>
81635
81636         * lib/error.c: Correct cpp indentation.
81637
81638 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81639
81640         * modules/free: New file.
81641
81642 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81643
81644         * m4/free.m4: New file.
81645
81646 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81647
81648         * lib/minmax.h (MIN, MAX)
81649         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81650         Omit the special code that used __typeof__, since we worry that
81651         it could be more trouble than it's worth.  See:
81652         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81653         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81654
81655         * lib/free.c: New file.
81656
81657 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81658
81659         Trivial fixes to Makefile.am parts of module listings.
81660         * modules/strstr: Append strstr.h to lib_SOURCES.
81661         * modules/strcase: Likewise, for strcase.h.
81662
81663 2003-09-27  Karl Berry  <karl@gnu.org>
81664
81665         * config/mkinstalldirs: update from automake.
81666
81667 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81668
81669         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81670         (error_tail): Do not loop, reallocating temporary buffer, since
81671         the output cannot contain more wide characters than the input
81672         contains bytes, the size must be big enough already.  This avoids
81673         one potential size overflow calculation.  Check for size overflow
81674         when calculating temporary buffer size.  Free temporary buffer
81675         when done, if it was allocated with malloc; this plugs a memory
81676         leak.  Remove casts from void * to pointers, that are no longer
81677         needed now that we're assuming C89 or better.
81678
81679         Merge error changes from glibc.
81680
81681         * lib/error.c, error.h: Update copyright notice header to match glibc.
81682         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81683         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81684         Disable cancellation while printing error.
81685         * lib/error.h: Prepend __ to parameter names.
81686
81687 2003-09-26  Jim Meyering  <jim@meyering.net>
81688
81689         * lib/error.c (error_tail): Move some declarations
81690         into inner scope where the local variables are used.
81691
81692 2003-09-26  Bruno Haible  <bruno@clisp.org>
81693
81694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81695         stpncpy().
81696         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81697
81698 2003-09-26  Bruno Haible  <bruno@clisp.org>
81699
81700         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81701         (stpncpy): Define as alias for gnu_stpncpy.
81702         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81703
81704 2003-09-25  Simon Josefsson  <jas@extundo.com>
81705
81706         * lib/xgetdomainname.h: New file.
81707         * lib/xgetdomainname.c: New file.
81708
81709 2003-09-25  Simon Josefsson  <jas@extundo.com>
81710             Bruno Haible  <bruno@clisp.org>
81711
81712         * modules/getdomainname: New file.
81713         * modules/xgetdomainname: New file.
81714         * MODULES.html.sh (func_all_modules): Add getdomainname,
81715         xgetdomainname.
81716
81717 2003-09-25  Simon Josefsson  <jas@extundo.com>
81718             Bruno Haible  <bruno@clisp.org>
81719
81720         * m4/getdomainname.m4: New file.
81721
81722 2003-09-25  Simon Josefsson  <jas@extundo.com>
81723             Bruno Haible  <bruno@clisp.org>
81724
81725         * lib/getdomainname.h: New file.
81726         * lib/getdomainname.c: New file.
81727
81728 2003-09-25  Karl Berry  <karl@gnu.org>
81729
81730         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81731
81732 2003-09-25  Karl Berry  <karl@gnu.org>
81733
81734         * config/install-sh: update from automake.
81735
81736 2003-09-25  Bruno Haible  <bruno@clisp.org>
81737
81738         * modules/version-etc-2: New file, from modules/version-etc with
81739         modifications.
81740         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81741
81742 2003-09-25  Bruno Haible  <bruno@clisp.org>
81743
81744         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81745         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81746
81747 2003-09-24  Simon Josefsson  <jas@extundo.com>
81748
81749         * modules/xgethostname: Add xgethostname.h.
81750
81751 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81752
81753         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81754         the buffer associated with the argument.  Bug reported by
81755         Simon Josefsson.
81756
81757 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81758
81759         * README: Document assumptions that 'int' is at least 32 bits
81760         wide, that integer arithmetic is 2's complement without overflow,
81761         that there are no holes in integer values, that adding sizes of
81762         two nonoverlapping objects can't overflow, and that all-bits-zero
81763         yields scalar zero.  Fix spelling and capitalization typos.
81764
81765 2003-09-19  Karl Berry  <karl@gnu.org>
81766
81767         * lib/argp.h: update from libc.
81768
81769 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81770
81771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81772         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81773         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81774
81775 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81776
81777         * gnulib-tool: Use "test -h", not "test -L", for portability
81778         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81779         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81780         (sed_extract_prog): Issue s commands one-by-one, rather than
81781         using \| in one s command.
81782
81783 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81784
81785         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81786         input error, instead of returning NULL the next time we are called
81787         (and therefore losing track of errno).
81788
81789 2003-09-16  Bruno Haible  <bruno@clisp.org>
81790
81791         * gnulib-tool (func_create_testdir): Warn about duplicated
81792         dependencies.
81793
81794 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81795
81796         * modules/argmatch, modules/fatal, modules/obstack,
81797         modules/xalloc, modules/xgethostname: Sort dependencies by
81798         importance, not alphabetically.
81799
81800 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81801
81802         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81803         fails, so that the caller gets the proper errno.
81804
81805         * lib/readutmp.c (read_utmp): Likewise.
81806         Check for fstat error.  Close stream and free storage
81807         when failing.
81808
81809 2003-09-14  Karl Berry  <karl@gnu.org>
81810
81811         * config/srclist.txt (strdup.c): disable for c89 changes.
81812
81813 2003-09-14  Jim Meyering  <jim@meyering.net>
81814
81815         * lib/getloadavg.c: Correct cpp indentation.
81816         * lib/strdup.c: Likewise.
81817         * lib/vasnprintf.c: Likewise.
81818
81819 2003-09-14  Bruno Haible  <bruno@clisp.org>
81820
81821         * modules/fwriteerror: New file.
81822         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81823
81824 2003-09-14  Bruno Haible  <bruno@clisp.org>
81825
81826         * lib/fwriteerror.h: New file.
81827         * lib/fwriteerror.c: New file.
81828
81829 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81830
81831         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81832         modules/xgethostname, modules/xalloc: Depend on exit.
81833
81834 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81835
81836         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81837
81838         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81839         and AC_MINIX, too, so that their extensions are available.
81840
81841         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81842         This macro has been superseded by gl_BACKUPFILE.
81843
81844         More patches to assume C89 or better.
81845
81846         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81847
81848         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81849         unconditionally.
81850         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81851         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81852         Include <string.h>, <stdlib.h> unconditionally.
81853         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81854         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81855         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81856         headers or for string.h.
81857         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81858         or strtoul.
81859
81860         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81861         headers.
81862         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81863         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81864         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81865         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81866         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81867         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81868         memcpy, memset.
81869         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81870         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81871         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81872         strtol.
81873         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81874         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81875         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81876         strtoul.
81877
81878 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81879
81880         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81881         * lib/obstack.c [!defined _LIBC]: Likewise.
81882         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81883         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81884         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81885
81886         More changes to assume C89 or better.
81887
81888         * lib/error.c (error_tail): Assume vprintf.
81889
81890         * lib/argmatch.c (getenv): Remove decl.
81891         * lib/progreloc.c (get_full_program_name): Define via prototype.
81892         * lib/setenv.c (clearenv): Likewise.
81893         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81894         needed.
81895         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81896         (malloc, memcpy): Remove decls.
81897         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81898         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81899         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81900         (memcpy): Remove macro.
81901         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81902         (__P): Remove.  All uses removed.
81903         (PTR): Remove.  All uses changed to void *.
81904         (CHAR_BIT, NULL): Remove.
81905         (spaces, zeros, memset_space, memset_zero)
81906         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81907         Remove.
81908         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81909         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81910         Define with prototype.
81911         Remove now-unnecessary prototype decl.
81912         (extra_args_spec): Assume ANSI C.  All uses changed.
81913         (extra_args_spec_iso): Remove.
81914         (my_strftime, emacs_strftimeu): Define via prototype.
81915         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81916         unconditionally.
81917         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81918         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81919         (strtoul, strtol): Remove decls.
81920         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81921         LONG_MAX): Remove.
81922         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81923         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81924         (LOCALE_PARAM_PROTO): New macro.
81925         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81926         (INTERNAL (strtol), strtol): Define with a prototype.
81927         (PARAMS): Remove.  All uses removed.
81928         * lib/tempname.c: Include <string.h> unconditionally.
81929         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81930         * lib/xgethostname.c (main): Define with a prototype.
81931         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81932         Include <stdlib.h> unconditionally.
81933         (calloc, malloc, realloc, free): Remove decls.
81934         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81935         Include <stdlib.h> unconditionally.  Sort include file names.
81936         (strtod): Remove.
81937         (xstrtod): Define with a prototype.
81938         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81939         (strtol, strtoul): Remove decls.
81940
81941 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81942
81943         More patches to assume C89 or better.
81944         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81945         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81946         string.h, memchr, STDC_HEADERS.
81947
81948 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81949
81950         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81951         Include <stdlib.h>, <string.h> unconditionally.
81952         Remove now-unnecessary cast to char *.
81953         * lib/strnlen.c: Include <string.h> unconditionally.
81954         * lib/yesno.c (yesno): Define with a prototype.
81955
81956 2003-09-11  Bruno Haible  <bruno@clisp.org>
81957
81958         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81959
81960 2003-09-10  Jim Meyering  <jim@meyering.net>
81961
81962         * lib/error.c: Correct indentation of cpp directives.
81963
81964 2003-09-10  Bruno Haible  <bruno@clisp.org>
81965
81966         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81967         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81968         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81969         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81970         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81971         <stdlib.h> and <string.h> checks.
81972         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81973         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81974
81975 2003-09-10  Bruno Haible  <bruno@clisp.org>
81976
81977         * lib/strcspn.c: Include <string.h> unconditionally.
81978         * lib/strpbrk.c: Include <string.h> unconditionally.
81979         * lib/strstr.c: Include <string.h> unconditionally.
81980         * lib/unicodeio.c: Include <string.h> unconditionally.
81981         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81982         * lib/unsetenv.c: Likewise.
81983         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81984         * lib/yesno.c: Include <stdlib.h> unconditionally.
81985         (rpmatch): Add prototype.
81986
81987 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81988
81989         More patches to assume C89 or better.
81990         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81991         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81992         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81993         or for string.h.
81994         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81995         stdlib.h.
81996         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81997         C headers.
81998         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81999         string.h.
82000         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82001         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82002         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82003         or for string.h.
82004         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82005         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82006         C headers.
82007         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82008         memcpy.
82009         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82010         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82011         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82012         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82013         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82014         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82015         string.h, free.
82016         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82017         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82018         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82019         C headers, or for string.h.
82020         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82021         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82022         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82023         headers, memory.h, stdlib.h, string.h, strings.h.
82024         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82025         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82026         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82027         strchr.
82028         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82029         headers, memory.h, string.h.
82030         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82031         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82032         free.
82033         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82034         headers.
82035         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82036         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82037         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82038         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82039         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82040
82041 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82042
82043         More K&R removal.
82044
82045         * lib/acosl.c (main): Use a prototype.
82046         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82047         tanl.c: Likewise.
82048
82049         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82050
82051         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82052         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82053         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82054         with a prototype.
82055         * lib/getopt.c (const): Remove macro.
82056         Include <string.h> unconditionally.
82057         (my_index): Remove; all uses changed to strchr.
82058         (strlen): Remove decl.
82059         (exchange): Remove forward decl; no longer needed.
82060         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82061         Define with prototype.
82062         * lib/getopt1.c (const): Remove macro.
82063         (getopt_long, getopt_long_only, main): Define with prototype.
82064
82065         * lib/getugroups.c: Include <string.h> unconditionally.
82066
82067         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82068         (getusershell, setusershell, endusershell, readname, main):
82069         Define with prototypes.
82070
82071         * lib/group-member.c: Include group-member.h first.
82072         Include <stdlib.h> unconditionally.
82073
82074         * lib/hard-locale.c: Include hard-locale.h first.
82075         Include <stdlib.h>, <string.h> unconditionally.
82076
82077         * lib/hash.c (free, malloc): Remove decls.
82078         Include <stdlib.h> unconditionally.
82079
82080         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82081         (getenv): Do not declare.
82082
82083         * lib/idcache.c: Include <string.h> unconditionally.
82084
82085         * lib/long-options.c: Include long-options.h first, to test interface.
82086         Include <stdlib.h> unconditionally.
82087
82088         * lib/makepath.c: Include makepath.h first, to test interface.
82089         Include <stdlib.h> and <string.h> unconditionally.
82090
82091         * lib/linebuffer.c: Include <stdlib.h>.
82092         (free): Remove decl.
82093
82094         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82095         stddef.h. rpl_malloc returns void *, not char *.
82096         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82097         prototype.
82098
82099         * lib/md5.h: Include <limits.h> unconditionally.
82100         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82101         (__P): Remove; all uses removed.
82102         * lib/md5.c: Include "md5.h" first.
82103         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82104         md5_buffer, md5_process_bytes, md5_process_block):
82105         Define with prototypes.
82106         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82107         * lib/sha.c: Include "sha.h" first.
82108         Include <stdlib.h>, <string.h> unconditionally.
82109
82110         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82111         * lib/memcmp.c (__ptr_t): Likewise.
82112         * lib/memrchr.c (__ptr_t): Likewise.
82113         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82114         Include <string.h> unconditionally.
82115         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82116         * lib/memchr.c: Include <stdlib.h> unconditionally.
82117         * lib/memchr.c (LONG_MAX): Remove.
82118         * lib/memrchr.c (LONG_MAX): Likewise.
82119         * lib/memchr.c (__memchr): Define via a prototype.
82120         * lib/memrchr.c (__memrchr): Likewise.
82121         * lib/memcmp.c (__P): Remove, and remove all uses.
82122         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82123         Remove forward decls; no longer needed.
82124         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82125         Use types required by C89 in prototype.
82126
82127         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82128         * lib/savedir.c: Likewise.
82129         * lib/mkdir.c (free): Remove decl.
82130         * lib/rmdir.c (rmdir): Define with a prototype.
82131         * lib/savedir.c: Include savedir.h first, to test interface.
82132
82133         * lib/mktime.c (STDC_HEADERS): Remove.
82134         Include <stdlib.h>, <string.h> unconditionally.
82135
82136         * lib/modechange.c: Include <stdlib.h> unconditionally.
82137         (malloc): Remove decl.
82138
82139         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82140         (free): Remove decl.
82141
82142         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82143         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82144         (This type really should be intptr_t, but that's a C99ism.)
82145         (_obstack_memcpy): Remove: all uses changed to memcpy.
82146         Include <string.h> unconditionally.
82147         (struct obstack): Assume __STDC__ for types of members
82148         chunkfun, freefun, extra_arg.
82149         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82150         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82151         obstack_begin, obstack_specify_allocation,
82152         obstack_specify_allocation_with_arg, obstack_chunkfun,
82153         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82154         Remove unprototyped decls and the macros that use them.
82155         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82156         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82157         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82158         (defined __STDC__ && __STDC__)]:
82159         Remove nonprototyped code.
82160         Include <stdlib.h> unconditionally.
82161         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82162         _obstack_allocated_p, _obstack_free, obstack_free,
82163         _obstack_memory_used, print_and_abort):
82164         Define using prototypes.
82165         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82166         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82167         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82168         obstack_next_free, obstack_object_size, obstack_room) [0]:
82169         Remove unused, unprototyped code.
82170
82171         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82172
82173         * lib/physmem.c (physmem_total, physmem_available, main): Define
82174         with prototypes.
82175
82176         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82177         (main): Define with a prototype.
82178
82179         * lib/posixver.c (getenv): Remove decl.
82180
82181         * lib/putenv.c (malloc): Returns void *, not char *.
82182         Include <string.h> unconditionally.
82183         (strchr, memcpy, NULL): Do not define.
82184
82185         * lib/readtokens.c: Include readtokens.h first, to test interface.
82186         Include <stdlib.h>, <string.h> unconditionally.
82187         (init_tokenbuffer): Define with a prototype.
82188
82189         * lib/regex.c (PARAMS): Remove.  All uses removed.
82190         All uses of _RE_ARGS removed, too.
82191         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82192         unconditionally.
82193         (bzero): Assume memset exists.
82194         (memcmp, memcpy, NULL): Remove.
82195         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82196         char, or assignments to local vars of type signed char.
82197         (init_syntax_once, PREFIX(extract_number_and_incr),
82198         PREFIX(print_partial_compiled_pattern),
82199         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82200         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82201         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82202         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82203         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82204         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82205         wcs_compile_range, byte_compile_range, truncate_wchar,
82206         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82207         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82208         count_mbs_length, wcs_re_match_2_internal,
82209         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82210         PREFIX(alt_match_null_string_p),
82211         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82212         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82213         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82214         now-unnecessary declaration, if any.
82215         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82216         regcomp, regexec):
82217         Remove now-unnecessary casts among pointer types.
82218         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82219
82220         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82221         (free): Remove decl.
82222
82223         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82224
82225         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82226         (free): Remove decl.
82227
82228         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82229         * lib/xgetcwd.c: Likewise.
82230
82231         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82232         (free): Remove decl.
82233
82234         * lib/strchrnul.c (strchrnul): Define with a prototype.
82235         Fix bug: c_in was not converted to char before searching.
82236
82237         The following changes are not K&R related:
82238
82239         * lib/group-member.h: Include <sys/types.h>, so that this file is
82240         self-contained.
82241         * lib/makepath.h: Likewise.
82242
82243         * lib/getusershell.c (readname, default_index, line_size, readname):
82244         Use size_t, not int, for sizes.
82245         (readname): If the size overflows, report an error instead of
82246         looping forever.
82247
82248 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82249
82250         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82251         libc.
82252
82253 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82254
82255         * README: New section: portability guidelines.
82256
82257 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82258
82259         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82260         C89 spec.
82261
82262 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82263
82264         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82265
82266 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82267
82268         Assume C89 or better; remove K&R cruft.
82269         A few of these changes were first proposed by Derek Robert Price
82270         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82271
82272         * lib/addext.c: Include <string.h> unconditionally.
82273         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82274         Don't declare getenv or malloc.
82275
82276         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82277         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82278         (NULL): Remove.
82279         (find_stack_direction, alloca): Use prototypes.
82280
82281         * lib/atexit.c (atexit): Define using a prototype.
82282
82283         * lib/basename.c, dirname.c, stripslash.c:
82284         Include <string.h> unconditionally.
82285
82286         * lib/bcopy.c: Include <stddef.h>.
82287         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82288
82289         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82290
82291         * lib/error.h (error, error_at_line, error_print_progname)
82292         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82293         * lib/error.c: Include error.h first, to check interface.
82294         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82295         (VA_START): Remove; all uses changeed to va_start.
82296         (exit, strerror): Remove decls.
82297         (error_print_progname): Prototype uncondionally.
82298         Don't include <errno.h>; no longer needed.
82299         (private_strerror): Remove.
82300         (error_tail): Always define.
82301         (error, error_at_line): Assume C89 or better; always use prototypes.
82302         * lib/fatal.c: Include "fatal.h" first, to test interface.
82303         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82304         (VA_START): Remove; all uses changed to va_start.
82305         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82306         this case.
82307         (exit): Remove decl.
82308         (fatal): Prototype unconditionally.  Assume va_start works.
82309         Abort at end, to pacify gcc.
82310
82311         * lib/euidaccess.c (main): Define with a prototype.
82312
82313         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82314
82315         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82316
82317         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82318         prototypes.
82319         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82320         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82321         (getenv): Remove decl.
82322         (fnmatch): Define using a prototype.
82323         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82324         (FCT): Define using a prototype.
82325
82326         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82327
82328         * lib/gethostname.c: Include <stddef.h>.
82329         (gethostname): Define with prototype.  Length is size_t, not int.
82330
82331 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82332
82333         Assume C89 or better; remove K&R cruft.
82334         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82335         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82336         string.h, getenv, malloc.
82337         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82338         headers.
82339         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82340         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82341         do not check for strerror.
82342         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82343         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82344         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82345         do not check for doprnt or vprintf.
82346         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82347         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82348
82349 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82350
82351         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82352         getversion.c should have been removed then, but was accidentally
82353         preserved.
82354
82355         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82356         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82357
82358 2003-09-08  Karl Berry  <karl@gnu.org>
82359
82360         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82361                 config, forget about prep.
82362
82363         * config/depcomp, missing: update from automake.
82364
82365 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82366
82367         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82368         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82369
82370 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82371
82372         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82373         copy_tm_result.  Bug reported by Simon Josefsson in
82374         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82375
82376 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82377
82378         * m4/time_r.m4: New file.
82379         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82380         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82381         is. Check for timegm declaration.
82382         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82383         Do not check for gmtime_r.
82384         Replace mktime if __mktime_internal does not exist and if mktime
82385         hasn't been replaced already.
82386
82387 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82388
82389         * lib/time_r.c, lib/time_r.h: New files.
82390
82391         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82392         __localtime_r.
82393         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82394         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82395
82396         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82397         __gmtime_r.
82398         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82399         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82400         Include <time_r.h>.
82401
82402         * lib/timegm.c: Switch to glibc implementation, with the following
82403         changes:
82404         [defined HAVE_CONFIG_H]: Include <config.h>.
82405         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82406         (__mktime_internal) [!defined _LIBC]: New decl.
82407         (__gmtime_r) [!defined _LIBC]: New macro and function.
82408         (timegm): Use a prototype, since gnulib assumes C89.
82409         Do not bother declaring tmp to be const, as it's not really usefu.
82410         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82411         (timegm): Declare only if HAVE_DECL_TIMEGM.
82412
82413 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82414
82415         * MODULES.html.sh (func_all_modules): Add time_r.
82416         * modules/time_r: New file.
82417         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82418         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82419
82420 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82421
82422         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82423         Bug reported by Lute Kamstra in
82424         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82425
82426         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82427         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82428         course with correspondingly smaller numbers for tomorrow and
82429         yesterday.  From Tadayoshi Funaba.  Originally installed into
82430         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82431         coreutils merge?).
82432
82433 2003-08-31  Simon Josefsson  <jas@extundo.com>
82434
82435         * modules/timegm: New file.
82436         * MODULES.html.sh (func_all_modules): Add timegm.
82437
82438 2003-08-31  Simon Josefsson  <jas@extundo.com>
82439
82440         * m4/timegm.m4: New file.
82441
82442 2003-08-31  Simon Josefsson  <jas@extundo.com>
82443
82444         * lib/timegm.h: New file.
82445         * lib/timegm.c: New file.  Based on
82446         wget-1.8.2/src/http.c:mktime_from_utc.
82447
82448 2003-08-31  Karl Berry  <karl@gnu.org>
82449
82450         * lib/argp.h: update from libc.
82451
82452 2003-08-28  Bruno Haible  <bruno@clisp.org>
82453
82454         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82455         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82456         followed by '#define fnmatch fnmatch_posix' gives an error.
82457
82458 2003-08-28  Bruno Haible  <bruno@clisp.org>
82459
82460         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82461         warning on QNX, which defines O_BINARY to 000000.
82462
82463 2003-08-27  Jim Meyering  <jim@meyering.net>
82464
82465         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82466         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82467         would fail after 32.  Reported by Danny Levinson.  Details here:
82468         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82469
82470 2003-08-24  Bruno Haible  <bruno@clisp.org>
82471
82472         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82473         MSVC7 <stdio.h> is included later.
82474
82475 2003-08-22  Simon Josefsson  <jas@extundo.com>
82476
82477         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82478
82479 2003-08-20  Karl Berry  <karl@gnu.org>
82480
82481         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82482
82483 2003-08-20  Bruno Haible  <bruno@clisp.org>
82484
82485         * modules/progname: New file.
82486         * MODULES.html.sh (func_all_modules): Add progname.
82487
82488 2003-08-20  Bruno Haible  <bruno@clisp.org>
82489
82490         * lib/progname.h: New file, from GNU gettext.
82491         * lib/progname.c: New file, from GNU gettext.
82492         * lib/progreloc.c: New file, from GNU gettext.
82493
82494 2003-08-19  Jim Meyering  <jim@meyering.net>
82495
82496         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82497         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82498
82499 2003-08-19  Bruno Haible  <bruno@clisp.org>
82500
82501         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82502         more.
82503
82504 2003-08-19  Bruno Haible  <bruno@clisp.org>
82505
82506         * lib/xstrdup.c: Assume <string.h> exists.
82507
82508 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82509
82510         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82511         in makefile rules.
82512
82513 2003-08-18  Jim Meyering  <jim@meyering.net>
82514
82515         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82516         * m4/lib-ld.m4: Likewise.
82517
82518 2003-08-18  Jim Meyering  <jim@meyering.net>
82519
82520         * lib/setenv.h: Indent nested cpp directive.
82521         * lib/vasnprintf.c: Remove trailing blanks.
82522
82523 2003-08-17  Simon Josefsson  <jas@extundo.com>
82524
82525         * modules/xstrndup: New file.
82526         * MODULES.html.sh (func_all_modules): Add xstrndup.
82527
82528 2003-08-17  Simon Josefsson  <jas@extundo.com>
82529
82530         * modules/argp: Fix autoconf macro name. Add more dependencies.
82531
82532 2003-08-17  Simon Josefsson  <jas@extundo.com>
82533
82534         * m4/xstrndup.m4: New file.
82535
82536 2003-08-17  Simon Josefsson  <jas@extundo.com>
82537
82538         * m4/argp.m4: New file.
82539
82540 2003-08-17  Simon Josefsson  <jas@extundo.com>
82541             Bruno Haible  <bruno@clisp.org>
82542
82543         * lib/xstrndup.h: New file.
82544         * lib/xstrndup.c: New file.
82545
82546 2003-08-17  Bruno Haible  <bruno@clisp.org>
82547
82548         * modules/strndup (Files, Include): Add lib/strndup.h.
82549
82550 2003-08-17  Bruno Haible  <bruno@clisp.org>
82551
82552         * modules/euidaccess (Files): Add lib/euidaccess.h.
82553
82554 2003-08-17  Bruno Haible  <bruno@clisp.org>
82555
82556         * lib/strndup.h: New file.
82557
82558 2003-08-17  Bruno Haible  <bruno@clisp.org>
82559
82560         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82561         like AC_GNU_SOURCE.
82562         * modules/extensions (configure.ac): Comment out the invocation of
82563         gl_USE_SYSTEM_EXTENSIONS.
82564
82565 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82566
82567         Merges from coreutils, etc.
82568         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82569         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82570         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82571         fixing a typo.
82572         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82573         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82574
82575 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82576
82577         Document merge from coreutils.
82578         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82579         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82580         * modules/utime: Add m4/utimes-null.m4.
82581
82582 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82583
82584         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82585         space, undoing this 2003-08-12 change:
82586         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82587
82588 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82589
82590         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82591         strtoul.c from libc, undoing this 2003-08-12 change:
82592         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82593
82594 2003-08-16  Jim Meyering  <jim@meyering.net>
82595
82596         Merges from coreutils.
82597         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82598         prefix.  Adjust cache variables similarly.  Create 500 rather than
82599         just 300 files, to exercise bug on Darwin6.5, too.
82600         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82601         $missing_dir.
82602         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82603         AM_SYS_POSIX_TERMIOS.
82604         Reported by mkc@mathdogs.com.
82605         Also change use of $am_cv_sys_posix_termios
82606         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82607         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82608         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82609         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82610         in /proc/mounts until it finds one with matching device number.  This
82611         is unnecessary when the FILE argument *is* a mount point.  No stat call
82612         is necessary in that case.  So, disable the statvfs-testing code on
82613         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82614         as RedHat bug# 84846.
82615         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82616         to 1MB, so as not to render systems with no stack size limit (e.g.,
82617         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82618         Include <unistd.h>.  On some systems,
82619         it is required for the definition of _SC_PAGESIZE.
82620
82621 2003-08-16  Jim Meyering  <jim@meyering.net>
82622
82623         Merge from coreutils.
82624         * lib/xstrtoimax.c: #else #if -> #elif.
82625         * lib/xstrtoumax.c: Likewise.
82626
82627 2003-08-16  Jim Meyering  <jim@meyering.net>
82628
82629         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82630         * m4/utimes.m4: Removed.
82631         * m4/utimes-null.m4: Renamed from utimes.m4.
82632
82633         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82634         to 1MB, so as not to render systems with no stack size limit (e.g.,
82635         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82636         Include <unistd.h>.  On some systems,
82637         it is required for the definition of _SC_PAGESIZE.
82638
82639 2003-08-16  Jim Meyering  <jim@meyering.net>
82640         and Paul Eggert  <eggert@cs.ucla.edu>
82641
82642         Merges from coreutils, etc.
82643
82644         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82645         using the latest version from cvs.  This avoids problems with #line
82646         directives using a vendor (Sun) compiler.
82647         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82648         Don't set GETGROUPS_LIB here; now it's
82649         done via getgroups.m4's wrapper function.
82650         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82651         rather than just in sh-util/configure.in, so that the
82652         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82653         same.
82654         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82655         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82656         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82657         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82658         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82659         Remove code that is now done by the newly-required macros.
82660         Append $(EXEEXT) to DF_PROG.
82661         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82662         Do not invoke or require the following here,
82663         since prereq.m4 or some gnulib .m4 now does this for us:
82664         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82665         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82666         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82667         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82668         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82669         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82670         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82671         AC_FUNC_OBSTACK.
82672         Do not replace the following functions, as this is now the job
82673         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82674         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82675         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82676         atexit getpass, strdup, getpagesize.
82677         Replace 'raise'.
82678         Do not check for the following functions, as this is now the job
82679         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82680         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82681         setregid.
82682         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82683         Check for sys/sysctl.h.
82684         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82685         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82686         of checking for ssize_t ourselves.
82687
82688         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82689         Require every macro that gnulib/modules/* suggests for us.
82690         (jm_PREREQ_ADDEXT): New macro.
82691         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82692         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82693
82694         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82695         (gl_PHYSMEM): Use it.
82696         Also check for `table' function.
82697         Check for new headers and functions.
82698         Add check for sys/sysmp.h.
82699         With suggestions from Kaveh Ghazi.
82700         Ignore headers that are present but cannot be compiled.  This
82701         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82702         C 5.4.
82703
82704 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82705
82706         Document merge from coreutils.
82707         * modules/userspec: Depend on posixver.
82708         * modules/strftime: Depend on tzset.
82709
82710 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82711
82712         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82713         rather than tab, after '#' in shell-script copyright notices.
82714         Suggested by Bruno Haible.
82715
82716 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82717
82718         * config/srclist-update: Use three spaces, rather than tab, after '#'
82719         in shell-script copyright notices.  Suggested by Bruno Haible.
82720         Remove unnecessary parenthesization in regular expression.
82721
82722 2003-08-15  Jim Meyering  <jim@meyering.net>
82723
82724         Merge from coreutils.
82725         * lib/xgethostname.c: Include <stdlib.h>.
82726         (xghostname): Don't exit for anything other than memory-related
82727         failure; just return NULL.
82728         * lib/userspec.c: Include "posixver.h".
82729         (parse_user_spec): Accept `.' as a separator only
82730         in pre-POSIX-200112 mode.
82731         * lib/strtoimax.c: Use #elif rather than #else #if.
82732         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82733         Remove function, now that we can rely on a working tzset function.
82734         [!_LIBC]: Ensure that the required autoconf test has been run.
82735         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82736         Use underlying_strftime for %r.
82737         * lib/sha.c: Merge in some clean-up and optimization changes from
82738         glibc.
82739         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82740         Ensure that it is a multiple of 64.
82741         Rearrange loop exit tests so as to avoid performing an
82742         additional fread after encountering an error or EOF.
82743         * lib/realloc.c: Update copyright date.
82744
82745 2003-08-15  Jim Meyering  <jim@meyering.net>
82746         and Paul Eggert  <eggert@twinsun.com>
82747
82748         Merge from coreutils.
82749         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82750         member but strut utmpx does not.  Needed for AIX 4.3.3.
82751         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82752
82753 2003-08-15  Jim Meyering  <jim@meyering.net>
82754         and Paul Eggert  <eggert@cs.ucla.edu>
82755
82756         Merges from coreutils, etc.
82757         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82758         Require gl_FUNC_TZSET_CLOBBER.
82759         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82760         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82761         members.
82762
82763 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82764
82765         Help the merge from coreutils.
82766         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82767         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82768         * m4/tzset.m4: Use it too.
82769
82770 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82771
82772         * modules/tzset: New file.
82773
82774 2003-08-14  Jim Meyering  <jim@meyering.net>
82775
82776         Merges from coreutils.
82777         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82778         variable names, rather than @FNMATCH_H@.
82779         * modules/alloca: Likewise for $(ALLOCA_H).
82780
82781         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82782         the three copies of the literal target, `fnmatch.h'.
82783         * modules/alloca (alloca.h): Likewise.
82784
82785 2003-08-14  Jim Meyering  <jim@meyering.net>
82786
82787         Merge from coreutils.
82788         * m4/tzset.m4: New file.
82789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82790         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82791         otherwise, AIX 5.1 systems would end up using the latter.
82792         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82793         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82794         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82795         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82796
82797 2003-08-14  Jim Meyering  <jim@meyering.net>
82798
82799         Merge from coreutils.
82800         * lib/obstack.h: Whitespace changes.
82801         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82802         and xcalloc return values.
82803         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82804         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82805         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82806         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82807         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82808         error from mntctl.
82809         Use mntctl's return value to drive the entry-processing loop, since
82810         we can't rely on the value of the vmt_length member in the last
82811         entry.  On some systems doing so could result in exhausting
82812         virtual memory.  Based in part on a patch from Mike Jetzer.
82813
82814 2003-08-14  Jim Meyering  <jim@meyering.net>
82815         and Paul Eggert  <eggert@twinsun.com>
82816
82817         Merges from coreutils, plus other fixes.
82818         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82819         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82820         for credits and details.  Thanks to Kaveh Ghazi for helping
82821         to keep these files in sync.
82822         (ARRAY_SIZE): Define it.
82823         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82824         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82825         (memcasecmp): Don't assume size_t fits in unsigned int.
82826         Remove casts and duplicate code.
82827         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82828         (memcpy): Remove definition.
82829         Merge in some clean-up and optimization changes from glibc.
82830         [BLOCKSIZE]: Move definition to top of file.
82831         Ensure that it is a multiple of 64.
82832         Rearrange loop exit tests so as to avoid performing an
82833         additional fread after encountering an error or EOF.
82834         * lib/md5.h (md5_uintptr): Define.
82835         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82836         return to the initial working directory.  Preserve errno
82837         for caller.
82838         * lib/idcache.c: Include "xalloc.h".
82839         (xmalloc, xrealloc): Remove decls.
82840         (getuser): Remove casts no longer required in C89.
82841         * lib/human.c: Include stdio.h, for sprintf.
82842         * lib/group-member.c: Include "xalloc.h".
82843         (xmalloc, xrealloc): Remove decls.
82844         (get_group_info): Remove casts no longer required in C89.
82845         * lib/getusershell.c (readname): Remove casts no longer required in
82846         C89.
82847         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82848         * lib/getline.c: Whitespace fix, from coreutils.
82849
82850 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82851
82852         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82853         Check for isascii.
82854
82855         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82856         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82857         Undo previous (whitespace-only) change.
82858
82859 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82860
82861         * lib/exclude.c: Include <ctype.h>
82862         (IN_CTYPE_DOMAIN): New macro.
82863         (is_space): New fn.
82864         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82865         and empty lines.
82866
82867         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82868         Undo previous (whitespace-only) change.
82869
82870 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82871
82872         * config/srclist-update: Change update back to the old behavior,
82873         leaving whitespace alone.  Use one 'sed' command rather than a
82874         pipeline.
82875         (fixlicense): Now a variable, not a function.
82876         (remove_trailing_blanks): Remove.
82877         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82878         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82879         Undo previous (whitespace-only) change.
82880
82881 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82882
82883         Merge from coreutils.
82884         * modules/euidaccess: Add lib_SOURCES, include for new
82885         file euidaccess.h
82886
82887 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82888
82889         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82890         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82891         Normalize leading white space and remove trailing white space.
82892
82893         Merge from coreutils
82894         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82895
82896         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82897         0.12.1.  These files are now being upgraded automatically by
82898         ../config/srclist-update.
82899
82900 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82901
82902         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82903         Normalize leading white space and remove trailing white space.
82904         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82905         notice, as per ../config/srclist-update.
82906
82907         Merge from coreutils.
82908         * lib/euidaccess.h: New file.
82909         * lib/euidaccess.c: Include it.
82910         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82911         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82912         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82913
82914 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82915
82916         * config/srclist-update: Add copyright notice.
82917         (remove_id_lines, remove_trailing_blanks): New constants.
82918         (fixfile): Use them to normalize spacing a bit in copied files.
82919         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82920         Normalize leading white space and remove trailing white space.
82921
82922         * config/texinfo.tex: Sync with texinfo.
82923
82924         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82925         strtoul.c from libc, to merge coreutils whitespace changes.
82926
82927         * config/srclist.txt: Get the following m4 files from gettext:
82928         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82929         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82930         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82931         wint_t.m4.
82932
82933 2003-08-12  Karl Berry  <karl@gnu.org>
82934
82935         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82936         been made.
82937
82938 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82939
82940         * modules/gnu-source, m4/gnu-source.m4:
82941         Remove; we're assuming Autoconf 2.54 or later now.
82942         Suggested by Bruno Haible.
82943         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82944
82945 2003-08-11  Bruno Haible  <bruno@clisp.org>
82946
82947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82948
82949 2003-08-11  Bruno Haible  <bruno@clisp.org>
82950
82951         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82952         (vasnprintf): Use it instead of wcslen.
82953
82954 2003-08-11  Bruno Haible  <bruno@clisp.org>
82955
82956         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82957         value to ensure that _Bool promotes to int. Use #define for _Bool when
82958         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82959
82960 2003-08-10  Karl Berry  <karl@gnu.org>
82961
82962         * lib/regex.h: update from libc (whitespace fix).
82963
82964 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82965
82966         Merge some files from coreutils.  These changes were
82967         originally made by Jim Meyering.
82968         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82969         many older Unixes require this.
82970         * lib/alloca.c (alloca): Remove cast to argument of free;
82971         no longer needed in C89.
82972         * lib/alloca_.h, regex.h: Fix white space to match
82973         what GNU indent does.
82974
82975 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82976
82977         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82978         apparently Emacs's Unicode mode got confused before my 2003-08-05
82979         checkin.
82980
82981 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82982
82983         * m4/extensions.m4: New file.
82984         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82985         Require gl_USE_SYSTEM_EXTENSIONS.
82986         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82987         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82988
82989 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82990
82991         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82992         * modules/extensions, modules/gnu-source: New files.
82993         * modules/timespec, modules/unlocked-io: Depend on extensions.
82994
82995 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82996
82997         * modules/restrict: New file.
82998         * MODULES.html.sh (func_all_modules): Add restrict.
82999         * modules/regex: Depend on restrict.
83000
83001 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83002
83003         * m4/restrict.m4: New file.
83004         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83005
83006 2003-08-07  Bruno Haible  <bruno@clisp.org>
83007
83008         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83009         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83010
83011 2003-08-07  Bruno Haible  <bruno@clisp.org>
83012
83013         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83014         makes the module 'getndelim2' compatible with the module 'getline'.
83015
83016 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83017
83018         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83019         byte with "\201" to avoid glitches when editing that source file
83020         with multi-gnome-terminal.
83021
83022 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83023
83024         * lib/bumpalloc.h: Remove.
83025
83026 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83027
83028         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83029         * modules/bumpalloc: Remove.
83030
83031 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83032
83033         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83034         GNU coding style.
83035
83036         Merge from coreutils.
83037         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83038         1. From glibc.
83039         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83040         from Karl Berry, implemented by Jim Meyering.
83041         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83042         from Dmitry V. Levin.
83043         Remove anachronistic cast of xrealloc.
83044         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83045         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83046         type. Otherwise, it wouldn't compile with at least /bin/cc on
83047         ymp-cray-unicos9.0.2.X.
83048         Combine two mostly-identical uses of alloca into one.
83049         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83050
83051 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83052
83053         [From Emacs.]
83054
83055         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83056         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83057         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83058         obsolete NLIST_NAME_UNION.
83059         [__GNU__]: Undef BSD and FSCALE.
83060         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83061
83062 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83063
83064         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83065         an enum type, so that it's guaranteed to promote to int.  See:
83066         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83067
83068 2003-08-03  Karl Berry  <karl@gnu.org>
83069
83070         * config/depcomp: update from automake.
83071
83072 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83073
83074         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83075         (strerror): Don't assume that a printable int fits in 14 bytes.
83076
83077 2003-07-31  Bruno Haible  <bruno@clisp.org>
83078
83079         * modules/getpass-gnu: New file.
83080         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83081
83082 2003-07-31  Bruno Haible  <bruno@clisp.org>
83083
83084         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83085
83086 2003-07-24  Karl Berry  <karl@gnu.org>
83087
83088         * config/missing: update from automake.
83089
83090 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83091             Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83094         * lib/getline.c (getline, getdelim): Likewise.
83095         Remove _GNU_SOURCE define; now it's defined in config.h through
83096         m4/getline.m4.
83097
83098 2003-07-23  Karl Berry  <karl@gnu.org>
83099
83100         * config/config.sub: update from prep.
83101
83102 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83103
83104         * modules/xalloc (Depends-on): Add exitfail.
83105         * modules/xmemcoll: Likewise.
83106
83107 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83108
83109         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83110         over-parenthesization in macros.
83111
83112         Sync with coreutils.
83113
83114         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83115         required by C99.
83116
83117         Use `exit_failure' for xalloc and xmemcoll instead of their own
83118         private exit-failure variables.
83119         * lib/xalloc.h (xalloc_exit_failure): Remove.
83120         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83121         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83122         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83123         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83124         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83125
83126 2003-07-20  Jim Meyering  <jim@meyering.net>
83127
83128         * modules/closeout (Depends-on): Add exitfail.
83129         Suggestion from Bruno Haible.
83130
83131 2003-07-19  Karl Berry  <karl@gnu.org>
83132
83133         * config/config.sub: update from prep.
83134
83135 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83136
83137         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83138         Remove.
83139         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83140         to test that it can stand by itself.  Include "exitfail.h".
83141         Clients should set exit_failure instead.
83142         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83143
83144 2003-07-18  Bruno Haible  <bruno@clisp.org>
83145
83146         * modules/getndelim2: New file.
83147         * modules/getline: Share files with module getndelim2.
83148         * modules/getnline: Depend on getndelim2 instead of sharing files with
83149         it. Add getnline.c to lib_SOURCES.
83150         * MODULES.html.sh (func_all_modules): Add getndelim2.
83151
83152 2003-07-18  Bruno Haible  <bruno@clisp.org>
83153
83154         * m4/getndelim2.m4: New file.
83155         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83156         invoke gl_PREREQ_GETNDELIM2.
83157         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83158         gl_PREREQ_GETNDELIM2.
83159         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83160         gl_GETNDELIM2.
83161
83162 2003-07-18  Bruno Haible  <bruno@clisp.org>
83163
83164         * lib/getndelim2.h: New file.
83165         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83166         getndelim2.h.
83167         (getndelim2): Make non-static. Change return type to ssize_t.
83168         * lib/getline.h: Change argument names.
83169         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83170         * lib/getnline.c: Include getndelim2.h.
83171
83172 2003-07-18  Andreas Schwab  <schwab@suse.de>
83173
83174         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83175
83176 2003-07-17  Karl Berry  <karl@gnu.org>
83177
83178         * config/config.sub: update from prep.
83179
83180 2003-07-17  Bruno Haible  <bruno@clisp.org>
83181
83182         * modules/getnline: New file.
83183         * modules/getline: Add lib/getndelim2.c to source file list.
83184         * MODULES.html.sh (func_all_modules): Add getnline.
83185
83186 2003-07-17  Bruno Haible  <bruno@clisp.org>
83187
83188         * m4/getnline.m4: New file.
83189
83190 2003-07-17  Bruno Haible  <bruno@clisp.org>
83191
83192         * m4/Makefile.am.in: Remove file.
83193         * m4/Makefile.am: Remove file.
83194         * m4/Makefile.in: Remove file.
83195
83196 2003-07-17  Bruno Haible  <bruno@clisp.org>
83197
83198         * lib/getnline.h: New file.
83199         * lib/getnline.c: New file.
83200         * lib/getndelim2.c: New file, extracted from getline.c.
83201         (getndelim2): Renamed from getdelim2, with added nmax argument.
83202         * lib/getline.c: Include getndelim2.c.
83203         (getdelim2): Moved out to getndelim2.c.
83204         (getline, getdelim): Update.
83205
83206 2003-07-17  Bruno Haible  <bruno@clisp.org>
83207
83208         * lib/Makefile.am: Remove file.
83209         * lib/Makefile.in: Remove file.
83210
83211 2003-07-17  Bruno Haible  <bruno@clisp.org>
83212
83213         * configure.in: Remove file.
83214         * Makefile.in: Remove file.
83215
83216 2003-07-17  Bruno Haible  <bruno@clisp.org>
83217
83218         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83219
83220 2003-07-16  Karl Berry  <karl@gnu.org>
83221
83222         * config/srclist-update: was running fixlicense twice, which caused
83223                 texinfo.tex to be nullified for some reason.  Simplify,
83224                 $gplsrc is no longer needed as far as I can see?
83225
83226 2003-07-16  Jim Meyering  <jim@meyering.net>
83227
83228         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83229
83230 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83231
83232         * config/srclist.txt: Get the following files from gettext-runtime/intl
83233         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83234         ref-del.sin.  From Bruno Haible.
83235         * config/srclist-update (fixfile): Change grep pattern again, since the
83236         previous fix didn't work (there was another trailing $).  Use
83237         '[$]' to escape the $s.
83238
83239 2003-07-15  Karl Berry  <karl@gnu.org>
83240
83241         * lib/vasnprintf.c: update from gettext.
83242
83243 2003-07-15  Karl Berry  <karl@gnu.org>
83244
83245         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83246         gets expanded when surrounded by '$'.
83247
83248 2003-07-15  Jim Meyering  <jim@meyering.net>
83249
83250         * modules/save-cwd: Don't depend on error.  From Derek Price.
83251
83252 2003-07-15  Jim Meyering  <jim@meyering.net>
83253
83254         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83255
83256 2003-07-14  Simon Josefsson  <jas@extundo.com>
83257
83258         * modules/mempcpy: New file.
83259         * MODULES.html.sh (func_all_modules): Add mempcpy.
83260
83261 2003-07-14  Simon Josefsson  <jas@extundo.com>
83262
83263         * m4/mempcpy.m4: New file.
83264
83265 2003-07-14  Simon Josefsson  <jas@extundo.com>
83266
83267         * lib/mempcpy.h: New file.
83268         * lib/mempcpy.c: New file.
83269
83270 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83271
83272         * modules/getdate, modules/posixtm: Depend on mktime.
83273
83274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83275
83276         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83277         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83278         unicodeio.c, unicodeio.h, unlocked-io.h:
83279         Switch from LGPL to GPL.
83280
83281 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83282
83283         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83284         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83285         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83286         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83287         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83288         updated automatically by ../config/srclist-update.  This changes
83289         their license from LPGL to GPL.
83290
83291 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83292
83293         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83294         assumed to refer to the root of the most recent stable gettext version.
83295         * config/srclistvars.sh: Add defaults for eggert.
83296         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83297         Match "This program" as well as "The program".  This is needed
83298         for gettext.
83299
83300 2003-07-14  Jim Meyering  <jim@meyering.net>
83301
83302         Don't emit diagnostics.  Let callers do that.
83303         * lib/save-cwd.c: Don't include "error.h".
83304         (save_cwd): Don't call error.  Ensure that errno is valid
83305         when returning nonzero.
83306
83307         * lib/save-cwd.h (restore_cwd): Update prototype.
83308         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83309         Simplify.  Don't call error upon failure.  Let callers do that.
83310         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83311         when auditing is enabled.  But don't bother updating the #if.
83312
83313 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83314
83315         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83316         it breaks C++ compilation.
83317         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83318
83319 2003-07-10  Simon Josefsson  <jas@extundo.com>
83320
83321         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83322
83323 2003-07-10  Jim Meyering  <jim@meyering.net>
83324
83325         * m4/clock_time.m4: Remove trailing blank.
83326         * m4/intmax_t.m4: Likewise.
83327
83328 2003-07-10  Jim Meyering  <jim@meyering.net>
83329
83330         * lib/vasnprintf.c: Remove trailing blanks.
83331         Make cpp indentation consistent.
83332
83333 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83334
83335         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83336         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83337         Switch from LGPL to GPL.
83338
83339 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83340
83341         * config/srclist.txt: Sort sublists.  Add
83342         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83343         that differ from gnulib for one reason or another; we'd like this list
83344         to be smaller but for now let's document what we have.
83345
83346 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83347
83348         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83349         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83350         and sweeter "eval x=$x".
83351         * config/srclist.txt: Get lib/argp* from glibc.
83352
83353 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83354
83355         * lib/mktime.c: Fix some boundary cases and remove need for floating
83356         point.
83357
83358         Issue a compile-time diagnostic if time_t is floating point, or if
83359         two's complement arithmetic is not in effect, or if arithmetic
83360         right shift does not propagate the sign.  These assumptions were
83361         all in the original code but they weren't checked.
83362
83363         (TIME_T_MIDPOINT, verify): New macros.
83364         (__isleap): Remove; it has integer overflow problems.
83365         (leapyear): New function, without those problems.
83366         (ydhms_tm_diff): Remove; splitting into two parts.
83367         (ydhms_diff): New function, containing the arithmetic part of
83368         the old ydhms_tm_diff function.  Issue a compile-time
83369         diagnostic if we are not using C99 integer division.
83370         Avoid casts when possible.
83371         (guess_time_tm): New function, containing the checking part of
83372         the old ydhms_tm_diff function.  Return the new value, rather than
83373         the difference between it and the old.  Accept a new argument T
83374         so that *T specifies the old value.  Check for overflow in the result.
83375
83376         (__mktime_internal): Use a time_t offset, not a long int offset.
83377         This undoes the 2003-06-04 change, which is no longer needed now
83378         that we have better overflow checking.
83379         (localtime_offset): Likewise.
83380
83381         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83382         and long are 64-bit but int is only 32-bit.
83383         (ydhms_diff): Use long int to store year1 and yday1.
83384         Issue a compile-time diagnostic if long int is not wide enough.
83385
83386         (__mktime_internal): Use long int to store adjusted year and yday.
83387         Use plain C rather than preprocessor commands, if that doesn't
83388         affect efficiency.
83389         Check for overflow (and try to repair) after each probe
83390         rather than checking only at the very end.  This avoids some bugs
83391         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83392         does not equal GMT offset at maximum time).
83393         Use integer to check for overflow rather than floating point; this
83394         is more portable to non-IEEE hosts, and is a tad faster.
83395         When we detect that we are oscillating between two values,
83396         don't check whether tm_isdst has the requested value, since
83397         we already know the answer.  When tm_isdst has the wrong value,
83398         use a different heuristic to find the right one, based on the
83399         extreme values actually observed in practice in tz2003a,
83400         rather than the (overly optimistic) "previous 3 calendar quarters".
83401
83402         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83403         "T const" to accommodate glibc style.
83404         (check_result): Use less-confusing report format.  "long" -> "long int.
83405         (main): Likewise.
83406         Don't loop if the iteration overflows time_t.
83407         Allow a negative step in the iteration.
83408
83409 2003-07-06  Karl Berry  <karl@gnu.org>
83410
83411         * config/depcomp: update from automake.
83412         * config/config.sub: update from prep.
83413
83414 2003-07-03  Karl Berry  <karl@gnu.org>
83415
83416         * config/config.guess: update from prep.
83417
83418 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83419
83420         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83421         xreadlink.c now includes it unconditionally.
83422
83423 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83424
83425         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83426         having it depend on HAVE_SYS_TYPES_H.
83427
83428 2003-07-01  Bruno Haible  <bruno@clisp.org>
83429
83430         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83431         <sys/types.h> should be sufficient.
83432         Reported by Paul Eggert.
83433
83434 2003-06-26  Karl Berry  <karl@gnu.org>
83435
83436         * config/depcomp: update from automake.
83437
83438 2003-06-26  Bruno Haible  <bruno@clisp.org>
83439
83440         * modules/human: Depend on module stdbool.
83441
83442 2003-06-25  Bruno Haible  <bruno@clisp.org>
83443
83444         * modules/readlink: New file.
83445         * modules/xreadlink: Depend on it.
83446         * MODULES.html.sh (func_all_modules): Add readlink.
83447
83448 2003-06-25  Bruno Haible  <bruno@clisp.org>
83449
83450         * m4/readlink.m4: New file.
83451
83452 2003-06-25  Bruno Haible  <bruno@clisp.org>
83453
83454         * lib/readlink.c: New file.
83455
83456 2003-06-22  Karl Berry  <karl@gnu.org>
83457
83458         * config/srclist.txt: update mkinstalldirs from automake.
83459         * config/mkinstalldirs: update.
83460
83461 2003-06-22  Bruno Haible  <bruno@clisp.org>
83462
83463         Portability to mingw32.
83464         * m4/ssize_t.m4: New file, from GNU gettext.
83465         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83466         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83467
83468 2003-06-22  Bruno Haible  <bruno@clisp.org>
83469
83470         * modules/safe-read: Add m4/ssize_t.m4.
83471         * modules/xreadlink: Add m4/ssize_t.m4.
83472
83473 2003-06-20  Bruno Haible  <bruno@clisp.org>
83474
83475         Assume C89, so PARAMS isn't needed.
83476         * lib/unicodeio.h (PARAMS): Remove.
83477         * lib/unicodeio.c: Don't use PARAMS.
83478
83479 2003-06-18  Karl Berry  <karl@gnu.org>
83480
83481         * config/config.{guess,sub}: update from prep.
83482
83483 2003-06-18  Jim Meyering  <jim@meyering.net>
83484
83485         Merge changes from coreutils.
83486         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83487         Remove explicit declarations of xmalloc and realloc.
83488         Include xalloc.h.
83489         (read_utmp): Remove anachronistic cast of xmalloc.
83490
83491 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83492
83493         Assume C89, so PARAMS isn't needed.
83494         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83495         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83496         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83497         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83498         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83499         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83500         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83501         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83502         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83503         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83504         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83505         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83506         no longer needed. Anyway, config.h should always be included before any
83507         other file.
83508
83509 2003-06-11  Simon Josefsson  <jas@extundo.com>
83510
83511         * modules/sysexits: New file.
83512         * MODULES.html.sh (func_all_modules): Add sysexits.
83513
83514 2003-06-11  Simon Josefsson  <jas@extundo.com>
83515
83516         * lib/sysexit_.h: New file.
83517
83518 2003-06-11  Derek Price  <derek@ximbiot.com>
83519
83520         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83521         necessary.
83522
83523 2003-06-11  Bruno Haible  <bruno@clisp.org>
83524
83525         * m4/sysexits.m4: New file.
83526
83527 2003-06-10  Simon Josefsson  <jas@extundo.com>
83528
83529         * lib/argp.h: New file, from glibc.
83530         * lib/argp-ba.c: New file, from glibc.
83531         * lib/argp-eexst.c: New file, from glibc.
83532         * lib/argp-fmtstream.c: New file, from glibc.
83533         * lib/argp-fmtstream.h: New file, from glibc.
83534         * lib/argp-fs-xinl.c: New file, from glibc.
83535         * lib/argp-help.c: New file, from glibc.
83536         * lib/argp-namefrob.h: New file, from glibc.
83537         * lib/argp-parse.c: New file, from glibc.
83538         * lib/argp-pv.c: New file, from glibc.
83539         * lib/argp-pvh.c: New file, from glibc.
83540         * lib/argp-xinl.c: New file, from glibc.
83541
83542 2003-06-10  Simon Josefsson  <jas@extundo.com>
83543
83544         * modules/strchrnul: New file.
83545
83546 2003-06-10  Simon Josefsson  <jas@extundo.com>
83547
83548         * modules/argp: New file.
83549
83550 2003-06-10  Simon Josefsson  <jas@extundo.com>
83551
83552         * m4/strchrnul.m4: New file.
83553
83554 2003-06-10  Simon Josefsson  <jas@extundo.com>
83555
83556         * lib/strchrnul.h: New file.
83557         * lib/strchrnul.c: New file.
83558
83559 2003-06-10  Bruno Haible  <bruno@clisp.org>
83560
83561         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83562
83563 2003-06-07  Karl Berry  <karl@gnu.org>
83564
83565         * config/config.{guess,sub}: update from prep.
83566
83567 2003-06-07  Jim Meyering  <jim@meyering.net>
83568
83569         * modules/strtod: Use $(...) notation, not @...@ for
83570         AC_REPLACE'd variables.
83571         * modules/localcharset: Likewise.
83572
83573 2003-06-07  Jim Meyering  <jim@meyering.net>
83574
83575         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83576         in place of my name in the copyright comment.
83577         Remove definition and uses of __P.
83578
83579         From coreutils.
83580         * lib/stat.c: Don't declare xmalloc explicitly.
83581         Instead, include "xalloc.h".
83582         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83583         xrealloc, and xcalloc return values.
83584         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83585         Improve comment.
83586         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83587
83588 2003-06-07  Bruno Haible  <bruno@clisp.org>
83589
83590         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83591         avoid AC_CONFIG_LINKS.
83592         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83593         fnmatch.h, to avoid AC_CONFIG_LINKS.
83594         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83595
83596 2003-06-07  Bruno Haible  <bruno@clisp.org>
83597
83598         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83599         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83600         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83601         directory.
83602         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83603         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83604         directory.
83605
83606 2003-06-06  Jim Meyering  <jim@meyering.net>
83607
83608         Merge from coreutils.
83609         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83610         Consolidate declarations and initializations of *_base* locals.
83611
83612         Merge from coreutils.
83613         This avoids a core dump on systems without GNU putenv,
83614         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83615         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83616         (unsetenv): New static function, from GNU libc.
83617         (rpl_putenv): Use it.
83618
83619         * lib/modechange.c: Remove trailing blanks.
83620
83621         Merge from coreutils.
83622         * lib/fsusage.c: Remove declaration of statfs.
83623         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83624
83625         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83626
83627 2003-06-06  Jim Meyering  <jim@meyering.net>
83628
83629         * lib/stdbool_.h: Renamed from stdbool.h.in.
83630
83631 2003-06-06  Jim Meyering  <jim@meyering.net>
83632             Bruno Haible  <bruno@clisp.org>
83633
83634         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83635         Adjust Makefile.am snippet not to redirect directly to target.
83636         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83637
83638 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83639
83640         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83641         mismatch, look in future quarters as well as past.  This fixes a
83642         bug when processing fall-backwards gaps immediately after a long
83643         period of daylight-saving time.
83644
83645         * lib/mktime.c: Assume freestanding C89 or better.
83646         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83647         (__P): Remove; not used.
83648         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83649         (mktime, not_equal_tm, print_tm, check_result,
83650         main): Use prototypes.  Use const * where appropriate.
83651         (main): Fix typo in testing code that uncovered by above changes.
83652         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83653
83654 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83655
83656         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83657         locale.h, localeconv.  This merges changes from coreutils.
83658
83659         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83660         It can be removed after the next Autoconf is released.
83661         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83662         needed.
83663
83664 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83665
83666         * lib/mktime.c: Fix Debian bug 177940
83667         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83668         (localtime_offset): Now long int, not time_t, because we want it
83669         to be guaranteed to be signed.  All uses changed.
83670         (__mktime_internal): If overflow would occur when adding offset,
83671         don't add it.
83672
83673         Merge 'human' changes from coreutils.  Rewrite to support
83674         locale-specific notations like thousands separators.
83675         * lib/human.c: Simplify authorship notice.
83676         Include human.h immediately after config.h.
83677         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83678         <limits.h>: Do not include, since human.h does.
83679         (SIZE_MAX, UINTMAX_MAX): New macros.
83680         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83681         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83682         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83683         (power_letter): Renamed from suffixes.
83684         (generate_suffix_backwards): Remove.
83685         (adjust_value): Now takes int style (because of human.h changes)
83686         and long double value (for greater precision on some platforms).
83687         (group_number): New function.
83688         (human_readable): Use it.  Use integer options, not enum.
83689         Put the options before the sizes in the arg list.
83690         Support all the new options.
83691         The old human_readable function has been removed;
83692         use inttostr.h instead.
83693         (human_readable, default_block_size, humblock):
83694         Use uintmax_t, not int, for block sizes.
83695         (human_readable_inexact, block_size_types): Remove.
83696         (block_size_opts): New constant.
83697         (human_options): Renamed from human_block_size, with new signature
83698         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83699         * lib/human.h: Add copyright and authorship notice.
83700         Include <limits.h> and <stdbool.h> unconditionally.
83701         (PARAMS): Remove.  All uses removed.
83702         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83703         (enum human_inexact_style): Remove tag; now a nameless enum.
83704         (human_floor, human_ceiling, human_round_to_even): Now have
83705         values 2, 0, 1 rather than -1, 1, 0.
83706         (human_group_digits, human_suppress_point_zero, human_autoscale,
83707         human_base_1024, human_SI, human_B): New constants.
83708         (human_readable_inexact, human_block_size): Remove.
83709         (human_readable): Size args are now uintmax_t, not int.
83710         (human_options): New decl.
83711
83712         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83713         unnecessary now that we assume C89 or better.  This change
83714         imported from coreutils.
83715
83716         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83717         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83718         in the 2003-05-30 sync from glibc.
83719
83720         .h files should stand alone, but we shouldn't include <sys/types.h>
83721         if we can get away with just <stddef.h>.
83722
83723         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83724         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83725         rather than <sys/types.h>, as we merely need size_t.
83726         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83727         to get size_t.
83728         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83729         Include <stdio.h>, to get FILE.
83730         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83731         memcasecmp.h has included <stddef.h> and all we need is size_t.
83732         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83733         our interface, instead of including <sys/types.h>
83734
83735 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83736
83737         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83738         now, as glibc mktime is buggy on non-glibc systems.
83739
83740 2003-06-03  Karl Berry  <karl@gnu.org>
83741
83742         * config/config.sub: update from prep.
83743
83744 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83745
83746         [from coreutils]
83747         Fix some minor time-related bugs with POSIX time arguments.
83748         Some valid time stamps were being rejected (notably -1, and
83749         time stamps before 1900 on 64-bit hosts).  And some invalid
83750         time stamps were being accepted, e.g. September 31.
83751
83752         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83753         that we can return (time_t) -1 successfully.
83754         * lib/posixtm.c: Likewise.
83755         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83756         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83757         (t): Remove static var.
83758         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83759         of static var.  All uses changed.
83760         (year): Do not reject years before 1900; they can occur with
83761         64-bit time_t.
83762         (posix_time_parse): Do not check for out-of-range components;
83763         that is now the caller's responsibility, since our checks were
83764         only approximations.
83765         (posixtime): Use mktime to check for out-of-range components,
83766         since it knows them exactly.
83767         If mktime returns (time_t) -1, check whether an error actually occurred
83768         by invoking localtime on -1.
83769         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83770         posixtime failures better.
83771         Improve the test data (in comments only).
83772
83773 2003-06-02  Karl Berry  <karl@gnu.org>
83774
83775         * config/mkinstalldirs (version): new variable.
83776         (--version): new option.
83777         (usage): improve message.
83778
83779 2003-05-30  Karl Berry  <karl@gnu.org>
83780
83781         * lib/mktime.c: update from libc.
83782
83783 2003-05-30  Bruno Haible  <bruno@clisp.org>
83784
83785         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83786         * config/config.rpath: Upgrade to gettext-0.12.1.
83787
83788 2003-05-30  Bruno Haible  <bruno@clisp.org>
83789
83790         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83791         * m4/nls.m4: New file, from gettext-0.12.1.
83792         * m4/po.m4: New file, from gettext-0.12.1.
83793         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83794
83795 2003-05-30  Bruno Haible  <bruno@clisp.org>
83796
83797         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83798         * lib/localcharset.h: Likewise.
83799         * lib/localcharset.c: Likewise.
83800
83801 2003-05-29  Karl Berry  <karl@gnu.org>
83802
83803         * config/config.rpath: update from gettext.
83804
83805 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83806
83807         Assume the headers required for C89 freestanding compilers.
83808         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83809         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83810         * m4/human.m4 (gl_HUMAN): Likewise.
83811         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83812         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83813         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83814         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83816         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83817
83818 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83819
83820         Assume the headers required for C89 freestanding compilers.
83821         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83822         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83823         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83824         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83825         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83826         define, since <limits.h> is guaranteed to do that.
83827         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83828         * lib/exclude.c: Include <stdbool.h> unconditionally.
83829         * lib/tempname.c: Include <stddef.h> unconditionally.
83830         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83831         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83832         <stddef.h> does that.
83833         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83834         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83835         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83836         needed.
83837         * lib/xstrtol.c: Likewise.
83838         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83839         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83840
83841         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83842         warnings on some platforms.
83843
83844         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83845         arbitrarily.
83846
83847 2003-05-26  Jim Meyering  <jim@meyering.net>
83848
83849         Merge in a change from coreutils:
83850         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83851         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83852         that condition, rather than `-1' which is slightly misleading.
83853         Change the name of the cache variable to have the gl_ prefix.
83854         Prompted by a patch from Richard Dawe for DJGPP.
83855
83856 2003-05-24  Karl Berry  <karl@gnu.org>
83857
83858         * config/config.guess: update from prep.
83859
83860 2003-05-22  Karl Berry  <karl@gnu.org>
83861
83862         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83863
83864 2003-05-20  Karl Berry  <karl@gnu.org>
83865
83866         * config/config.guess: update from prep.
83867
83868 2003-05-18  Karl Berry  <karl@gnu.org>
83869
83870         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83871         might actually be set by the user.
83872
83873         * config/depcomp, install-sh, mdate-sh: update from automake.
83874
83875 2003-05-17  Bruno Haible  <bruno@clisp.org>
83876
83877         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83878         invalid expansion for AC_EGREP_CPP.
83879         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83880         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83881         Suggested by Akim Demaille <akim@epita.fr> in
83882         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83883
83884 2003-05-12  Jim Meyering  <jim@meyering.net>
83885
83886         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83887         the space-padded-by-default conversion specifiers, %e, %k, %l.
83888
83889 2003-05-12  Bruno Haible  <bruno@clisp.org>
83890
83891         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83892         the string is longer than 4 KB.
83893
83894 2003-05-11  Karl Berry  <karl@gnu.org>
83895
83896         * config/config.{guess,sub}: update from prep.
83897
83898 2003-05-09  Bruno Haible  <bruno@clisp.org>
83899
83900         * modules/error: Add m4/strerror_r.m4 to file list.
83901
83902 2003-05-03  Bruno Haible  <bruno@clisp.org>
83903
83904         Upgrade to Unicode-4.0.
83905         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83906         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83907         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83908         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83909         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83910         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83911         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83912         Change width of U+E0100..U+E01EF from 1 to 0.
83913
83914 2003-04-25  Jim Meyering  <jim@meyering.net>
83915
83916         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83917         of type size_t, not int.
83918
83919 2003-04-25  Bruno Haible  <bruno@clisp.org>
83920
83921         * lib/copy-file.c: Include <stddef.h>, for size_t.
83922
83923 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83924
83925         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83926         code which expansion is under static control.  Patch imported from
83927         Akim Demaille's patch to Bison; see
83928         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83929
83930 2003-04-14  Bruno Haible  <bruno@clisp.org>
83931
83932         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83933
83934 2003-04-11  Jim Meyering  <jim@meyering.net>
83935
83936         Merge changes from Coreutils.
83937
83938         2003-03-22  Jim Meyering  <jim@meyering.net>
83939
83940         * lib/strftime.c (widen): Cast alloca return value to proper type.
83941
83942         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83943
83944         From GNU libc.
83945         * lib/strftime.c (my_strftime): Handle very large width
83946         specifications for numeric values correctly.  Improve checks for
83947         overflow.
83948
83949         2003-01-19  Jim Meyering  <jim@meyering.net>
83950
83951         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83952         definitions.
83953         (nl_get_alt_digit) [! defined my_strftime]: Define.
83954         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83955         _nl_get_alt_digit and _nl_get_walt_digit.
83956
83957         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83958         libc. These changes have no effect outside of _LIBC.
83959
83960 2003-04-10  Bruno Haible  <bruno@clisp.org>
83961
83962         * modules/findprog: New file.
83963         * MODULES.html.sh (func_all_modules): Add it.
83964
83965 2003-04-10  Bruno Haible  <bruno@clisp.org>
83966
83967         * m4/findprog.m4: New file.
83968         * m4/eaccess.m4: New file.
83969
83970 2003-04-10  Bruno Haible  <bruno@clisp.org>
83971
83972         * lib/findprog.h: New file, from GNU gettext.
83973         * lib/findprog.c: New file, from GNU gettext.
83974
83975 2003-04-05  Jim Meyering  <jim@meyering.net>
83976
83977         Merge changes from Coreutils.
83978
83979         * lib/exclude.h (PARAMS): Remove definition and uses.
83980         * lib/exclude.c: Remove uses of `PARAMS'.
83981
83982         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83983         Add test-cases for DOS filenames. Declare program_name.
83984         (main): Set up program_name.  Patch by Rich Dawe.
83985
83986         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83987         error from mntctl.
83988         Use mntctl's return value to drive the entry-processing loop, since
83989         we can't rely on the value of the vmt_length member in the last
83990         entry.  On some systems doing so could result in exhausting
83991         virtual memory.  Based in part on a patch from Mike Jetzer.
83992
83993 2003-04-04  Bruno Haible  <bruno@clisp.org>
83994
83995         * modules/linebreak: New file.
83996         * MODULES.html.sh (func_all_modules): Add it.
83997
83998 2003-04-04  Bruno Haible  <bruno@clisp.org>
83999
84000         * m4/linebreak.m4: New file.
84001
84002 2003-04-04  Bruno Haible  <bruno@clisp.org>
84003
84004         * lib/linebreak.h: New file, from GNU gettext.
84005         * lib/linebreak.c: New file, from GNU gettext with slight
84006         modifications.
84007         * lib/lbrkprop.h: New file, from GNU gettext.
84008
84009 2003-04-03  Bruno Haible  <bruno@clisp.org>
84010
84011         * modules/utf8-ucs4: New file.
84012         * modules/utf16-ucs4: New file.
84013         * modules/ucs4-utf8: New file.
84014         * modules/ucs4-utf16: New file.
84015         * MODULES.html.sh (func_all_modules): Add them.
84016
84017 2003-04-03  Bruno Haible  <bruno@clisp.org>
84018
84019         * m4/utf-ucs4.m4: New file.
84020         * m4/ucs4-utf.m4: New file.
84021
84022 2003-04-03  Bruno Haible  <bruno@clisp.org>
84023
84024         * lib/utf8-ucs4.h: New file, from GNU gettext.
84025         * lib/utf16-ucs4.h: New file, from GNU gettext.
84026         * lib/ucs4-utf8.h: New file, from GNU gettext.
84027         * lib/ucs4-utf16.h: New file, from GNU gettext.
84028
84029 2003-04-02  Bruno Haible  <bruno@clisp.org>
84030
84031         * modules/binary-io: New file.
84032         * MODULES.html.sh (func_all_modules): Add it.
84033
84034 2003-04-02  Bruno Haible  <bruno@clisp.org>
84035
84036         * lib/binary-io.h: New file, from GNU gettext.
84037
84038 2003-04-01  Bruno Haible  <bruno@clisp.org>
84039
84040         * modules/pathname: New file.
84041         * MODULES.html.sh (func_all_modules): Add it.
84042
84043 2003-04-01  Bruno Haible  <bruno@clisp.org>
84044
84045         * lib/pathname.h: New file, from GNU gettext.
84046         * lib/concatpath.c: New file, from GNU gettext.
84047
84048 2003-03-30  Bruno Haible  <bruno@clisp.org>
84049
84050         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84051
84052 2003-03-30  Bruno Haible  <bruno@clisp.org>
84053
84054         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84055         function chown() doesn't exist.
84056
84057 2003-03-28  Bruno Haible  <bruno@clisp.org>
84058
84059         * modules/copy-file: New file.
84060         * MODULES.html.sh (func_all_modules): Add it.
84061
84062 2003-03-28  Bruno Haible  <bruno@clisp.org>
84063
84064         * m4/copy-file.m4: New file.
84065
84066 2003-03-28  Bruno Haible  <bruno@clisp.org>
84067
84068         * lib/copy-file.h: New file, from GNU gettext.
84069         * lib/copy-file.c: New file, from GNU gettext.
84070
84071 2003-03-18  Jim Meyering  <jim@meyering.net>
84072
84073         * lib/quote.c (quote_n): Fix typo in comment.
84074
84075 2003-03-18  Bruno Haible  <bruno@clisp.org>
84076
84077         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84078         checking.
84079         * m4/onceonly_2_57.m4: Likewise.
84080
84081 2003-03-17  Bruno Haible  <bruno@clisp.org>
84082
84083         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84084         (m4_quote): Remove macro.
84085         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84086
84087 2003-03-14  Jim Meyering  <jim@meyering.net>
84088
84089         Merge changes from Coreutils.
84090         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84091         to be const, in order to avoid warnings.
84092         (obstack_room): Likewise.
84093         (obstack_empty_p): Likewise.
84094
84095 2003-03-14  Bruno Haible  <bruno@clisp.org>
84096
84097         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84098         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84099
84100 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84101
84102         Merge changes from Bison.
84103         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84104         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84105         when compiling Bison 1.875's `bitset bset = obstack_alloc
84106         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84107         * lib/hash.c: Include <stdbool.h> unconditionally.
84108
84109 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84110
84111         * m4/onceonly.m4 (m4_quote): New macro.
84112         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84113         Quote AC_FOREACH variable-expansions properly.
84114
84115 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84116
84117         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84118
84119 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84120
84121         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84122         Reported by Bruce Becker; see:
84123         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84124
84125 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84126             Bruno Haible  <bruno@clisp.org>
84127
84128         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84129         Reported by John Hughes, see
84130         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84131
84132 2003-02-20  Bruno Haible  <bruno@clisp.org>
84133
84134         * MODULES.html.sh (func_all_modules): Add poll.
84135
84136 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84137
84138         * modules/poll: New file.
84139
84140 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84141
84142         * lib/poll_.h: New file.
84143         * lib/poll.c: New file.
84144
84145 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84146
84147         * m4/poll.m4: New file.
84148
84149 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84150
84151         * modules/mathl: New file.
84152
84153 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84154
84155         * lib/mathl.h: New file.
84156         * lib/acosl.c: New file.
84157         * lib/asinl.c: New file.
84158         * lib/atanl.c: New file.
84159         * lib/ceill.c: New file.
84160         * lib/cosl.c: New file.
84161         * lib/expl.c: New file.
84162         * lib/floorl.c: New file.
84163         * lib/frexpl.c: New file.
84164         * lib/ldexpl.c: New file.
84165         * lib/logl.c: New file.
84166         * lib/sincosl.c: New file.
84167         * lib/sinl.c: New file.
84168         * lib/sqrtl.c: New file.
84169         * lib/tanl.c: New file.
84170         * lib/trigl.c: New file.
84171         * lib/trigl.h: New file.
84172
84173 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84174
84175         * m4/mathl.m4: New file.
84176
84177 2003-02-18  Bruno Haible  <bruno@clisp.org>
84178
84179         * MODULES.html.sh (func_all_modules): Add mathl.
84180
84181 2003-02-17  Bruno Haible  <bruno@clisp.org>
84182
84183         * modules/mkdtemp: New module.
84184         * MODULES.html.sh (func_all_modules): Add it.
84185
84186 2003-02-17  Bruno Haible  <bruno@clisp.org>
84187
84188         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84189
84190 2003-02-17  Bruno Haible  <bruno@clisp.org>
84191
84192         * lib/mkdtemp.h: New file, from GNU gettext.
84193         * lib/mkdtemp.c: New file, from GNU gettext.
84194
84195 2003-02-02  Jim Meyering  <jim@meyering.net>
84196
84197         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84198         e.g. glibc-2.2.93.
84199
84200 2003-01-31  Bruno Haible  <bruno@clisp.org>
84201
84202         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84203         'rpl_rename'.
84204         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84205         'rpl_strnlen'.
84206         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84207         'rpl_strtod'.
84208         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84209         'rpl_utime'.
84210
84211 2003-01-31  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/rename.c: #undef rename before defining rpl_rename.
84214         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84215
84216 2003-01-30  Bruno Haible  <bruno@clisp.org>
84217
84218         * modules/vasnprintf, modules/vasprintf: New modules.
84219         * MODULES.html.sh (func_all_modules): Add them.
84220
84221 2003-01-30  Bruno Haible  <bruno@clisp.org>
84222
84223         * m4/signed.m4: New file, from GNU gettext.
84224         * m4/longdouble.m4: New file, from GNU gettext.
84225         * m4/wchar_t.m4: New file, from GNU gettext.
84226         * m4/wint_t.m4: New file, from GNU gettext.
84227         * m4/vasnprintf.m4: New file.
84228         * m4/vasprintf.m4: New file.
84229
84230 2003-01-30  Bruno Haible  <bruno@clisp.org>
84231
84232         * lib/printf-args.h: New file, from GNU gettext.
84233         * lib/printf-args.c: New file, from GNU gettext.
84234         * lib/printf-parse.h: New file, from GNU gettext.
84235         * lib/printf-parse.c: New file, from GNU gettext.
84236         * lib/vasnprintf.h: New file, from GNU gettext.
84237         * lib/vasnprintf.c: New file, from GNU gettext.
84238         * lib/asnprintf.c: New file, from GNU gettext.
84239         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84240         * lib/vasprintf.c: New file, from GNU gettext.
84241         * lib/asprintf.c: New file, from GNU gettext.
84242
84243 2003-01-29  Bruno Haible  <bruno@clisp.org>
84244
84245         * modules/stpncpy: New module.
84246         * MODULES.html.sh (func_all_modules): Add it.
84247
84248 2003-01-29  Bruno Haible  <bruno@clisp.org>
84249
84250         * m4/stpncpy.m4: New file.
84251
84252 2003-01-29  Bruno Haible  <bruno@clisp.org>
84253
84254         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84255         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84256
84257 2003-01-28  Bruno Haible  <bruno@clisp.org>
84258
84259         * modules/c-ctype: New module.
84260         * MODULES.html.sh (func_all_modules): Add it.
84261
84262 2003-01-28  Bruno Haible  <bruno@clisp.org>
84263
84264         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84265         Paul Eggert.
84266         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84267         Paul Eggert.
84268
84269 2003-01-27  Bruno Haible  <bruno@clisp.org>
84270
84271         * modules/xsetenv: New module.
84272         * MODULES.html.sh (func_all_modules): Add it.
84273
84274 2003-01-27  Bruno Haible  <bruno@clisp.org>
84275
84276         * lib/xsetenv.h: New file, from GNU gettext.
84277         * lib/xsetenv.c: New file, from GNU gettext.
84278
84279 2003-01-23  Jim Meyering  <jim@meyering.net>
84280
84281         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84282         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84283
84284 2003-01-23  Bruno Haible  <bruno@clisp.org>
84285
84286         * modules/minmax: New module.
84287         * MODULES.html.sh (func_all_modules): Add it.
84288
84289 2003-01-23  Bruno Haible  <bruno@clisp.org>
84290
84291         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84292         Eggert.
84293
84294 2003-01-22  Bruno Haible  <bruno@clisp.org>
84295
84296         * modules/exit: New module.
84297         * MODULES.html.sh (func_all_modules): Add it.
84298
84299 2003-01-22  Bruno Haible  <bruno@clisp.org>
84300
84301         * lib/exit.h: New file, from GNU gettext.
84302
84303 2003-01-19  Bruno Haible  <bruno@clisp.org>
84304
84305         * gnulib-tool: Recognize option --extract-maintainer.
84306         (func_get_maintainer): New function.
84307         * modules/*: Add Maintainer entry.
84308
84309 2003-01-16  Jim Meyering  <jim@meyering.net>
84310
84311         * m4/regex.m4: The `regex' struct is both input and output.
84312         Initialize it before each use.  Patch by Tim Waugh.
84313
84314 2003-01-16  Bruno Haible  <bruno@clisp.org>
84315
84316         * MODULES.html.sh: Add a table of contents. Add the module name as
84317         leftmost column. Add hyperlinks.
84318
84319 2003-01-15  Bruno Haible  <bruno@clisp.org>
84320
84321         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84322
84323 2003-01-15  Bruno Haible  <bruno@clisp.org>
84324
84325         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84326         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84327         suffix.
84328
84329 2003-01-15  Bruno Haible  <bruno@clisp.org>
84330
84331         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84332
84333 2003-01-15  Bruno Haible  <bruno@clisp.org>
84334
84335         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84336         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84337
84338 2003-01-14  Jim Meyering  <jim@meyering.net>
84339
84340         * lib/same.c (same_name): Tweak a comment.
84341
84342 2003-01-14  Bruno Haible  <bruno@clisp.org>
84343
84344         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84345         when a string comparison is sufficient.
84346
84347 2003-01-14  Bruno Haible  <bruno@clisp.org>
84348
84349         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84350         'unsigned int'.
84351
84352 2003-01-14  Bruno Haible  <bruno@clisp.org>
84353
84354         * lib/hash-pjw.c: Add comment about low quality of this function.
84355
84356 2003-01-13  Bruno Haible  <bruno@clisp.org>
84357
84358         * modules/stpcpy: Distribute lib/stpcpy.h.
84359         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84360
84361 2003-01-13  Bruno Haible  <bruno@clisp.org>
84362
84363         * modules/*: Add a description.
84364         * modules/strpbrk: Fix Makefile.am snippet.
84365         * modules/strtoimax: Fix dependencies.
84366         * modules/strtoumax: Likewise.
84367
84368 2003-01-13  Bruno Haible  <bruno@clisp.org>
84369
84370         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84371         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84372         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84373
84374 2003-01-13  Bruno Haible  <bruno@clisp.org>
84375
84376         * gnulib-tool (func_create_testdir): Store config/* files in the main
84377         directory.
84378         * config.rpath: Move to ...
84379         * config/config.rpath: ... here.
84380         * modules/gettext: Contains config/config.rpath, not config.rpath.
84381         * modules/iconv: Likewise.
84382
84383 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84384
84385         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84386         to avoid collisions with libcurses and libreadline.
84387
84388         * m4/getstr.m4: Remove.
84389         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84390
84391 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84392
84393         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84394         to avoid collisions with libcurses and libreadline.
84395
84396         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84397         * lib/getstr.h, getstr.c: Remove.
84398         * lib/getline.c: Include "getline.h", to check interface.
84399         Move body of old getstr.c here: this defines MIN_CHUNK and
84400         declares getdelim2, which is renamed from getstr.
84401         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84402
84403         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84404         All uses changed.
84405         * lib/linebuffer.h: Likewise.
84406         (readline): Remove backward-compatibility macro.
84407
84408 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84409
84410         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84411         to avoid collisions with libcurses and libreadline.
84412         * getstr: Remove.
84413         * MODULES.html.sh: Remove getstr.
84414         * modules/getline: Depend on unlocked-io, not getstr.
84415
84416 2003-01-12  Jim Meyering  <jim@meyering.net>
84417
84418         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84419
84420 2003-01-10  Bruno Haible  <bruno@clisp.org>
84421
84422         * modules/alloca: Change Makefile.am requirements. Simplify Include
84423         requirements. Add lib/alloca_.h to file list.
84424
84425 2003-01-10  Bruno Haible  <bruno@clisp.org>
84426
84427         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84428
84429 2003-01-10  Bruno Haible  <bruno@clisp.org>
84430
84431         * lib/alloca_.h: New file.
84432         * lib/getdate.y: Unconditionally include alloca.h.
84433         * lib/makepath.c: Likewise.
84434         * lib/setenv.c: Likewise.
84435         * lib/userspec.c: Likewise.
84436
84437 2003-01-09  Karl Berry  <karl@gnu.org>
84438
84439         * MODULES.html.sh: include `dirname $0` in PATH, to find
84440         gnulib-tool.
84441
84442 2003-01-09  Bruno Haible  <bruno@clisp.org>
84443
84444         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84445         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84446
84447 2003-01-09  Bruno Haible  <bruno@clisp.org>
84448
84449         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84450
84451 2003-01-09  Bruno Haible  <bruno@clisp.org>
84452
84453         * lib/stdbool.h.in: New file.
84454
84455 2003-01-09  Bruno Haible  <bruno@clisp.org>
84456
84457         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84458         * MODULES.html.sh: Likewise.
84459
84460 2003-01-08  Jim Meyering  <jim@meyering.net>
84461
84462         * lib/full-write.c: Undefine and define-away `const' after inclusion
84463         of errno.h, not before.  Suggestion from Bruno Haible.
84464
84465 2003-01-08  Bruno Haible  <bruno@clisp.org>
84466
84467         * modules/full-read: Depend on full-write.
84468
84469 2003-01-08  Bruno Haible  <bruno@clisp.org>
84470
84471         * lib/safe-read.c: Include specification header first, to ensure its
84472         selfcontainedness.
84473         * lib/full-write.c: Likewise.
84474
84475 2003-01-07  Jim Meyering  <jim@meyering.net>
84476
84477         * lib/full-write.c: Rework so that it may serve to define full_read,
84478         too.
84479         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84480
84481 2003-01-07  Bruno Haible  <bruno@clisp.org>
84482
84483         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84484         <inttypes.h>.
84485         * lib/xstrtol.h: Likewise.
84486         * lib/xstrtoimax.c: Likewise.
84487         * lib/xstrtoumax.c: Likewise.
84488         * lib/human.h: Likewise.
84489
84490         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84491         on systems that have <inttypes.h> but not <stdint.h>.
84492
84493 2003-01-07  Bruno Haible  <bruno@clisp.org>
84494
84495         * MODULES.html.sh: Add copyright notice.
84496         (missed_files): Omit CVS directory entries.
84497         (func_module): Make it work with sed-3.02.
84498         * MODULES.txt: Remove file.
84499
84500 2003-01-06  Jim Meyering  <jim@meyering.net>
84501
84502         * lib/version-etc.c: Update year in translatable copyright string.
84503
84504 2003-01-03  Karl Berry  <karl@gnu.org>
84505
84506         * config/config.{guess,sub}: update from prep.
84507
84508 2003-01-02  Karl Berry  <karl@gnu.org>
84509
84510         * doc/COPYING.DOC: belatedly updated to 1.2.
84511
84512 2003-01-01  Karl Berry  <karl@gnu.org>
84513
84514         * gnulib-tool (func_verify_module): report module name $module in
84515         error message, not $1.
84516         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84517         be created, only if it doesn't exist.
84518         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84519
84520 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84521
84522         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84523
84524 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84525
84526         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84527         memcmp if strcoll doesn't work.
84528
84529 2002-12-31  Bruno Haible  <bruno@clisp.org>
84530
84531         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84532         nonempty.
84533
84534 2002-12-31  Bruno Haible  <bruno@clisp.org>
84535
84536         * lib/memcoll.c (STRCOLL): New macro.
84537         (memcoll): Use it.
84538
84539 2002-12-31  Bruno Haible  <bruno@clisp.org>
84540
84541         * lib/localcharset.h: New file.
84542         * lib/localcharset.c: Include it.
84543         * lib/unicodeio.c: Likewise.
84544
84545 2002-12-31  Bruno Haible  <bruno@clisp.org>
84546
84547         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84548         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84549
84550 2002-12-31  Bruno Haible  <bruno@clisp.org>
84551
84552         * lib/getline.h: Include <stddef.h>, for size_t.
84553
84554         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84555         * lib/unicodeio.c: Don't include <stddef.h>.
84556
84557 2002-12-31  Bruno Haible  <bruno@clisp.org>
84558
84559         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84560         HAVE_TM_ZONE.
84561
84562 2002-12-24  Karl Berry  <karl@gnu.org>
84563
84564         * config/config.guess: update from prep.
84565
84566 2002-12-24  Bruno Haible  <bruno@clisp.org>
84567
84568         General infrasructure.
84569         * m4/README: Rewritten.
84570         * m4/onceonly.m4: New file.
84571         * m4/onceonly_2_57.m4: New file.
84572
84573         Module atexit.
84574         * m4/atexit.m4: New file.
84575
84576         Module strtod.
84577         * m4/strtod.m4: New file.
84578
84579         Module strtol.
84580         * m4/strtol.m4: New file.
84581
84582         Module strtoul.
84583         * m4/strtoul.m4: New file.
84584
84585         Module memchr.
84586         * m4/memchr.m4: New file.
84587
84588         Module memcmp.
84589         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84590         (jm_FUNC_MEMCMP): Invoke it.
84591
84592         Module memcpy.
84593         * m4/memcpy.m4: New file.
84594
84595         Module memmove.
84596         * m4/memmove.m4: New file.
84597
84598         Module memset.
84599         * m4/memset.m4: New file.
84600
84601         Module strcspn.
84602         * m4/strcspn.m4: New file.
84603
84604         Module strpbrk.
84605         * m4/strpbrk.m4: New file.
84606
84607         Module strstr.
84608         * m4/strstr.m4: New file.
84609
84610         Module strerror.
84611         * m4/strerror.m4: New file.
84612
84613         Module mktime.
84614         * m4/mktime.m4: Renamed from jm-mktime.m4.
84615         (gl_PREREQ_MKTIME): New macro.
84616         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84617
84618         Module malloc.
84619         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84620         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84621         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84622
84623         Module realloc.
84624         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84625         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84626         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84627
84628         Module strftime.
84629         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84630         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84631         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84632         gl_TM_GMTOFF.
84633         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84634
84635         Module xalloc.
84636         * m4/xalloc.m4: New file.
84637
84638         Module alloca.
84639         * m4/alloca.m4: New file.
84640
84641         Module putenv.
84642         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84643         (jm_FUNC_PUTENV): Invoke it.
84644
84645         Module setenv.
84646         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84647         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84648         when invoked twice.
84649         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84650         gt_FUNC_SETENV.
84651
84652         Module memrchr.
84653         * m4/memrchr.m4: New file.
84654
84655         Module stpcpy.
84656         * m4/stpcpy.m4: New file.
84657
84658         Module strcase.
84659         * m4/strcase.m4: New file.
84660
84661         Module strdup.
84662         * m4/strdup.m4: New file.
84663
84664         Module strnlen.
84665         * m4/strnlen.m4: New file.
84666
84667         Module strndup.
84668         * m4/strndup.m4: New file.
84669
84670         Module xstrtod.
84671         * m4/xstrtod.m4: New file.
84672
84673         Module xstrtol.
84674         * m4/xstrtol.m4: New file.
84675
84676         Module getdate.
84677         * m4/getdate.m4: New file.
84678
84679         Module unlocked-io.
84680         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84681         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84682         * m4/jm-glibc-io.m4n: Remove file.
84683
84684         Module long-options.
84685         * m4/long-options.m4: New file.
84686
84687         Module md5.
84688         * m4/md5.m4: New file.
84689
84690         Module sha.
84691         * m4/sha.m4: New file.
84692
84693         Module getstr.
84694         * m4/getstr.m4: New file.
84695
84696         Module getline.
84697         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84698         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84699         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84700         simply getline. Infoke gl_PREREQ_GETLINE.
84701
84702         Module obstack.
84703         * m4/obstack.m4: New file.
84704
84705         Module hash.
84706         * m4/hash.m4: New file.
84707
84708         Module readtokens.
84709         * m4/readtokens.m4: New file.
84710
84711         Module strverscmp.
84712         * m4/strverscmp.m4: New file.
84713
84714         Module stdbool.
84715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84716         OSF/1.
84717
84718         Module strtoll.
84719         * m4/strtoll.m4: New file.
84720
84721         Module strtoull.
84722         * m4/strtoull.m4: New file.
84723
84724         Module strtoimax.
84725         * m4/strtoimax.m4: New file.
84726
84727         Module strtoumax.
84728         * m4/strtoumax.m4: New file.
84729
84730         Module xstrtoimax.
84731         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84732         jm_AC_PREREQ_XSTRTOIMAX.
84733         Moved the strtol prerequisites to strtol.m4.
84734         Moved the strtoll prerequisites to strtoll.m4.
84735         Moved the strtoimax prerequisites to strtoimax.m4.
84736
84737         Module xstrtoumax.
84738         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84739         jm_AC_PREREQ_XSTRTOUMAX.
84740         Moved the strtoul prerequisites to strtoul.m4.
84741         Moved the strtoull prerequisites to strtoull.m4.
84742         Moved the strtoumax prerequisites to strtoumax.m4.
84743
84744         Module chown.
84745         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84746         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84747
84748         Module dup2.
84749         * m4/dup2.m4: New file.
84750
84751         Module ftruncate.
84752         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84753         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84754
84755         Module getgroups.
84756         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84757         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84758
84759         Module gettimeofday.
84760         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84761         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84762         gl_PREREQ_GETTIMEOFDAY.
84763
84764         Module mkdir.
84765         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84766         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84767
84768         Module mkstemp.
84769         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84770         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84771         jm_AC_TYPE_UINTMAX_T.
84772         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84773
84774         Module stat.
84775         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84776         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84777
84778         Module lstat.
84779         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84780         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84781
84782         Module timespec.
84783         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84784         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84785         * m4/st_mtim.m4: Indentation.
84786
84787         Module nanosleep.
84788         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84789         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84790         gl_PREREQ_NANOSLEEP.
84791
84792         Module regex.
84793         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84794         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84795         (gl_REGEX): New macro.
84796
84797         Module rename.
84798         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84799         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84800
84801         Module rmdir.
84802         * m4/rmdir.m4: New file.
84803
84804         Module utime.
84805         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84806         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84807         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84808
84809         Module dirname.
84810         * m4/dirname.m4: New file.
84811
84812         Module getopt.
84813         * m4/getopt.m4: New file.
84814
84815         Module unistd-safer.
84816         * m4/unistd-safer.m4: New file.
84817
84818         Module fnmatch.
84819         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84820         declaration.
84821         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84822         (gl_FUNC_FNMATCH_POSIX): New macro.
84823         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84824         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84825         simply fnmatch.
84826
84827         Module exclude.
84828         * m4/exclude.m4: New file.
84829
84830         Module human.
84831         * m4/human.m4: New file.
84832
84833         Module acl.
84834         * m4/acl.m4: Nop.
84835
84836         Module backupfile.
84837         * m4/backupfile.m4: New file.
84838         * m4/d-ino.m4: Indentation.
84839
84840         Module fsusage.
84841         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84842         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84843         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84844
84845         Module dirfd.
84846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84847         requirements.
84848
84849         Module euidaccess.
84850         * m4/euidaccess.m4: New file.
84851
84852         Module file-type.
84853         * m4/file-type.m4: New file.
84854
84855         Module fileblocks.
84856         * m4/fileblocks.m4: New file.
84857
84858         Module filemode.
84859         * m4/filemode.m4: New file.
84860
84861         Module isdir.
84862         * m4/isdir.m4: New file.
84863
84864         Module lchown.
84865         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84866         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84867
84868         Module makepath.
84869         * m4/makepath.m4: New file.
84870
84871         Module modechange.
84872         * m4/modechange.m4: New file.
84873
84874         Module mountlist.
84875         * m4/mountlist.m4: New file.
84876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84877         Indentation.
84878
84879         Module path-concat.
84880         * m4/path-concat.m4: New file.
84881
84882         Module pathmax.
84883         * m4/pathmax.m4: New file.
84884
84885         Module same.
84886         * m4/same.m4: New file.
84887
84888         Module save-cwd.
84889         * m4/save-cwd.m4: New file.
84890
84891         Module savedir.
84892         * m4/savedir.m4: New file.
84893
84894         Module xgetcwd.
84895         * m4/xgetcwd.m4: New file.
84896         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84897
84898         Module xreadlink.
84899         * m4/xreadlink.m4: New file.
84900
84901         Module safe-read.
84902         * m4/safe-read.m4: New file.
84903
84904         Module safe-write.
84905         * m4/safe-write.m4: New file.
84906
84907         Module closeout.
84908         * m4/closeout.m4: New file.
84909
84910         Module stdio-safer.
84911         * m4/stdio-safer.m4: New file.
84912
84913         Module getpass.
84914         * m4/getpass.m4: New file.
84915
84916         Module getugroups.
84917         * m4/getugroups.m4: New file.
84918
84919         Module group-member.
84920         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84921         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84922
84923         Module idcache.
84924         * m4/idcache.m4: New file.
84925
84926         Module userspec.
84927         * m4/userspec.m4: New file.
84928
84929         Module gettime.
84930         * m4/clock_time.m4: New file.
84931         * m4/gettime.m4: New file.
84932
84933         Module settime.
84934         * m4/settime.m4: New file.
84935
84936         Module posixtm.
84937         * m4/posixtm.m4: New file.
84938
84939         Module gethostname.
84940         * m4/gethostname.m4: New file.
84941
84942         Module canon-host.
84943         * m4/canon-host.m4: New file.
84944
84945         Module gettext.
84946         * m4/codeset.m4: New file, from gettext-0.11.5.
84947         * m4/gettext.m4: New file, from gettext-0.11.5.
84948         * m4/glibc21.m4: New file, from gettext-0.11.5.
84949         * m4/iconv.m4: New file, from gettext-0.11.5.
84950         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84951         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84952         * m4/inttypes.m4: New file, from gettext-0.11.5.
84953         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84954         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84955         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84956         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84957         * m4/lib-link.m4: New file, from gettext-0.11.5.
84958         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84959         * m4/progtest.m4: New file, from gettext-0.11.5.
84960         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84961         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84962         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84963
84964         Module localcharset.
84965         * m4/localcharset.m4: New file.
84966
84967         Module hard-locale.
84968         * m4/hard-locale.m4: New file.
84969
84970         Module mbswidth.
84971         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84972         onceonly macros.
84973         * m4/mbrtowc.m4: Add comment.
84974
84975         Module memcasecmp.
84976         * m4/memcasecmp.m4: New file.
84977
84978         Module memcoll.
84979         * m4/memcoll.m4: New file.
84980
84981         Module unicodeio.
84982         * m4/unicodeio.m4: New file.
84983
84984         Module rpmatch.
84985         * m4/rpmatch.m4: New file.
84986
84987         Module yesno.
84988         * m4/yesno.m4: New file.
84989
84990         Module exitfail.
84991         * m4/exitfail.m4: New file.
84992
84993         Module c-stack.
84994         * m4/c-stack.m4 (gl_C_STACK): New macro.
84995         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84996
84997         Module error.
84998         * m4/error.m4 (gl_ERROR): New macro.
84999         (jm_PREREQ_ERROR): Use onceonly macros.
85000
85001         Module fatal.
85002         * m4/fatal.m4: New file.
85003
85004         Module getloadavg.
85005         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85006         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85007
85008         Module getpagesize.
85009         * m4/getpagesize.m4: New file.
85010
85011         Module getusershell.
85012         * m4/getusershell.m4: New file.
85013
85014         Module physmem.
85015         * m4/physmem.m4: New file.
85016
85017         Module posixver.
85018         * m4/posixver.m4: New file.
85019
85020         Module quotearg.
85021         * m4/quotearg.m4: New file.
85022
85023         Module quote.
85024         * m4/quote.m4: New file.
85025
85026         Module readutmp.
85027         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85028
85029         Module sig2str.
85030         * m4/sig2str.m4: New file.
85031
85032         Other.
85033         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85034         ulonglong.m4.
85035         * m4/intmax_t.m4: New file.
85036         * m4/d-type.m4: Indentation.
85037         * m4/jm-macros.m4: Update.
85038         * m4/prereq.m4 (jm_PREREQ): Update.
85039         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85040         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85041         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85042         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85043         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85044         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85045         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85046         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85047         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85048         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85049         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85050         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85051         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85052         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85053         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85054         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85055         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85056         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85057         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85058
85059 2002-12-24  Bruno Haible  <bruno@clisp.org>
85060
85061         * MODULES.txt: Update according to m4/ changes.
85062
85063         Module gettext.
85064         * config.rpath: New file, from gettext-0.11.5.
85065
85066         * modules/*: New module descriptions.
85067         * gnulib-tool: New file.
85068         * MODULES.html.sh: New file.
85069
85070 2002-12-21  Karl Berry  <karl@gnu.org>
85071
85072         * doc/fdl.texi: update to version 1.2.
85073
85074 2002-12-19  Karl Berry  <karl@gnu.org>
85075
85076         * config/config.guess: update from prep.
85077
85078 2002-12-18  Bruno Haible  <bruno@clisp.org>
85079
85080         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85081         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85082
85083 2002-12-17  Bruno Haible  <bruno@clisp.org>
85084
85085         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85086         stdlib.h, string.h.
85087
85088 2002-12-17  Bruno Haible  <bruno@clisp.org>
85089
85090         * lib/canon-host.c (strdup): Remove unused declaration.
85091
85092         * lib/fsusage.c: Include full_read.h.
85093         (get_fs_usage): Use full_read instead of safe_read.
85094
85095         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85096
85097 2002-12-12  Karl Berry  <karl@gnu.org>
85098
85099         * config/config.guess: update from prep.
85100
85101 2002-12-11  Bruno Haible  <bruno@clisp.org>
85102
85103         * m4/setenv.m4: New file, from gettext-0.11.5.
85104
85105 2002-12-11  Bruno Haible  <bruno@clisp.org>
85106
85107         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85108         not unsetenv().
85109         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85110         modifications:
85111
85112         2002-12-11  Bruno Haible  <bruno@clisp.org>
85113
85114                 * setenv.c (alloca): Fall back to malloc.
85115                 (freea): New macro.
85116                 (setenv): Use freea() to free memory allocated with alloca().
85117
85118         2002-11-13  Bruno Haible  <bruno@clisp.org>
85119
85120                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85121                 function declarations.
85122                 * unsetenv.c (unsetenv): Likewise.
85123
85124         2002-03-04  Bruno Haible  <bruno@clisp.org>
85125
85126                 Portability to AIX 4.3.3.
85127                 * unsetenv.c: New file, extracted from setenv.c.
85128                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85129
85130         2001-12-20  Bruno Haible  <bruno@clisp.org>
85131
85132                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85133                 use malloc instead. For SunOS 4.
85134
85135         2001-12-11  Bruno Haible  <bruno@clisp.org>
85136
85137                 * setenv.c: Declare alloca.
85138                 (compar_fn_t): New typedef.
85139                 (KNOWN_VALUE, STORE_VALUE): Use it.
85140
85141         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85142         setenv.h.
85143
85144 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85145
85146         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85147         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85148         Choose values that are less likely to collide with system fnmatch
85149         options.
85150         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85151         defined (e.g., a pure POSIX system).
85152         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85153         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85154
85155 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85156
85157         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85158         a pain in practice to deal with generated m4 files.  This change
85159         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85160
85161         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85162         and jm-glibc-io.m4, as they are no longer a special case.
85163         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85164         kludge and the auto-generation stuff.  Check only whether the
85165         functions are declared, not whether they exist, since older hosts
85166         that don't declare the functions can't use the optimization anyway.
85167
85168 2002-12-06  Jim Meyering  <jim@meyering.net>
85169
85170         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85171
85172         Merge in changes from libc's misc/error.c, in preparation
85173         for the merge of gnulib's changes back into libc.
85174
85175         * lib/error.c (_): Define only if not already defined.
85176         Move definition to follow all #include directives.
85177         Include unlocked-io.h only if !_LIBC.
85178         [_LIBC]: Include <libio/libioP.h>.
85179         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85180         (fflush): Tweak definition to use INTUSE.
85181         (putc): Define.
85182
85183 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85184
85185         * lib/alloca.c [defined emacs]: Include "lisp.h".
85186         (xalloc_die) [defined emacs]: New macro.
85187         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85188         [! defined emacs]: Include <xalloc.h>.
85189         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85190         (pointer): Typedef to POINTER_TYPE *.
85191         (malloc): Remove decl; we now always use xmalloc.
85192         (alloca): Use old-style definition, since Emacs needs this.
85193         Check for arithmetic overflow when computing combined size.
85194
85195 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85196
85197         Do not generate unlocked-io.h automatically, since it's easier to
85198         maintain it by hand.
85199
85200         * lib/unlocked-io.h: New file, from GNU diffutils,
85201         but with proper copyright notice and attribution.
85202         * lib/gen-uio: Remove.
85203         * lib/Makefile.am: Add copyright notice.
85204         (libfetish_a_SOURCES): Add unlocked-io.h.
85205         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85206         (DISTCLEANFILES, io_functions): Remove macros.
85207         (EXTRA_DIST): Remove gen_uio.
85208         (unlocked-io.h): Remove rule.
85209
85210 2002-12-04  Jim Meyering  <jim@meyering.net>
85211
85212         Reflect the fact that stat.c and lstat.c are no longer generated.
85213         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85214         (DISTCLEANFILES): Likewise.
85215         (EXTRA_DIST): Likewise.
85216         (all_local): Don't depend on stat.c or lstat.c.
85217         (stat.c, lstat.c): Remove rules.
85218         (EXTRA_DIST): Remove xstat.in.
85219
85220         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85221         * lib/stat.c: New file.  Contents mostly from xstat.in.
85222         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85223         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85224
85225         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85226         too.
85227         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85228
85229 2002-12-03  Jim Meyering  <jim@meyering.net>
85230
85231         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85232         but not semantics, to minimize the differences between these two files.
85233         (safe_read): Change comment to mention SAFE_READ_ERROR.
85234
85235         * lib/safe-read.c (IS_EINTR): Define.
85236         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85237
85238 2002-12-02  Jim Meyering  <jim@meyering.net>
85239
85240         * lib/safe-read.c (EINTR): Define.
85241         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85242         (INT_MAX): Provide fallback.
85243         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85244
85245         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85246
85247 2002-12-02  Bruno Haible  <bruno@clisp.org>
85248
85249         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85250         Define, taken from safe-read.c.
85251         (INT_MAX): Provide fallback.
85252         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85253         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85254
85255         * lib/safe-read.c (EINTR): Remove definition.
85256         (safe_read): Don't use EINTR if it is absent.
85257
85258 2002-12-01  Jim Meyering  <jim@meyering.net>
85259
85260         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85261         zero.
85262         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85263
85264 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85265
85266         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85267         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85268         with `if (! (value < limit)) abort ();', for readability.
85269
85270 2002-11-26  Karl Berry  <karl@gnu.org>
85271
85272         * lib/strdup.c: copy from libc again, with jim's ok.
85273         * lib/.cppi-disable: re-add strdup.c
85274
85275 2002-11-25  Karl Berry  <karl@gnu.org>
85276
85277         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85278         instead of "strtol.c".
85279
85280 2002-11-25  Karl Berry  <karl@gnu.org>
85281
85282         * config/install-sh: update from automake for variable quoting, $0 in
85283         error msgs, etc.
85284
85285         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85286         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85287         entry.
85288
85289 2002-11-25  Jim Meyering  <jim@meyering.net>
85290
85291         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85292
85293 2002-11-24  Karl Berry  <karl@gnu.org>
85294
85295         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85296         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85297
85298 2002-11-24  Jim Meyering  <jim@meyering.net>
85299
85300         Update from coreutils:
85301
85302         * lib/mktime.c: Merge in changes from libc.
85303
85304         Avoid a link-time failure on some Linux systems.
85305         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85306         (otherwise).
85307         (__mon_yday): Declare with the STATIC attribute.
85308         (__mktime_internal): Likewise.
85309         Based on a report from Greg Schafer.
85310
85311 2002-11-23  Jim Meyering  <jim@meyering.net>
85312
85313         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85314         Use `unsigned', not `int', as type of index.
85315
85316         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85317
85318         * lib/fsusage.c: Remove unneeded parentheses around operands of
85319         `defined'.
85320
85321 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85322
85323         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85324         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85325         so that we can be included first.
85326         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85327         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85328         No need to include stddef.h or sys/types.h any more.
85329         Surround local include files with "", not "<>".
85330         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85331         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85332         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85333         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85334         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85335         (ISPRINT): Remove; no longer needed now that we assume C89.
85336
85337         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85338         Preserve errno.
85339
85340         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85341         quotearg_char): Use SIZE_MAX rather than
85342         (size_t) -1 when we are talking about "infinity".
85343
85344         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85345
85346 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85347
85348         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85349         hint that one should use `if (! x) abort ();' rather than `assert
85350         (x);', and anyway it's one less thing to worry about configuring.
85351         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85352         hash_rehash, hash_insert): Use abort rather than assert.
85353
85354 2002-11-22  Bruno Haible  <bruno@clisp.org>
85355
85356         * lib/safe-read.h: Assume C89. Add comments.
85357         (safe_read): Change return type to size_t.
85358         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85359         byte counts > SSIZE_MAX correctly.
85360         * lib/safe-write.h: New file.
85361         * lib/safe-write.c: New file.
85362         * lib/full-read.h: New file.
85363         * lib/full-read.c: New file.
85364         * lib/full-write.h: Assume C89. Add comments.
85365         * lib/full-write.c: Include safe-write.h.
85366         (full_write): Rewritten to use safe_write.
85367         Suggested by Jim Meyering and Paul Eggert.
85368
85369 2002-11-21  Jim Meyering  <jim@meyering.net>
85370
85371         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85372
85373         Merge in changes from the coreutils.
85374
85375         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85376         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85377         <stdint.h>.
85378         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85379         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85380         int.  Work more efficiently if X is the same width as uintmax_t.
85381         Do not compare X to -1, to avoid bogus compiler warning.
85382         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85383         Don't assume that f_frsize and f_bsize are the same type.
85384
85385         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85386         warning on FreeBSD.
85387
85388         * lib/makepath.c (make_path): Restore umask *before* creating the final
85389         component.
85390         (make_path): Minor reformatting.
85391
85392         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85393         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85394         HAVE_MALLOC/HAVE_REALLOC.
85395
85396         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85397         dummy ones.  At least on GNU/Linux systems, `auto' means something
85398         else.
85399         From Michael Stone.
85400
85401 2002-11-21  Bruno Haible  <bruno@clisp.org>
85402
85403         Remove case insensitive option matching.
85404         * lib/argmatch.h (argcasematch): Remove declaration.
85405         (ARGCASEMATCH): Remove macro.
85406         (__xargmatch_internal): Remove case_sensitive argument.
85407         (XARGMATCH): Update.
85408         (XARGCASEMATCH): Remove macro.
85409         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85410         case_sensitive argument.
85411         (argcasematch): Remove function.
85412         (__xargmatch_internal): Remove case_sensitive argument.
85413         (main): Use XARGMATCH instead of XARGCASEMATCH.
85414
85415         * lib/xmalloc.c: Change compile-time error message. Add comment about
85416         required autoconf version.
85417
85418 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85419
85420         Merge argmatch cleanups from Bison.  Assume C89.
85421
85422         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85423         Include stdlib.h, for EXIT_FAILURE.
85424         Always include <string.h>, since we assume C89.
85425         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85426         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85427         Include <stddef.h> instead, since it's all we need for size_t.
85428         (PARAMS): Remove.  All uses removed.
85429         (ARRAY_CARDINALITY): Do not bother to #undef.
85430         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85431         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85432         Remove unnecessary parentheses.
85433         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85434         Insert necessary parentheses.
85435         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85436         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85437
85438 2002-11-19  Bruno Haible  <bruno@clisp.org>
85439
85440         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85441         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85442
85443         * lib/mbswidth.h (PARAMS): Remove macro.
85444         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85445         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85446
85447         * lib/gcd.h (PARAMS): Remove macro.
85448         (gcd): Use ANSI C function declarations.
85449         * lib/gcd.c (gcd): Likewise.
85450
85451 2002-11-15  Bruno Haible  <bruno@clisp.org>
85452
85453         * lib/strcspn.c: Include <stddef.h>.
85454         (strcspn): Use ANSI C function declaration. Change return type to
85455         size_t. Use NULL.
85456         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85457         (strpbrk): Use NULL.
85458         * lib/strpbrk.h (PARAMS): Remove macro.
85459         (strpbrk): Use ANSI C function declaration.
85460         * lib/strstr.c: Don't include <sys/types.h>.
85461         * lib/strstr.h (PARAMS): Remove macro.
85462         (strstr): Use ANSI C function declarations.
85463
85464 2002-11-14  Karl Berry  <karl@gnu.org>
85465
85466         * config/mkinstalldirs: `do' on separate line, instead of
85467         `for var; do'.
85468
85469 2002-11-06  Bruno Haible  <bruno@clisp.org>
85470
85471         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85472         * lib/gcd.c (gcd): Likewise.
85473
85474 2002-11-05  Bruno Haible  <bruno@clisp.org>
85475
85476         * lib/gcd.h: New file, from gettext-0.11.5.
85477         * lib/gcd.c: New file, from gettext-0.11.5.
85478
85479 2002-11-05  Bruno Haible  <bruno@clisp.org>
85480
85481         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85482         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85483         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85484         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85485
85486         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85487         <libintl.h>.
85488         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85489         <libintl.h>.
85490
85491         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85492         * lib/human.c: Include gettext.h instead of <libintl.h>.
85493         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85494         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85495         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85496         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85497         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85498         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85499         (textdomain): Remove definition.
85500         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85501
85502         * lib/long-options.c: Remove include of <libintl.h> and definition of
85503         _.
85504         * lib/same.c: Remove include of <libintl.h> and definition of _.
85505
85506 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85507
85508         * lib/config.charset: A few additions for Solaris.
85509
85510 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85511
85512         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85513         * lib/localcharset.c (locale_charset): Declare as extern "C".
85514
85515 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85516
85517         * lib/config.charset: msdos in uk_UA uses CP1125.
85518
85519 2002-11-04  Bruno Haible  <bruno@clisp.org>
85520
85521         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85522         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85523         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85524         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85525         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85526
85527 2002-11-04  Bruno Haible  <bruno@clisp.org>
85528
85529         * lib/localcharset.c (locale_charset): Don't return an empty string.
85530
85531 2002-11-04  Bruno Haible  <bruno@clisp.org>
85532
85533         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85534         aliases.
85535
85536 2002-11-04  Bruno Haible  <bruno@clisp.org>
85537
85538         * lib/config.charset: Update for newest glibc. Add canonical names
85539         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85540
85541 2002-11-04  Bruno Haible  <bruno@clisp.org>
85542
85543         * lib/config.charset: Add support for NetBSD.
85544
85545 2002-11-04  Bruno Haible  <bruno@clisp.org>
85546
85547         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85548
85549 2002-11-01  Bruno Haible  <bruno@clisp.org>
85550
85551         * configure.in: Add AC_CONFIG_AUX_DIR call.
85552         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85553         test/Makefile.
85554         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85555
85556 2002-09-28  Karl Berry  <karl@gnu.org>
85557
85558         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85559         installed automake until the next release, since changes have been
85560         made.
85561
85562 2002-09-25  Karl Berry  <karl@gnu.org>
85563
85564         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85565         * lib/getopt*: copy from libc/posix.
85566         * lib/gettext.h: copy from gettext.
85567         * lib/.cppi-disable: add strdup.c, gettext.h.
85568
85569 2002-09-25  Karl Berry  <karl@gnu.org>
85570
85571         * config/srclist.txt: enable gettext.h check.
85572         * config/config.{guess,sub}: update from prep.
85573         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85574                 from automake 1.6.3.
85575         See srclist*.
85576
85577 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85578
85579         * regex.c (PATFETCH): Remove the translating fetch.
85580         (PATFETCH_RAW): Rename to PATFETCH.
85581         (set_image_of_range): New fun.
85582         (SET_RANGE_TABLE_WORK_AREA): Use it.
85583         (regex_compile): Don't translate the pattern chars so eagerly.
85584         Only do it when inserting an `exactn' bytecode or when handling
85585         a char-range.
85586         (mutually_exclusive_p): Avoid empty statement.
85587
85588 2002-07-06  Jim Meyering  <meyering@lucent.com>
85589
85590         * m4/README: Don't mention Makefile.am.in.
85591         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85592
85593 2002-07-01  Jim Meyering  <meyering@lucent.com>
85594
85595         * lib/c-stack.c: Include sys/time.h.
85596         From Volker Borchert.
85597
85598 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85599
85600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85601
85602 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85603
85604         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85605         New macro.  Use it uniformly instead of
85606         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85607         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85608         reported by Vin Shelton.
85609
85610 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85611
85612         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85613         Do not assume SA_SIGINFO behavior.
85614         Bug reported by Jim Meyering on NetBSD 1.5.2.
85615
85616 2002-06-22  Jim Meyering  <meyering@lucent.com>
85617
85618         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85619         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85620
85621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85622         now that configure.ac uses AC_GNU_SOURCE.
85623         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85624         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85625
85626         Update to latest tools.  Suggestions from Paul Eggert.
85627         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85628         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85629         * m4/fnmatch.m4: Likewise.
85630         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85631         to AC_HEADER_STDBOOL
85632
85633 2002-06-22  Jim Meyering  <meyering@lucent.com>
85634
85635         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85636         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85637
85638 2002-06-22  Jim Meyering  <meyering@lucent.com>
85639
85640         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85641
85642         * lib/exitfail.c, exitfail.h: Likewise.
85643         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85644
85645         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85646         of fnmatch.h.
85647         (EXTRA_DIST): Add fnmatch_loop.c.
85648         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85649
85650         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85651         * lib/fnmatch.c: Update from diffutils-2.8.2.
85652         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85653         * lib/fnmatch.h: Remove file.
85654
85655 2002-06-21  Jim Meyering  <meyering@lucent.com>
85656
85657         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85658         * m4/mbrtowc.m4: Likewise.
85659
85660         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85661         * m4/mbswidth.m4: Reflect name change:
85662         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85663         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85664
85665         * m4/lib-link.m4: Update from gettext-0.11.2.
85666         * m4/gettext.m4: Likewise.
85667
85668         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85669         From Alfred M. Szmidt.
85670
85671 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85672
85673         * lib/file-type.h: Report an error if neither S_ISREG nor
85674         S_IFREG is defined, instead of using a test specific to glibc
85675         2.2.  This should be safe, since POSIX requires S_ISREG and
85676         Unix Version 7 had S_IFREG.  We don't need to check for
85677         <sys/types.h> since we don't use any symbols that it defines.
85678
85679 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85680
85681         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85682         $@-t, so that each temporary file name is unique and valid in the first
85683         8 characters, for operation under DOS.
85684
85685 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85686
85687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85688
85689 2002-06-15  Jim Meyering  <meyering@lucent.com>
85690
85691         Work even with DJGPP 2.03, which lacks support for symlinks.
85692         From Richard Dawe.
85693         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85694         is defined.
85695         * lib/lchown.c (S_ISLNK): Likewise.
85696
85697 2002-06-15  Jim Meyering  <meyering@lucent.com>
85698
85699         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85700         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85701         have been included before this file.
85702
85703 2002-06-14  Jim Meyering  <meyering@lucent.com>
85704
85705         * lib/file-type.h: Use the version from diffutils-2.8.2.
85706         * lib/file-type.c: Likewise.
85707
85708 2002-06-07  Jim Meyering  <meyering@lucent.com>
85709
85710         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85711         They're needed at least for NetBSD 1.5.2.
85712         ($statxfs_includes): Include those same headers.
85713         ($statxfs_includes): Include sys/vfs.h if available.
85714         ($statxfs_includes): Likewise for sys/statvfs.h.
85715         Check for the following members in both structs statfs and statvfs:
85716         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85717
85718 2002-06-01  Jim Meyering  <meyering@lucent.com>
85719
85720         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85721         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85722
85723 2002-05-28  Jim Meyering  <meyering@lucent.com>
85724
85725         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85726         Reported by Volker Borchert.
85727
85728 2002-05-27  Jim Meyering  <meyering@lucent.com>
85729
85730         Fix a problem seen only on nonconforming systems whereby ls.c's
85731         use of localtime, and then of gettimeofday would cause trouble:
85732         the localtime call used to initialize rpl_gettimeofday's save
85733         mechanism would clobber ls's current local time information so
85734         that in any long listing the first file would always be listed
85735         with date 1970-01-01.  Analysis by Volker Borchert.
85736
85737         * lib/gettimeofday.c (localtime): Undefine.
85738         (rpl_localtime): New function.
85739
85740 2002-05-27  Jim Meyering  <meyering@lucent.com>
85741
85742         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85743         localtime.
85744
85745         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85746         use the replacement function; it wouldn't resolve at link time.
85747         Reported by Volker Borchert.
85748
85749 2002-05-22  Jim Meyering  <meyering@lucent.com>
85750
85751         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85752         file-type.h.
85753         * lib/file-type.h: New file.
85754         * lib/file-type.c (file_type): New file/function.  Extracted from
85755         diffutils.
85756
85757 2002-04-30  Jim Meyering  <meyering@lucent.com>
85758
85759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85760
85761 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85762
85763         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85764
85765 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85766
85767         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85768         Do not check for alloca.h (no longer used) or stdbool.h (was never
85769         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85770
85771 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85772
85773         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85774
85775 2002-04-29  Jim Meyering  <meyering@lucent.com>
85776
85777         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85778         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85779         Use AC_FUNC_STRNLEN here instead.
85780
85781         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85782         With autoconf-2.53a, it's part of AC_PROG_CC.
85783
85784 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85785
85786         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85788
85789 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85790
85791         * lib/sig2str.h, lib/sig2str.c: New files.
85792         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85793
85794 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85795
85796         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85797         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85798         of 127, since 64 is the largest conceivable number for ancient
85799         nonstandard hosts.
85800         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85801
85802 2002-04-28  Jim Meyering  <meyering@lucent.com>
85803
85804         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85805
85806 2002-04-24  Jim Meyering  <meyering@lucent.com>
85807
85808         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85809         (jm_PREREQ): Use it.
85810
85811         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85812         mach/mach.h fcntl.h.
85813         Check for this function: setlocale.
85814
85815 2002-04-24  Jim Meyering  <meyering@lucent.com>
85816
85817         * lib/gettext.h: New file, from Gettext.
85818         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85819         (libfetish_a_SOURCES): Add gettext.h.
85820
85821 2002-04-16  Jim Meyering  <meyering@lucent.com>
85822
85823         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85824         ut_pid, ut_id, ut_exit.
85825
85826 2002-04-16  Jim Meyering  <meyering@lucent.com>
85827
85828         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85829         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85830         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85831
85832 2002-04-12  Jim Meyering  <meyering@lucent.com>
85833
85834         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85835         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85836         existence of the getmntinfo function.  Needed for Darwin 5.3.
85837
85838         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85839         This is necessary at least on Darwin 5.3.
85840
85841         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85842         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85843         strnlen.o in the library, and that makes some versions of ranlib
85844         object.
85845
85846 2002-04-12  Jim Meyering  <meyering@lucent.com>
85847
85848         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85849
85850 2002-04-09  Jim Meyering  <meyering@lucent.com>
85851
85852         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85853         to be more precise.  Rather than saying we're checking whether the
85854         function `works', say what we're testing.
85855         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85856         Reported by Bruno Haible.
85857
85858 2002-03-10  Jim Meyering  <meyering@lucent.com>
85859
85860         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85861         Suggestion from Santiago Vila.
85862
85863 2002-03-08  Jim Meyering  <meyering@lucent.com>
85864
85865         * lib/rename.c: Mention that this wrapper is needed also on
85866         mips-dec-ultrix4.4 systems.
85867
85868 2002-03-02  Jim Meyering  <meyering@lucent.com>
85869
85870         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85871         not HAVE_CLOCK_SETTIME.
85872
85873 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85874
85875         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85876         Check for clock_settime.
85877
85878 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85879
85880         * lib/nanosleep.h: Rename to....
85881         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85882
85883         * lib/gettime.c: New file.
85884         * lib/settime.c: New file.
85885         * lib/stime.c: Remove.
85886
85887         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85888         timespec.h.  Remove nanosleep.h.
85889
85890 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85891
85892         * m4/acl.m4: New file.
85893         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85894         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85895
85896 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85897
85898         * lib/acl.c, lib/acl.h: New files.
85899         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85900
85901 2002-02-24  Jim Meyering  <meyering@lucent.com>
85902
85903         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85904         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85905         cause trouble.  Reported by Nelson Beebe.
85906
85907 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85908
85909         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85910         compilers that don't know that xalloc_die never returns.
85911
85912 2002-02-20  Jim Meyering  <meyering@lucent.com>
85913
85914         * lib/getdate.c: Regenerate using bison-1.33.
85915
85916 2002-02-17  Jim Meyering  <meyering@lucent.com>
85917
85918         * config/config.guess (main): Don't use `head -1'; it's no longer
85919         portable. Use `sed 1q' instead.
85920
85921 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85922
85923         * m4/codeset.m4: Upgrade to gettext-0.11.
85924         * m4/gettext.m4: Upgrade to gettext-0.11.
85925         * m4/glibc21.m4: Upgrade to gettext-0.11.
85926         * m4/iconv.m4: Upgrade to gettext-0.11.
85927         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85928         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85929         * m4/lib-ld.m4: New file, from gettext-0.11.
85930         * m4/lib-link.m4: New file, from gettext-0.11.
85931         * m4/lib-prefix.m4: New file, from gettext-0.11.
85932         * m4/progtest.m4: Upgrade to gettext-0.11.
85933
85934 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85935
85936         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85937         (jm_PREREQ): Use it.
85938
85939 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85940
85941         * lib/posixver.c, lib/posixver.h: New files.
85942         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85943
85944 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85945             Bruno Haible  <bruno@clisp.org>
85946
85947         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85948         (fwrite_success_callback): New declaration.
85949         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85950         print_unicode_char. Call failure callback instead of error.
85951         (fwrite_success_callback): New function.
85952         (exit_failure_callback): New function.
85953         (fallback_failure_callback): New function.
85954         (print_unicode_char): Call unicode_to_mb.
85955
85956 2002-01-26  Jim Meyering  <meyering@lucent.com>
85957
85958         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85959         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85960
85961 2002-01-26  Jim Meyering  <meyering@lucent.com>
85962
85963         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85964
85965 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85966
85967         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85968
85969 2002-01-22  Jim Meyering  <meyering@lucent.com>
85970
85971         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85972         Otherwise, some versions of automake would omit the rule that makes
85973         Makefile from Makefile.in.
85974
85975 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85976
85977         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85978         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85979         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85980         (memcoll): Set errno to zero if there is no error.
85981
85982         * lib/quotearg.c (quotearg_buffer_restyled):
85983         Fix bug with quoting buffers containing NUL when backslashing escapes.
85984         This bug was exposed by the other changes in this patch.
85985         (quotearg_n_options): New arg ARGSIZE.
85986         All callers changed.
85987         (quoting_options_from_style): New function.
85988         (quotearg_n_style): Use it.
85989         (quotearg_n_style_mem): New function.
85990
85991         * lib/quotearg.h (quotearg_n_style_mem): New function.
85992
85993 2002-01-19  Jim Meyering  <meyering@lucent.com>
85994
85995         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85996         Remove useless quotes: DF_PROG="df".
85997         * m4/strnlen.m4: New file.
85998
85999 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86000
86001         * lib/backupfile.c (ISDIGIT): Comment fix.
86002         * lib/getdate.y (ISDIGIT): Likewise.
86003         * lib/posixtm.c (ISDIGIT, year): Likewise.
86004         * lib/strverscmp.c (ISDIGIT): Likewise.
86005         * lib/userspec.c (ISDIGIT): Likewise.
86006
86007 2002-01-16  Jim Meyering  <meyering@lucent.com>
86008
86009         * lib/getdate.y: Add three semicolons, each just before a closing
86010         brace. Bison (as of version 1.31) no longer papers over that mistake.
86011
86012 2002-01-05  Jim Meyering  <meyering@lucent.com>
86013
86014         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86015
86016 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86017
86018         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86019         not silently exit merely because the output buffer happens to
86020         have nothing pending.
86021
86022 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86023
86024         See the big note in ../ChangeLog.
86025         * lib/human.c (suffixes): Prefer K to k for 1024.
86026         (generate_suffix_backwards): New function.
86027         (human_readable_inexact): Use it.
86028         * lib/xstrtol.c (__xstrtol): If there is no number but there
86029         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86030         Accept 'K' as well as 'k'.
86031
86032 2001-12-15  Jim Meyering  <meyering@lucent.com>
86033
86034         * lib/regex.h (__restrict_arr): Update from libc.
86035
86036         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86037         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86038         (STREQ): Define.
86039
86040 2001-12-14  Jim Meyering  <meyering@lucent.com>
86041
86042         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86043         Suggestion from Bruno Haible.
86044
86045 2001-12-10  Jim Meyering  <meyering@lucent.com>
86046
86047         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86048         xrealloc, Instead, include "xalloc.h".
86049         (initbuffer): Don't cast xmalloc return value to char*.
86050         (readline): Reword comment.
86051         Don't cast xrealloc return value to char*
86052         Return NULL, not 0.
86053
86054 2001-12-09  Jim Meyering  <meyering@lucent.com>
86055
86056         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86057         about `signed and unsigned type in conditional expression'.
86058         * lib/posixtm.c (posix_time_parse): Likewise.
86059
86060         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86061
86062         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86063         to avoid a pedantic warning.
86064
86065         * lib/getstr.c: Don't include assert.h.
86066         (getstr): Remove warning-evoking assertions.
86067         Return -1 if offset parameter is out of bounds.
86068         Change the type of a local from int to size_t.
86069
86070         * lib/strftime.c (my_strftime_localtime_r): Include this function
86071         definition in the `#if ! HAVE_TM_GMTOFF' block.
86072
86073         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86074         Include xalloc.h instead.
86075
86076 2001-12-02  Jim Meyering  <meyering@lucent.com>
86077
86078         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86079         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86080         included.
86081
86082         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86083         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86084
86085 2001-11-30  Akim Demaille  <akim@epita.fr>
86086
86087         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86088         before being defined.
86089
86090 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86091
86092         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86093         First arg is int, not unsigned.
86094         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86095         (SIZE_MAX, UINT_MAX): New macros.
86096         (quotearg_n_options): Abort if N is negative.
86097         Avoid overflow check on hosts where size_t is 64 bits and int
86098         is 32 bits, as overflow is impossible there.
86099         Fix off-by-one typo that caused unnecessary reallocation.
86100
86101 2001-11-27  Jim Meyering  <meyering@lucent.com>
86102
86103         * lib/tempname.c: Merge with version from libc.
86104         * lib/regex.c: Likewise.
86105
86106         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86107         systems for which STDC_HEADERS is 0, it was not included, resulting in
86108         a warning about an integer-to-pointer conversion problem with getenv.
86109         Reported by Volker Borchert.
86110
86111 2001-11-26  Jim Meyering  <meyering@lucent.com>
86112
86113         * lib/gtod.h: Remove file.
86114         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86115         * lib/gettimeofday.c: Don't include gtod.h.
86116         (GTOD_init): Remove function.
86117         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86118         Suggestion from Volker Borchert.
86119
86120 2001-11-23  Jim Meyering  <meyering@lucent.com>
86121
86122         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86123         it.
86124         * lib/hash.c (struct hash_table): Define it here instead.
86125
86126 2001-11-22  Jim Meyering  <meyering@lucent.com>
86127
86128         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86129
86130 2001-11-20  Jim Meyering  <meyering@lucent.com>
86131
86132         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86133         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86134
86135 2001-11-19  Jim Meyering  <meyering@lucent.com>
86136
86137         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86138         directory.  Use "conftestXXXXXX" as the template.
86139         Suggestion from Paul Eggert.
86140
86141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86142         immediately, so the test doesn't mistakenly hit the max-open-files
86143         limit.
86144
86145 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86146
86147         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86148         (TEMPORARIES): New macro.
86149         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86150         removes an artificial limitation (e.g. HP-UX 10.20, where
86151         TMP_MAX is 17576).
86152
86153 2001-11-18  Jim Meyering  <meyering@lucent.com>
86154
86155         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86156
86157 2001-11-18  Jim Meyering  <meyering@lucent.com>
86158
86159         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86160         on SunOS 4.
86161
86162         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86163         files will be created before anything else.
86164
86165 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86166
86167         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86168         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86169
86170 2001-11-17  Jim Meyering  <meyering@lucent.com>
86171
86172         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86173         Prompted by a report from Bob Proulx.
86174
86175         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86176         Instead, require UTILS_FUNC_MKSTEMP.
86177
86178 2001-11-17  Jim Meyering  <meyering@lucent.com>
86179
86180         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86181         Now, that's done as part of AC_FUNC_STRTOD.
86182
86183 2001-11-17  Jim Meyering  <meyering@lucent.com>
86184
86185         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86186         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86187         rather than group writable.  Patch by Juan F. Codagnone.
86188
86189         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86190         xrealloc, Instead, include "xalloc.h".
86191
86192         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86193         Remove explicit declarations of xmalloc, xrealloc,
86194         and xstrdup.  Instead, include "xalloc.h".
86195
86196         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86197         unlocked-io.h.
86198         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86199         Likewise.
86200         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86201
86202         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86203         Reported by Padraig Brady.
86204
86205         * lib/mkstemp.c: #undef mkstemp.
86206         Include config.h.
86207         (rpl_mkstemp): Rename from mkstemp.
86208         Protoize.
86209
86210 2001-11-16  Jim Meyering  <meyering@lucent.com>
86211
86212         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86213         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86214         determine the amount of total physical memory, use pstat_getstatic.
86215         HPUX-11 doesn't define _SC_PHYS_PAGES.
86216         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86217         If sysconf couldn't be used to determine the amount of available
86218         physical memory, use both pstat_getstatic and pstat_getdynamic.
86219         Based on a patch from Bob Proulx.
86220
86221 2001-11-10  Jim Meyering  <meyering@lucent.com>
86222
86223         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86224         (jm_PREREQ): Use it.
86225
86226 2001-11-09  Jim Meyering  <meyering@lucent.com>
86227
86228         * m4/jm-macros.m4: Require autoconf-2.52f.
86229         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86230         Use these AC_-prefixed names, not the AM_-prefixed ones.
86231
86232         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86233
86234 2001-11-05  Jim Meyering  <meyering@lucent.com>
86235
86236         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86237
86238 2001-11-04  Jim Meyering  <meyering@lucent.com>
86239
86240         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86241         $DEFS.
86242
86243 2001-11-03  Jim Meyering  <meyering@lucent.com>
86244
86245         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86246         of AC_DEFUN.
86247
86248         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86249         know the name of the variable in the macro definition.
86250
86251 2001-11-03  Jim Meyering  <meyering@lucent.com>
86252
86253         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86254         in argmatch_to_argument call.
86255
86256         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86257         argument.
86258
86259         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86260         e.g., a fault due to an attempt to free a NULL pointer.
86261
86262 2001-11-01  Jim Meyering  <meyering@lucent.com>
86263
86264         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86265         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86266
86267 2001-11-01  Jim Meyering  <meyering@lucent.com>
86268
86269         * lib/dirfd.c, lib/dirfd.h: New files.
86270         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86271
86272         * lib/hash.c (hash_print) [TESTING]: Clean up.
86273
86274 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86275
86276         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86277         to avoid a warning if -Wall.
86278
86279 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86280
86281         * README: New file
86282         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86283         (per RMS's instructions, this is now the canonical source)
86284         * lgpl/, gpl/: New directories.
86285
86286 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86287
86288         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86289
86290 2001-10-21  Jim Meyering  <meyering@lucent.com>
86291
86292         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86293         this code would end up calling gettext even in packages built
86294         with --disable-nls.
86295         * lib/getopt.c (_): Likewise.
86296         * lib/regex.c (_): Likewise.
86297
86298 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86299
86300         * m4/error.m4 (jm_PREREQ_ERROR):
86301         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86302         AC_FUNC_STRERROR_R does that.
86303         Check for strerror declaration.
86304
86305         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86306         are supposed to have them these days.
86307         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86308         Merge changes from latest Autoconf CVS.
86309         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86310         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86311         POSIX decided to standardize on the int flavor of strerror_r.
86312
86313 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86314
86315         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86316         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86317         Use strerror_r that is only a macro, even if it is not a function.
86318         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86319         (private_strerror): Use prototypes, not old-style function definition.
86320         (print_errno_message): New function.
86321         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86322         char*-flavored one.
86323         (error_tail, error, error_at_line): Use it.
86324
86325 2001-10-11  Jim Meyering  <meyering@lucent.com>
86326
86327         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86328         and quote_n (1, ... to avoid clobbering a buffer.
86329
86330 2001-10-05  Jim Meyering  <meyering@lucent.com>
86331
86332         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86333         hash-pjw.h.
86334         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86335         * lib/hash-pjw.h: New file.
86336
86337 2001-09-30  Jim Meyering  <meyering@lucent.com>
86338
86339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86340         `struct fsstat' has the `f_fstypename' member.
86341         Use that to define FS_TYPE, which is now used to make
86342         the getfsstat link test tighter.
86343
86344 2001-09-30  Jim Meyering  <meyering@lucent.com>
86345
86346         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86347         Include <sys/ucred.h>, for Apple Darwin.
86348         Include sys/mount.h and sys/fs_types.h only if available.
86349         (FS_TYPE): Define.
86350         (read_filesystem_list): Use FS_TYPE.
86351
86352 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86353
86354         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86355         a boolean context.
86356
86357 2001-09-29  Jim Meyering  <meyering@lucent.com>
86358
86359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86360         [one-argument getmntent function]): Include stdio.h before mntent.h.
86361         SunOS 4.1.x needs it for the declaration of `FILE'.
86362         Patch by Volker Borchert.
86363
86364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86365         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86366         sys/fs_types.h, and make the link-test for getfsstat guard #include
86367         directives with appropriate #if HAVE_*_H tests so that we can
86368         detect getfsstat on Apple Darwin1.3.7 systems.
86369         Reported by Nelson Beebe.
86370         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86371
86372 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86373
86374         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86375         #defines strtoimax.  Also treat the other strto* functions
86376         like strtoimax.
86377
86378         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86379         Check for strtoul and strtoumax,
86380         as those declarations are made even in the signed case.
86381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86382         Likewise, for strtol and strtoimax.
86383
86384 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86385
86386         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86387         #defines strtoimax.  Also treat the other strto* functions
86388         like strtoimax.
86389
86390         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86391         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86392         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86393
86394 2001-09-26  Jim Meyering  <meyering@lucent.com>
86395
86396         Most macros in unlocked-io.h had the wrong number of arguments.
86397         * lib/gen-uio: New script.
86398         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86399         * lib/unlocked-io.hin: Remove file.
86400         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86401         rather than trying to embed it here.
86402         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86403         Reported by Padraig Brady.
86404
86405 2001-09-25  Volker Borchert  <bt@teknon.de>
86406
86407         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86408         `result'.
86409
86410 2001-09-24  Jim Meyering  <meyering@lucent.com>
86411
86412         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86413
86414 2001-09-23  Jim Meyering  <meyering@lucent.com>
86415
86416         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86417         instead of the mere test for existence of mntent.h.  The latter
86418         would get a false-positive on AIX 3.4 systems.
86419         In the outer getmntent if-block, don't die if neither of the getmntent
86420         tests succeeds.  Instead, just fall through and continue with the
86421         remaining tests.
86422
86423 2001-09-23  Jim Meyering  <meyering@lucent.com>
86424
86425         * lib/mountlist.c: Remove useless parentheses in #if directives.
86426         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86427         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86428
86429 2001-09-22  Jim Meyering  <meyering@lucent.com>
86430
86431         * m4/gettext.m4: New file.  From gettext.
86432         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86433         * m4/progtest.m4: Likewise
86434         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86435         * m4/glibc21.m4: Likewise.
86436
86437         * m4/libintl.m4: Remove.  No longer used.
86438
86439 2001-09-22  Jim Meyering  <meyering@lucent.com>
86440
86441         * lib/localcharset.c: Update from latest gettext.
86442         * lib/config.charset: Likewise.
86443
86444 2001-09-20  Jim Meyering  <meyering@lucent.com>
86445
86446         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86447         strtoimax.
86448         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86449         strtoumax.
86450
86451 2001-09-20  Jim Meyering  <meyering@lucent.com>
86452
86453         * lib/xstrtol.c (strtoimax): Guard declaration with
86454         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86455         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86456         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86457         (strtoumax): Likewise, for completeness (it wasn't necessary).
86458
86459 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86460
86461         * lib/strtoimax.c (HAVE_LONG_LONG):
86462         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86463         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86464         to work around bug in IBM C compiler.
86465
86466 2001-09-17  Jim Meyering  <meyering@lucent.com>
86467
86468         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86469         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86470         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86471         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86472         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86473         whenever the right hand side need not be expanded by the shell.
86474
86475 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86476
86477         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86478         library.  It's not correct, as some older glibcs are buggy.
86479         fnmatch wasn't fixed until glibc 2.2.
86480
86481         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86482         special shell magic here.
86483
86484 2001-09-16  Jim Meyering  <meyering@lucent.com>
86485
86486         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86487         * m4/jm-macros.m4: Require it.
86488
86489 2001-09-16  Jim Meyering  <meyering@lucent.com>
86490
86491         * lib/mkdir.c: New file.
86492
86493 2001-09-15  Jim Meyering  <meyering@lucent.com>
86494
86495         * m4/jm-macros.m4: Check for help2man.
86496
86497 2001-09-11  Jim Meyering  <meyering@lucent.com>
86498
86499         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86500         The body, by Paul Eggert, was moved here from configure.in.
86501         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86502
86503 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86504
86505         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86506         (jm_PREREQ): Use it.
86507
86508 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86509
86510         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86511         Use ssize_t, not int, to store result of readlink.
86512         Check for ssize_t overflow as well as size_t overflow,
86513         as POSIX says the result of readlink is implementation-defined
86514         when ssize_t overflows.
86515         Remove unnecessary cast to char*.
86516         Use free+malloc instead of realloc, as the storage doesn't need
86517         to be preserved and it's clearer and can be more efficient that way.
86518         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86519         * lib/xreadlink.h (xreadlink): Update prototype.
86520
86521 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86522
86523         * lib/xgetcwd.c: Revert some of the previous change; intead,
86524         fix the HAVE_GETCWD_NULL code to behave more like the
86525         !HAVE_GETCWD_NULL code used to.
86526
86527         Include "xalloc.h".
86528         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86529         invoke xalloc_die.
86530
86531 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86532
86533         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86534         sys/param.h, as pathmax.h includes them.
86535
86536 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86537
86538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86539         (jm_PREREQ_XGETCWD): New macro.
86540
86541         * m4/getcwd.m4: New file.
86542
86543 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86544
86545         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86546         like the HAVE_GETCWD_NULL code.
86547         Include pathmax.h if not HAVE_GETCWD.
86548         Do not include xalloc.h.
86549         (INITIAL_BUFFER_SIZE): New symbol.
86550         Do not use xmalloc / xrealloc, since the caller is responsible for
86551         handling errors.  Preserve errno around `free' during failure.
86552         Do not overrun buffer when using getwd.
86553
86554 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86555
86556         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86557         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86558         getcwd (NULL, 0).
86559
86560 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86561
86562         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86563         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86564         spotted by Jim Meyering.
86565
86566 2001-09-03  Jim Meyering  <meyering@lucent.com>
86567
86568         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86569         failure.
86570
86571 2001-09-02  Jim Meyering  <meyering@lucent.com>
86572
86573         * lib/error.c: Update from GNU libc.
86574
86575 2001-09-01  Jim Meyering  <meyering@lucent.com>
86576
86577         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86578         Used by df.
86579
86580 2001-09-01  Jim Meyering  <meyering@lucent.com>
86581
86582         * lib/xreadlink.c: New file.
86583         * lib/xreadlink.h: New file.
86584         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86585         xreadlink.h.
86586
86587         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86588         doesn't conflict with sparc Solaris 7's definition in
86589         /usr/include/sys/int_types.h.
86590
86591         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86592         files.
86593         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86594         and strncasecmp as r-values.  Unixware didn't have declarations.
86595
86596 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86597
86598         * lib/xstrtol.h: Add copyright notice.
86599         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86600         LONGINT_INVALID_SUFFIX_CHAR.
86601
86602 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86603
86604         * lib/xstrtol.c (strtoimax): New decl.
86605
86606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86607
86608         * lib/xgetcwd.c: Don't include pathmax.h.
86609         Include stdlib.h and unistd.h if available.
86610         Include xalloc.h.
86611         (xmalloc, xstrdup, free): Remove decls.
86612         (xgetcwd): Don't assume sizes fit in unsigned.
86613         Check for overflow when computing sizes.
86614         Simplify reallocation code.
86615
86616 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86617
86618         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86619         a directory's st_size can have an arbitrary value, so the old
86620         usage could waste an arbitrary amount of memory.  All uses
86621         changed.
86622         * lib/savedir.h: Update prototype.
86623
86624 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86625
86626         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86627
86628         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86629         old strtoimax.c.
86630
86631         Also, make the following further changes to make this file's
86632         configuration more similar to that of strtol.c:
86633         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86634         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86635         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86636         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86637         changed to signed values.
86638
86639         And make the following changes as well:
86640         Fix copyright notice, as 1999 was missing.
86641         (verify): New macro.
86642         (strtoimax): Check sizes at compile-time, not run-time.
86643         Prefer strtol to strtoll if both work.
86644         (main): Remove; it was not that useful and was a pain to maintain.
86645
86646         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86647
86648 2001-08-31  Jim Meyering  <meyering@lucent.com>
86649
86650         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86651         Use an initial, malloc'd, buffer of length 128 rather than
86652         a statically allocated one of length 1024.
86653
86654 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86655
86656         Simplify code, partly by assuming autoconf 2.52 semantics.
86657
86658         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86659
86660         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86661         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86662         All uses removed.
86663         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86664         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86665         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86666         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86667         jm_AC_HEADER_INTTYPES_H.
86668         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86669
86670         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86671
86672         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86673         Quote first arg of AC_DEFUN.
86674         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86675         since they are needed to parse the include file even if we need
86676         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86677         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86678         but with opposite signedness.
86679
86680 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86681
86682         Merge 'exclude' changes from tar 1.13.22.
86683         This fixes one or two unlikely storage allocation overflow bugs,
86684         but doesn't change user-visible behavior otherwise.
86685
86686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86687
86688         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86689         (jm_PREREQ_EXCLUDE): New macro.
86690
86691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86692
86693         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86694         tm to be declared.
86695
86696 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86697
86698         * lib/hash.c: Remove '2001' from copyright notice.
86699
86700 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86701
86702         * lib/full-write.h: New file.
86703         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86704         * lib/full-write.c: Correct credits, as cccp.c no longer
86705         exists and anyway it was so heavily changed from the old cccp
86706         code as to be unrecognizable.  Include full-write.h.
86707         (full_write): Return size_t, with short writes meaning failure.
86708         All callers changed.  This fixes a bug with large buffers
86709         on 64-bit hosts.
86710         * lib/utime.c: Include full-write.h.
86711
86712 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86713
86714         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86715         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86716         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86717         Include if available.
86718         (<xalloc.h>): Include
86719         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86720         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86721         collide with FNM macros.
86722         (struct patopts): New struct.
86723         (struct exclude): Use it, as exclude patterns now come with options.
86724         (new_exclude): Support above changes.
86725         (new_exclude, add_exclude_file):
86726         Initial size must now be a power of two to simplify overflow checking.
86727         (free_exclude, fnmatch_no_wildcards): New function.
86728         (excluded_filename): No longer requires options arg, as the options
86729         are determined by add_exclude.  Now returns bool, not int.
86730         (excluded_filename, add_exclude):
86731         Add support for the fancy new exclusion options.
86732         (add_exclude, add_exclude_file): Now takes int options arg.
86733         Check for arithmetic overflow when computing sizes.
86734         (add_exclude_file): xrealloc might modify errno, so don't
86735         realloc until after errno might be used.
86736
86737         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86738         New macros.
86739         (free_exclude): New decl.
86740         (add_exclude, add_exclude_file): Now takes int options arg.
86741         (excluded_filename): No longer requires options arg, as the options
86742         are determined by add_exclude.  Now returns bool, not int.
86743
86744 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86745
86746         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86747
86748 2001-08-27  Jim Meyering  <meyering@lucent.com>
86749
86750         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86751
86752         * lib/version-etc.c (N_): Remove definition.
86753         Revert most of last change.
86754         Instead, simply don't mark the `Copyright...' string for translation.
86755         Based on advice from Paul Eggert.
86756
86757         * lib/strtoxmax.c: Tweak comment.
86758
86759 2001-08-26  Jim Meyering  <meyering@lucent.com>
86760
86761         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86762
86763         * m4/xstrtoimax.m4: New file.
86764         * m4/xstrtoumax.m4: Add comments explaining why we
86765         AC_REPLACE_FUNCS(strtol).
86766
86767 2001-08-26  Jim Meyering  <meyering@lucent.com>
86768
86769         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86770         of copyright with `%s' so translators don't get an untranslated
86771         message in 2002.
86772         (COPYRIGHT_YEAR): Define.
86773         (version_etc): Use fprintf rather than fputs.
86774         Suggestion from Ulrich Drepper.
86775
86776         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86777
86778         * lib/strtoll.c: New file, from GNU libc.
86779         * lib/xstrtoimax.c: New file.
86780
86781         * lib/xstrtol.h: Add xstrtoimax.
86782         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86783         * lib/strtoimax.c: New file.  Likewise, but first define
86784         STRTOUXMAX_SIGNED.
86785
86786         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86787         ...
86788         * lib/strtoxmax.c: ... then renamed to this.
86789
86790 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86791
86792         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86793         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86794         (jm_AC_TYPE_INTMAX_T): New macro.
86795         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86796
86797         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86798
86799         * m4/longlong.m4: Renamed from ulonglong.m4.
86800         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86801         * m4/uintmax_t.m4: Removed.
86802
86803 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86804
86805         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86806         Port to Solaris 8, where 'sed' requires a space after the 'r'
86807         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86808         Redirect output to $tmp just once.
86809
86810 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86811
86812         * lib/addext.c (<errno.h>): Include.
86813         (errno): Declare if not defined.
86814         (addext): Work correctly when pathconf returns -1 and leaves
86815         errno alone because there is no limit.  Also, work even if
86816         pathconf returns a value greater than SIZE_MAX.
86817
86818 2001-08-12  Jim Meyering  <meyering@lucent.com>
86819
86820         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86821         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86822         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86823         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86824         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86825         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86826         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86827         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86828         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86829         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86830         utime.m4, utimes.m4, xstrtoumax.m4:
86831         Quote the first argument in each use of AC_DEFUN.
86832
86833 2001-08-12  Jim Meyering  <meyering@lucent.com>
86834
86835         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86836         Simply `return getcwd (NULL, 0);'.
86837         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86838         Use 1300 as initial value for length, not PATH_MAX.
86839
86840         * lib/pathmax.h: Clean up cpp syntax.
86841
86842 2001-08-12  Jim Meyering  <meyering@lucent.com>
86843
86844         * lib/gettimeofday.c: New file.
86845         * lib/gtod.h: New file.
86846         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86847
86848 2001-08-05  Jim Meyering  <meyering@lucent.com>
86849
86850         * m4/jm-macros.m4: Require autoconf-2.52.
86851
86852 2001-08-04  Jim Meyering  <meyering@lucent.com>
86853
86854         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86855         stmt, to get in sync with glibc.
86856
86857 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86858
86859         The following changes are from gettext 0.10.39 as maintained by
86860         Bruno Haible.
86861
86862         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86863         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86864         with inverted sense.  All uses changed.
86865
86866         * lib/mbswidth.c: Don't include <limits.h>.
86867         Include <stdlib.h> and <string.h> unconditionally.
86868         (iswcntrl, mbsinit, ISCNTRL): New macros.
86869         (mbsnwidth): Use K&R style function declarations.
86870         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86871         can optimize it when MB_CUR_MAX == 1.
86872         The width of control characters is zero, not 1.
86873
86874 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86875
86876         The following changes are from gettext 0.10.39 as maintained by
86877         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86878
86879         * m4/codeset.m4: Upgrade to serial AM1.
86880         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86881         all uses changed.  Quote first arg of AC_DEFUN.
86882         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86883
86884         * m4/iconv.m4: Upgrade to serial AM2.
86885         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86886         Add --with-libconv-prefix.
86887         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86888         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86889         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86890         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86891         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86892
86893         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86894         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86895         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86896         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86897         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86898         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86899         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86900         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86901         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86902
86903         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86904         string.h any more.
86905
86906         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86907         not the default value.
86908
86909         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86910         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86911         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86912         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86913         Also check for iswcntrl, used for wcwidth fallback.
86914         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86915         to Autoconf 2.13.
86916
86917 2001-08-03  Jim Meyering  <meyering@lucent.com>
86918
86919         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86920         as it was in the original.  Reported by Paul Eggert.
86921
86922 2001-07-16  Jim Meyering  <meyering@lucent.com>
86923
86924         * m4/gettimeofday.m4: New file.
86925         Prompted by a report from Bernhard Baehr.
86926
86927 2001-07-15  Jim Meyering  <meyering@lucent.com>
86928
86929         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86930         stuff. Now it's in ../Makefile.cfg.
86931
86932 2001-07-15  Jim Meyering  <meyering@lucent.com>
86933
86934         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86935         (BUILT_SOURCES): Add unlocked-io.h.
86936         (io_functions): Define.
86937         (unlocked-io.h): New rule.
86938         (DISTCLEANFILES): Add unlocked-io.h.
86939         (all-local): Depend on unlocked-io.h, to ensure it is created.
86940
86941         * lib/unlocked-io.hin: New file
86942
86943         * lib/regex.c: Update from glibc.
86944
86945 2001-07-05  Jim Meyering  <meyering@lucent.com>
86946
86947         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86948         recommendation.
86949         (libfetish_a_SOURCES): Put all .h files here instead.
86950         Remove a thus-exposed (better checks in automake) duplicate and
86951         two unnecessary .h files.
86952
86953 2001-07-04  Jim Meyering  <meyering@lucent.com>
86954
86955         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86956         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86957         distcheck failure.
86958
86959 2001-07-02  Jim Meyering  <meyering@lucent.com>
86960
86961         The following changes were prompted by suggestions from Bruno Haible.
86962
86963         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86964         is now generated.
86965         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86966         definition of EXTRA_DIST.
86967         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86968         ensure that the generated file is created/updated whenever the list
86969         of $(unlocked_functions) is changed.
86970         (jm-glibc-io.m4): New rule.
86971         (unlocked-io.h): New rule -- currently unused.
86972
86973 2001-06-24  Jim Meyering  <meyering@lucent.com>
86974
86975         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86976         unmatched right bracket, rather than kludging it with an extra,
86977         falsely-matching quote in a comment.  Patch by Akim Demaille.
86978
86979 2001-06-11  Jim Meyering  <meyering@lucent.com>
86980
86981         * lib/regex.c: Update from GNU libc.
86982
86983 2001-05-27  Jim Meyering  <meyering@lucent.com>
86984
86985         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86986         Check for ut_type in struct utmp.
86987
86988 2001-05-27  Jim Meyering  <meyering@lucent.com>
86989
86990         * lib/readutmp.h (UT_TYPE): Define.
86991
86992 2001-05-24  Jim Meyering  <meyering@lucent.com>
86993
86994         * lib/argmatch.c: Include "quote.h".
86995         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86996         quote function.  Reported by Göran Uddeborg.
86997
86998 2001-05-22  Jim Meyering  <meyering@lucent.com>
86999
87000         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87001         now that we use the package-supplied version unconditionally.
87002         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87003
87004 2001-05-21  Jim Meyering  <meyering@lucent.com>
87005
87006         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87007         shell syntax errors.
87008
87009 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87010
87011         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87012
87013 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87014
87015         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87016         Don't bother to check library strftime, since
87017         we'll be using our own my_strftime function anyway.
87018         Define my_strftime instead of strftime.
87019
87020 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87021
87022         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87023         which is not yet declared.
87024
87025 2001-05-15  Jim Meyering  <meyering@lucent.com>
87026
87027         * m4/regex.m4: Use proper quoting so brackets appear in the test
87028         program.
87029         Reported by, and with help from, Bruno Haible.
87030
87031 2001-05-13  Jim Meyering  <meyering@lucent.com>
87032
87033         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87034         undefined.
87035
87036 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87037
87038         dirname code cleanup.  base_name now behaves more compatibly
87039         with POSIX basename when given file names that have trailing
87040         slashes, and similarly for dir_name.  Add new primitives
87041         base_len and dir_len.  Put the directory-name-related decls
87042         into dirname.h.
87043
87044         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87045         * lib/backupfile.c (base_name): Likewise.
87046         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87047         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87048         * lib/makepath.c (strip_trailing_slashes): Likewise.
87049         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87050         ISSLASH): Likewise.
87051         * lib/rename.c (strip_trailing_slashes): Likewise.
87052         * lib/same.c (base_name): Likewise.
87053         * lib/stripslash.c (ISSLASH): Likewise.
87054
87055         * lib/addext.c: Include <dirname.h> after size_t is defined.
87056         * lib/backupfile.c: Likewise.
87057
87058         * lib/addext.c (addext): Use base_len to trim redundant
87059         trailing slashes instead of doing it ourselves.
87060         But do not trim the last slash if it is not redundant.
87061
87062         * lib/backupfile.c (find_backup_file_name,
87063         max_backup_version): Use base_len instead of rolling it ourselves.
87064         Handle the case of "" and (on DOS) "C:" correctly.
87065
87066         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87067         needed. Include <string.h>, <dirname.h>.
87068         (base_name): Allow file names ending in slashes, other than names
87069         that are all slashes.  In this case, return the basename followed
87070         by the slashes.  This is more general, and can be used in places
87071         where the original base_name purposely had an assertion failure.
87072         (base_len): New function.
87073
87074         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87075         Do not include <assert.h>; no longer needed.
87076         Include xalloc.h.
87077         (memrchr): Remove decl.
87078         (dir_name_r): Remove.
87079         (dir_len): Renamed from dirlen.  All callers changed.
87080         Rewrite in terms of base_name, for simplicity and consistency.
87081         (dir_name): Never return NULL.  All callers changed.
87082         Do not include <stdlib.h> in test program; no longer needed.
87083         return 0; is fine for test program.
87084
87085         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87086         New macros.
87087         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87088
87089         * lib/path-concat.c (path_concat): Use base_len to compute
87090         base length, not strlen; this means we cannot rely on memcpy
87091         to null-terminate.
87092
87093         * lib/same.c (STREQ): Remove.
87094         (same_name): Handle the case where the basename ends in trailing '/'.
87095
87096         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87097         a slash was stripped.  Do not strip the last slash after a
87098         file system prefix.
87099
87100 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87101
87102         * lib/Makefile.am (libfetish_a_SOURCES):
87103         Add strftime.c, since we now compile it on all hosts.
87104
87105         * lib/strftime.c (my_strftime):
87106         Define to nstrftime if emacs, but only if my_strftime is not defined.
87107         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87108         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87109         Add one more extra argument: a nanoseconds value.
87110         All uses changed.
87111         (ns): New macro.
87112         (my_strftime function): Add %N format.
87113         (emacs_strftimeu): Renamed from emacs_strftime,
87114         with extra ut argument.
87115
87116 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87117
87118         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87119
87120 2001-04-21  Jim Meyering  <meyering@lucent.com>
87121
87122         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87123         doesn't interfere.
87124
87125 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87126
87127         * m4/ftruncate.m4: Check for chsize.
87128         Link with ftruncate.o unconditionally if ftruncate is missing.
87129         This was required when cross-compiling to i586-mingw32msvc.
87130
87131 2001-04-08  Jim Meyering  <meyering@lucent.com>
87132
87133         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87134         recomputed; that's necessary when the offset spans a DST transition.
87135         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87136
87137 2001-04-02  Jim Meyering  <meyering@lucent.com>
87138
87139         * lib/regex.h, regex.c: Update from GNU libc.
87140
87141 2001-03-24  Jim Meyering  <meyering@lucent.com>
87142
87143         * m4/jm-macros.m4: Require autoconf-2.49d.
87144
87145 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87146
87147         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87148
87149 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87150
87151         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87152
87153 2001-03-17  Jim Meyering  <meyering@lucent.com>
87154
87155         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87156         now that the version in autoconf is equivalent.
87157         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87158
87159         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87160         Suggestion from Akim Demaille.
87161
87162         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87163         (jm_PREREQ_TEMPNAME): New function.
87164
87165 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87166
87167         * lib/tempname.c (uint64_t): Define to uintmax_t if
87168         not defined, and if UINT64_MAX is not defined.
87169         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87170         Reported by John David Anglin.
87171
87172 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87173
87174         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87175         resolve alias if codeset is empty.
87176         * lib/config.charset (BeOS): Use wildcard syntax.
87177
87178 2001-03-13  Jim Meyering  <meyering@lucent.com>
87179
87180         * lib/path-concat.c (path_concat)
87181         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87182         concatenating e.g., `C:' and `foo'.
87183         From Bruno Haible.
87184
87185 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87186
87187         * lib/localcharset.c (locale_charset): Don't use
87188         setlocale(LC_CTYPE,NULL). Don't return NULL.
87189         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87190
87191 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87192
87193         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87194         support for DOS/DJGPP.
87195
87196 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87197
87198         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87199         lacks mkstemp.  Compile our own tempname.c if we compile our own
87200         mkstemp.c, as mkstemp relies on tempname.
87201
87202 2001-03-01  Jim Meyering  <meyering@lucent.com>
87203
87204         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87205         AH_VERBATIM really does output its argument verbatim.
87206
87207 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87208
87209         * lib/Makefile.am (libfetish_a_SOURCES):
87210         Add dup-safer.c, fopen-safer.c.
87211         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87212
87213         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87214         * lib/unistd-safer.h: New files.
87215
87216 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87217
87218         The mkstemp replacement is taken from glibc 2.2.2, with some
87219         portability fixes for use outside glibc, as follows:
87220
87221         * lib/tempname.c (struct_stat64): New macro.
87222         (direxists, __gen_tempname): Use it.
87223         This avoids a portability problem with Solaris 8.
87224
87225         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87226         (<stddef.h>, <stdint.h>, <string.h>):
87227         Include only if STDC_HEADERS || _LIBC.
87228         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87229         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87230         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87231         (__set_errno): Define this macro if <errno.h> doesn't.
87232         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87233         Define these macros if <stdio.h> doesn't.
87234         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87235         Define these macros if <sys/stat.h>
87236         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87237         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87238         __xstat64): Define if not _LIBC.
87239         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87240         (__gen_tempname): Invoke gettimeofday only if
87241         HAVE_GETTIMEOFDAY || _LIBC;
87242         otherwise, fall back on plain "time".
87243         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87244
87245         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87246
87247         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87248
87249 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87250
87251         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87252
87253 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87254
87255         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87256         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87257         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87258         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87259
87260 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87261
87262         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87263         Remove workaround macros for hosts that have mbrtowc but not
87264         mbstate_t, as we now insist on proper declarations for both
87265         before using mbrtowc.
87266
87267 2001-02-17  Jim Meyering  <meyering@lucent.com>
87268
87269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87270         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87271         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87272         UnixWare 7.1.1.
87273
87274         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87275         rather than AC_CACHE_VAL.
87276
87277 2001-02-17  Jim Meyering  <meyering@lucent.com>
87278
87279         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87280         around included file name.
87281
87282         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87283
87284         * lib/strftime.c: Update from GNU libc (the only changes were to
87285         comments).
87286
87287 2001-02-17  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/regex.c: Update from libc.
87290
87291 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87292
87293         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87294         clash.
87295
87296 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87297
87298         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87299         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87300         Reported by Mark Hounschell via Paul Eggert.
87301
87302 2001-02-07  Jim Meyering  <meyering@lucent.com>
87303
87304         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87305
87306 2001-02-05  Jim Meyering  <meyering@lucent.com>
87307
87308         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87309         it includes the patch required for `large file' support with at least
87310         HP-UX's 10.20 /bin/cc.
87311
87312 2001-02-03  Jim Meyering  <meyering@lucent.com>
87313
87314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87315         AS_IF, now that it works once again (mysteriously).
87316         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87317
87318 2001-01-30  Jim Meyering  <meyering@lucent.com>
87319
87320         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87321         * m4/chown.m4: Rename conftestchown to conftest.chown.
87322         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87323         s/conftestdir2/conftest.d2/.
87324         * m4/utimes.m4: s/conftestdata/conftest.data/
87325         Inspired by Pavel Roskin's change in autoconf.
87326
87327 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87328
87329         * lib/config.charset: Update for FreeBSD 4.2.
87330
87331 2001-01-27  Jim Meyering  <meyering@lucent.com>
87332
87333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87334         a use of AS_IF.
87335         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87336
87337 2001-01-26  Jim Meyering  <meyering@lucent.com>
87338
87339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87340         quotearg.c includes it.
87341
87342 2001-01-26  Jim Meyering  <meyering@lucent.com>
87343
87344         * lib/quotearg.c: Include stddef.h.
87345         * lib/quote.c: Include stddef.h.
87346         Reported by Axel Kittenberger.
87347
87348         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87349         line in double quotes so that it evokes a better diagnostic.
87350         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87351         Reported by Axel Kittenberger.
87352
87353 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87354
87355         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87356         as if it was a `charset'.
87357
87358 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87359
87360         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87361         has const.
87362
87363 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87364
87365         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87366         to avoid a warning.  Add back 'const' to inptr.
87367
87368 2001-01-20  Jim Meyering  <meyering@lucent.com>
87369
87370         Be sure that headers are checked before used in code compiled
87371         for the type checks.
87372         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87373         In place of that, invoke jm_CHECK_ALL_TYPES.
87374         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87375         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87376         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87377         The check for ssize_t was mistakenly run before the test for unistd.h.
87378
87379         The configure-time check for stdbool.h was missing.
87380         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87381         (jm_PREREQ_HASH): New function.
87382
87383 2001-01-17  Jim Meyering  <meyering@lucent.com>
87384
87385         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87386         for autoconf-2.49c.
87387         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87388
87389 2001-01-16  Jim Meyering  <meyering@lucent.com>
87390
87391         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87392         From Bruno Haible.
87393
87394 2001-01-14  Jim Meyering  <meyering@lucent.com>
87395
87396         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87397         foo and bar.  Create conftestdir/ in the script, not in the C code.
87398         Remove directories in the script, not in the C code.
87399         Remove conftestdir{,2} before trying to create the directory.
87400         Make the entire configure script fail if the mkdir fails.
87401
87402 2001-01-14  Jim Meyering  <meyering@lucent.com>
87403
87404         * lib/rename.c: New file.  From Volker Borchert.
87405         Include stdlib.h, string.h or strings.h, and xalloc.h.
87406         Use strip_trailing_slashes rather than open-coding it.
87407
87408 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87409
87410         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87411
87412 2001-01-03  Jim Meyering  <meyering@lucent.com>
87413
87414         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87415         of local `inptr' to avoid warning with some system declarations of
87416         iconv.
87417
87418 2001-01-02  Volker Borchert  <bt@teknon.de>
87419
87420         * m4/rename.m4: New file.
87421         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87422
87423 2001-01-01  Jim Meyering  <meyering@lucent.com>
87424
87425         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87426         even on systems with utmpx.h.  It's necessary for the declaration of
87427         utmp's ut_user member.  Reported by Andreas Jaeger.
87428
87429         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87430         available. They are required for the declarations of getgrgid and
87431         getpwuid resp.
87432         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87433         Reported by Andreas Jaeger.
87434
87435 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87436
87437         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87438         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87439         so `make install' also works in VPATH builds.
87440
87441 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87442
87443         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87444         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87445         can be used in subdirectories.
87446
87447 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87448
87449         * lib/modechange.c: Do not assume that mode_t uses the
87450         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87451         the other-execute bit of FOO even if S_IXOTH != 1.
87452
87453         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87454         WOTH, XOTH, ALLM): New macros.
87455         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87456          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87457         Use them.
87458         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87459         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87460         (mode_compile):
87461         No need to use uintmax_t; unsigned long is long enough.
87462         Don't bother to get suffix since we don't use it.
87463
87464 2000-12-26  Jim Meyering  <meyering@lucent.com>
87465
87466         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87467         better with autoheader.
87468
87469 2000-12-24  Jim Meyering  <meyering@lucent.com>
87470
87471         * lib/hash.c (is_prime): Return explicit boolean values.
87472         (hash_get_first): Return NULL to appease Irix5.6's 89.
87473         Reported by Nelson Beebe.
87474
87475 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87476
87477         * lib/localcharset.c (locale_charset): Add support for Win32.
87478
87479 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87480
87481         * lib/physmem.h, lib/physmem.c: New files.
87482
87483         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87484         (noinst_HEADERS): Add physmem.h.
87485
87486         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87487         't' for compatibility with Solaris 8 sort.
87488
87489 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87490
87491         * lib/config.charset: Add support for BeOS.
87492
87493 2000-12-17  Jim Meyering  <meyering@lucent.com>
87494
87495         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87496         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87497
87498 2000-12-16  Jim Meyering  <meyering@lucent.com>
87499
87500         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87501         N and M) would have treated it like `chown N:N FILE'.
87502
87503         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87504
87505 2000-12-16  Jim Meyering  <meyering@lucent.com>
87506
87507         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87508         SHELLS_FILE to a file name that's useful on djgpp systems.
87509         Include stdlib.h.
87510         (ADDITIONAL_DEFAULT_SHELLS): Define.
87511         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87512         Based mostly on a patch from Prashant TR.
87513
87514 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87515
87516         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87517         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87518         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87519
87520 2000-12-08  Andreas Schwab  <schwab@suse.de>
87521
87522         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87523         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87524
87525 2000-12-07  Jim Meyering  <meyering@lucent.com>
87526
87527         * lib/stripslash.c (ISSLASH): Define.
87528         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87529         `/'.
87530         From Prashant TR.
87531
87532         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87533         (dir_name_r): Declare this function as static.
87534         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87535         manifest itself on a name containing a mix of slashes and
87536         backslashes.
87537         Make this function work with names starting with a DOS-style
87538         drive letter and colon prefix.
87539         (dir_name): Append `.' if necessary.
87540         Based mostly on patches from Prashant TR and Eli Zaretskii.
87541
87542         * lib/dirname.h (dir_name_r): Remove prototype.
87543
87544 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87545
87546         * m4/off_t-format.m4: Remove this file.
87547         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87548
87549 2000-12-06  Jim Meyering  <meyering@lucent.com>
87550
87551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87552         replacement strtoull, we may well need the replacement strtoul, too.
87553         Check for declarations of strtoul and strtoull.
87554         Check for strtol.  Mainly as a cue to cause automake to include
87555         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87556         Check for limits.h -- strtol.c needs it.
87557
87558 2000-12-05  Jim Meyering  <meyering@lucent.com>
87559
87560         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87561
87562 2000-12-04  Jim Meyering  <meyering@lucent.com>
87563
87564         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87565         Also include memory.h, stdlib.h, unistd.h if appropriate.
87566         Reported by Andreas Jaeger (conflicting declaration of malloc).
87567
87568 2000-12-02  Jim Meyering  <meyering@lucent.com>
87569
87570         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87571         * m4/jm-macros.m4 (jm_MACROS): require it.
87572
87573 2000-12-02  Jim Meyering  <meyering@lucent.com>
87574
87575         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87576
87577 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87578
87579         * lib/memrchr.c: Include <config.h> before any system include file.
87580
87581 2000-11-30  Jim Meyering  <meyering@lucent.com>
87582
87583         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87584
87585 2000-11-30  Jim Meyering  <meyering@lucent.com>
87586
87587         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87588
87589 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87590
87591         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87592
87593 2000-11-26  Jim Meyering  <meyering@lucent.com>
87594
87595         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87596
87597 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87598
87599         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87600         size of (size_t) -1; it's not portable.
87601
87602 2000-11-17  Jim Meyering  <meyering@lucent.com>
87603
87604         * lib/strstr.c: Update from GNU libc.
87605
87606 2000-11-17  Akim Demaille  <akim@epita.fr>
87607
87608         * lib/obstack.h: Formatting changes.
87609         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87610         prevent type checking.
87611         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87612         cast the value to (void *): assigning a `foo *' to a `void *'
87613         variable is valid.
87614         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87615
87616 2000-11-16  Jim Meyering  <meyering@lucent.com>
87617
87618         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87619
87620 2000-11-11  Jim Meyering  <meyering@lucent.com>
87621
87622         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87623
87624 2000-11-10  Jim Meyering  <meyering@lucent.com>
87625
87626         * lib/obstack.h: Update from GNU libc.
87627         * lib/obstack.c: Likewise.
87628
87629 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87630
87631         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87632
87633 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87634
87635         * lib/getusershell.c (setusershell): Use rewind rather than
87636         fseek/fseeko, to avoid configuration hassles with fseeko.
87637         Don't bother opening SHELLS_FILE if shellstream is NULL;
87638         it's not necessary.
87639
87640 2000-11-05  Jim Meyering  <meyering@lucent.com>
87641
87642         * lib/makepath.h (make_dir): Declare.
87643         * lib/makepath.c (make_dir): Remove `static' attribute.
87644         Tweak a comment.
87645
87646 2000-11-04  Jim Meyering  <meyering@lucent.com>
87647
87648         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87649
87650 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87651
87652         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87653         last one in a bucket, advance to the next bucket.
87654
87655 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87656
87657         * lib/fnmatch.c: Do not comment out all the code if we are using
87658         the GNU C library, because in some cases we are replacing buggy
87659         code in the GNU C library itself.
87660
87661 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87662
87663         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87664         (regex_compile): Catch bogus \(\1\).
87665
87666 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87667
87668         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87669         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87670         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87671
87672 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87673
87674         * lib/error.h, getline.h, modechange.h:
87675         Remove "2000" from Copyright line, as the file hasn't been
87676         changed this year other than in the copyright notice.
87677
87678         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87679         was changed this year.
87680
87681 2000-10-29  Jim Meyering  <meyering@lucent.com>
87682
87683         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87684         renaming.
87685         * m4/ls-mntd-fs.m4: Likewise
87686
87687 2000-10-29  Jim Meyering  <meyering@lucent.com>
87688
87689         * lib/xstat.in: Fix grammar in comment.
87690
87691 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87692
87693         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87694         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87695         doesn't define __restrict_arr.
87696
87697 2000-10-28  Jim Meyering  <meyering@lucent.com>
87698
87699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87700         (jm_PREREQ_MEMCHR): New function.
87701
87702 2000-10-28  Jim Meyering  <meyering@lucent.com>
87703
87704         * lib/memchr.c: Update from libc.
87705         Adjust for portability:
87706         [HAVE_STDLIB_H]: Include stdlib.h.
87707         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87708         Undef __memchr, too.
87709         [!weak_alias]: Define __memchr to memchr.
87710
87711         * lib/regex.c: Update from libc.
87712         * lib/regex.h: Likewise.
87713         * lib/getopt1.c: Likewise.
87714         * lib/memcmp.c: Likewise.
87715
87716         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87717         Avoid using fseek, when possible -- it's broken by design.
87718         Patch by Ulrich Drepper.
87719
87720 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87721
87722         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87723         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87724         Giving in to popular pressure to shut up the compiler with casts.
87725
87726 2000-10-26  Jim Meyering  <meyering@lucent.com>
87727
87728         * lib/strftime.c: Update from libc.
87729
87730 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87731
87732         * regex.c: More `unsigned char' -> `re_char' changes.
87733         Also change several `int' into `re_wchar_t'.
87734         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87735         (PUSH_FAILURE_POINTER): Don't cast any more.
87736         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87737         We want GCC to complain, since this piece of code makes
87738         re_match non-reentrant, which *should* be fixed.
87739         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87740         (EXTEND_BUFFER): Use RETALLOC.
87741         (SET_LIST_BIT): Don't cast.
87742         (re_wchar_t): New type.
87743         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87744         that those two functions will always properly return.
87745         (IMMEDIATE_QUIT_CHECK): Cast to void.
87746         (analyse_first): Use recursion rather than an explicit stack.
87747         (re_compile_fastmap): Can't fail anymore.
87748         (re_search_2): Don't check re_compile_fastmap for failure.
87749         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87750         Now also sets the new value (passed in a new argument).
87751         (re_match_2_internal): Use it.
87752         Also, use a new var `reg' of type size_t when looping through regs
87753         rather than reuse the inappropriate `mcnt'.
87754
87755 2000-10-25  Jim Meyering  <meyering@lucent.com>
87756
87757         * lib/obstack.c: Update from libc.
87758
87759 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87760
87761         * regex.c (regex_compile): Change the way of handling a range from
87762         a char less than 256 to a char not less than 256.
87763
87764 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87765
87766         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87767         NT-Emacs only.
87768         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87769         so that re_search functions only quit when callers expect them to.
87770
87771 2000-10-23  Jim Meyering  <meyering@lucent.com>
87772
87773         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87774         wrong.  That set_locale call must not have any side effects.
87775         From Paul Eggert.
87776
87777 2000-10-22  Jim Meyering  <meyering@lucent.com>
87778
87779         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87780         [CYCLIC]: Remove now-unused definition.
87781
87782         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87783         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87784         Suggestion from Ulrich Drepper.
87785
87786 2000-10-21  Jim Meyering  <meyering@lucent.com>
87787
87788         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87789         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87790         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87791
87792 2000-10-21  Jim Meyering  <meyering@lucent.com>
87793
87794         * lib/dirname.c (memrchr): Declare if necessary.
87795         (dir_name): Remove the restriction that there be no
87796         trailing slashes.  Now, this code skips past them, effectively
87797         ignoring them.
87798         [TEST_DIRNAME] (main): New unit tests.
87799
87800         * lib/memrchr.c: New file from GNU libc.
87801         Undef __memrchr, too.
87802         [!weak_alias]: Define __memrchr to memrchr.
87803         Guard weak_alias use with `#ifdef weak_alias'.
87804
87805 2000-10-21  Jim Meyering  <meyering@lucent.com>
87806
87807         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87808         (dir_name): Use dir_name_r.
87809         * lib/dirname.h (dir_name_r): Declare it.
87810
87811 2000-10-17  Jim Meyering  <meyering@lucent.com>
87812
87813         * lib/quote.h (PARAMS): Define and use.
87814         Reported by Akim Demaille.
87815
87816         * lib/getopt.c: Update from libc.
87817
87818 2000-10-16  Jim Meyering  <meyering@lucent.com>
87819
87820         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87821         setlocale.
87822         From Jan Fedak.
87823
87824 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87825
87826         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87827
87828 2000-09-25  Jim Meyering  <meyering@lucent.com>
87829
87830         * lib/md5.h (rol): Define (from GnuPG).
87831
87832         * lib/sha.c: Give credit (GnuPG) where due.
87833         (M): Use rol rather than open-coding it.
87834         Add a FIXME comment.
87835
87836 2000-09-21  Jim Meyering  <meyering@lucent.com>
87837
87838         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87839         Reported by Michael Stone.
87840
87841 2000-09-20  Jim Meyering  <meyering@lucent.com>
87842
87843         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87844         (noinst_HEADERS): Add sha.h.
87845         Based on code from Scott G. Miller and from GnuPG.
87846
87847 2000-09-18  Jim Meyering  <meyering@lucent.com>
87848
87849         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87850         LIBS. Otherwise, everyone ends up linking with -lelf for some
87851         configurations.
87852         Reported by Mike Stone.
87853
87854 2000-09-15  Jim Meyering  <meyering@lucent.com>
87855
87856         * lib/regex.c: Update from libc.
87857
87858 2000-09-10  Jim Meyering  <meyering@lucent.com>
87859
87860         * lib/getopt.c (_getopt_internal): Update from glibc.
87861
87862 2000-09-09  Jim Meyering  <meyering@lucent.com>
87863
87864         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87865         think it should be used as a general replacement for isascii.
87866         * lib/fnmatch.c: Likewise.
87867         * lib/mbswidth.c: Likewise
87868         * lib/regex.c: Likewise.
87869
87870         Don't use atoi.
87871         * lib/userspec.c: Include sys/param.h and limits.h.
87872         Include xstrtol.h.
87873         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87874         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87875         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87876         UID, GID.  Check range.
87877
87878 2000-09-06  Jim Meyering  <meyering@lucent.com>
87879
87880         * lib/getopt.c (_getopt_internal): Update from glibc.
87881
87882 2000-08-30  Jim Meyering  <meyering@lucent.com>
87883
87884         * lib/strftime.c: Merge in changes from GNU libc.
87885
87886 2000-08-26  Jim Meyering  <meyering@lucent.com>
87887
87888         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87889         * m4/fpending.m4: New file.
87890
87891 2000-08-26  Jim Meyering  <meyering@lucent.com>
87892
87893         * lib/closeout.c: Include "__fpending.h".
87894         (close_stdout_status): Return right away if there's nothing to flush.
87895
87896         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87897         * lib/__fpending.c: New file.
87898         * lib/__fpending.h: New file.
87899
87900 2000-08-20  Jim Meyering  <meyering@lucent.com>
87901
87902         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87903         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87904         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87905
87906 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87907
87908         Improve fileutils installation on systems where running
87909         programs (like install) can't be unlinked.
87910         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87911         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87912
87913 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87914
87915         Standardize on "memory exhausted" instead of "Memory exhausted"
87916         or "virtual memory exhausted".
87917         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87918         "virtual memory exhausted".
87919         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87920         our own message.
87921         * lib/userspec.c (parse_user_spec): Likewise.
87922         * lib/bumpalloc.h: comment fix
87923         * lib/same.c, userspec.c: Include xalloc.h.
87924
87925         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87926         not char *const and pointing to a constant array.
87927         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87928         (xrealloc): Comment fix.
87929
87930         * lib/userspec.c (parse_user_spec):
87931         Don't translate a message until just before returning,
87932         to avoid unnecessary translation.
87933
87934 2000-08-07  Jim Meyering  <meyering@lucent.com>
87935
87936         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87937         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87938         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87939         getgroups.c, gethostname.c, getopt.h, group-member.c,
87940         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87941         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87942         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87943         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87944         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87945         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87946         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87947         yesno.c: Back out Copyright date changes for each file with no change
87948         this year.  This eases coordination with other programs using the same
87949         source code modules.  From Paul Eggert.
87950
87951 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87952
87953         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87954         not char, for compatibility with glibc 2.1.3 strftime.c.
87955
87956 2000-08-03  Greg McGary  <greg@mcgary.org>
87957
87958         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87959         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87960         (EXTEND_BUFFER): Use them.
87961
87962 2000-08-01  Jim Meyering  <meyering@lucent.com>
87963
87964         * lib/dirname.c (ISSLASH): Define.
87965         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87966         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87967         both `\' and `/' may be use as path separators.
87968         Based on a patch from Prashant TR.
87969
87970 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87971
87972         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87973         slot vector a constant, since it might get modified.
87974
87975 2000-07-31  Jim Meyering  <meyering@lucent.com>
87976
87977         * lib/xmalloc.c: Use `virtual memory exhausted', not
87978         `Memory exhausted'.
87979         * lib/obstack.c (print_and_abort): Likewise.
87980
87981 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87982
87983         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87984         buffer, so that the caller can always quote one small
87985         component of a "memory exhausted" message in slot 0.
87986         From a suggestion by Jim Meyering.
87987
87988 2000-07-30  Jim Meyering  <meyering@lucent.com>
87989
87990         * lib/makepath.c (make_path): Quote the other instance, too.
87991
87992         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87993         (STATIC_BUF_SIZE): Define.
87994         (quotearg_n_options): Use only statically allocated storage when
87995         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87996         than STATIC_BUF_SIZE.
87997
87998 2000-07-29  Jim Meyering  <meyering@lucent.com>
87999
88000         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88001         * lib/dirname.c (dir_name): Likewise.
88002
88003         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88004         `/'.
88005
88006         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88007         (dir_name): Assert that there are no trailing slashes.
88008
88009 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88010
88011         * lib/mbswidth.h (mbswidth): Add a flags argument.
88012         (mbswidth): New declaration.
88013         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88014         * lib/mbswidth.c (mbswidth): Add a flags argument.
88015         (mbsnwidth): New function.
88016
88017 2000-07-24  Jim Meyering  <meyering@lucent.com>
88018
88019         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88020
88021 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88022
88023         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88024
88025 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88026
88027         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88028         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88029         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88030         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88031         invoke multibyte primitives.
88032
88033 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88034
88035         * lib/quotearg.c:
88036         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88037         so that mbstate_t is always defined.
88038
88039         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88040         be 1 in at least one GCC installation, and this configuration
88041         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88042         performance on hosts that have mbrtowc but have only unibyte
88043         locales, but I assume these hosts are rare.
88044
88045 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88046
88047         * lib/mbswidth.c (_XOPEN_SOURCE):
88048         Don't define; this causes problems on Solaris 7.
88049         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88050
88051 2000-07-23  Jim Meyering  <meyering@lucent.com>
88052
88053         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88054         too: getgrgid, getpwuid, getuid.
88055
88056 2000-07-23  Jim Meyering  <meyering@lucent.com>
88057
88058         * lib/basename.c (base_name): Add an assertion.
88059
88060 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88061
88062         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88063         shadow its mbsinit function.
88064
88065 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88066
88067         * lib/mbswidth.h: New file.
88068         * lib/mbswidth.c: New file.
88069         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88070         (noinst_HEADERS): Add mbswidth.h.
88071
88072 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88073
88074         * lib/config.charset: Add support for FreeBSD. Improve support for
88075         HP-UX and IRIX 6.
88076
88077 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88078
88079         * m4/mbswidth.m4: New file.
88080         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88081
88082 2000-07-15  Jim Meyering  <meyering@lucent.com>
88083
88084         * lib/makepath.c: Include quote.h.
88085         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88086         corresponding argument in a `quote (...)' call.
88087         Give better diagnostics.
88088
88089         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88090         (noinst_HEADERS): Add quote.h.
88091
88092         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88093         from tar's src/misc.c.
88094         * lib/quote.h: New file.  Prototypes for same.
88095
88096 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88097
88098         From a suggestion by Bruno Haible.
88099         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88100         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88101         to decide whether to define the BeOS workaround macro;
88102         this adjusts to the change to AC_MBSTATE_T.
88103
88104 2000-07-14  Jim Meyering  <meyering@lucent.com>
88105
88106         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88107         jm_AC_TYPE_UINTMAX_T.
88108
88109 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88110
88111         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88112
88113         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88114         quotearg_buffer_restyled): Add support for
88115         clocale_quoting_style.  Undo previous change to
88116         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88117         and "{RIGHT QUOTATION MARK}" msgids.
88118
88119 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88120
88121         From a suggestion by Bruno Haible.
88122         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88123         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88124         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88125         and mbstate_t, to a single-part test that simply defines mbstate_t.
88126         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88127         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88128
88129 2000-07-10  Jim Meyering  <meyering@lucent.com>
88130
88131         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88132
88133         * m4/gnu-source.m4: Output to confdefs.h directly.
88134         Suggestion from Akim Demaille.
88135
88136 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88137
88138         The old behavior of quoting `like this' doesn't look good with
88139         newer, ISO-style fonts.  See:
88140         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88141
88142         Instead, quote "like this" by default.  Let the translator
88143         tailor the locale-specific quoting behavior by providing
88144         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88145
88146         * lib/quotearg.c (N_): New macro.
88147         (gettext_default): New function.
88148         (quotearg_buffer_restyled): Use
88149         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88150         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88151
88152 2000-07-09  Jim Meyering  <meyering@lucent.com>
88153
88154         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88155         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88156
88157         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88159
88160 2000-07-09  Jim Meyering  <meyering@lucent.com>
88161
88162         * lib/Most files: Update copyright dates to include 2000.
88163
88164 2000-07-08  Jim Meyering  <meyering@lucent.com>
88165
88166         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88167         if not defined.
88168         (xgethostname): Remove now-unnecessary #ifdef.
88169         Move declaration of `err' into loop where it's used.
88170
88171 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88172         and Bruno Haible  <haible@clisp.cons.org>
88173
88174         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88175         only if the test for an object-type mbstate_t fails.  This
88176         prevents us from mistakenly reporting that mbstate_t is a
88177         system object type after we "#define mbstate_t int" to work
88178         around its lack.
88179
88180 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88181         and Bruno Haible  <haible@clisp.cons.org>
88182
88183         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88184
88185 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88186
88187         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88188         to strerror_r.
88189         Include <ctype.h> for use of isalpha.
88190
88191 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88192
88193         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88194         by allocating a larger buffer. Test the gethostname return value for
88195         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88196         returns an error and ENAMETOOLONG isn't defined.
88197
88198 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88199
88200         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88201         dimension.
88202
88203 2000-07-04  Jim Meyering  <meyering@lucent.com>
88204
88205         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88206         of the deprecated AC_CHECKING.
88207
88208 2000-07-04  Jim Meyering  <meyering@lucent.com>
88209
88210         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88211         Reported by Bruno Haible.
88212
88213 2000-07-04  Jim Meyering  <meyering@lucent.com>
88214
88215         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88216         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88217         lacks mbrtowc.
88218
88219 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88220
88221         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88222         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88223
88224 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88225         and Bruno Haible  <haible@clisp.cons.org>
88226
88227         * lib/quotearg.c (mbrtowc):
88228         Assign to *pwc, and return 1 only if result is nonzero.
88229         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88230
88231 2000-07-03  Jim Meyering  <meyering@lucent.com>
88232
88233         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88234
88235 2000-07-03  Jim Meyering  <meyering@lucent.com>
88236
88237         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88238         This is necessary to get a definition of e.g., UTMP_FILE on
88239         HP-UX 10.20.
88240         From Bob Proulx.
88241
88242 2000-07-02  Jim Meyering  <meyering@lucent.com>
88243
88244         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88245
88246         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88247         AC_LIBOBJ(function_name).
88248         * m4/chown.m4: Likewise.
88249         * m4/fnmatch.m4: Likewise.
88250         * m4/ftruncate.m4: Likewise.
88251         * m4/getgroups.m4: Likewise.
88252         * m4/getline.m4: Likewise.
88253         * m4/group-member.m4: Likewise.
88254         * m4/jm-macros.m4: Likewise.
88255         * m4/lstat.m4: Likewise.
88256         * m4/malloc.m4: Likewise.
88257         * m4/memcmp.m4: Likewise.
88258         * m4/nanosleep.m4: Likewise.
88259         * m4/putenv.m4: Likewise.
88260         * m4/realloc.m4: Likewise.
88261         * m4/regex.m4: Likewise.
88262         * m4/stat.m4: Likewise.
88263         * m4/strftime.m4: Likewise.
88264
88265 2000-07-02  Jim Meyering  <meyering@lucent.com>
88266
88267         * lib/quotearg.c (mbstate_t): Don't define here.
88268
88269 2000-07-02  Jim Meyering  <meyering@lucent.com>
88270
88271         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88272
88273 2000-07-01  Jim Meyering  <meyering@lucent.com>
88274
88275         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88276
88277 2000-07-01  Jim Meyering  <meyering@lucent.com>
88278
88279         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88280         problem.
88281
88282 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88283
88284         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88285         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88286
88287 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88288
88289         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88290         per change in ../m4/ls-mntd-fs.m4.
88291         (read_filesystem_list): Ignore symbolic links.
88292
88293 2000-06-29  Jim Meyering  <meyering@lucent.com>
88294
88295         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88296         for declaration of strcmp.
88297
88298         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88299
88300         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88301         Avoid warning by casting result to `char *' to remove `const'.
88302
88303 2000-06-28  Jim Meyering  <meyering@lucent.com>
88304
88305         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88306         included by quotearg.c, for which we perform this test.  From
88307         Bruno Haible.
88308
88309 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88310
88311         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88312         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88313         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88314
88315 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88316
88317         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88318
88319 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88320
88321         savedir now sets errno on failure and invokes xmalloc to get memory.
88322         Fix a couple of other minor bugs while we're at it.
88323
88324         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88325         (NAMLEN): Remove macro.
88326         (malloc, realloc): Remove decls.
88327         (stpcpy): Likewise.
88328         ("xalloc.h"): Include.
88329         (NAME_SIZE_DEFAULT): New macro.
88330         (savedir): Use xmalloc / xrealloc to allocate memory.
88331         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88332         Skip "" directory entries.
88333         Use strlen to calculate directory entry length, since the old method
88334         is rarely used these days and isn't worth supporting.
88335         Don't use a pointer after freeing it.
88336         Check for integer overflow when calculating allocation size.
88337         Use memcpy to copy entries, instead of stpcpy.
88338         Set errno properly when returning NULL.
88339         Check for readdir error.
88340
88341 2000-06-26  Jim Meyering  <meyering@lucent.com>
88342
88343         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88344
88345 2000-06-25  Jim Meyering  <meyering@lucent.com>
88346
88347         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88348         Linux header bug when _XOPEN_SOURCE is defined to 500.
88349
88350 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88351
88352         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88353         deficiency.
88354
88355 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88356
88357         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88358         Include xalloc.h.
88359         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88360
88361 2000-06-24  Jim Meyering  <meyering@lucent.com>
88362
88363         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88364         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88365         for which strerror does return char*, but which lacks a conveniently
88366         accessible declaration of the function.  If the compile-test says
88367         strerror_r doesn't work, then resort to a `run'-test that works on
88368         BeOS and segfaults on DEC Unix.
88369
88370 2000-06-24  Jim Meyering  <meyering@lucent.com>
88371
88372         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88373
88374 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88375
88376         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88377         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88378
88379 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88380
88381         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88382         (mbrtowc, mbstate_t): Define substitutes if
88383         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88384         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88385         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88386
88387 2000-06-23  Jim Meyering  <meyering@lucent.com>
88388
88389         * m4/afs.m4: Add missing AC_MSG_RESULT.
88390         Reported by Bruno Haible.
88391
88392         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88393         Suggestion from Bruno Haible.
88394
88395 2000-06-23  Jim Meyering  <meyering@lucent.com>
88396
88397         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88398
88399 2000-06-21  Jim Meyering  <meyering@lucent.com>
88400
88401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88402
88403 2000-06-21  Jim Meyering  <meyering@lucent.com>
88404
88405         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88406         (noinst_HEADERS): Add getstr.h.
88407
88408         * lib/getline.c (getstr): Move into a separate file.
88409         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88410         the following changes: new parameter, delim2; both delim[12]
88411         parameters have type `int', not `char'.  The latter would lose
88412         with 8-bit delimiters.
88413         * lib/getstr.h: New file.
88414
88415 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88416
88417         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88418         than 1024, return a memory chunk of least possible size, instead
88419         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88420         Use free/xmalloc instead of xrealloc to avoid copying for very long
88421         paths.
88422
88423 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88424
88425         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88426         the empty string.
88427
88428 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88429
88430         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88431         address, not strdup.  Include <stdlib.h> and don't declare free().
88432
88433 2000-06-19  Jim Meyering  <meyering@lucent.com>
88434
88435         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88436
88437 2000-06-18  Jim Meyering  <meyering@lucent.com>
88438
88439         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88440
88441         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88442         `checking whether...' message to be consistent with that of the
88443         lstat test.
88444
88445 2000-06-18  Jim Meyering  <meyering@lucent.com>
88446
88447         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88448         Besides, these days every porting target provides a mkdir function.
88449
88450         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88451         needed. (this snippet comes from src/system.h).
88452
88453 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88454
88455         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88456
88457 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88458
88459         * lib/human.c (adjust_value): New function.
88460         (human_readable_inexact): Apply rounding style even when
88461         printing approximate values.
88462
88463 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88464
88465         * lib/human.c (human_readable_inexact): Allow an input block
88466         size that is not a multiple of the output block size, and vice versa.
88467         Reported by Piergiorgio Sartor.
88468
88469 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88470
88471         * lib/getdate.y (get_date): Apply relative times after time
88472         zone indicator, not before.  Reported by Todd A. Jacobs.
88473
88474 2000-06-13  Jim Meyering  <meyering@lucent.com>
88475
88476         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88477
88478         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88479
88480 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88481
88482         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88483
88484 2000-06-12  Jim Meyering  <meyering@lucent.com>
88485
88486         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88487         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88488         optional argument.
88489         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88490         the optional argument, `lib'.
88491
88492 2000-06-08  Jim Meyering  <meyering@lucent.com>
88493
88494         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88495
88496 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88497
88498         Rewrite largefile configuration so that we don't need to run
88499         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88500         AC_CANONICAL_HOST in configure.in -- jmm]
88501
88502         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88503         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88504         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88505         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88506         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88507         All uses changed.
88508         Instead of inspecting the output of getconf, try to compile the
88509         test program without and with the macro definition.
88510         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88511         for getconf.  Instead, check for the needed flags by compiling
88512         test programs.
88513
88514 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88515
88516         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88517
88518 2000-06-04  Jim Meyering  <meyering@lucent.com>
88519
88520         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88521         SunOS 4.1.4 for which gid_t is an unsigned type.
88522
88523 2000-06-03  Jim Meyering  <meyering@lucent.com>
88524
88525         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88526         now that autoconf requires that.
88527
88528         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88529         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88530         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88531
88532 2000-06-03  Jim Meyering  <meyering@lucent.com>
88533
88534         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88535
88536 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88537
88538         * m4/glibc21.m4: New file.
88539         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88540
88541 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88542
88543         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88544         newer, don't install charset.alias.
88545         * lib/config.charset: Change the Linux/glibc rules so they become empty
88546         on glibc-2.1 or newer.
88547
88548 2000-06-02  Jim Meyering  <meyering@lucent.com>
88549
88550         * lib/mountlist.c: Back out last change.  Instead, do this...
88551         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88552         me_dummy member using the same `ignore'-testing code.
88553         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88554         fs_type strings.
88555         From Mark D. Roth.
88556
88557 2000-05-29  Jim Meyering  <meyering@lucent.com>
88558
88559         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88560         mounts with the `ignore' attribute.  Based on a patch from
88561         Mark D. Roth.
88562
88563 2000-05-28  Jim Meyering  <meyering@lucent.com>
88564
88565         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88566         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88567         * m4/stat.m4: Likewise.
88568         * m4/lstat.m4: Likewise.
88569         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88570
88571         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88572         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88573
88574 2000-05-26  Jim Meyering  <meyering@lucent.com>
88575
88576         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88577
88578 2000-05-24  Jim Meyering  <meyering@lucent.com>
88579
88580         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88581         autoconf requires that.
88582         * m4/lib-check.m4: Likewise.
88583         * m4/jm-macros.m4: Likewise.
88584         * m4/strftime.m4: Likewise.
88585
88586         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88587         AC_CHECK_DECLS, now that autoconf requires that.
88588
88589 2000-05-22  Jim Meyering  <meyering@lucent.com>
88590
88591         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88592         * m4/lstat.m4: Likewise.
88593
88594 2000-05-22  Jim Meyering  <meyering@lucent.com>
88595
88596         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88597
88598 2000-05-20  Jim Meyering  <meyering@lucent.com>
88599
88600         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88601         (jm_PREREQ): Use it.
88602
88603 2000-05-18  Jim Meyering  <meyering@lucent.com>
88604
88605         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88606         back, too, since it may have been modified by allocate_entry.
88607         (hash_delete): Rewrite to use neither the assignment operator
88608         nor the comma operator in an if-expression.
88609
88610 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88611
88612         * lib/closeout.c:
88613         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88614         Remove; no longer needed.
88615         "quotearg.h": Add include.
88616         (file_name): Do not bother to explicitly initialize to NULL; it's less
88617         efficient on some hosts.
88618         (close_stdout_status): Remove test as to whether stdout was already
88619         closed; it breaks for the case "echo x | sort >&-".
88620         Quote file name colons.
88621         Do not assume that _("write error") lacks format strings.
88622
88623 2000-05-15  Jim Meyering  <meyering@lucent.com>
88624
88625         * lib/version-etc.c (version_etc_copyright): Update the copyright
88626         string used in all --version output.
88627
88628 2000-05-14  Jim Meyering  <meyering@lucent.com>
88629
88630         * lib/closeout.c (close_stdout_set_file_name): New function.
88631         (close_stdout_status): Use new file-scoped global.
88632         Return right away if fstat says the stdout file descriptor is invalid.
88633         * lib/closeout.h (close_stdout_set_file_name): Declare.
88634
88635 2000-05-10  Jim Meyering  <meyering@lucent.com>
88636
88637         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88638         (close_stdout_set_status): New function.
88639         * lib/closeout.h (close_stdout_set_status): Declare.
88640
88641 2000-05-09  Jim Meyering  <meyering@lucent.com>
88642
88643         * m4/gettext.m4: Rename this...
88644         * m4/libintl.m4: ...to this.
88645
88646 2000-05-08  Jim Meyering  <meyering@lucent.com>
88647
88648         * lib/long-options.c: Don't include closeout.h.
88649         (parse_long_options): Don't call close_stdout for --version.
88650
88651 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88652
88653         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88654         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88655         2.1.3 bug.  This avoids a clash when files like regex.c define
88656         _GNU_SOURCE.
88657
88658 2000-05-06  Jim Meyering  <meyering@lucent.com>
88659
88660         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88661         (AC_REPLACE_FUNCS): Add strnlen.
88662
88663         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88664         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88665
88666         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88667         AC_SEARCH_LIBS call for nanosleep.
88668         (LIB_NANOSLEEP): Set and AC_SUBST.
88669
88670 2000-05-06  Jim Meyering  <meyering@lucent.com>
88671
88672         * lib/strnlen.c: Undefine __strnlen and strnlen.
88673         [!weak_alias]: Define __strnlen to strnlen.
88674
88675         * lib/atexit.c: New file, from libiberty.
88676
88677 2000-05-06  Jim Meyering  <meyering@lucent.com>
88678
88679         * lib/closeout.c (close_stdout_status): Also check for errors on the
88680         stderr stream.
88681
88682 2000-05-05  Jim Meyering  <meyering@lucent.com>
88683
88684         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88685         AC_SEARCH_LIBS call for clock_gettime.
88686         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88687
88688         * m4/search-libs.m4: Update from autoconf.
88689
88690         su doesn't work on Solaris 2.6.
88691         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88692         <shadow.h>.  Reported by Dragos Harabor.
88693
88694 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88695
88696         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88697         memcpy instead of xmalloc, xrealloc, path_concat.
88698         (locale_charset): Treat empty environment variables as absent.
88699         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88700
88701 2000-05-04  Jim Meyering  <meyering@lucent.com>
88702
88703         * lib/getopt.c: Update from glibc.
88704         * lib/obstack.c: Likewise.
88705         * lib/obstack.h: Likewise.
88706         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88707         file
88708
88709         * lib/regex.h: Likewise.
88710         * lib/strndup.c: Likewise.
88711         * lib/strnlen.c: New file, from glibc.
88712
88713 2000-05-03  Jim Meyering  <meyering@lucent.com>
88714
88715         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88716
88717 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88718
88719         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88720         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88721         compile-time test, rather than inspecting host and OS, to
88722         decide whether to define _LARGEFILE_SOURCE.
88723
88724 2000-05-01  Jim Meyering  <meyering@lucent.com>
88725
88726         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88727
88728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88729         Based on a patch from Bruno Haible.
88730
88731 2000-05-01  Jim Meyering  <meyering@lucent.com>
88732
88733         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88734
88735 2000-04-29  Jim Meyering  <meyering@lucent.com>
88736
88737         * lib/path-concat.c: Declare strdup only if it's not defined.
88738         * lib/canon-host.c: Likewise.
88739
88740 2000-04-28  Jim Meyering  <meyering@lucent.com>
88741
88742         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88743         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88744         is included first, then limits.h is included by locale.h by libintl.h.
88745         From John David Anglin.
88746
88747 2000-04-25  Jim Meyering  <meyering@lucent.com>
88748
88749         * lib/makepath.c (S_IRWXUGO): Define.
88750         (make_path): Always perform explicit chmod if MODE specifies any
88751         of the `special' permission bits.  Prompted by a bug report against
88752         install from Mate Wierdl and Joost van Baal.
88753
88754 2000-04-18  Jim Meyering  <meyering@lucent.com>
88755
88756         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88757         (jm_PREREQ): Use it.
88758
88759 2000-04-18  Jim Meyering  <meyering@lucent.com>
88760
88761         * lib/README: New file.
88762
88763         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88764         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88765
88766 2000-04-17  Jim Meyering  <meyering@lucent.com>
88767
88768         Get it right :-)
88769         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88770         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88771         Suggestion from Akim Demaille.
88772
88773 2000-04-17  Jim Meyering  <meyering@lucent.com>
88774
88775         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88776         the definition of it to rpl_strftime also defined-away the system's
88777         declaration.
88778
88779 2000-04-15  Jim Meyering  <meyering@lucent.com>
88780
88781         Use `C' to denote so-called `contiguous' files, the same way
88782         that tar does.
88783         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88784         (ftypelet): Use S_ISCTG.
88785         From Michael Deutschmann.
88786
88787 2000-04-14  Jim Meyering  <meyering@lucent.com>
88788
88789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88790         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88791         clobbered.
88792
88793 2000-04-14  Jim Meyering  <meyering@lucent.com>
88794
88795         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88796
88797 2000-04-13  Jim Meyering  <meyering@lucent.com>
88798
88799         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88800         AH_VERBATIM to insert required #ifndef into config.h.in.
88801         Suggestion from Akim Demaille.
88802
88803 2000-04-12  Jim Meyering  <meyering@lucent.com>
88804
88805         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88806         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88807         Christian Krackowizer.
88808
88809         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88810         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88811         (AC_SYS_LARGEFILE): Require.
88812         (AM_C_PROTOTYPES): Require.
88813
88814 2000-04-08  Jim Meyering  <meyering@lucent.com>
88815
88816         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88817         names don't conflict.  Reported by Eli Zaretskii.
88818
88819 2000-04-07  Jim Meyering  <meyering@lucent.com>
88820
88821         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88822         sys/types.h, to work around system header problems on AIX 3.2.5.
88823         From Bruno Haible.
88824
88825 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88826
88827         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88828         bug.  Deal with the different error behavior of Irix iconv.
88829
88830 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88831
88832         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88833         IRIX if the installer said otherwise.
88834
88835 2000-04-05  Jim Meyering  <meyering@lucent.com>
88836
88837         Portability tweaks required for ultrix4.3.
88838         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88839         (jm_CHECK_DECLS): Add getutent to the list of functions.
88840         (_jm_DECL_HEADERS): Add utmpx.h.
88841         From John David Anglin.
88842
88843         * m4/strftime.m4: Back out the 2000-04-02 change.
88844         Instead of that change, simply undefine putenv in the test program.
88845
88846 2000-04-05  Jim Meyering  <meyering@lucent.com>
88847
88848         Portability tweaks required for ultrix4.3.
88849         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88850         getutent.
88851         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88852         * lib/canon-host.c: Declare strdup.
88853         * lib/path-concat.c: Likewise.
88854         From John David Anglin.
88855
88856 2000-04-04  Jim Meyering  <meyering@lucent.com>
88857
88858         Be more DOS 8.3-friendly.
88859         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88860         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88861         * lib/Makefile.am: Reflect renaming.
88862         Reported by Eli Zaretskii.
88863
88864         Use a temporary file name that won't clash with `charset.alias'
88865         in the DOS 8.3 name space.
88866         * lib/Makefile.am (charset_tmp): Define.
88867         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88868         (uninstall-local): Likewise.
88869         Reported by Eli Zaretskii.
88870
88871 2000-04-03  Jim Meyering  <meyering@lucent.com>
88872
88873         * m4/gettext.m4: Fix typo in comment.
88874
88875         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88876         textutils/configure.in).  Suggestion from Paul Eggert.
88877         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88878
88879 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88880
88881         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88882         variable in the shell rather than using putenv, which isn't
88883         portable.  This avoids the configure-time inter-test dependency
88884         on the potentially-renamed putenv function.
88885
88886 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88887
88888         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88889         before checking struct stat.st_blksize, so that
88890         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88891
88892 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88893
88894         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88895         since strftime.c uses HAVE_STRFTIME to decide whether to use
88896         the underlying strftime.
88897
88898 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88899
88900         * lib/time/strftime.c (my_strftime): Make sure we call the system
88901         strftime, not ourselves, when invoking the underlying strftime.
88902
88903 2000-03-24  Jim Meyering  <meyering@lucent.com>
88904
88905         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88906         (charset_alias): Define.
88907         (install-exec-local): Factor out common code.
88908         (uninstall-local): Split lines longer than 80.
88909         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88910         (SUFFIXES): Define.
88911         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88912         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88913
88914 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88915
88916         * lib/config.charset: Output a line containing "Packages using this
88917         file".
88918         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88919         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88920         ref-del.sed): New rules.
88921
88922 2000-03-17  Jim Meyering  <meyering@lucent.com>
88923
88924         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88925         Otherwise, include <strings.h>
88926
88927 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88928
88929         * lib/unicodeio.c (utf8_wctomb): New function.
88930         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88931         format instead of in UCS-4 with platform dependent endianness.
88932
88933 2000-03-10  Jim Meyering  <meyering@lucent.com>
88934
88935         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88936         From Marco Franzen.
88937
88938 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88939
88940         * lib/savedir.c (savedir): Work even if directory size is
88941         negative; this can happen with some screwy NFS configurations.
88942
88943 2000-03-06  Jim Meyering  <meyering@lucent.com>
88944
88945         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88946         if it's NULL (because we ran out of memory).  From Bruno Haible.
88947
88948 2000-03-05  Jim Meyering  <meyering@lucent.com>
88949
88950         * lib/localcharset.c ("path-concat.h"): Include.
88951         (get_charset_aliases): Use path_concat instead of ANSI string
88952         concatenation.
88953
88954         * lib/unicodeio.h (PARAMS): Define.
88955         Use it to guard prototype.
88956
88957 2000-03-04  Jim Meyering  <meyering@lucent.com>
88958
88959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88960         for lib/localcharset.c.
88961
88962 2000-03-04  Jim Meyering  <meyering@lucent.com>
88963
88964         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88965         installing into it.
88966         (uninstall-local): Uncomment this rule so `make distcheck' works
88967         once again.
88968
88969         * lib/unicodeio.c (<errno.h>): Include it.
88970         (errno): Declare if not defined.
88971
88972         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88973
88974         * lib/config.charset: New version, incorporating remarks from a linux
88975         i18n mailing list.  From Bruno Haible.
88976
88977 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88978
88979         * m4/codeset.m4: New file.
88980         * m4/iconv.m4: New file.
88981         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88982
88983 2000-03-03  Jim Meyering  <meyering@lucent.com>
88984
88985         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88986
88987 2000-03-02  Jim Meyering  <meyering@lucent.com>
88988
88989         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88990         the messages come out on separate lines.
88991
88992         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88993         rather than jm_CHECK_DECLARATIONS.
88994         * m4/decl.m4: Remove now-unused file.
88995
88996         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88997         geteuid.
88998
88999 2000-03-02  Jim Meyering  <meyering@lucent.com>
89000
89001         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89002
89003 2000-03-01  Jim Meyering  <meyering@lucent.com>
89004
89005         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89006         * lib/unicodeio.c: Likewise.
89007
89008 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89009
89010         * lib/config.charset: New file.
89011         * lib/localcharset.c: New file.
89012         * lib/unicodeio.h, lib/unicodeio.c: New files.
89013         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89014         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89015         (noinst_HEADERS): Add unicodeio.h.
89016         (all-local, install-exec-local, charset.alias): New targets.
89017
89018 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89019
89020         * lib/quotearg.c (ALERT_CHAR): New macro.
89021         (quotearg_buffer_restyled): Use it.
89022
89023 2000-02-27  Jim Meyering  <meyering@lucent.com>
89024
89025         * m4/check-decl.m4: Add getenv to the list.
89026
89027 2000-02-27  Jim Meyering  <meyering@lucent.com>
89028
89029         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89030         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89031
89032         * lib/backupfile.c: Guard inclusion of stdlib.h with
89033         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89034         Declare malloc if needed.
89035
89036         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89037         `#ifndef HAVE_DECL..'
89038         now that autoconf always defines the HAVE_DECL_ symbols.
89039         * lib/human.c: Likewise.
89040         * lib/same.c: Likewise.
89041         * lib/strtoumax.c: Likewise.
89042
89043         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89044         declaration check was not run.
89045         * lib/hash.c: Likewise.
89046         * lib/human.c: Likewise.
89047         * lib/same.c: Likewise.
89048         * lib/strtoumax.c: Likewise.
89049
89050         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89051         `.', then first look up the entire `.'-containing string as a login
89052         name.
89053
89054 2000-02-23  Jim Meyering  <meyering@lucent.com>
89055
89056         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89057         in place of my hack.
89058
89059 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89060
89061         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89062         (textint): New typedef.
89063         (parser_control): Member year changed from int to textint.
89064         All uses changed.
89065         (YYSTYPE): Removed; replaced by %union with int and textint members.
89066         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89067         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89068         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89069         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89070         (date, number, to_year): Use width of number in digits, not its value,
89071         to determine whether it's a 2-digit year, or a 2-digit time.
89072         (yylex): Store number of digits of numeric tokens.
89073         Reported by John Kendall.
89074
89075         (parser_control): Changed from struct parser_control to typedef (for
89076         consistency).  All uses changed.
89077
89078         (tID): Removed; not used.
89079         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89080
89081 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89082
89083         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89084         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89085
89086 2000-02-12  Jim Meyering  <meyering@lucent.com>
89087
89088         * lib/userspec.c (ISDIGIT): Define it.
89089         (isdigit): Remove definition.
89090         (is_number): Use ISDIGIT, not isdigit.
89091         <libintl.h>: Include.
89092         (_ and N_): Define.
89093         (parse_user_spec): Mark translatable strings.
89094
89095 2000-02-10  Jim Meyering  <meyering@lucent.com>
89096
89097         With these changes, nanosleep.[ch] are finally enough like the other
89098         lib/* replacement files to compile on a few more losing systems.
89099
89100         * lib/nanosleep.h: Don't include config.h.
89101         Remove prototype from declaration of nanosleep.
89102         (PARAMS): Remove now-unneeded definition.
89103         * lib/nanosleep.c: #undef nanosleep.
89104         (rpl_nanosleep): Rename from nanosleep.
89105
89106 2000-02-10  Jim Meyering  <meyering@lucent.com>
89107
89108         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89109         gnu_nanosleep to rpl_nanosleep.
89110
89111 2000-02-09  Jim Meyering  <meyering@lucent.com>
89112
89113         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89114         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89115
89116 2000-02-08  Akim Demaille  <akim@epita.fr>
89117
89118         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89119         `[' and `]' and remove uses of `changequote'.
89120         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89121         (AC_SYS_LARGEFILE): Likewise.
89122         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89123         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89124         of changequote.
89125         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89126         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89127         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89128         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89129
89130 2000-02-05  Jim Meyering  <meyering@lucent.com>
89131
89132         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89133         Remove explicit use of AC_HEADER_TIME.  It is required by
89134         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89135         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89136         in autoconf whereby the expansion of the latter ended up preceding
89137         the expansion of its prerequisite, AC_HEADER_TIME.
89138         Reported by Volker Borchert.
89139
89140 2000-02-03  Jim Meyering  <meyering@lucent.com>
89141
89142         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89143
89144 2000-02-03  Jim Meyering  <meyering@lucent.com>
89145
89146         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89147         rather than with `#if HAVE_UTMPNAME'.
89148
89149 2000-02-02  Jim Meyering  <meyering@lucent.com>
89150
89151         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89152         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89153         Reported by Eli Zaretskii.
89154
89155 2000-02-01  Jim Meyering  <meyering@lucent.com>
89156
89157         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89158
89159 2000-01-31  Jim Meyering  <meyering@lucent.com>
89160
89161         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89162         functions.  Add the time.h and sys/time.h headers along with the
89163         AC_REQUIRE'ment of AC_HEADER_TIME.
89164
89165 2000-01-31  Jim Meyering  <meyering@lucent.com>
89166
89167         * lib/nanosleep.h (nanosleep): Guard declaration with
89168         `#if ! HAVE_DECL_NANOSLEEP'.
89169         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89170         the declaration in that vendor's sys/timers.h.
89171         Reported by Christian Krackowizer.
89172
89173         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89174         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89175         (ISPRINT): Likewise.
89176         Reported by Tom Tromey.
89177
89178 2000-01-30  Jim Meyering  <meyering@lucent.com>
89179
89180         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89181
89182         * m4/prereq.m4 (utmp_includes): Define.
89183         Check for ut_user and ut_name members in both struct utmpx
89184         and struct utmp.
89185
89186 2000-01-30  Jim Meyering  <meyering@lucent.com>
89187
89188         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89189         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89190         header files where only utmpx.ut_user is declared.
89191
89192         * lib/readutmp.h (UT_USER): Define.
89193
89194 2000-01-29  Jim Meyering  <meyering@lucent.com>
89195
89196         * m4/lib-check.m4: New file containing library-related checks from
89197         fileutils and sh-utils (textutils had none).
89198
89199 2000-01-28  Jim Meyering  <meyering@lucent.com>
89200
89201         * m4/perl.m4: Change format of warning message to look more like that
89202         from the missing script.  Suggestion from François Pinard.
89203
89204 2000-01-25  Jim Meyering  <meyering@lucent.com>
89205
89206         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89207         well as time.h in the compile check.
89208         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89209         Fix typo in cross-compiling case: s/yes/no/.
89210
89211 2000-01-23  Jim Meyering  <meyering@lucent.com>
89212
89213         * m4/jm-macros.m4: Move df-related tests here from
89214         fileutils/configure.in
89215
89216         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89217         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89218
89219         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89220         s/space/ac_fsusage_space/.
89221         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89222
89223         * m4/ftruncate.m4: New file (derived from part of
89224         fileutils/configure.in).
89225         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89226         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89227
89228         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89229         AC_SUBST these here, rather than just in sh-util/configure.in, so
89230         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89231         all the same.
89232         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89233         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89234         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89235         (AC_SUBST(POW_LIBM)): Likewise.
89236         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89237
89238 2000-01-23  Jim Meyering  <meyering@lucent.com>
89239
89240         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89241         obstack.c.
89242
89243 2000-01-22  Jim Meyering  <meyering@lucent.com>
89244
89245         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89246
89247         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89248
89249         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89250         configure.in
89251         (AC_CHECK_HEADERS): Likewise for sh-utils.
89252         (AC_CHECK_HEADERS): Likewise for textutils.
89253         Merge the three lists of headers.
89254
89255         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89256         from fileutils' configure.in.
89257
89258         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89259         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89260         check-decl.m4.
89261
89262         * m4/check-decl.m4: Use #if rather than #ifdef.
89263         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89264         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89265         (_jm_DECL_HEADERS): Define new function.
89266         (jm_CHECK_DECLARATIONS): Require it.
89267
89268 2000-01-22  Jim Meyering  <meyering@lucent.com>
89269
89270         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89271         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89272         Required for some AIX systems.  Reported by Christian Krackowizer.
89273         [TESTING] (main): New function.
89274
89275         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89276         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89277         letters.
89278
89279         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89280         iswprint.
89281
89282         * lib/strverscmp.c (ISDIGIT): Define.
89283         (strverscmp): Use ISDIGIT, not isdigit.
89284
89285 2000-01-19  Jim Meyering  <meyering@lucent.com>
89286
89287         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89288         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89289         defines `struct timespec' in <sys/time.h>
89290
89291         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89292         Thanks to Akim for explaining.
89293
89294 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89295
89296         * lib/nanosleep.c (nanosleep):
89297         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89298         POSIX.1 doesn't require SA_INTERRUPT and some systems
89299         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89300         it's been part of POSIX.1 since day 1 (in 1988).
89301
89302 2000-01-17  Jim Meyering  <meyering@lucent.com>
89303
89304         * lib/interlock: Remove unused file.  Reported by François Pinard.
89305
89306 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89307
89308         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89309         alert, backslash, formfeed, and vertical tab unnecessarily in
89310         shell quoting style.
89311
89312 2000-01-16  Jim Meyering  <meyering@lucent.com>
89313
89314         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89315         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89316         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89317         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89318
89319 2000-01-16  Jim Meyering  <meyering@lucent.com>
89320
89321         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89322         because the latter didn't work.
89323
89324 2000-01-15  Jim Meyering  <meyering@lucent.com>
89325
89326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89327         (AC_REPLACE_FUNCS): Add memcpy and memset.
89328         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89329         Add strpbrk.
89330         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89331
89332 2000-01-12  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89335         (jm_PREREQ): Use it.
89336         (jm_PREREQ_READUTMP): New macro.
89337         (jm_PREREQ): Use it.
89338
89339 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89340
89341         Quote multibyte characters correctly.
89342         * m4/c-bs-a.m4: New file.
89343         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89344         (jm_PREREQ): Use it.
89345
89346 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89347
89348         * m4/uintmax_t.m4: Port to autoconf 2.13.
89349
89350 2000-01-08  Jim Meyering  <meyering@ascend.com>
89351
89352         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89353         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89354
89355 2000-01-04  Jim Meyering  <meyering@ascend.com>
89356
89357         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89358         jm_STRUCT_DIRENT_D_TYPE.
89359         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89360         jm_STRUCT_DIRENT_D_INO.
89361         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89362         jm_STRUCT_UTIMBUF.
89363         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89364         renamings.
89365         * m4/utime.m4: Likewise.
89366
89367         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89368         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89369
89370 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89371
89372         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89373         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89374
89375 2000-01-02  Jim Meyering  <meyering@ascend.com>
89376
89377         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89378         remember if this is necessary.
89379
89380 1999-12-26  Jim Meyering  <meyering@ascend.com>
89381
89382         * m4/jm-macros.m4: Use it here.
89383         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89384
89385 1999-12-23  Jim Meyering  <meyering@ascend.com>
89386
89387         * m4/jm-macros.m4: Check for clock_gettime (moved from
89388         fileutils/configure.in)
89389         Check for gettimeofday.
89390
89391 1999-12-20  Jim Meyering  <meyering@ascend.com>
89392
89393         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89394         autoconf-2.14a-1999-12-20.
89395
89396 1999-12-19  Jim Meyering  <meyering@ascend.com>
89397
89398         * m4/lstat-slash.m4: New file.
89399         * m4/jm-macros.m4: Use the new macro:
89400         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89401
89402 1999-12-07  Jim Meyering  <meyering@ascend.com>
89403
89404         * m4/perl.m4: Require that File::Compare be available, too.
89405         Too many systems seem to lack it.
89406
89407         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89408         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89409
89410 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89411
89412         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89413         problem with the QNX 4.25 shell, which doesn't propagate exit
89414         status of failed commands inside shell assignments.
89415
89416 1999-11-17  Jim Meyering  <meyering@ascend.com>
89417
89418         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89419
89420 1999-11-07  Jim Meyering  <meyering@ascend.com>
89421
89422         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89423
89424 1999-11-06  Jim Meyering  <meyering@ascend.com>
89425
89426         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89427         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89428
89429 1999-11-05  Jim Meyering  <meyering@ascend.com>
89430
89431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89432         configure.in of textutils, fileutils, and sh-utils into this one
89433         (shared between those packages) file.
89434         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89435         AC_STRUCT_ST_BLKSIZE.
89436
89437 1999-11-03  Jim Meyering  <meyering@ascend.com>
89438
89439         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89440         of AC_CHECK_TYPE checks includes unistd.h.
89441         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89442         Suggestion from Akim Demaille.
89443
89444 1999-10-30  Jim Meyering  <meyering@ascend.com>
89445
89446         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89447         m4-quoted string.
89448         * m4/ls-mntd-fs.m4: Likewise.
89449         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89450         * m4/jm-winsz1.m4: Likewise.
89451
89452         * m4/const.m4: Remove file, since the fix made it into the experimental
89453         version of autoconf.
89454         * m4/mktime.m4: Likewise.
89455
89456         * m4/check-type.m4: Remove file, now that the latest version of
89457         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89458
89459         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89460         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89461         AC_CHECK_TYPE.
89462
89463 1999-10-04  Jim Meyering  <meyering@ascend.com>
89464
89465         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89466
89467 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89468
89469         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89470         2.95.1 bug with HP-UX 10.20.
89471
89472 1999-09-17  Jim Meyering  <meyering@ascend.com>
89473
89474         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89475         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89476         due to missing strdup (against sh-utils-2.0).
89477
89478 1999-08-29  Jim Meyering  <meyering@ascend.com>
89479
89480         * m4/jm-macros.m4: Require jm_BISON.
89481         * m4/bison.m4: New file.
89482
89483 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89484
89485         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89486         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89487
89488 1999-08-05  Jim Meyering  <meyering@ascend.com>
89489
89490         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89491         to avoid conflicts with `conftest' on 8+3 filesystems.
89492         Suggestion from Eli Zaretskii.
89493
89494 1999-08-04  Jim Meyering  <meyering@ascend.com>
89495
89496         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89497         fileutils and sh-utils (textutils's getline test was inadequate).
89498         (AM_FUNC_GETLINE): Run this test.
89499         (AC_CHECK_FUNCS): Check for getdelim.
89500         Reported by Bob Proulx.
89501
89502 1999-08-02  Jim Meyering  <meyering@ascend.com>
89503
89504         * m4/jm-macros.m4: Add a comment.
89505
89506 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89507
89508         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89509         <inttypes.h> defines strtoumax as a macro (and not as a
89510         function).
89511
89512 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89513
89514         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89515         that we can shift, multiply and divide unsigned long long
89516         values; Ultrix cc can't do it.
89517
89518 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89519
89520         * m4/mktime.m4: New file, which is a preview of what should appear
89521         in the next public autoconf release.
89522
89523 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89524
89525         * m4/lfs.m4: Remove this file.
89526         * m4/largefile.m4: New file.  It contains the old contents of
89527         lfs.m4, except that all names with prefix AC_LFS have been
89528         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89529         compatible with future autoconf versions.  Also, some minor m4
89530         quoting problems have been fixed.
89531
89532 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89533
89534         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89535         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89536         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89537         and simplify the shell code.
89538
89539 1999-08-01  Jim Meyering  <meyering@ascend.com>
89540
89541         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89542         m4.
89543
89544 1999-07-20  Jim Meyering  <meyering@ascend.com>
89545
89546         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89547
89548 1999-07-15  Jim Meyering  <meyering@ascend.com>
89549
89550         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89551
89552 1999-05-22  Jim Meyering  <meyering@ascend.com>
89553
89554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89555
89556 1999-05-20  Jim Meyering  <meyering@ascend.com>
89557
89558         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89559         Add a colon after each `then' in case $4 is empty.
89560
89561 1999-05-16  Jim Meyering  <meyering@ascend.com>
89562
89563         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89564
89565 1999-05-10  Jim Meyering  <meyering@ascend.com>
89566
89567         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89568
89569         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89570         AC_FUNC_MKTIME.
89571
89572 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89573
89574         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89575
89576 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89577
89578         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89579         not CPPFLAGS, so that linking works correctly in IRIX.
89580
89581 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89582
89583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89584
89585 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89586
89587         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89588         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89590         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89591         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89592
89593         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89594
89595 1999-04-20  Jim Meyering  <meyering@ascend.com>
89596
89597         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89598         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89599         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89600
89601 1999-04-18  Jim Meyering  <meyering@ascend.com>
89602
89603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89604         * m4/jm-macros.m4: Use it.
89605
89606 1999-04-06  Jim Meyering  <meyering@ascend.com>
89607
89608         * m4/strftime.m4: Remove test for %f.
89609
89610 1999-03-29  Jim Meyering  <meyering@ascend.com>
89611
89612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89613         superset of the AC_TYPE_* checks in the textutils, fileutils,
89614         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89615         AC_TYPE_PID_T.
89616
89617 1999-03-28  Jim Meyering  <meyering@ascend.com>
89618
89619         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89620         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89621         replaced e.g., in the *.sh files of the sh-utils.
89622
89623 1999-03-20  Jim Meyering  <meyering@ascend.com>
89624
89625         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89626         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89627         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89628
89629 1999-03-19  Jim Meyering  <meyering@ascend.com>
89630
89631         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89632
89633 1999-03-12  Jim Meyering  <meyering@ascend.com>
89634
89635         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89636
89637 1999-03-07  Jim Meyering  <meyering@ascend.com>
89638
89639         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89640         declared.
89641
89642 1999-02-17  Jim Meyering  <meyering@ascend.com>
89643
89644         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89645         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89646
89647 1999-02-07  Jim Meyering  <meyering@ascend.com>
89648
89649         * m4/group-member.m4: New file -- extracted from sh-utils'
89650         configure.in.
89651
89652         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89653         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89654
89655 1999-02-06  Jim Meyering  <meyering@ascend.com>
89656
89657         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89658         * m4/fnmatch.m4: Likewise.
89659         * m4/getgroups.m4: Likewise.
89660         * m4/lstat.m4: Likewise.
89661         * m4/malloc.m4: Likewise.
89662         * m4/putenv.m4: Likewise.
89663         * m4/realloc.m4: Likewise.
89664         * m4/regex.m4: Likewise.
89665         * m4/stat.m4: Likewise.
89666         * m4/strftime.m4: Likewise.
89667         Suggestion from Alain Magloire.
89668
89669         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89670         * m4/fnmatch.m4: Likewise.
89671         * m4/getgroups.m4: Likewise.
89672         * m4/getline.m4: Likewise.
89673         * m4/lstat.m4: Likewise.
89674         * m4/malloc.m4: Likewise.
89675         * m4/memcmp.m4: Likewise.
89676         * m4/putenv.m4: Likewise.
89677         * m4/realloc.m4: Likewise.
89678         * m4/regex.m4: Likewise.
89679         * m4/stat.m4: Likewise.
89680         * m4/strftime.m4: Likewise.
89681         Suggestion from Alain Magloire.
89682
89683         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89684         an argument.
89685
89686         * m4/regex.m4: Add a run-time Test for proper operation of
89687         re_compile_pattern.
89688
89689 1999-01-31  Jim Meyering  <meyering@ascend.com>
89690
89691         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89692
89693 1999-01-30  Jim Meyering  <meyering@ascend.com>
89694
89695         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89696
89697         * m4/jm-mktime.m4: Make this a wrapper around the official
89698         AM_FUNC_MKTIME rather than my private copy, now that the official one
89699         is up to date.
89700         * m4/mktime.m4: Remove file.
89701
89702         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89703         * m4/uptime.m4: Likewise.
89704         * m4/uintmax_t.m4: Likewise.
89705
89706 1999-01-28  Jim Meyering  <meyering@ascend.com>
89707
89708         * m4/jm-macros.m4: Use jm_AFS.
89709         * m4/afs.m4: New file (from fileutils' configure.in).
89710
89711         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89712         * m4/chown.m4: Likewise.
89713         * m4/d-ino.m4: Likewise.
89714         * m4/d-type.m4: Likewise.
89715         * m4/fnmatch.m4: Likewise.
89716         * m4/getgroups.m4: Likewise.
89717         * m4/gettext.m4: Likewise.
89718         * m4/jm-mktime.m4: Likewise.
89719         * m4/jm-winsz2.m4: Likewise.
89720         * m4/lcmessage.m4: Likewise.
89721         * m4/ls-mntd-fs.m4: Likewise.
89722         * m4/malloc.m4: Likewise.
89723         * m4/memcmp.m4: Likewise.
89724         * m4/putenv.m4: Likewise.
89725         * m4/realloc.m4: Likewise.
89726         * m4/st_mtim.m4: Likewise.
89727         * m4/strftime.m4: Likewise.
89728
89729 1999-01-16  Jim Meyering  <meyering@ascend.com>
89730
89731         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89732         (ARGMATCH_DIE_DECL): Define.
89733
89734 1999-01-12  Jim Meyering  <meyering@ascend.com>
89735
89736         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89737         Reported by Lars Hecking.
89738
89739 1999-01-10  Jim Meyering  <meyering@ascend.com>
89740
89741         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89742         gross kludge.
89743         * m4/inttypes_h.m4: Likewise.
89744         * m4/lstat.m4: Likewise.
89745         * m4/malloc.m4: Likewise.
89746         * m4/readdir.m4: Likewise.
89747         * m4/realloc.m4: Likewise.
89748         * m4/st_dm_mode.m4: Likewise.
89749         * m4/stat.m4: Likewise.
89750         * m4/utimbuf.m4: Likewise.
89751         * m4/utimes.m4: Likewise.
89752
89753         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89754         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89755         comments in config.h.in are meaningful.
89756
89757         * m4/jm-macros.m4: Require autoconf-2.13 here.
89758
89759         * m4/regex.m4: By default, don't use the included regex.c on systems
89760         with glibc 2.  Suggestion from Uli Drepper.
89761
89762 1999-01-02  Jim Meyering  <meyering@ascend.com>
89763
89764         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89765
89766 1998-12-18  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89769         Based on a suggestion from Lars Hecking.
89770
89771 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89772
89773         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89774
89775 1998-11-16  Jim Meyering  <meyering@ascend.com>
89776
89777         * m4/lfs.m4: Double-quote the `uname...` expression.
89778
89779 1998-11-14  Jim Meyering  <meyering@ascend.com>
89780
89781         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89782         * m4/stat.m4: Likewise.
89783
89784 1998-11-03  Jim Meyering  <meyering@ascend.com>
89785
89786         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89787         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89788
89789 1998-10-18  Jim Meyering  <meyering@ascend.com>
89790
89791         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89792
89793 1998-10-17  Jim Meyering  <meyering@ascend.com>
89794
89795         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89796         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89797         calls for those previously hard-coded headers.  Instead, take a new
89798         parameter.
89799         (jm_CHECK_DECLARATIONS): Reflect interface change.
89800         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89801         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89802
89803         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89804
89805 1998-10-14  Jim Meyering  <meyering@ascend.com>
89806
89807         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89808         instead of "TZ=America/Vancouver".  From Paul Eggert.
89809
89810 1998-10-11  Jim Meyering  <meyering@ascend.com>
89811
89812         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89813         This adds a test for a recently added compatibility fix for mktime.c.
89814         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89815
89816 1998-09-27  Jim Meyering  <meyering@ascend.com>
89817
89818         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89819
89820         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89821         ../configure.in, including a change from Gordon Matzigkeit to allow
89822         cross-compiling for the Hurd.
89823
89824         * m4/glibc.m4: New file/macro to test for the GNU C Library
89825         versions 1 and 2.  From Gordon Matzigkeit.
89826         Indent.
89827
89828 1998-09-21  Jim Meyering  <meyering@ascend.com>
89829
89830         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89831
89832 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89833
89834         Port nanosecond-resolution times to UnixWare 2.1.2 and
89835         pedantic Solaris 2.6.
89836
89837         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89838         AC_STRUCT_ST_MTIM.
89839         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89840         Generate name of ns member, instead of just 1 or undef.
89841         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89842
89843 1998-08-15  Jim Meyering  <meyering@ascend.com>
89844
89845         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89846         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89847         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89848         instead of jm_TYPE_SSIZE_T.
89849
89850 1998-08-12  Jim Meyering  <meyering@ascend.com>
89851
89852         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89853
89854 1998-08-02  Jim Meyering  <meyering@ascend.com>
89855
89856         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89857         in acconfig.h manually.
89858
89859 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89860
89861         * m4/st_mtim.m4: New file.
89862
89863 1998-07-28  Jim Meyering  <meyering@ascend.com>
89864
89865         * m4/utimes.m4: Undef stat.
89866
89867 1998-07-25  Jim Meyering  <meyering@ascend.com>
89868
89869         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89870         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89871
89872 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89873
89874         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89875         uid and gid actually remain unchanged.
89876
89877 1998-07-07  Jim Meyering  <meyering@ascend.com>
89878
89879         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89880
89881 1998-07-04  Jim Meyering  <meyering@ascend.com>
89882
89883         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89884         to prove that this macro can be used in packages without regex.c.
89885
89886 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89887
89888         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89889         is to be used.
89890
89891 1998-07-03  Jim Meyering  <meyering@ascend.com>
89892
89893         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89894
89895         * m4/gettext.m4: New file -- from gettext-0.10.35.
89896         * m4/lcmessage.m4: Likewise.
89897         * m4/progtest.m4: Likewise.
89898
89899         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89900         * m4/jm-macros.m4: Require the new macro.
89901
89902 1998-06-29  Jim Meyering  <meyering@ascend.com>
89903
89904         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89905         for the definition of NGROUPS (used in a system header included
89906         by sys/mount.h).
89907
89908 1998-06-28  Jim Meyering  <meyering@ascend.com>
89909
89910         * m4/ls-mntd-fs.m4: New file.
89911         * m4/fstypename.m4: New file.
89912
89913         * m4/jm-macros.m4: Require the new macro.
89914         * m4/jm-glibc-io.m4: New file.
89915
89916 1998-05-19  Jim Meyering  <meyering@ascend.com>
89917
89918         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89919         * m4/lchown.m4: New file.
89920
89921         * m4/Makefile.am.in: New file.
89922         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89923
89924 1998-05-14  Jim Meyering  <meyering@ascend.com>
89925
89926         * m4/Makefile.am (EXTRA_DIST): Add them.
89927         * m4/jm-macros.m4: New file.
89928         * m4/utimbuf.m4: New file.
89929
89930 1998-05-12  Jim Meyering  <meyering@ascend.com>
89931
89932         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89933
89934 1998-05-11  Jim Meyering  <meyering@ascend.com>
89935
89936         * m4/isc-posix.m4: New file.
89937
89938 1998-05-10  Jim Meyering  <meyering@ascend.com>
89939
89940         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89941
89942 1998-05-09  Jim Meyering  <meyering@ascend.com>
89943
89944         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89945         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89946         with automake.
89947
89948         * m4/ssize_t.m4: New file.
89949         * m4/mktime.m4: Remove file -- the new automake has this now.
89950
89951 1998-04-26  Jim Meyering  <meyering@ascend.com>
89952
89953         * m4/assert.m4: New file.
89954         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89955
89956 1998-04-05  Jim Meyering  <meyering@ascend.com>
89957
89958         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89959         (jm_PREREQ): Use it here.
89960
89961 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89962
89963         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89964         in acconfig.h.
89965
89966 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89967
89968         * m4/prereq.m4: New file.
89969         * m4/error.m4: New file.
89970         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89971
89972 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89973
89974         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89975         cache-check for the same variable -- that defeated the purpose of
89976         the test; the test program was never run.  This was a problem only
89977         on systems with losing getline functions -- HP-UX 10.20 is one.
89978         Reported by Bjorn Helgaas.
89979
89980 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89981
89982         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89983
89984 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89985
89986         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89987
89988         * m4/const.m4: New file.  Use an initializer in this declaration
89989         typedef int charset[2]; const charset x;
89990         Reported by Bob Glickstein.
89991
89992 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89993
89994         * m4/chown.m4: Fix reversed types on -1 args to chown.
89995         From Kaveh Ghazi.
89996
89997 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89998
89999         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90000         Add lseek and memchr.
90001
90002         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90003         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90004         have a 20-character limit on names.
90005
90006 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90007
90008         * m4/inttypes_h.m4: New file.
90009         * m4/uintmax_t.m4: New file.
90010         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90011
90012
90013         -----
90014
90015         Local Variables:
90016         coding: utf-8
90017         End:
90018
90019         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90020
90021         Copying and distribution of this file, with or without
90022         modification, are permitted provided the copyright notice
90023         and this notice are preserved.